Chinaunix首页 | 论坛 | 博客
  • 博客访问: 102006252
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-06 07:51:21

   来源:赛迪网    作者:sixth

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

阅读(319) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~