You are here

dynamically BD addresses | Cypress Semiconductor

dynamically BD addresses

Summary: 4 Replies, Latest post by yoshizu_1678311 on 26 Sep 2016 12:03 AM PDT
Verified Answers: 2
Last post
Log in to post new comments.
yoshizu_1678311's picture
User
30 posts

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

Best regards,
Yoshizu

mady's picture
Cypress Employee
1093 posts

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

Regards,

- Madhu Sudhan

yoshizu_1678311's picture
User
30 posts

I have one more question.

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

Best regards,
Yoshizu

Anjana Muralidharan's picture
Cypress Employee
109 posts

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

yoshizu_1678311's picture
User
30 posts

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

 

 

 

Log in to post new comments.