[SOLVED] LoPy not receiving acknowledgement downlinks from network server

  • 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+ :)


  • @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+ :)


  • This post is deleted!

  • 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)

Log in to reply

Pycom on Twitter