DA14531 sleep mode exit

了解更多常见问题解答教程

24张/ 0新
最后一篇
Tsgowtham.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
DA14531 sleep mode exit

嗨,

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代码,

延长睡眠 - 继续在唤醒时执行

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

休眠 - 继续在唤醒时执行

请确认这些观察是否正确,也可以分享到任何与睡眠模式相关的文件的链接吗?http://lpccs-docs.dialog-semiconductor.com/DA14531_Sleep_Mode+/index.html

谢谢,

im_dialog.
离线
最后一次露面:10 hours 19 min ago
加入:2016-12-06 22:25
嗨gowtham,

嗨gowtham,

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

http://lpccs-docs.dialog-semiciondiond.com/tutorial_sdk6/index.html.

第一种章节提供了对SDK和相关回调的操作的高级解释,并提供睡眠模式的一些细节。

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.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
嗨im_dialog,

嗨im_dialog,

我遵循了您的建议,并开始使用extent_peripheral_template启动新项目。我有几个问题

  • 我只对empty_peripheral_template制作了一个更改,它是将app_default_sleep_mode设置为ARCH_EXT_SLEEP_ON。我注意到电力分布器,当前消耗在广告之间的持续时间内增加。我附上了一个PDF与Power Profiler窗口的屏幕截图和它的设置。我已经在J1上从V_FL删除了v_fl的引脚。这里的问题可能是什么?
  • 从您所获得的教程链接,我明白,对于从扩展睡眠中唤醒,代码执行PeripH_Init并继续执行。但是对其他睡眠模式做了什么?这尚未提及。
  • 我的应用是使用每20ms的I2C读取传感器值并将数据传输到连接的电话。我希望DA14531在剩下的时间内睡觉。是否有可能在这种情况下使用休眠模式或深睡眠?

Thanks

im_dialog.
离线
最后一次露面:10 hours 19 min ago
加入:2016-12-06 22:25
Hi tsgowtham,

Hi tsgowtham,

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

最好的祝福
im_dialog.

Tsgowtham.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
嗨im_dialog,

嗨im_dialog,

谢谢你快速回复。禁用调试器修复。现在,当它处于扩展睡眠模式时,当前消耗量约为0.7 mA。但这仍然高于睡眠模式教程文档中提到的1.2μA的1.2μA。授予教程使用5秒作为广告间隔,但我怀疑差异应该是这种剧烈的。我错过了什么?

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:

  • 从您所获得的教程链接,我明白,对于从扩展睡眠中唤醒,代码执行PeripH_Init并继续执行。但是对其他睡眠模式做了什么?这尚未提及。
  • 我的应用是使用每20ms的I2C读取传感器值并将数据传输到连接的电话。我希望DA14531在剩下的时间内睡觉。是否有可能在这种情况下使用休眠模式或深睡眠?

Thanks

cyibin.
离线
最后一次露面:3个月2周前
员工
加入:2017-12-14 02:48
Hi tsgowtham,

Hi tsgowtham,

