Related to ble_app_sleepmode

⚠️
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
alan.a
Offline
Last seen:2 years 7 months ago
加入:2018-10-31 07:50
Related to ble_app_sleepmode

hii....
1. I want to know something about this example. i understand that device advertise for 10 seconds and stop advertising . if device not connected it goes to Deep sleep otherwise its goes to Extended sleep mode. if we press button the device wake up from deep sleep and start advertising again for particular time after that it stops advertising and go back to deep sleep and process continues is it right?

2. is it possible app_easy_timer instead of button call back to wake up from deep sleep?

3. if i want to keep a variable value(ie not restore the variable value when device wake up) which sleep mode is you preferred?

4.is it any function call if we again back to sleep mode after device wake up?

Device:
PM_Dialog
Offline
Last seen:1 week 1 day ago
工作人员
加入:2018-02-08 11:03
Hi alan.a,

Hi alan.a,

  1. Please check the section 8.50 Pillar 5 (Sleep Mode) in theUM-B-050 : DA1458x Software Developers Guide (SDK5)for getting more information about the ble_app_sleepmode and for the others examples of the SDK. I would suggest you to read the paragraph 8.53 User Interface.
  2. Regarding the wake up procedure, it would be very useful to hav a look at sections 7.1.1 Sleep Modes and 7.1.2 Wake-Up Events from theUM-B-051 : DA14580 Software Platform Reference (SDK5). Yes you can do this synchronously, via the BLE timer (app_easy_timer) which can be programmed to wake up the system in order to serve a BLE event. Please check a previous post in which it was describes how the DA14580 can be woken up using BLE timers. Could you please clarify if you would like to burn the OTP?

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/how-program-deep-sleep-ble-timer-waking

  1. I am not able to understand your question. Do you mean that you would like to store and retain a variable since the device enters the sleep? If you mean that you can store it into the retention ram. For example, check how the mnf_data variable is stored in the Ret-RAM. Retention RAM is used to store sensitive data and connection information while in Deep Sleep mode.
  2. Could you please clarify your question?

Thanks, PM_Dialog

alan.a
Offline
Last seen:2 years 7 months ago
加入:2018-10-31 07:50
Thanks for your replay.

Thanks for your replay.
Can you provide an example how variable stored in retention RAM when device go to deep sleep mode?

PM_Dialog
Offline
Last seen:1 week 1 day ago
工作人员
加入:2018-02-08 11:03
Hi alan.a,

Hi alan.a,

As I have already mentioned in my previous post, check how the mnf_data variable is stored in the Ret-RAM in user_sleepmode.c file.

struct mnf_specific_data_ad_structure mnf_data __attribute__((section("retention_mem_area0"),zero_init)); // @RETENTION MEMORY

I would like to let you know, that if you found any answer useful please mark it as accepted.

Thanks, PM_Dialog