Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->网络应用 ->正文

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

来源: 作者:Webmaster 时间:2008-08-18 点击: [收藏] [投稿]

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

(责任编辑:云子)



 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:Ubuntu Linux 8.04自动挂载磁盘方法介绍   下一篇:Google已经取消Linux版开源CoreAVC项目

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号