4 Replies Latest reply on Sep 26, 2016 12:03 AM by userc_38794

    dynamically BD addresses

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

         

      Best regards,
      Yoshizu

        • 1. Re: dynamically BD addresses

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

             

          Regards,

             

          - Madhu Sudhan

          • 2. Re: dynamically BD addresses

            I have one more question.

               

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

               

            Best regards,
            Yoshizu

            • 3. Re: dynamically BD addresses
              AnjanaM_61

              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

              1 of 1 people found this helpful
              • 4. Re: dynamically BD addresses

                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