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

    Downlink to LoPy4

    Scheduled Pinned Locked Moved LoPy
    3 Posts 2 Posters 319 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.
    • 3 Offline
      31warren
      last edited by

      Does anyone have a working example of a LoPy4 receiving downlink messages from the loraserver.io network server?

      I have tried the OTAA examples on Github and the different OTAA example in the online documentation but only ever see b'' printed in Atom.

      I am using MQTT to send a short Base64 message to the server, using confirmed data and fport2 and a multi-channel gateway.

      The LoPy joins the network OK and sends uplink messages.

      Using the same server, gateway and MQTT code format I can send downlinks to other sensors so I know that these components are working ok.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • 3 Offline
        31warren
        last edited by

        @31warren

        Further to my previous post, the issue would appear to be that the LoPy4 clears the downlink message queue when it performs an OTAA network join. Any downlink messages that were sent before the join are received but not printed. Messages sent after the join are received and printed OK.

        This seems to be why any of the online OTAA code samples don't display downlink messages (they print out b' ' instead of the received data).

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rskoniec @31warren
          last edited by rskoniec

          @31warren Please paste your code? Do you use lora.nvram_save() and lora.nvram_restore() methods? Which f/w are you using?

          The machine is working as good as it's code.

          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