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

    Pymesh - Border router stops receiving messages.

    Scheduled Pinned Locked Moved Getting Started
    18 Posts 4 Posters 1.2k 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.
    • R Offline
      rfinkers @catalin
      last edited by

      @catalin
      In the BR example on this line, I've changed the 8 to the MAC of my device.
      I also added this line after "print(rcv_data)":

      print(mesh.cli("bufferinfo"))
      

      Now sending this from another node a few times and the buffer is getting full...
      So something is not what it should be?

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        ThomasWright @rfinkers
        last edited by

        Hi @rfinkers @catalin,

        I was wondering if this issue ever got resolved as I am having the same issue?

        I am able to send data through the lora mesh and use the border router magic byte to identify items which need to go outside of the lora mesh via the border router. For the first few minutes, I am able to forward these messages on using my micropython script via wifi.

        However, when I read the data from the open thread message buffer it does not remove it. I can see the amount of free space in the buffer going down each time the border router receives a message using the below command even though I am reading the data out to another variable to be forwarded on.

        print(mesh.cli("bufferinfo"))
        

        Once the buffer is full I get an error saying not enough memory.

        Any help would be gratefully received.

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rfinkers @ThomasWright
          last edited by

          @ThomasWright said in Pymesh - Border router stops receiving messages.:

          I was wondering if this issue ever got resolved as I am having the same issue

          Nope, I'm still having problems with the BR so I'm not using it...

          catalinC 1 Reply Last reply Reply Quote 0
          • catalinC Offline
            catalin @rfinkers
            last edited by

            hi @rfinkers and @ThomasWright, thanks for point-out this problem. I will try to debug this week, to understand what happens.
            2-3 weeks ago I did used Border Routers for hours to send data to Pybytes, and it worked.

            Catalin,

            Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io
            Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              ThomasWright @catalin
              last edited by

              @catalin if it helps I am using lopy4's with firmware version 1.20.0 rc11, incase it is board specific.

              1 Reply Last reply Reply Quote 0
              • J Offline
                jingai
                last edited by

                I'm seeing the same behavior on my border router. Buffers fill up and it detaches.

                catalinC 1 Reply Last reply Reply Quote 0
                • catalinC Offline
                  catalin @jingai
                  last edited by catalin

                  Hi all,
                  I can reproduce this issue. Sometimes BR works for 1-2 hours, sometimes it gets stuck in 15 minutes. I've tried few ideas, didn't fix it.
                  It seems to be some issue with message buffer inside openthread, or how Border Routing is handled from micropython.
                  Honestly, in the next 2 weeks, due to holidays, nobody can check this bug, starting 17th of July, I will resume work. Sorry for this delay.

                  Catalin,

                  Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io
                  Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jingai
                    last edited by jingai

                    I build the firmware myself, and I noticed that the idf_v3.1 branch was recently force-pushed and now doesn't include the openthread component.

                    To build 1.20 with openthread, what IDF branch are we supposed to use...?

                    This seems off-topic, I know, but I believe I've fixed the problem and was wanting to submit a PR -- but I don't know which IDF branch I should be using to confirm the fix.

                    catalinC 1 Reply Last reply Reply Quote 0
                    • catalinC Offline
                      catalin @jingai
                      last edited by

                      Hi @jingai,
                      In light of the recent changes to the Thread Group the Pymesh implementation is unlikely to remain opensource. We will provide updates as soon as we know how this will be organised. We expect to have clarity around August / September 2019.
                      The libopenthread.a binary is available here: https://github.com/pycom/pycom-micropython-sigfox/blob/release-candidate/esp32/lib/libopenthread.a

                      Catalin,

                      Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io
                      Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

                      1 Reply Last reply Reply Quote 0
                      • catalinC Offline
                        catalin
                        last edited by

                        Hello everyone,

                        A few updates:

                        • Border Router bug was fixed (🤦‍♂️ unfortunately packets were not de-allocated at the BR level), a release will be provided shortly
                        • as I said before, due to licensing issues, we will release a dedicated Pymesh version of binary firmware release (just latest development+pymesh module), we're targeting next week.
                        • I am currently testing some micropython scripts which are sending data from Pymesh to the Pybytes, so data from whole Mesh is visible in Pybytes only if at least one node has Wifi connectivity to Internet;
                        • now, I am updating the internal Pymesh to the latest openthread, there are some protocol optimisations, which I hope will make Pymesh more robust

                        Catalin,

                        Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io
                        Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

                        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