When the system wakes up from sleep and then restarts the BLE advertise

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
2455321262
Offline
Last seen:2 years 7 months ago
加入:2017-01-22 06:43
When the system wakes up from sleep and then restarts the BLE advertise

Hi Dialog Team,
We set a button with an external interrupt to wake up the DA14580,During the awakening of the DA14580, we hope that BLE does not work.
So,We want to konw when the DA14580 wakes up from sleep and then restarts the BLE advertise.

Any insight that you could provide would be greatly appreciated.

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi 2455321262,

Hi 2455321262,

I am sorry, but i dont understand what the problem is, can you please rephrase the question ? I can assume that you set the device in permanent sleep and in some point you push a button in order to wake it up, and the device never wakes up, is that correct ? Can you please check the ble_app_sleepmode example in the SDK and check how the wake up timer is configured. The functionallity of the example is that it will start advertise for 10 seconds and then fall in permanent sleep, before the device goes to sleep the application will set up the wake up timer in order to wake up from an external event, so by pressing the sw3 the wake up interrupt is generated and the device starts advertising again.

Thanks MT_dialog

2455321262
Offline
Last seen:2 years 7 months ago
加入:2017-01-22 06:43
Hi Dialog Team,

Hi Dialog Team,
Thanks for your Reply.
事实上,你了解它的一部分。我的14580 wakes up from time to time under the software timer, but I want BLE to re-enable only when the external pin is triggered, rather than advertise after each system wake-up. So I want to know how the 14580 re-enabled the advertise when the system wakes up, I want to turn off this, and then re-enable the advertise only in my external interrupt triggering function

STS_Dialog (not verified)
Hi 2455321262,

Hi 2455321262,

Every advertising event happens after an interval this is the procedure, it’s not necessary another event like a kernel timer to invoke the advertising. In the ble_app_sleepmode example if you don’t push the wake up button(sw3) the device stays in sleep mode permanent after the competition of the first advertising. So please try to be more descriptive about your question, and let me know exactly what you would like to do. Also please check the ble_app_sleepmode example that is located in the SDK examples.

Thanks,

STS_Dialog.