Fw: [問題] 藍牙 bluetooth 配對問題

作者: remember11 (Mr.Darcy)   2015-03-03 14:38:47
※ [本文轉錄自 LinuxDev 看板 #1KzLNxCV ]
作者: remember11 (Mr.Darcy) 看板: LinuxDev
標題: [問題] 藍牙 bluetooth 配對問題
時間: Tue Mar 3 14:34:32 2015
小弟用BT dongle,要用來和手機(android)藍芽配對
使用的tool是 hcitool
Linux 環境是 openwrt,有安裝下列blueZ相關的utilities
bluez BlueZ stak (combined Lib and Utils)
bluez-hcidump Bluetooth packet analyzer
bluez-utils Bluetooth utilities
有關閉wifi,怕干擾
遇到的問題是:
用hcitool cc去做配對,然後下hcitool con檢查有資料,應該是有配對成功
但1秒後再檢查一次卻沒資料,等於配對斷了,屢試不爽
root@OpenWrt:/# hcitool cc 00:26:46:8F:B5:90
root@OpenWrt:/# hcitool con
Connections:
< ACL 00:26:46:8F:B5:90 handle 1 state 1 lm MASTER
root@OpenWrt:/# hcitool con
Connections:
在 Fedora 17上用相同的BT dongle,下hcitool cc去配對同一隻手機也是一樣的情況
想請問各位大大哪裡有問題
上網google好久還找不出原因在哪
請各位高手提供經驗或方向給小弟
謝謝
作者: HamalAri (哈馬‧阿里)   2015-03-03 22:14:00
用 bluetoothctl 配看看,或降級 bluez 4
作者: staven (大頭)   2015-03-04 09:31:00
沒資料傳輸就會不見!你持續用lping你的device 應該就會一直出現

Links booklink

Contact Us: admin [ a t ] ucptt.com