Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Some potential fixes for the lte modem (constantly returning camped for at!="fsm) #585

Open
@HKhaan

Description

@HKhaan

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
    if ((pos = strstr(modlte_rsp.data, "+CEREG: 1,1")) || (pos = strstr(modlte_rsp.data, "+CEREG: 1,5"))) {

    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions