Hi team,
The customer used:
and set:
Then use IOS and Android phones to test respectively.
Android phone: There is a broadcast, and the address on the broadcast display has been changed to CF, FF, FF, FF, FF, CF, but connect cannot connect to it.
IOS mobile phone: Cannot scan the broadcast
Is there any other way to successfully change the MAC Address and scan and broadcast successfully?
The customer has these questions:v
1. Does CC2340 have two addresses?
The first one is the default address, which can also be called the main address. This address has been burned into the chip, so it cannot be changed.
The second one is the backup address, also called the Secondary Address. It can be set through the Random Address mode of .Syscfg or the Flash Programmer software or the function HCI_EXT_SetBDADDR(), etc.
And if the Secondary Address is set, CC2340 will overwrite the "Primary Address" and use "Secondary Address" as the Device Address, so the Address displayed on the broadcast will be changed to "Secondary Address". My understanding is that Of?
2. In the picture I posted in the article, is HCI_EXT_SetBDADDR() used to change the "Secondary Address"?
3. If the questions in points 1 and 2 are true, then the API HCI_EXT_SetBDADDR() has annotations. This API can only be used during initialization, and the CC2340 must be in the Standby state. Currently, I am in the "non-initialized" state HCI_EXT_SetBDADDR () call. Is it possible that this is the reason why the connection cannot be connected even though the Address shown in the broadcast has been changed?
4.Which initialization does the "initialization" period mentioned in the HCI_EXT_SetBDADDR() annotation refer to? Is it appMain() -> BLEAppUtil_init(&criticalErrorHandler, &App_StackInitDoneHandler,&appMainParams, &appMainPeriCentParams)?
5.. If question 3 is true, is there any way to change the Address during "non-initialization" through code (without using software or .Syscfg)?
For example, if I create a Function, when I enter the Function via Command via Bluetooth, I can change the Secondary Address and successfully connect and broadcast.