Hi ,
We want to switch master/slave role on Bluetopia stack , but I dont know how to do that.
In the Bluez stack , we can use command "hcitool sr AA:BB:CC:DD:EE:FF master" to switch TI controller to master.
Nathan Kuo
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi ,
We want to switch master/slave role on Bluetopia stack , but I dont know how to do that.
In the Bluez stack , we can use command "hcitool sr AA:BB:CC:DD:EE:FF master" to switch TI controller to master.
Nathan Kuo
Hi Gigi,
Thanks for your replay,
One more question , can I add the below command to the Bluetooth firmware file?
Send_HCI_Switch_Role BD_ADDR, 0x00
Wait_HCI_Command_Status_Event 2000, 0x00, Any, 0x080b
Nathan Kuo
Hi Gigi,
If "BD_ADDR" of the remote deivce is "a85b7858a9ec"
Send_HCI_Switch_Role "a85b7858a9ec", 0x00
### Convert to HCI format
0x02 0x0b 0xec 0xa9 0x58 0x78 0x5b 0xa8 0x00
The HCI format is right?
Log:
root@android:/ # LinuxDEVM
* 51)SendRawHCICommand *
* Help, Quit. *
******************************************************************
DEVM>1 1
1 1
BTPM_Initialize() Success: 0.
DEVM_RegisterEventCallback() Success: 4.
DEVM>10 1
10 1
DEVM_PowerOnDevice() Failure: -10037, Local Device is already Powered Up.
Function Error.
DEVM>51 0x02 0x0b 0xec 0xa9 0x56 0x78 0x5b 0x18 0x00
51 0x02 0x0b 0xec 0xa9 0x56 0x78 0x5b 0x18 0x00
Invalid Input.
Nathan Kuo