[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+ :)
Frank
-
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_EVENTif the ack was received - you can then trigger your code based on this event withlora.callback(trigger=(LoRa.TX_PACKET_EVENT), handler=your_lora_callback_function) -
This post is deleted! -
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
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