简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM