How to handle AT commands from a Bluetooth headset in Android?

ぃ、小莉子 提交于 2020-06-16 05:04:11

问题


I would like to handle an AT command (for double tap event) from a standard Bluetooth mono headset. By default, the double tap sends AT+BLDN command (Redial event) to the phone. According to Android documentation, registering a Broadcast Receiver for

android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT

will handle all such vendor related AT commands. But, it is not being invoked when the AT command is sent by the headset. Though, the redial event happens on the phone.


回答1:


AT+BLDN is a standard(GSM) command for redialing. So it is handled by the system itself.Moreover as per my understanding the device should support those specific commands which are for ex:plantronics specific command then only user will be able to get notification about that command.



来源:https://stackoverflow.com/questions/17176162/how-to-handle-at-commands-from-a-bluetooth-headset-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!