Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Modem only registers via VSCode

    Scheduled Pinned Locked Moved GPy
    3 Posts 1 Posters 252 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      iotwolves
      last edited by

      Hello,

      I am using an AT&T SIM with the LTE-M service. When I run my simple app from Visual Studio Code, which posts data via https, everything works perfectly. If I attempt to reset the device and allow it to run the app via the main.py, it never registers with the cellular network (AT+CEREG? always comes back with "0"). However, if I interrupt the app with ctrl+c and run it from VSCode it succeeds (pymrk > Run current file). The app runs successfully 100% of the time with VSCode and 0% of the time after a reset.

      Thank you,
      Van

      1 Reply Last reply Reply Quote 0
      • I Offline
        iotwolves
        last edited by

        I found that the modem was in an invalid state after the unit rebooted. When I sent an "AT+COPS=?" command to the modem it would respond with "ERROR" or "+SHUTDOWN." So, I updated my app to reset the modem before I attempted to connect to the LTE network (AT^RESET). Now, I can connect to the network every time, regardless of how I run the file.

        • Could I have faulty hardware?
        • How long does it take for the Sequans modem to initialize after boot?
        • The modem reset and associated testing as increased my transactions to ~45s each. Is this reasonable based on other users' experience?

        Van

        1 Reply Last reply Reply Quote 0
        • I Offline
          iotwolves
          last edited by

          System details:
          GPy with firmware version 1.18.2.r7
          Your modem is in application mode. Here is the current version:
          UE5.1.0.0f
          LR5.1.1.0-41065

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom