Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling ACK support for LoRaWAN frames. #861

Closed
wants to merge 1 commit into from

Conversation

amalinda
Copy link
Contributor

@amalinda amalinda commented Oct 30, 2023

To the best of my knowledge, there isn't yet support to send frames with a request for ACK from the network server. This pull request makes an effort to enable an ACK request per frame by calling node.uplink(strUp, 10, true); from user space. This does not break existing functionality. I have tested this using the SX1262 radio and the Actility Thingpark Network server. The functionality seems to be working well.

Acknowledgement: I thank Jansen Christian Liando for his advice on how to enable this.

As always, I welcome feedback.

@StevenCellist
Copy link
Collaborator

Hi @jgamage91, before we do any double work... I am at almost 100% LoRaWAN v1.1 compatibility on a fork. Which includes bi-directional confirmed frames and MUCH more. You're welcome to do some testing so we can get it in here soon! Let me know :)

@amalinda
Copy link
Contributor Author

amalinda commented Oct 30, 2023

Hi @jgamage91, before we do any double work... I am at almost 100% LoRaWAN v1.1 compatibility on a fork. Which includes bi-directional confirmed frames and MUCH more. You're welcome to do some testing so we can get it in here soon! Let me know :)

Oh I understand. Thats great to hear! I am happy to do some testing when you release it. So should I close this for now?
Or if you think this commit can add value to the library in the meantime, it would be lovely to see this accepted. Please advice.

@StevenCellist
Copy link
Collaborator

You can find the most recent version here:
https://github.com/StevenCellist/RadioLib/tree/bands_adr_mac
Some gotchas are listed here:
#821

If you have an SX126x board, it would be great if you can check out the code. One more gotcha that you'll need to watch out for: after joining, you'll need a delay(5000) in your main code as something there is not working very nicely yet.
If you have an SX127x, feel free to dig into the Rx windows and see if you can implement/copy the SX126x logic to get RxSingle with timeout working.. ;)

In case of problems, please enable a debug build and maybe post it as an issue on the fork with some sample output

@StevenCellist
Copy link
Collaborator

To follow this up, I implemented the SX127x on my fork/branch; tested but maybe not completely optimized yet. More testing coming up; getting close to a PR!

@jgromes
Copy link
Owner

jgromes commented Nov 12, 2023

@jgamage91 #867 was just merged, which includes ACK support among major revwork of the LoRaWAN implementation, so unfortunately I have to close this one now. We're still looking for people willing to test it before the next release though, so if you have some time for that, it would be very much appreciated.

@jgromes jgromes closed this Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants