pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
200 stars 166 forks source link

LoPy-4 does not wakeup from deepsleep sometimes #321

Open teusH opened 5 years ago

teusH commented 5 years ago

LoPy-4 version V1.8.6 2019/05/15, rel 1.18.2.r7

issue on deepsleep: LoPy-4 does not wakes up spuriously from deepsleep. All 7 LoPy's with this setup show this problem. Sometimes means after many deepsleep calls of about 780 *1000 milli secs. Very spurious we see a wakeup from a deepsleep with no wakeup or reset set (as if a power cycle). Problem is nasty as the hang shows up after 2-3 days of running fine with 15 minutes deepsleep. TTL (2 and 3) and I2C (1-bus 3V3) devices are unpowered via a mosfet.

Extra: the V5 feed is 5V2. One pin is measuring a slowly fluctuating of ca 0.5V at level 12V (11V4 - 14V2 from solar accu regulator). Only those LoPy's with a solarpanel/accu combi as powersupply show this problem. Looks like RTC of LoPy does not trigger a wakeup?

Anyone experiencing this? teus hagen

teusH commented 5 years ago

In article https://www.instructables.com/id/ESP32-Deep-Sleep-Tutorial/ educ8s states he had similar experience (ESP not waking up from deepsleep after random amount of sleeps). He mentioned to start the ESP with a 500 msec delay. The cause is an ESP hardware/software problem ie not a PyCom problem? His article is from a year ago.