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

    No more LoRa packet reception after updating firmware

    Scheduled Pinned Locked Moved LoPy
    lopyfirmwareupdatereceive packets
    8 Posts 3 Posters 1.9k 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.
    • P Offline
      pjoerke
      last edited by pjoerke

      Hi everyone,

      I just ran the update tool on my LoPy's. But now I can't receive anymore LoRa packets.

      To be sure that there is no issue with my code (I didn't changed anything anyway) I also tried the LoRa MAC Nano Gateway example code. The Node sends the data, but the Gateway didn't receive anything. Just before the firmware update everything worked fine :(

      What can I do?

      Thank you :)
      Pascal

      1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb
        last edited by

        Can you please verify you are using the same firmware on both devices, and are you setting them to the same frequencies which are appropriate for your region? I tried the raw LoRa lopy to lopy example yesterday with success.

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

          I use the 1.10.1.b1 on both the devices. To be sure I updated both devices again in the morning comparing the firmware version in the pycom updater.

          In the last hours I tried different source codes to search for the problem with the following observation:

          • 5.3.1 LoRa-MAC (Raw LoRa): This LoPy Example works fine. I set the frequency to 869500000 Hz for the use of the European frequency bands. I can see on both sides the serial output "Hello".
          • 5.3.5 LoPy to LoPy: This example works fine, too. I complemented this example code by serial outputs to be notified on successful reception and set the frequency to 869500000 Hz
          • 5.3.4 LoRa Nano Gateway (Raw LoRa): This LoRa example code doesn't work. I just copy and pasted it and set the frequency to 869500000 Hz. The gateway doesn't receive any data. To be more specific. The condition "if (len(recv_pkg) > 2):" seems to be never true...

          I don't see any major difference between the example codes above. So why isn't the 5.3.4 code working? It would be great if you can check the 5.3.4 LoRa Nano Gateway example code with your devices.

          Some word of how the problems started: I worked with a self written code on my LoPy's. I don't know which firmware they had used but everything was fine. And after updating both LoPy's on 1.10.1.b1 the same code didn't worked anymore. I didn't changed anything. And since this update the 5.3.4 LoRa Nano Gateway has stopped working, too...

          Thank you very much for your help!

          Best regards
          Pascal

          1 Reply Last reply Reply Quote 0
          • sebS Offline
            seb
            last edited by

            Hi Pascal,

            Thanks for your detailed reply. I will look into this specific example now to see if I can get it working with my LoPy modules. I will get back to you later today.

            1 Reply Last reply Reply Quote 0
            • sebS Offline
              seb
              last edited by

              Hi,

              Ok so after investigating the example from the docs I also had issues with it. Adding a small delay (50ms) onto the end of the while loop in both scripts seems to fix the issue. The other issue is the fact that the nodes wait indefinitely for an ACK, if they miss it the code gets stuck in that loop since it never resends the packet. I would advise adding in a counter to break out of the loop if the ACK hasn't been seen after too many loops. I will update the code on the docs with these changes.

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

                Hi guys,

                I just want to tell you that I downgraded all devices to 1.9.2.b2. Now everything works fine again. I don't know why the 1.10.x doesn't work. Anyway... 1.9.2 is fine :)

                Thanks for your help!

                Best regards
                Pascal

                1 Reply Last reply Reply Quote 0
                • D Offline
                  danielm
                  last edited by danielm

                  @seb @pjoerke
                  Few days ago I created GitHub issue because I am facing the same problem in my project:
                  https://github.com/pycom/pycom-micropython-sigfox/issues/102

                  Daniel promised to take a look at it asap, however no solution was provided yet.

                  1 Reply Last reply Reply Quote 0
                  • sebS Offline
                    seb
                    last edited by

                    @danielm said in No more LoRa packet reception after updating firmware:

                    https://github.com/pycom/pycom-micropython-sigfox/issues/102

                    Daniel is currently out on a business trip so is quite busy. I will remind him about this issue.

                    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