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

    GPY sequans catch 22

    Scheduled Pinned Locked Moved GPy
    3 Posts 2 Posters 156 Views 2 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.
    • K Offline
      kjm
      last edited by kjm

      The lte modem in the GPYs seems to get itself into a state whereby it thinks it's connected but it can't run any data. It's a catch 22 because any attempt to disconnect the modem then reset it also fails with an OSError: the requested operation is not possible for the lte.disconnect() cmd and OSError: LTE modem is in data state, cannot send AT commands for the lte.send_at_cmd('AT^RESET') cmd. The machine.reset() works but seems extreme.

      Anyone else stumbled across this & found a better way out?

      securigyS 1 Reply Last reply Reply Quote 0
      • securigyS Offline
        securigy @kjm
        last edited by

        @kjm I am constantly getting the exception when calling lte.disconnect, no matter what I do. I do that after delivering data either over sockets or mqtt. In both cases the calls for letSocket.send or mqttClient.publish get stuck after a few successful calls (and until timeout expires). Not sure if that's the reason or not. Upon successful data delivery it happens as well after I am done transmitting...I asked on this forum and on Hologram.io but got no response whatsoever...In my case it is FiPy.

        1 Reply Last reply Reply Quote 0
        • K Offline
          kjm
          last edited by

          Finding it hard to track down, happens one in fifty lte.connect() for me. I got a hunch maybe the telco tower was cutting the lte connection due weak signal or something & this was maybe putting the lte modem into zombie mode(can't be disconnected/reset). Tried a dummy load on the lte antenna socket in lieu of an antenna so see if this would increase the occurrence rate. What do you know -121dBm & got a server responses no problem. Sigh.

          Look on the bright side I guess. At least the lockup clears with a machine.reset() & we don't need a power cycle to fix it.

          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