ESP8266 Developer Zone The Official ESP8266 Forum 2015-09-28T21:34:34+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1143 2015-09-28T21:34:34+08:00 2015-09-28T21:34:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1143&p=3896#p3896 <![CDATA[Re: 关于休眠功耗的处理]]> API wifi_set_sleep_type(MODEM_SLEEP_T)

2、Light-sleep 的工作模式与 Modem-sleep 相似,不同的是,除了关闭 Wi-Fi 模块电路以外,在 Light-sleep 模式下,还会关闭时钟并暂停内部 CPU,比 Modem-sleep 功耗更低。在 Wi-Fi 连接后,并且 CPU 处于空闲状态时,会自动进入 Light-sleep 状态。
API wifi_set_sleep_type(LIGHT_SLEEP_T)

3、相对于其他两种模式, Deep-sleep 由用户控制,调用接口函数就可立即进入 Deep-sleep 模式。在该模式下,芯片会断开所有 Wi-Fi 连接与数据连接,进入睡眠模式,只有 RTC 模块仍然工作,负责芯片的定时唤醒。使用 Deep-sleep 必须将 GPIO16 与芯片 EXT_RSTB 管脚连接。
API void system_deep_sleep(uint32 time_in_us)

Statistics: Posted by ESP_Alfred — Mon Sep 28, 2015 9:34 pm


]]>
2015-09-28T11:08:08+08:00 2015-09-28T11:08:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1143&p=3887#p3887 <![CDATA[Re: 关于休眠功耗的处理]]>
tve wrote:
You have to be careful, there are now two slightl different light sleep modes. There is the automatic light sleep mode selected by wifi_set_sleep_type() and there is the manual light sleep mode set via the new wifi_fpm_*() functions.

With the manual light sleep mode you have to turn wifi off, so you will have the 0.9mA power consumption, but the only way to wake-up the chip is via a time-out or via an external gpio input.

With the automatic light sleep mode the system turns wifi on every DTIM interval, so the power consumption depends on the access point configuration as well as on the amount of traffic over the wifi. At my home the resulting average power consumption is much larger than 1mA.


manual light sleep mode下,wifi需要断开再重新连接,这无形中会影响到一些需要快速进行数据交换的场合,比如智能控制的体验!

Statistics: Posted by lushikaikk — Mon Sep 28, 2015 11:08 am


]]>
2015-09-28T11:00:58+08:00 2015-09-28T11:00:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1143&p=3886#p3886 <![CDATA[Re: 关于休眠功耗的处理]]>
icomet wrote:
请问怎么进入light sleep模式?在文档上没找到。


通过测试,我是这么理解的,调用 wifi_set_sleep_type(LIGHT_SLEEP_T);当CPU处于空闲时,自动进入SLEEP模式,是只要CPU一直工作,比如TIME回调不停在自我计数,就不会进入sleep。

Statistics: Posted by lushikaikk — Mon Sep 28, 2015 11:00 am


]]>
2015-09-27T10:03:17+08:00 2015-09-27T10:03:17+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1143&p=3876#p3876 <![CDATA[Re: 关于休眠功耗的处理]]> Statistics: Posted by icomet — Sun Sep 27, 2015 10:03 am


]]>
2015-09-24T14:41:11+08:00 2015-09-24T14:41:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1143&p=3836#p3836 <![CDATA[Re: 关于休眠功耗的处理]]>
lushikaikk wrote:
我们想得到平均电流小于1mA的工作功耗:使用light sleep模式下测试发现电流还是有几mA,官方的资料上显示能达到0.9mA左右,于是我们有一些疑问:
1 官方的测试系统是否外置了FLASH芯片?还是单个ESP8266测试。意思是官方的0.9mA是否是带有外置flash芯片的系统电流?
2 在网络连接不断掉的情况下,是否有更好的方式使工作电流小于1mA?不改变其他设备的设置的情况下。
3 把sdk的大部分程序块放入ESP8266中,也就是不用ICACHE_FLASH_ATTR的命令,是否能达到省电的目的?

现在有一个项目在这个方面很纠结,希望得到一些支持,不胜感谢!!


您好,
1、单芯片测试
2、目前8266如果不断掉连接的话 light sleep是功耗比较低的模式。
3、我们不建议把所有程序都放到内部RAM中,可能会导致程序运行出现问题。
建议,
1、可对比选择出功耗较低的flash芯片。
2、可适当减少TX功率

Statistics: Posted by ESP_Alfred — Thu Sep 24, 2015 2:41 pm


]]>
2015-09-24T00:44:28+08:00 2015-09-24T00:44:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1143&p=3826#p3826 <![CDATA[Re: 关于休眠功耗的处理]]>
With the manual light sleep mode you have to turn wifi off, so you will have the 0.9mA power consumption, but the only way to wake-up the chip is via a time-out or via an external gpio input.

With the automatic light sleep mode the system turns wifi on every DTIM interval, so the power consumption depends on the access point configuration as well as on the amount of traffic over the wifi. At my home the resulting average power consumption is much larger than 1mA.

Statistics: Posted by tve — Thu Sep 24, 2015 12:44 am


]]>
2015-09-23T11:19:12+08:00 2015-09-23T11:19:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1143&p=3813#p3813 <![CDATA[关于休眠功耗的处理]]> 1 官方的测试系统是否外置了FLASH芯片?还是单个ESP8266测试。意思是官方的0.9mA是否是带有外置flash芯片的系统电流?
2 在网络连接不断掉的情况下,是否有更好的方式使工作电流小于1mA?不改变其他设备的设置的情况下。
3 把sdk的大部分程序块放入ESP8266中,也就是不用ICACHE_FLASH_ATTR的命令,是否能达到省电的目的?

现在有一个项目在这个方面很纠结,希望得到一些支持,不胜感谢!!

Statistics: Posted by lushikaikk — Wed Sep 23, 2015 11:19 am


]]>