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

    Bug In LTE Module Crashes System

    Scheduled Pinned Locked Moved GPy
    5 Posts 1 Posters 67 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.
    • T Offline
      tlanier
      last edited by tlanier

      New GPy units we purchase come with Pycom Micropython 1.20.2.r3 which has the problem described below.

      Our production program which has been using Pycom MicroPython V1.20.0.rc13 on older units does not have the problem described below.

      After a successful transmission with the LTE modem, the system crashes (watchdog timer resets system after 20 secs) when any AT command is sent to the modem.

      lte.disconnect()    # end the data session
      r = lte.isconnected()   # returns false as it should
      lte.send_at_cmd('AT')  # crashes system, causes reboot
      

      Comments are welcome.

      I will run more tests this weekend.

      1 Reply Last reply Reply Quote 0
      • T Offline
        tlanier
        last edited by

        The problem is back. What actually happens is that the lte.send_at_cmd('AT') never returns (timeout delay set to default 10000 msecs). The watchdog resets the system after 20 seconds of waiting.

        Here's the reset code:
        rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)

        V1.20.3.b0 works for smaller transmissions but if a larger transmission is sent the crash occurs. V1.20.2.r3 does not work even with small transmissions.

        1 Reply Last reply Reply Quote 0
        • T Offline
          tlanier
          last edited by

          Here's what machine.info() displays before executing the disconnect() call. Memory looks ok.

          ---------------------------------------------
          System memory info (in bytes)
          ---------------------------------------------
          MPTask stack water mark: 6336
          ServersTask stack water mark: 3204
          TimerTask stack water mark: 2088
          IdleTask stack water mark: 580
          System free heap: 358792
          ---------------------------------------------
          

          I've even tried calling lte.reset() instead of lte.disconnect() and it still hangs in the lte.send_at_cmd('AT') call.

          1 Reply Last reply Reply Quote 0
          • T Offline
            tlanier
            last edited by

            I've now tried calling lte.pppsuspend() before calling lte.disconnect() but it still crashes when the AT command is sent whether before the disconnect or after.

            1 Reply Last reply Reply Quote 0
            • T Offline
              tlanier
              last edited by

              I've now tried sleeping 5 secs after the lte.disconnect() before calling the lte.send_at_cmd('AT') but it still crashes.

              Has anyone else experienced this?

              Is there a solution?

              What version of the firmware is stable enough to use?

              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