dynamically BD addresses

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi
Can two or more BD addresses that dynamically change on one board be generated use by PSoC Creator?

   

Best regards,
Yoshizu

0 Likes
1 Solution
Anonymous
Not applicable

Yes, you can change the BD Address dynamically using the CyBle_GetDeviceAddress API when the device is not advertising.

   

Regards,

   

- Madhu Sudhan

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

Yes, you can change the BD Address dynamically using the CyBle_GetDeviceAddress API when the device is not advertising.

   

Regards,

   

- Madhu Sudhan

0 Likes
Anonymous
Not applicable

I have one more question.

   

Can the BD address of the advertising packet be dynamically changed as a broadcaster?

   

Best regards,
Yoshizu

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi,

   

You have to use CyBle_SetDeviceAddress() API before start advertisment API. Please go through the BLE component datasheet for explanation. 

   

Each time when you update the adv parameters for Dynamic broadcaster, you may have to call APIs for set device address with address which you have to set. Then call API for start adv.

   

Thanks,
Anjana

Anonymous
Not applicable

Dear Anjana

   

   I was able to increment BD address  add by next step in while() at main().

   

    cyBle_deviceAddress.bdAddr[0]++;
    if(cyBle_deviceAddress.bdAddr[0]==0)cyBle_deviceAddress.bdAddr[1]++;
    if(cyBle_deviceAddress.bdAddr[1]==0)cyBle_deviceAddress.bdAddr[2]++;

   

    CyBle_SetDeviceAddress(&cyBle_deviceAddress);

   

 

   

Best regards,
Yoshizu

0 Likes