DA14531 sleep mode exit

Learn More常见问题解答教程

24 posts / 0 new
最后一篇
tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
DA14531 sleep mode exit

Hi,

I'm trying to implement any sleep mode on the DA14531 which does not cause a system reset. Can you please provide which sleep modes cause a reset and if a specific sleep mode does not trigger a reset, where does the execution continue from and what will be the state of the BLE connection?

从查看Proxr_reporter代码,

Extended sleep - Continues execution on wakeup

深睡眠 - 在唤醒时触发重置

休眠 - 继续在唤醒时执行

Please confirm if these observations are correct and also can you share the link to any documentation which pertains to sleep modes other thanhttp://lpccs-docs.dialog-semiconductor.com/DA14531_Sleep_Mode+/index.html

Thanks,

IM_Dialog
Offline
最后一次露面:2 days 23 hours ago
加入:2016-12-06 22:25
嗨gowtham,

嗨gowtham,

如果您尚未这样做,我建议审核以下文件:

http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/index.html

The first couple of chapters provide a high level explaination of the operation of the SDK and the associated callbacks, and give some details of sleep modes.

I'd also recommend the empty_peripheral_template as a starting point for any code you are going to write yourself (and this is the basis of the tutorial i mentioned above).

最好的祝福
IM_Dialog

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
Hi IM_Dialog,

Hi IM_Dialog,

I followed your suggestion and started a new project with empty_peripheral_template. I have a few more questions

  • 我只对empty_peripheral_template制作了一个更改,它是将app_default_sleep_mode设置为ARCH_EXT_SLEEP_ON。我注意到电力分布器,当前消耗在广告之间的持续时间内增加。我附上了一个PDF与Power Profiler窗口的屏幕截图和它的设置。我已经在J1上从V_FL删除了v_fl的引脚。这里的问题可能是什么?
  • From the tutorial link you have given, I understood that for waking from Extended sleep, the code performs a periph_init and continues execution. But what is done for the other sleep modes?? This has not been mentioned.
  • My application is to read a sensor value using I2C every 20ms and transmit the data to a connected phone. I would like the DA14531 to be in sleep for the rest of the time. Would it be possible to use Hibernation mode or deep sleep in this scenario?

Thanks

IM_Dialog
Offline
最后一次露面:2 days 23 hours ago
加入:2016-12-06 22:25
Hi tsgowtham,

Hi tsgowtham,

我假设,当您使用Power Profiler时,您在DA14531的控制下运行代码在调试器的控制下。这没问题,但是一旦开始运行的代码,需要通过按“Ctrl + F5”断开调试器,否则调试器仍然有效并绘制当前。

最好的祝福
IM_Dialog

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
Hi IM_Dialog,

Hi IM_Dialog,

Thanks for a quick reply. Disabling the debugger fixed that. Now the current consumption is around 0.7 mA when it's in extended sleep mode. But this is still way higher than the 1.2 µA mentioned for Buck mode in the sleep mode tutorial document. Granted that the tutorial used 5 sec as the advertising interval but I doubt the difference is supposed to be this drastic. Anything I'm missing here?

Could you also please provide answers for my 2 other questions I had mentioned in myy last comment. I'm posting it again down here:

  • From the tutorial link you have given, I understood that for waking from Extended sleep, the code performs a periph_init and continues execution. But what is done for the other sleep modes?? This has not been mentioned.
  • My application is to read a sensor value using I2C every 20ms and transmit the data to a connected phone. I would like the DA14531 to be in sleep for the rest of the time. Would it be possible to use Hibernation mode or deep sleep in this scenario?

Thanks

cyibin.
Offline
最后一次露面:3 months 2 weeks ago
员工
加入:2017-12-14 02:48
Hi tsgowtham,

Hi tsgowtham,

Please refer to my answer to your questions below:

  • From the tutorial link you have given, I understood that for waking from Extended sleep, the code performs a periph_init and continues execution. But what is done for the other sleep modes?? This has not been mentioned.
  • [ycai]其他睡眠模式,而延长leep mode, there will be one more reboot process. Reboot process will re-copy the firmware data from external storage into RAM. The above process has been implemented by the SDK. The above process has been implemented by the SDK. From the perspective of the user, no matter which sleep mode is woken up from, the program will first run to a callback function in the user layer. The callback function may be called by RTC, GPIO, TIMER1 and so on.
  • My application is to read a sensor value using I2C every 20ms and transmit the data to a connected phone. I would like the DA14531 to be in sleep for the rest of the time. Would it be possible to use Hibernation mode or deep sleep in this scenario?
  • [ycai] The answer is yes. However, I suggest to use extend sleep mode, because another sleep mode requires an additional reboot process, which will also consume some power.
    When the sleep interval is long enough (such as 2s), the two external sleep modes are meaningful

