Dynamic advertisement updates and timing.

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

cross mob
Anonymous
Not applicable

I'm working on a simple switch application.  2 PSoCs, one for Central one for Peripheral. I'm having the peripheral send a dynamically updated advertisement with a single bit (1) before entering low power mode, so the central scans, stops scanning when that bit in the advertisement data is detected, and processes.  When advertisement times out, the bit defaults to 0.  For example, click the button once -> Central turns LED on, click again -> LED off.  In a simple click-by-click action, it works fine, but what I want to add is kind of a flicker function.  Double-clicking will send a (1), then a (0), then a (1) before timing out, so hopefully the Central will detect, process, start scan, and detect a (1) again.  I'm running into some either processing time issues on either side or possibly coding issues on the peripheral side.  Any ideas?

0 Likes
1 Reply
Anonymous
Not applicable

Hi,

   

Can you elaborte on what issues you are exactly facing? Are you able to dynamically change tha address? If the central is not able to detect the change in address, make sure duplicate filtering is disabled in the scan settings.

   

You can refer the Dynamic Broadcaster project in our Example Projects Blog for changing the Adv packets.

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days

   

Regards,

   

- Madhu Sudhan

0 Likes