Some potential fixes for the lte modem (constantly returning camped for at!="fsm) #585
Description
Please include the following information when submitting a bug report:
- The Pycom board you are using (e.g. WiPy 2.0, LoPy).
- G01
- The firmware version you are using. You can get it by executing the following
- custom esp-idf firmware.
We have a custom esp-idf firmware that has lte modem code heavily inspired by the pycom lte modem code. One thing we noticed was this line
pycom-micropython-sigfox/esp32/mods/modlte.c
Line 288 in a37510c
same thing happens 5 lines above.
it only checks 1,1 & 1,5. Looking at the sequans monarch documentation 2,1 2,5 3,1 and 3,5. also means it's connected. the if statement should be extended to check these values too.
the first 1 means enable network urc. when it's 2 it's enable network urc + location information. for 3 it's enable network urc + location information + EMM. So essentially it's just a network with extra functionality. But it gets ignored by the library.
We also noticed that when you connect at location X and move your device to couple city further it doesn't connect for a very long time (sometimes it just doesn't connect at all). We don't know if it's true but we theorized about the modem caching some information. When we notice that the modem can't connect for a long time (returns camped on at!="fsm") we execute AT&F and restart the whole connection process (at&f puts the settings to factory settings). Maybe it could be usefull if the at&f command was also added on a method called factory_reset with an explanation of it helping out when you constantly get camped. We have seen other people having this same issue on forums while trying to find a solution.