meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3k stars 719 forks source link

wake from light-sleep due to serial character reception #115

Closed geeksville closed 4 years ago

geeksville commented 4 years ago

Now that we are letting these devices work as USB radio dongles, it would be good to turn on wake-from-sleep if a character arrives on the serial port. The change should be fairly easy - just change doLightSleep() to enable that bit in the sleep controller hardware (per ESP32 documentation).

This would allow when running as a dongle a very-very low current draw.

geeksville commented 4 years ago

Now that the python API exists this is much more important.

geeksville commented 4 years ago

This issue has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/python-api-setup-issues/321/6