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

    [Solved] Sipy randomically block on send

    Scheduled Pinned Locked Moved Issues & Bugs
    sipy
    3 Posts 2 Posters 1.1k 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.
    • A Offline
      Acme1999
      last edited by Acme1999

      I've a strange behaviour on my Sipy
      (MicroPython v1.8.6-849-86da809 on 2018-01-17; SiPy with ESP32)

      Sometimes i'm able to send two messages, sometimes three, sometimes four before it hangs on send() and the led stay red.

      sigfox = Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ1);
      s = socket.socket(socket.AF_SIGFOX, socket.SOCK_RAW);
      s.setblocking(True);
      s.setsockopt(socket.SOL_SIGFOX, socket.SO_RX, False);
      pycom.rgbled(0x200000);
      s.send(message);
      pycom.rgbled(0x0f000f);
      s.close();
      pycom.rgbled(0x002000);
      py.setup_sleep(600);
      py.go_to_sleep();
      

      Have you an idea?

      Update January 31 2018:
      I've updated the new firmware v1.15.0.b1 and the issue disappeared.

      1 Reply Last reply Reply Quote 0
      • rcolisteteR Offline
        rcolistete
        last edited by rcolistete

        How are you connecting, by USB cable or telnet ?
        With LoPy, I have to use telnet to avoid long delays sending or receiving LoRa packets when "setblocking(True)".

        My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Acme1999 @rcolistete
          last edited by

          @rcolistete

          the code is in main.py and runs stand alone.

          The pysense is supplied by a tp4065 (charge battery by a solar panel) connect to usb.

          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