2016-03-05 141 views
2

我有一個覆盆子pi 3和第四代蘋果電視遙控器。Siri遙控器(ATV4)與覆盆子pi 3藍牙

我不明白爲什麼我使用「hcitool scan」命令掃描覆盆子pi時無法看到遙控器。

我不得不說,我可以在掃描過程中看到其他藍牙設備,但從來沒有遠程。

我用iPhone掃描時可以看到遙控器。

我ATV4被拔掉,我已經把對模式(菜單+音量向上)

什麼是錯的遠程?謝謝

+0

我看到完全相同相同的結果。遙控器在我的iPhone中可見,但根本無法從hcitool掃描中看到它。其他藍牙設備在hcitool掃描中顯示正常。 – JosephH

+0

嗨約瑟夫,我已經能夠看到遠程使用sudo hcitool lescan然後我已經能夠連接做sudo gatttool -b - 然後連接,但之後我不知道如何捕捉按鈕事件。 – user3546553

回答

0

我一直在尋找這一點,目前爲止我的結論是,有可能是Siri遠程/第四代Apple TV遙控器中的藍牙有點不標準或不尋常。當然,它設法在我的Mac和iPhone上以稍微不同的方式打亂LightBlue。

如果我使用bluetoothctl,遠程確實顯示了,我可以連接到它(至少如果我持有菜單+ volumeup 5秒,同時bluetoothctl已啓用發現):

[email protected]:/home/pi# bluetoothctl 
[NEW] Controller B8:27:EB:6C:15:98 raspberrypi [default] 
[bluetooth]# scan on 
Discovery started 
[CHG] Controller B8:27:EB:6C:15:98 Discovering: yes 
[bluetooth]# agent on 
Agent registered 
[bluetooth]# default-agent 
Default agent request successful 
[NEW] Device 78:9F:70:5E:A3:14 DJ7Q6MZ9GQQT 
[NEW] Device 67:8F:99:BC:EE:C5 67-8F-99-BC-EE-C5 
[CHG] Device 67:8F:99:BC:EE:C5 RSSI: -64 
[CHG] Device 67:8F:99:BC:EE:C5 RSSI: -44 
[CHG] Device 67:8F:99:BC:EE:C5 RSSI: -64 
[CHG] Device 67:8F:99:BC:EE:C5 RSSI: -44 
[bluetooth]# connect 78:9F:70:5E:A3:14 
Attempting to connect to 78:9F:70:5E:A3:14 
[CHG] Device 78:9F:70:5E:A3:14 Connected: yes 
Connection successful 
[CHG] Device 78:9F:70:5E:A3:14 UUIDs: 
    00001800-0000-1000-8000-00805f9b34fb 
    00001801-0000-1000-8000-00805f9b34fb 
    0000180a-0000-1000-8000-00805f9b34fb 
    0000180f-0000-1000-8000-00805f9b34fb 
    00001812-0000-1000-8000-00805f9b34fb 
    0000181e-0000-1000-8000-00805f9b34fb 
    8341f2b4-c013-4f04-8197-c4cdb42e26dc 
[CHG] Device 78:9F:70:5E:A3:14 Appearance: 0x03c0 
[CHG] Device 78:9F:70:5E:A3:14 Modalias: bluetooth:v004Cp0266d0000