I worked on nordic board nrf51 an i succeeded to change my Bluetooth mac @ and its type in the soft.
Is that possible on TI boards too ?
(i work on the CC2541 , simpleBLECentral !,satck 1.4.2.2)
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.
I worked on nordic board nrf51 an i succeeded to change my Bluetooth mac @ and its type in the soft.
Is that possible on TI boards too ?
(i work on the CC2541 , simpleBLECentral !,satck 1.4.2.2)
Hi ToTo,
Using HCI_EXT_SetBDADDRCmd I have no problem setting the address. I simply declare my address under Local variables:
static uint8 newCentralAddress[6] = {(0x12), (0x12), (0x12), (0x12), (0x12), (0x12)};
then call the function in init:
// Setup Central Profile { uint8 scanRes = DEFAULT_MAX_SCAN_RES; GAPCentralRole_SetParameter ( GAPCENTRALROLE_MAX_SCAN_RES, sizeof( uint8 ), &scanRes ); HCI_EXT_SetBDADDRCmd(newCentralAddress); }
Hi ToTo,
How do you check the address after calling GAP_ConfigDeviceAddr()? ( The line
LCD_WRITE_STRING( bdAddr2Str( pEvent->initDone.devAddr ), HAL_LCD_LINE_2 );
will write the initial address to the LCD screen even if you successfully changed it.)
What i did is : use the API GAP_ConfigDeviceAddr() and check what it returns (SUCCESS) . by doing a break point.
Then i do use the device for establishing a connection , the @ didn't change (i have Packet sniffer and dongle). I used the other API HCI_... and it works (i saw that on the Packet Sniffer )
i don't use LCD. i commented all stuff about it