Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Fixed delays causing not to achieve low power after deepsleep #255

Open
wants to merge 1 commit into
base: release-candidate
Choose a base branch
from

Conversation

arapostol
Copy link

esp32/lteppp.h: added new machine state E_LTE_DEINIT
esp32/lteppp.c: removed disabling PSM
lteppp_deinit() changes lte state to E_LTE_DEINIT
lteppp_deinit() removed sending setlpm command before disabling UART. This caused the state machine to wait for a response from modem and timeout, resulting in a delay.
esp32/modlte.c:
removed disabling PSM
removed sending setlpm command before lteppp_deinit(). Sending commands to modem before disabling UART cause delays.

esp32/lteppp.h:	added new machine state E_LTE_DEINIT
esp32/lteppp.c:	removed disabling PSM
		lteppp_deinit() changes lte state to E_LTE_DEINIT
		lteppp_deinit() removed sending setlpm command before disabling UART. This caused the state machine to wait for a response from modem and timeout, resulting in a delay.
esp32/modlte.c:
		removed disabling PSM
		removed sending setlpm command before lteppp_deinit(). Sending commands to modem before disabling UART cause delays.
@amotl
Copy link
Contributor

amotl commented Nov 3, 2019

Dear @arapostol,

after looking at this PR, we speeded up LTE modem shutdown by simply not invoking the detach operation from the MicroPython API like lte.deinit(detach=False, reset=True) through [1].

Many thanks for the impulse!

With kind regards,
Andreas.

[1] hiveeyes/terkin-datalogger@ec7c80e

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants