歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> Ubuntu Linux 8.04藍牙設備連接管理方法

Ubuntu Linux 8.04藍牙設備連接管理方法

日期:2017/3/2 16:49:11   编辑:Linux服務器

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

Copyright © Linux教程網 All Rights Reserved