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

    LoPy Lora - randomly goes offline/unable to sent messages for few hours

    Scheduled Pinned Locked Moved LoPy
    lopylora lopylorawan otaamissing
    11 Posts 4 Posters 2.6k 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.
    • J Offline
      jcaron
      last edited by

      What region are you in? What frequencies are you using? What data rate(s)? Are you using ADR? What are the observed RSSIs and SNRs? What's the distance? Are you indoors or outdoors? What antennas are you using (both on the LoPys and on the gateway)? Are the 15 seconds randomised?

      M robert-hhR 3 Replies Last reply Reply Quote 0
      • M Offline
        mronday @jcaron
        last edited by

        @jcaron

        Thanks for responding!

        What region are you in?
        Europe

        What frequencies are you using?
        686.1

        What data rate(s)?
        Min = 0 max = 5

        Are you using ADR?
        No

        What are the observed RSSIs and SNRs?
        RSSI Between 60-76 dBm
        SNR Between 8-10.8 dB

        What's the distance?
        Between 6 and 20 meters

        Are you indoors or outdoors?
        Indoor

        What antennas are you using (both on the LoPys and on the gateway)?
        On the gateway standard external antenna
        In our nodes, an PC81 Taoglas antanna (internal)
        https://www.taoglas.com/wp-content/uploads/2015/06/PC81.07.0100A.dB_.pdf

        0_1521632605847_IMG_0508.jpg
        0_1521632659083_IMG_0507.jpg

        Are the 15 seconds randomised?
        No

        J J 2 Replies Last reply Reply Quote 0
        • J Offline
          jmarcelino @mronday
          last edited by

          Hi @mronday

          I'm not saying it's the cause of the problem but unless it was tested and really as intended sticking an antenna, especially one of that type, to any metal surface - even worse to the metal RF shield of the LoPy - is a bad idea.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            mronday @jcaron
            last edited by

            @jcaron

            Screenshot gateway RX messages
            0_1521632772089_Schermafbeelding 2018-03-21 om 12.34.41.png

            Our Lora channels in LoPy
            lora.add_channel(0, frequency=config.LORA_FREQUENCY, dr_min=0, dr_max=5)
            lora.add_channel(1, frequency=config.LORA_FREQUENCY, dr_min=0, dr_max=5)
            lora.add_channel(2, frequency=config.LORA_FREQUENCY, dr_min=0, dr_max=5)

            1 Reply Last reply Reply Quote 0
            • M Offline
              mronday @jmarcelino
              last edited by

              @jmarcelino

              Hi Marcelino,

              We've also some old test models with an external antenna (like the one on the gateway). Those nodes also having this strange problem of going offline for a few hours randomly.

              Thanks for reply anway, we'll change the position of the antanna's within the case.

              1 Reply Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @jcaron
                last edited by

                @jcaron said in LoPy Lora - randomly goes offline/unable to sent messages for few hours:

                Are the 15 seconds randomised?

                Very interesting. That is indeed a valid & good question, that could explain the beat character of the effect.

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  mronday @robert-hh
                  last edited by

                  @robert-hh

                  Hi Robert,

                  Could you explain the beat character? Do you mean that because we didn't randomize the 15 seconds, it explainable that an node is offline for a few hours?

                  robert-hhR 1 Reply Last reply Reply Quote 0
                  • robert-hhR Offline
                    robert-hh @mronday
                    last edited by

                    @mronday Yes, because then two nodes may try to send at the same time and interfere. Since the clocks of the node are not exactly the same, that situation will disappear after a while, and come back. For that, the difference of the crystals can be in the order of 10^-6, which is totally reasonable. A randomize send timing would avoid longer periods of collisions.

                    1 Reply Last reply Reply Quote 1
                    • J Offline
                      jcaron @mronday
                      last edited by

                      @mronday A few comments:

                      1. If you keep the 15 second interval and go beyond SF8, you'll be in breach of the duty cycle regulations. Remember they are not imposed by the networks, but by national/transnational regulations. Those bands are shared, they imply limits on power and duty cycle (or LBT-AFA, but that's another topic).

                      2. Even at SF7, on a single channel, 10 nodes emitting every 15 seconds implies an average collision rate of over 5%. If you get to 40 nodes, the collision rate will get to 25%. If you increase the SF, well, you'll quickly get to 100% collisions...

                      3. The fact that your interval is fixed (but not 100% exactly) means that two nodes that emit very close one after another can drift into colliding every time, then back into being slightly apart, and so on. If you randomise the interval, you would more likely see collisions spread a bit randomly rather than concentrated on a single node (it should actually be two, isn't that the case?).

                      4. If you check your logs, you probably have another node emitting at nearly exactly the same times, don't you? And it should also fail during approximately the same periods.

                      My advice:

                      1. Forget about sending every 15 seconds. This is definitely not what LoRa was intended for, and you'll run afoul of regulations quite quickly (not to mention power issues if you're running on batteries...).

                      2. Use more frequencies to reduce the risk of collisions.

                      3. Add a random element to your interval. You'll have collisions, but they won't be a long series affecting the same two nodes for a while, it'll be more random and probably more manageable.

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        mronday @jcaron
                        last edited by

                        @jcaron

                        Hi Jcaron,

                        Thanks for your explaination.

                        1. We'll make te intervals longer so that we don't breach the regulations.

                        2. I understand what your saying, but could you describe how you calcluate the collision rate?

                        3. The strange thing is, that almost every time it is a single node who is not recieved well by the gateway. Not always two nodes at the same time. They are indeed close to each other, but we're now testing it with one node, to see how that works.

                        4. We'll add a random interval.

                        I'll post if this changes solved our problem.

                        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