LTE Modem did not respond!
from network import LTE import pycom lte = LTE() pycom.heartbeat(False) def getLTE(): if lte.isconnected(): return lte if not lte.isattached(): print('attaching ', end=''); lte.attach() while not lte.isattached(): print('.', end=''); time.sleep(1) if not lte.isconnected(): print('connnecting ', end=''); lte.connect() while not lte.isconnected(): print('.', end=''); time.sleep(1) return lte getLTE()
lte.attach function respond error "modem did not respond"
What can ı do about this issue?
Can you help me guys?
The solution to this issue is to 'update' the modem firmware (reflash the LR22.214.171.124-41019). This will reset the baudrate of the UART communication. It is also possible to use several AT commands from the AT command manual to restore factory baudrate settings, but Im not exactly sure which ones.
lte = LTE(debug=True)
hi @Gijs thanks for your reply!
I did what you said and got a printout like this
[AT] 91919 AT
[AT] 92222 AT+CGATT?
[AT] 92526 AT+CEREG?
[AT] 92830 AT+CFUN?
attaching [AT] 93134 AT
[AT] 93439 AT+CGATT?
[AT] 93743 AT+CEREG?
[AT] 94047 AT+CFUN?
[AT] 94351 AT+SQNCTM?
[AT] 103855 AT+SQNCTM?
Traceback (most recent call last):
File "main.py", line 20, in <module>
File "main.py", line 13, in getLTE
ValueError: Modem did not respond!
and sqnsupgrade.info() return:
<<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
FiPy with firmware version 1.20.2.r1
Your modem is in application mode. Here is the current version:
Can you try the following:
lte = LTE(debug=True). This will print the AT commands and their responses. If you get an error, can you try,
import sqnsupgrade; sqnsupgrade.info()