Br, Yibin

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
嗨宜宾,

嗨宜宾,

Your answers were really informative and helpful. Thank you!

最后一件事我被困在延长睡眠模式下的高功率耗处(在我的最后一个回复中提到),它大约在0.7 mA时,没有连接的调试器。如何将该值较近睡眠模式教程中提到的1.2μA更接近。

Thanks

cyibin.
Offline
最后一次露面:3 months 2 weeks ago
员工
加入:2017-12-14 02:48
Hi,

Hi,

In order to eliminate the interference of other factors, can you do a test first, as follows:

0.在531开发套件上拔下所有跳线

1.将SDK的Prox_Reporter项目的固件下载到531 Dev-kit上的Flash

2. Unplug and reinsert the USB cable

3.打开SS工具箱 - >选择UART / SPI接口 - >打开Power-Profile工具

Pls tell me what you see on the screen of power-profile tool.

Br, Yibin

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
嗨宜宾,

嗨宜宾,

I have attached the power profiler output for the proxr project. I used the pre built downloadable firmware available in the Flash Programer tool. This output seems closer to what is expected. Why is there such a huge difference in the current consumption between these two projects? Is there any other project configuration which might be causing this?

@Jon_ODonnell

Try calibrating the power profiler, maybe that might help in giving a proper reading for the prox reporter project. Also, 0.167 mA for the barebones project looks like a bit too much for the extended sleep mode, would be better if Yibin clarifies this though.

Thanks,

Jon_ODonnell
Offline
最后一次露面:2 months 21 hours ago
加入:2020-08-08 17:23
@Yibin,

@Yibin,

I set the calibration to 0 mA and ran with no board installed. The average current was 1.77 mA! I tried putting -1.77 in the calibration offset, but then I got negative current. The numbers jumped around.

I suspect both the offset and gain are having problems. Do I have a bad board? I just purchased it from Digi-key.

I attached a pic of the board to show jumpers, etc. and some screen shots.

Jon

Jon_ODonnell
Offline
最后一次露面:2 months 21 hours ago
加入:2020-08-08 17:23
I found the problem! For

I found the problem!For some reason, the current drawn from the SPI-Flash is also measured and it is not going into the low power sleep. If I remove the J1 V_FL jumper, the current goes down to 0.02 mA during the calibration.

I removed the jumper and added a wire from J1-1 to J9-2 to power the flash without measuring the current.

The average current for the DA14531-DA14585-586_Service_Data_Beacon is now onlt 0.008 mA with peak of 2.816 mA. The prox_reporter still measures a 0.000000 mA flat-line. The barebones gives 0.156 mA average and 2.893 mA peak.

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
An update to my last comment:

An update to my last comment:

I tried flashing my empty-peripheral-template project with Extended sleep enabled to the Flash. I saw an average currrent consumption of 0.24596 mA and a peak currrent of 3.97961 mA. The average current still seems a bit high too high for extended sleep.

Jon_ODonnell
Offline
最后一次露面:2 months 21 hours ago
加入:2020-08-08 17:23
I am having the same problem.

I am having the same problem. I started with DA14531-DA14585-586_Service_Data_Beacon which sets
app_default_sleep_mode = ARCH_EXT_SLEEP_ON;
但未修改示例中的广告之间的电流约为1.7mA。更改为Arch_sleep_off将电流增加到1.9ma。

This is with using the SmartBond Flash Programmer and cycling power to the Dev Kit before making the measurements.

Jon_ODonnell
Offline
最后一次露面:2 months 21 hours ago
加入:2020-08-08 17:23
我下载了prox_reporter

我下载了Prox_reporter(由SDK Source建造,预先构建的“下载在线固件”版本来自SmartBond闪存程序员),并且如要求测量的峰值和平均电流都是0.00000 mA。图表是底部的直线(见附加PDF)。

I verifed with BLE Scanner that the DLG-PROXR device was advertizing every 689ms.

I also tried the pre-built ble_app_barebone_531.out.bin from the online resources. The current looked more normal with an average of 0.16758 mA and peak of 3.181 mA.

Please let me know if I should move this discussion to a different thread. It appears to be the same problem, but I do not want to hijack the thread.

Jon

PW_Dialog
Offline
最后一次露面:1 day 14 hours ago
员工
加入:2019-04-03 02:54
嗨乔恩,

