Tool/software:
Hello Expert,
I am using CC2340R5 as BLE controller device to send data to peripheral device.
CC2340R5 is flashed with host test FW (sdk version 8.10.1.02).
I want to control the CC2340R5 using Linux board using bluez lib HCI command (vendor specific).
CC2340R5 is giving proper response to HCI command when send through Btool (Gap Connect) command.
Also working when sending the raw command data.
but same i am sending through C code it is not generating the Gap connect successful event.
What can be the issue .
Thank you
Vinayak mhetar
Hello David,
I have written a code to send the HCI command to CC2340R5 .
When i am sending Raw command data on Serial port where the CC2340R5 is connected , response are properly received for below command but same when i am sending the HCI command opcode along with parameter (cross verified with the command send by Btool) so when i am sending GAPConnect command (Opcode 0xFE62) with parameter (00, xx,xx,xx,xx,xx,xx,01,00,00) the command execute success fully event is receiving but not the connection successfull status event is receiving . I am verifying it on btmon also their also not event is received.
1) HCIEXT_Reset cmd (RAW command 0x01 0x1D 0xFC 0x01 0x00) -> HCI command opcode (0xFC1D) with parameter(0x00)
2)GapInit command (RAW command 0x01 0x00 0xFE 0x08 0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00) -> HCI command opcode (0xFE00) with parameter(08, 00,00,00,00,00,00,00)
3)Setting the Phy paramter(connection interval min,max,latency and timeout)
4) GAPconnect command (RAW command 0x01 0x62 0xFE 0x0A 0x00 0xXX 0xXX 0xXX 0xXX 0xXX 0xXX 0x01 0x00 0x00) -> HCI command opcode (0xFE62) with parameter (00, xx,xx,xx,xx,xx,xx,01,00,00)
Thank you
Vinayak Mhetar
Hello Vinayak,
Where are you passing the peer address? I believe you have it set to 0x000000.
BR,
David.
Hello Vinayak,
Okay I see, so those are real values you are not sharing correct? Please make sure those are actually the ones used by your peer (peripheral) device and that that device is actually advertising only with that address (if it is adv with RPA then the address will change constantly), also be aware of the endianness of the MAC address, it might be inverted.
BR,
David