Skip to content

Implement "reliable datagram" #34

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

Closed
jerryneedell opened this issue Dec 16, 2019 · 6 comments
Closed

Implement "reliable datagram" #34

jerryneedell opened this issue Dec 16, 2019 · 6 comments

Comments

@jerryneedell
Copy link
Contributor

jerryneedell commented Dec 16, 2019

The Radiohead library has a "Reliable Datagram" mode that uses acknowledgement and retries to insure packet delivery.

Is there interest in implementing that here. I'll be happy to take it on, but wanted to see if there was any concern or interest.

@jerryneedell
Copy link
Contributor Author

jerryneedell commented Jan 27, 2020

This is just to update the status of "reliable datagram".
The good news is that the basic function is working but the bad news is that the timing performance with Circuitpython and especially on the Raspberry Pi is making it very difficult to get ti to work reliably with boards using the Arduino/Radiohead library. I am having a lot of trouble getting the Circuitpython library to be able to respond fast enough to receive the "ack" packets.
I added a workaround to the Circuitpython side to allow a delay to be specified, but this does not help when talking to Arduino/Radiohead.

I'm still working on this -- trying to find ways to make it respond better.
My current working version is in my fork https://github.com/jerryneedell/Adafruit_CircuitPython_RFM9x/tree/jerryn_ack

@jerryneedell
Copy link
Contributor Author

Sorry for the delay. It will likely be another 2 weeks before I can get back to working on this.

@lgnashold
Copy link

I think I would be interested in using and/or helping implementing this.

@marc-gist
Copy link

I would love this... i can get the RadioHead/Arduino to talk to the Pi, but sending data from the Pi to RadioHead never works :(

@Metallicats44
Copy link

Metallicats44 commented Feb 21, 2020

I would love this... i can get the RadioHead/Arduino to talk to the Pi, but sending data from the Pi to RadioHead never works :(

I was having the same issue.. Try including the following on the Pi code after instantiating rfm9x.. it worked for me:
rfm9x.enable_crc = True

@jerryneedell
Copy link
Contributor Author

implemented with #42

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

No branches or pull requests

4 participants