ESP8266 NONOS SDK 2.2 调用wifi_enable_gpio_wakeup()函数后再调用wifi_set_sleep_type()函数进入light-sleep休眠后,只要时间超过1分钟或者2分钟再唤醒的话,无法连TCP
ESP8266 NONOS SDK 2.2 调用wifi_enable_gpio_wakeup()函数后再调用wifi_set_sleep_type()函数进入light-sleep休眠后,只要时间超过1分钟或者2分钟再唤醒的话,无法连TCP
Postby lijay910 » Thu Nov 21, 2019 2:21 pm
大家好,请教个休眠模式问题:
ESP8266 NONOS SDK 2.2 调用wifi_enable_gpio_wakeup()函数后再调用wifi_set_sleep_type()函数进入light-sleep休眠后,只要时间超过1分钟或者2分钟再唤醒的话,无法连TCP服务器。断开重连也无法连上,一定要重启。
如果间隔几秒或者几十秒内唤醒的话,是能连上TCP服务器,也就是说休眠前连接成功TCP服务器,休眠后再唤醒,这个唤醒时间不能超过1分钟以上,要不然就无法再连TCP服务器。
这是怎么回事呢?
ESP8266 NONOS SDK 2.2 调用wifi_enable_gpio_wakeup()函数后再调用wifi_set_sleep_type()函数进入light-sleep休眠后,只要时间超过1分钟或者2分钟再唤醒的话,无法连TCP服务器。断开重连也无法连上,一定要重启。
如果间隔几秒或者几十秒内唤醒的话,是能连上TCP服务器,也就是说休眠前连接成功TCP服务器,休眠后再唤醒,这个唤醒时间不能超过1分钟以上,要不然就无法再连TCP服务器。
这是怎么回事呢?
Re: ESP8266 NONOS SDK 2.2 调用wifi_enable_gpio_wakeup()函数后再调用wifi_set_sleep_type()函数进入light-sleep休眠后,只要时间超过1分钟或者2分钟再唤醒的话,无法
Postby Her Mary » Fri Nov 29, 2019 3:22 pm
建议用新版的 ESP8266 RTOS 呢?https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/wifi/power_save
旧版 ESP8266 nonOS 似乎不推荐使用了。
旧版 ESP8266 nonOS 似乎不推荐使用了。
Re: ESP8266 NONOS SDK 2.2 调用wifi_enable_gpio_wakeup()函数后再调用wifi_set_sleep_type()函数进入light-sleep休眠后,只要时间超过1分钟或者2分钟再唤醒的话,无法
Postby lijay910 » Fri Nov 29, 2019 3:30 pm
Her Mary wrote:建议用新版的 ESP8266 RTOS 呢?https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/wifi/power_save
旧版 ESP8266 nonOS 似乎不推荐使用了。
不推荐用这个明白,但是之前乐鑫出的AT固件不是支持light-sleep模式吗?
我想知道为什么我调用接口进入休眠后,过段时间唤醒 无法继续连接网络服务器了
Who is online
Users browsing this forum: No registered users and 7 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.