简体   繁体   中英

Send Ring Command to Bluetooth Headset using Android 2.2 SDK

I'm trying to send a RING Command to my Bluetooth Headset using Android 2.2 SDK (to simulate a fake phone call, just to initiate a SCO audio channel). I've read through the BluetoothChat example from google, but i dont think I can use it for AT Commands and such. I've also looked through BluetoothAdapter and BluetoothSocket. Can someone point me to a sample or in the right direction?

There are no public APIs to do this. The Bluetooth Chat uses the SPP (Serial Port Profile) profile , but you need access to the HeadSet / HandsFree Profile (HSP or HFP) , these profiles are used during calls and AT commands for RING etc gets sent over them.

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