DA14531 sleep mode exit

了解更多常见问题教程

24张/ 0新
最后一篇文章
Tsgowtham.
离线
最后一次见到:3 weeks 2 days ago
已加入: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\u reporter代码来看,

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

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

休眠-唤醒时继续执行

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

谢谢,

戈特姆

IM_Dialog
离线
最后一次见到:3天37分钟前
已加入:2016-12-06 22:25
嗨,高谭,

嗨,高谭,

如果您还没有这样做,我建议您查看以下文档:

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 weeks 2 days ago
已加入:2020-05-04 12:39
嗨im_dialog,

嗨im_dialog,

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

  • 我只对空的\外围设备\模板做了一个更改,即将app\默认\睡眠\模式设置为ARCH\ EXT\睡眠\开启。我在powerprofiler上注意到,在广告间隔期间,电流消耗会增加。我附上了一个pdf与权力剖析器窗口的屏幕截图和它的设置。我已经从J1上的V\ FL到MISO的引脚上拆下了跳线。有什么问题吗?
  • 从您所获得的教程链接,我明白,对于从扩展睡眠中唤醒,代码执行PeripH_Init并继续执行。但是对其他睡眠模式做了什么?这尚未提及。
  • 我的应用是使用每20ms的I2C读取传感器值并将数据传输到连接的电话。我希望DA14531在剩下的时间内睡觉。是否有可能在这种情况下使用休眠模式或深睡眠?

Thanks

IM_Dialog
离线
最后一次见到:3天37分钟前
已加入:2016-12-06 22:25
Hi tsgowtham,

Hi tsgowtham,

我假设,当您使用powerprofiler时,您正在调试器的控制下在DA14531上运行代码。这是可以的,但是一旦开始运行代码,就需要按“Ctrl+F5”来断开调试器的连接,否则调试器将保持活动状态并绘制当前代码。

致以最诚挚的问候
IM_Dialog

Tsgowtham.
离线
最后一次见到:3 weeks 2 days ago
已加入: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

胞苷
离线
最后一次见到: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 weeks 2 days ago
已加入:2020-05-04 12:39
嗨,宜宾,

嗨,宜宾,

Your answers were really informative and helpful. Thank you!

最后一件事,我被困在是高功耗的延长睡眠模式(在我最后的答复中提到),这是在0.7毫安左右,没有调试器连接。如何使该值更接近睡眠模式教程中提到的1.2µA。

Thanks

胞苷
离线
最后一次见到:3个月2周前
工作人员
已加入:2017-12-14 02:48
嗨,

嗨,

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

0拔下531设备套件J19上的所有跳线

1将SDK中prox\u reporter项目的固件下载到531开发工具包上的FLASH中

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

三。打开SS工具箱->选择UART/SPI接口->打开电源配置文件工具

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

Br, Yibin

Tsgowtham.
离线
最后一次见到:3 weeks 2 days ago
已加入: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.
离线
最后一次见到:2 months 22 hours ago
已加入:2020-08-08 17:23
@宜宾,

@宜宾,

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

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

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

Jon

附件:
jon_odonnell.
离线
最后一次见到:2 months 22 hours ago
已加入: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 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.
离线
最后一次见到:2 months 22 hours ago
已加入:2020-08-08 17:23
我有同样的问题。

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

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

jon_odonnell.
离线
最后一次见到:2 months 22 hours ago
已加入:2020-08-08 17:23
我下载了prox\u reporter

我下载了proxèu reporter(都是从SDK源代码构建的,也都是从SmartBond Flash编程器中预构建的“下载在线固件”版本),根据要求测得的峰值和平均电流都是0.00000mA。图表底部是一条直线(见附件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.
离线
最后一次见到:15小时前1天
工作人员
已加入:2019-04-03 02:54
嗨,乔恩,

嗨,乔恩,

所以,没有SPI闪存问题,您正面临一个问题,即prox\u reporter的“零电流消耗”?你能确认宜宾建议的步骤吗?

0拔下531设备套件J19上的所有跳线

1将SDK中prox\u reporter项目的固件下载到531开发工具包上的FLASH中

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

三。打开SS工具箱->选择UART/SPI接口->打开电源配置文件工具

Br,

pw_dialog.

jon_odonnell.
离线
最后一次见到:2 months 22 hours ago
已加入: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 weeks 2 days ago
已加入: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\U对话框
离线
最后一次见到:14小时18分钟前
工作人员
已加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

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

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

谢谢,下午好

Tsgowtham.
离线
最后一次见到:3 weeks 2 days ago
已加入:2020-05-04 12:39
嗨,PM\U对话,

嗨,PM\U对话,

我看了这份文件。事实上,我甚至在我原来的帖子里加了它。

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

在延长睡眠模式下消耗的平均电流是0.02毫安(使用功率剖面仪测量),睡眠模式教程说应该是1.2微安左右。我已经把程序写进了DA14531模块的SPI闪存,并断开了主板上闪存的跳线。如何使平均电流消耗接近给定的1.2微安范围?

Thanks

PM\U对话框
离线
最后一次见到:14小时18分钟前
工作人员
已加入: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活动)。永久睡眠模式下的电流消耗有多大?

另外,你能指出你正在使用的项目吗?如果你能和我分享它,它将有助于运行它在我身边太多。

谢谢,下午好

Tsgowtham.
离线
最后一次见到:3 weeks 2 days ago
已加入:2020-05-04 12:39
嗨,PM\U对话,

嗨,PM\U对话,

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

平均消耗量为0.02 mA,广告间隔为687.5 ms。这是proxèu reporter项目的结果。永久睡眠时的电流消耗为0.01 mA。

我尝试使用启用了扩展睡眠模式的模板项目来测试当前消耗。在这个项目中,我观察到0.2毫安的电流消耗,广告间隔为687.5毫秒。我已经附加了这个项目,它只是一个模板项目的一行更改。

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

PM\U对话框
离线
最后一次见到:14小时18分钟前
工作人员
已加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

空的\u模板不会停止播发,因此设备会在播发或连接间隔之间休眠。proxèu reporter正在使用带超时的广告,因此系统不仅在广告或连接间隔之间进入休眠模式,而且在广告停止后进入永久休眠模式。但是,proxèu reporter使用的是SPI闪存,因此为了降低功耗,您需要关闭它的电源,并在设备唤醒后释放它。

谢谢,下午好

Tsgowtham.
离线
最后一次见到:3 weeks 2 days ago
已加入:2020-05-04 12:39
嗨,PM\U对话,

嗨,PM\U对话,

我用对象在我的城市中发言,他给了我一个类似的建议,并告诉我配置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\U对话框
离线
最后一次见到:14小时18分钟前
工作人员
已加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

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

Regards, PM_Dialog