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

    [SOLVED] LoPy not receiving acknowledgement downlinks from network server

    Scheduled Pinned Locked Moved LoPy
    ackloradownlink
    4 Posts 2 Posters 2.0k 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.
    • F Offline
      franklopy
      last edited by jmarcelino

      Hi,

      Is there a particular setting required on the LoPy, when sending an uplink, to request that the LoRa network server sends back an acknowledgement downlink to the LoPy?

      I'm asking, because I don't get any when running the ABP example in the Pycom Docs.

      The server is receiving the uplinks as expected, but it just doesn't send anything back for the LoPy.

      I have used the mDot (by MultiTech) with the same network server and acknowledgement downlinks are being sent as expected.

      Thank you very much for your time and support. A+ :)

      Frank

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

        By acknowledgement packets do you mean you're sending confirmed uplinks set with:

        s.setsockopt(socket.SOL_LORA, socket.SO_CONFIRMED, False)?

        If so I don't think you get an explicit downlink, what you should get is a LoRa.TX_PACKET_EVENT if the ack was received - you can then trigger your code based on this event with

        lora.callback(trigger=(LoRa.TX_PACKET_EVENT), handler=your_lora_callback_function)

        F 1 Reply Last reply Reply Quote 1
        • F Offline
          franklopy
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • F Offline
            franklopy @jmarcelino
            last edited by

            @jmarcelino

            As you suspected, I was implicitly using:

            s.setsockopt(socket.SOL_LORA, socket.SO_CONFIRMED, False)

            So I explicitly added

            s.setsockopt(socket.SOL_LORA, socket.SO_CONFIRMED, False)

            to my script, and now the network server returns a downlink, and I am able to access the [LoRa instance].stats().

            Thank you very much for taking the time to help me out. A+ :)

            Frank

            1 Reply Last reply Reply Quote 1

            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