I have tried to connect to the internet using LTE but the network won't attach. I want to determine the proper carrier on my Fipy, I did not get any response, the list was empty.
The comand AT+CEREG?' response OK.
The firmware version that I have is LR5.1.1.0-47510
Does someone have any idea on how I could manage to attach to the network? Any previous experiences Thank you in advance.
`>>> from network import LTE
>>> lte=LTE()
>>> lte.send_at_cmd("AT+SQNCTM=?")
''
>>>
I have been running all variations of the default test program with any success
from network import LTE
import time
import socket
lte = LTE()
lte.attach()
print("attaching..",end='')
while not lte.isattached():
time.sleep(0.25)
print('.',end='')
print(lte.send_at_cmd('AT!="fsm"')) # get the System FSM
print("attached!")
lte.connect()
print("connecting [##",end='')
while not lte.isconnected():
time.sleep(0.25)
print('#',end='')
#print(lte.send_at_cmd('AT!="showphy"'))
print(lte.send_at_cmd('AT!="fsm"'))
print("] connected!")
If my findings are correct, you need to factory-reset the modem first!
You can do this by sending the corresponding AT-command like this:
lte.send_at_cmd('AT+SQNSFACTORYRESET=?')
After this you need to reboot the device to complete the reset process!
The device should now attach to the network without issues.
PS: I know, Pycom offers a method .factory_reset()
in its LTE-class, but it seems like it just crashes whenever used.
Also, see my answer in the Pycom forum