Skip to content

Commit

Permalink
Explicitly turn off LTE modem before deep sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jun 21, 2019
1 parent 578c4e9 commit 92d86fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -19,6 +19,7 @@ Development
- Improve IRQ handling when reading the HX711
- Sleep for 80 microseconds after pulling HX711 clock pin to high
- Improve bus- and sensor power-management. Add "power_on" signal.
- Explicitly turn off LTE modem before deep sleep


2019-06-17 0.4.0
Expand Down
6 changes: 6 additions & 0 deletions terkin/radio.py
Expand Up @@ -48,6 +48,12 @@ def power_off(self):

# We don't use LTE yet.
try:
log.info('Turning off LTE modem')
# https://forum.pycom.io/topic/1022/root-causes-of-high-deep-sleep-current-lopy1-wipy2-and-sipy-all-the-new-modules-do-not-have-deepsleep-issues/121
from network import LTE
lte = LTE()
lte.deinit()

log.info('Turning off LTE modem on boot')
import pycom
pycom.lte_modem_en_on_boot(False)
Expand Down

0 comments on commit 92d86fe

Please sign in to comment.