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

    AT Commands

    Scheduled Pinned Locked Moved GPy
    lteat commandsgpy
    4 Posts 4 Posters 1.3k Views 4 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.
    • P Offline
      panda
      last edited by

      Pycom MicroPython 1.18.1.r1 [v1.8.6-849-b0520f1] on 2018-08-29; GPy with ESP32

      Regarding the LTE command:

      lte.send_at_cmd(cmd)
      

      The manual states:

      "Send an AT command directly to the modem. Returns the raw response from the modem as a string object. IMPORTANT: If a data session is active (i.e. the modem is connected), sending the AT commands requires to pause and then resume the data session. This is all done automatically, but makes the whole request take around 2.5 seconds."

      The bold section above does not appear to be the case. When called during a data session I get the exception:

      "OSError: LTE modem is in data state, cannot send AT commands"

      1 Reply Last reply Reply Quote 2
      • R Offline
        reidfo
        last edited by

        I know this post is a couple of months old, but I experience the same thing. I have to manually disconnect and reconnect LTE to send AT commands. I'm not sure if it's truly necessary, but I also added a half second sleep after disconnect() before I send the AT command.

        1 Reply Last reply Reply Quote 0
        • A Offline
          ArnaudP
          last edited by

          Hi,

          I'm experiencing the same issue. I was wondering if any of you two had news on this matter.
          Thanks.

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            danielm @ArnaudP
            last edited by

            @arnaudp
            Check lte.pppsuspend() and lte.pppresume() methods.

            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