panda last edited by
Pycom MicroPython 1.18.1.r1 [v1.8.6-849-b0520f1] on 2018-08-29; GPy with ESP32
Regarding the LTE command:
The manual states:
"Send an AT command directly to the modem. Returns the raw response from the modem as a string object. IMPORTANT: If a data session is active (i.e. the modem is connected), sending the AT commands requires to pause and then resume the data session. This is all done automatically, but makes the whole request take around 2.5 seconds."
The bold section above does not appear to be the case. When called during a data session I get the exception:
"OSError: LTE modem is in data state, cannot send AT commands"
reidfo last edited by
I know this post is a couple of months old, but I experience the same thing. I have to manually disconnect and reconnect LTE to send AT commands. I'm not sure if it's truly necessary, but I also added a half second sleep after disconnect() before I send the AT command.