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 release v1.20.2.r1

    Scheduled Pinned Locked Moved Firmware
    11 Posts 5 Posters 516 Views 6 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.
    • J Offline
      johncass Pycom Ambassadors
      last edited by

      Thanks Catalin ;-)

      1 Reply Last reply Reply Quote 0
      • R Offline
        ricardolima
        last edited by

        Thank you Catalin. I will try :D

        1 Reply Last reply Reply Quote 0
        • P Offline
          PG
          last edited by

          Hi!

          I am facing an issue when starting simultaneously 2 modules on the same mesh (using a script similar to the Pymesh example). They both switch to single leader and never connect. If the modules are started one by one everything works correctly: one of the modules becomes leader and the other router.

          Am I missing something?

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

            hi @PG,
            I've seen this happening, sometimes could take 2-3 minutes until both get in the same Mesh.
            A simple idea would be to try and use LoRa frequency not in the same band with LoRaWAN. For EU868 region, you could try 869.7Mhz, or for short periods maybe something in 863-866 Mhz. This can be done, downloading pymesh_config.py and updating this line: https://github.com/pycom/pycom-libraries/blob/f848adcfb937e7b7bbc5f78db95840fa26dabe11/pymesh/pymesh_frozen/lib/pymesh_config.py#L26
            Of, course I will continue testing this scenario and find solutions to speed-up the process of Mesh merging.

            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/

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              PG @catalin
              last edited by PG

              Thanks for your answer @catalin,

              For now I am using 869,5MHz (500mW, 10% duty cycle). But if it converges within 3 minutes it is fine for my use case: I'll test that.

              Edit: After 300s, both devices remain single leaders in my case. I'll try other frequencies and longer durations.

              Other question: is there something specific to do to release buffer or similar things in message receive callback? The transceiver is emitting 1 short msg every 60s, but the receiver only gets the first message.

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                PG @PG
                last edited by

                Hi @catalin,

                I have made 12 start up tests these last days (869,5MHz, SF7, 500kHz bandwidth, 10cm between antennas), and it appears that during 8 of them the 2 devices started simultaneously never connect, even after half an hour. When started at 10s interval they connect very quickly. I think it confirm there is an issue.

                Is there anything I can do to help debugging it?

                catalinC rcolisteteR 2 Replies Last reply Reply Quote 0
                • catalinC Offline
                  catalin @PG
                  last edited by

                  Thanks, @PG for reporting this issue.

                  Is there any message similar in format like:
                  [WARN]-MLE-----: Invalid settings - no saved parent...?

                  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
                  • rcolisteteR Offline
                    rcolistete @PG
                    last edited by rcolistete

                    @PG Beware that LoRa devices can't be too close or else there is LoRa transceiver saturation.

                    Recommend distance >= 2m (the distance to have LoRa saturation depends on LoRa power, SF, BW, CR, antenna, etc).

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

                    1 Reply Last reply Reply Quote 1
                    • P Offline
                      PG
                      last edited by

                      @rcolistete It seems you find the issue: with about 1m between the devices, it works well: it takes only about 1 minute to get the devices connected and communicating, which is perfect. Thanks!

                      @catalin It would be nice to add a note in the documentation: I don't remember to have seen anything about it.

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

                        @PG This issue of LoRa saturation is valid for any LoRa device, not only Pycom ones. But it isn't discussed/documented by the community as it should.

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

                        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