嗨乔恩,

所以w / o spi flash问题你面临着prox_reporter的“零电流消耗”的一个问题?你能确认宜宾建议的步骤吗?

0.在531开发套件上拔下所有跳线

1.将SDK的Prox_Reporter项目的固件下载到531 Dev-kit上的Flash

2. Unplug and reinsert the USB cable

3.打开SS工具箱 - >选择UART / SPI接口 - >打开Power-Profile工具

Br,

PW_Dialog

Jon_ODonnell
Offline
最后一次露面:2 months 21 hours ago
加入:2020-08-08 17:23
Those are the steps I

Those are the steps I performed. With the F_FL jumper on J1 installed, the zero current measures 1.7 mA. When I remove the jumper and repeat the test, the zero current is 0.020 mA. Changing the calibration offset to -0.02 results in an average current of -0.0005 mA.

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
Hi,

Hi,

In my last comment I have posted a screen shot of the power profiler and the averag current consumed is 0.02mA after I programmed the flash. This is still higher than the expected 1.2µA. What else should I try to reduce the current consumption?

Thanks

PM_DIALOG.
Offline
最后一次露面:13 hours 39 min ago
员工
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

Could you please take a look at the Sleep mode tutorial from our support website? Link is provided below.

http://lpccs-docs.dialog-semiconductor.com/DA14531_Sleep_Mode+/index.html

谢谢,PM_DIALOG.

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

我已经完成了这份文件。事实上,我甚至在原来的帖子中添加了它。

I'll post my final query here again for clarity:

延长睡眠模式下消耗的平均电流为0.02 mA(使用电源分析器测量),睡眠模式教程表示它应该是1.2微放大器。我已将该程序写入DA14531模块中的SPI闪光灯,并在主板上断开了闪光灯的跳线。如何获得靠近给定的1.2微放大器范围的平均当前消耗?

Thanks

PM_DIALOG.
Offline
最后一次露面:13 hours 39 min ago
员工
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

In the Sleep mode tutorial, the tables with extended sleep mode currents are for the DA14531. In your initial post, the DA14531 module is tagged. Please refer to the module’s datasheet and see Table 4: DC Characteristics.

您提到平均电流消耗量为0.02 mA。您使用的广告间隔是什么?这里,该设备是广告的,并且在广告间隔之间进入扩展睡眠模式,并且它将通过BLE定时器自动唤醒。

如果遵循睡眠模式教程,您将看到广告时期之后,芯片将停止广告并进入永久睡眠模式(没有BLE Activity)。何时何地是永久睡眠模式下的电流消耗?

此外,您能否注明您使用的项目?如果你能与我分享它,那么在我身边运行它也会有所帮助。

谢谢,PM_DIALOG.

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

Sorry for replying after a long time.

平均消耗量为0.02 mA,广告间隔为687.5毫秒。这是prox_reporter项目。当前的消耗在永久性睡眠时为0.01 mA。

我尝试使用具有扩展睡眠模式的模板项目,以测试当前的消耗。通过这个项目,我观察了0.2 mA的电流消耗,广告间隔为687.5毫秒。我附上了这个项目,它只是模板项目的一行变化。

Edit: Is there any difference in these 2 projects which result in such a large difference in current consumption even though both are using Extended sleep mode and the same advertising interval?

PM_DIALOG.
Offline
最后一次露面:13 hours 39 min ago
员工
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

extup_peripheral_template不会停止广告,因此设备在广告或连接间隔之间睡眠。Prox_Reporter正在使用超时的广告,因此该系统不仅进入睡眠模式,不仅在广告或连接间隔之间进行睡眠模式,一旦广告停止,总线就会进入永久睡眠模式。但是,Prox_Reporter正在使用SPI闪光灯,从而减少功耗,您需要将其供电,并在设备唤醒后释放它。

谢谢,PM_DIALOG.

tsgowtham
Offline
最后一次露面:3 weeks 2 days ago
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

I had spoken to Dialog's represantative in my city and he gave me a similar suggestion and told me to configure the SPI pins. This solved my problem and drastically reduced the power consumption.

Thanks a lot for helping with my questions!!

A suggestion, it would be great if your suggestion could be mentioned in some documentation for the DA14531 module. I'm pretty sure a person new to using these kinds of Flash ICs would not think of this.

Thanks

PM_DIALOG.
Offline
最后一次露面:13 hours 39 min ago
员工
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

Glad that you are able to reduce the power consumption and thanks for accepting my answer. Thanks for your feedback too!

Regards, PM_Dialog