易截截图软件、单文件、免安装、纯绿色、仅160KB

Ubuntu Linux 8.04蓝牙设备连接管理方法

1.启动蓝牙设备
sudo /etc/init.d/bluetooth restart
或者
sudo /etc/init.d/bluez-utils restart
 
2.使用hcitool dev查看计算机上的蓝牙设备
teapot@teapot:~$ hcitool dev
Devices:
hci0 00:16:CF:DB:B4:BF
teapot@teapot:~$
 
3.安装设备
查询设备地址
teapot@teapot:~$ sudo hidd --search
Searching ...
No devices in range or visible
如果sudo hidd --search没有搜索到,换hcitool scan搜索
我的T60 使用hcitool scan搜索到手机的蓝牙
teapot@teapot:~$ hcitool scan
Scanning ...
00:1D:E9:30:CE:55 PZF # 这是我的手机
 
teapot@teapot:~$ sudo hidd --connect 00:1D:E9:30:CE:55
teapot@teapot:~$ sudo hidd --show
teapot@teapot:~$
没有错误提示,也没有连接,不知道怎么回事了!
 
teapot@teapot:~$ sudo hcitool cc 00:1D:E9:30:CE:55
teapot@teapot:~$ sudo hcitool con
Connections:
teapot@teapot:~$
 
# 这时在蓝牙管理器的浏览设备中发现了PZF
# 建立配对
# 再查看连接
 
teapot@teapot:~$ sudo hcitool con
Connections:
< ACL 00:1D:E9:30:CE:55 handle 11 state 1 lm MASTER ENCRYPT


相关文档:

LINUX的热插拔机制(经典文章)

 linux的热插拔是Greg Kroah-Hartman维护,所以这是篇经典文章。如果你有USB或者PCI设备驱动开发基础,一读就可以理解。
Hot-pluggable devices have been created to solve a number of user needs. On laptop computers, PCMCIA devices were designed to allow the user to swap cards while the computer was sti ......

Linux网管笔记(22)Linux下的文件系统结构

    在Windows下,文件系统结构是一个再普通不过的名词了。不过,在Linux下,文件系统有些区别。     文件结构是文件存放在磁盘等存储设备上的组织方法。一个文件系统的好坏主要体现在对文件和目录的组织上。目录提供了管理文件的一个方便而有效的途径。我们能够从一个目录切换到另一个目录 ......

Linux shell I/O重定向详解

 I/O重定向详解及应用实例
1、 基本概念(这是理解后面的知识的前提,请务必理解)
a、 I/O重定向通常与 FD有关,shell的FD通常为10个,即 0~9;
b、 常用FD有3个,为0(stdin,标准输入)、1(stdout,标准输出)、2(stderr,标准错误输出),默认与keyboard、monitor、monitor有关;
c、 用 < 来改变读进的 ......

Linux Shell 《abs_guide》 学习笔记(2)

 3. 特殊符号
#    注释,行首以'#'开头为注释(#!例外)
      注意:在echo命令中被转义的#是不能作为注释的;同样的,#也可以出现在特定的参数替换结构中或者是数字常量表达式中。
      例:
      1. echo "Th ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号