看板 LinuxDev 關於我們 聯絡資訊
小弟用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好久還找不出原因在哪 請各位高手提供經驗或方向給小弟 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.163.55.114 ※ 文章網址: https://www.ptt.cc/bbs/LinuxDev/M.1425364475.A.31F.html ※ 編輯: remember11 (118.163.55.114), 03/03/2015 14:36:50
snowcreeper: hcitool cc <address>只是建立底層連線 05/01 00:03
snowcreeper: 底層連線 後續你沒動作很快就timeout斷掉了 05/01 00:04
snowcreeper: hcitool con是檢查連線狀態 而非配對狀態 05/01 00:05
snowcreeper: 如需配對可用bluetooth-agent <passcode> 05/01 00:05
snowcreeper: 如果需要建立連線可以用rfcomm connect (詳細請估狗) 05/01 00:07