This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Wake on timer vs slow advertising

Hi,

my application consists of long waiting time without connection (hours, possibly days, weeks), then a central connects and downloads data, and then again long waiting time until next connection. I have no buttons or other external components to trigger wakeup, so I need to rely on internal periodic wakeup.

What would be best solution to achieve this type of operation? I'd like to wake about every 5 seconds, advertise for 500ms, then sleep again. Is slow advertising intended for such purpose? It is puzzling because documentation says slow advertising goes to idle state if no connection after timeout.

I have tried to modify ble_app_hrs example using timers to just stop advertising instead of going system off, but I get periodic system resets every second.. still working on this..

I also found this thread devzone.nordicsemi.com/.../, but the linked code is not available any more.

Any help appreciated.

Borut

Parents
  • Is the scan window in the central very short, or will it scan until it detects (and connect to) the peripheral? In a normal case the device would wake up and advertise once, go back to sleep, etc. Why do you want to burst advertisement packets? And how would that make the device save power? The peripheral will anyway sleep between BLE events (and other events in your application), so let's say you burst advertisement packets or spread them evenly out in time, I do not see how that would change power consumption.

Reply
  • Is the scan window in the central very short, or will it scan until it detects (and connect to) the peripheral? In a normal case the device would wake up and advertise once, go back to sleep, etc. Why do you want to burst advertisement packets? And how would that make the device save power? The peripheral will anyway sleep between BLE events (and other events in your application), so let's say you burst advertisement packets or spread them evenly out in time, I do not see how that would change power consumption.

Children
No Data
Related