FiPy does not connect to LTE
-
Hi There, I am facing an issue where the FiPy is unable to connect to the LTE. I have tried 3 different SIMs(Tmobile, AT & T and Arduino) and have the same issue.
When I run the below code, it keeps displaying this info:
SYSTEM FSM+--------------------------+--------------------+ | FSM | STATE | +--------------------------+--------------------+ | RRC TOP FSM |SCANNING | | RRC SEARCH FSM |WAIT_RSSI | | RRC ACTIVE FSM |NULL | | PMM PLMN FSM |NORM_WAITCELL | | EMM MAIN FSM |NULL | | EMM AUTH FSM |NULL | | EMM CONN FSM |NULL | | EMM TAU FSM |NULL | | EMM TEST FSM |NULL | | ESM BEARER FSM |BEARER_NULL | | SMS MT FSM |IDLE | | SMS MO FSM |IDLE | | LPP FSM |IDLE | | HP MAIN FSM |IDLE | | HP USIM FSM |READY | | HP SMS MO FSM |IDLE | | HP SMS MT FSM |IDLE | | HP CAT FSM |IDLE | +--------------------------+--------------------+
from network import LTE import time import socket lte = LTE() #some carriers have special requirements, check print(lte.send_at_cmd("AT+SQNCTM=?")) to see if your carrier is listed. #when using verizon, use #lte.init(carrier=verizon) #when usint AT&T use, #lte.init(carrier=at&t) #some carriers do not require an APN #also, check the band settings with your carrier lte.attach(band=20, apn="your apn") 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!") print(socket.getaddrinfo('pybytes.pycom.io', 80)) lte.deinit() #now we can safely machine.deepsleep()
-
Please check the page here: https://docs.pycom.io/tutorials/networks/lte/#lte-troubleshooting-guide. Can you confirm the simcards are specifically for NB-IoT and/or CAT-M1 LTE networks, and not the regular 4G mobile phone simcards? also confirm with the carrier whether the there is coverage in your region