Please refer to my answer to your questions below:

  • 从您所获得的教程链接,我明白,对于从扩展睡眠中唤醒,代码执行PeripH_Init并继续执行。但是对其他睡眠模式做了什么?这尚未提及。
  • [YCAI]对于其他睡眠模式,与延长睡眠模式相比,将有一个重启进程。重新启动进程将将固件数据从外部存储重新复制到RAM中。上述过程已由SDK实施。上述过程已由SDK实施。从用户的角度来看,无论从哪种睡眠模式都被唤醒,程序将首先运行到用户层中的回调函数。可以通过RTC,GPIO,Timer1等调用回调函数。
  • 我的应用是使用每20ms的I2C读取传感器值并将数据传输到连接的电话。我希望DA14531在剩下的时间内睡觉。是否有可能在这种情况下使用休眠模式或深睡眠?
  • [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.
    当睡眠间隔足够长时间(如2s)时,两个外部睡眠模式有意义

Br, Yibin

Tsgowtham.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
嗨宜宾,

嗨宜宾,

Your answers were really informative and helpful. Thank you!

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

Thanks

cyibin.
离线
最后一次露面:3个月2周前
员工
加入:2017-12-14 02:48
嗨,

嗨,

为了消除其他因素的干扰,您可以先测试测试,如下:

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

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

2.拔下并重新插入USB电缆

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

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

Br, Yibin

Tsgowtham.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
嗨宜宾,

嗨宜宾,

我已经附上了Proxr项目的电源分布器输出。我使用Flash程序员工具中的预构建可下载固件。该输出似乎更接近预期的内容。为什么这两个项目之间的当前消耗存在巨大差异?是否有任何其他项目配置可能会导致此功能?

@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.

谢谢,

jon_odonnell.
离线
最后一次露面:1个月4周前
加入:2020-08-08 17:23
@Yibin,

@Yibin,

我将校准设置为0 ma,并且没有安装电路板。平均电流为1.77 mA!我尝试在校准偏移量时置于-1.77,但是我有负电流。数字跳了一下。

我怀疑偏移并获得问题。我有一个糟糕的董事会吗?我刚刚从Digi-Key购买它。

我附上了一张董事会的照片来显示跳线等。和一些屏幕镜头。

Jon

jon_odonnell.
离线
最后一次露面:1个月4周前
加入:2020-08-08 17:23
我发现了这个问题!对于

我发现了这个问题!出于某种原因,还测量了从SPI-Flash汲取的电流,它不会进入低功率睡眠。如果我卸下J1 V_FL跳线,则在校准期间电流降至0.02 mA。

我卸下了跳线,并从J1-1到J9-2添加了电线,为闪光灯供电,而不会测量电流。

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.
离线
最后一次露面:3周1小时前
加入: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.
离线
最后一次露面:1个月4周前
加入:2020-08-08 17:23
我有同样的问题。

我有同样的问题。我从da14531-da14585-586_service_data_beacon开始了
app_default_sleep_mode = arch_ext_sleep_on;
但未修改示例中的广告之间的电流约为1.7mA。更改为Arch_sleep_off将电流增加到1.9ma。

这是在进行测量之前使用SmartBond闪存编程器和向DEV套件的循环电源。

jon_odonnell.
离线
最后一次露面:1个月4周前
加入:2020-08-08 17:23
我下载了prox_reporter.

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

我用BLE扫描仪核实DLG-Proxr设备每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.
离线
最后一次露面:2天5小时前
员工
加入:2019-04-03 02:54
嗨乔恩,

嗨乔恩,

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

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

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

2.拔下并重新插入USB电缆

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

Br,

pw_dialog.

jon_odonnell.
离线
最后一次露面:1个月4周前
加入:2020-08-08 17:23
那些是我的步骤

那些是我的步骤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.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
嗨,

嗨,

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.
Online
最后一次露面:13分钟前2秒前
员工
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

您可以从我们的支持网站上看查看睡眠模式教程吗?链接下面提供。

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

谢谢,PM_DIALOG.

Tsgowtham.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

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

为了清楚起见,我会再次发布我的最终查询:

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

Thanks

PM_DIALOG.
Online
最后一次露面:13分钟前2秒前
员工
加入: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.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

很抱歉在很长一段时间后回复。

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

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

编辑:这2个项目是否有任何区别,这导致当前消耗的大差异也在使用扩展睡眠模式和相同的广告间隔内

PM_DIALOG.
Online
最后一次露面:13分钟前2秒前
员工
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

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

谢谢,PM_DIALOG.

Tsgowtham.
离线
最后一次露面:3周1小时前
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

我用对象在我的城市中发言,他给了我一个类似的建议,并告诉我配置SPI引脚。这解决了我的问题,并且彻底减少了功耗。

非常感谢我的问题帮助!

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.
Online
最后一次露面:13分钟前2秒前
员工
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

很高兴您能够降低功耗,谢谢接受我的答案。谢谢你的反馈!

Regards, PM_Dialog