Can NRF24L01 be used with autoack in micropython? #13052
Replies: 2 comments 2 replies
-
Given that the driver is entirely written in Python there is no reason why you shouldn't add functionality to it. You'd need some way of dealing with missing acks otherwise both ends might end up on different channels. Radio communications are never perfect... |
Beta Was this translation helpful? Give feedback.
-
@peterhinch thanks for the advice. I have looked at nrf24l01.py, and have understood some of it. the register manipulation I'm working through, but some of the tricky stuff ORing things with other things and ~ other things is way above my paygrade. I've started studying the spec sheet, and trying to learn how acks work. Hopefully, with the help of the examples in the driver I'll be able to get something happening. Should keep me busy for a while. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use a pair of NRF24L01s (attached to Picos) as a master/slave pair, (for an R/C model application.) What I would like to do is access the autoack payload (as detailed in the spec sheet) for the receiver to send back one or two bytes. One for RSSI (although I haven't been able to find anything in the spec sheet about that), and the other a randomly generated number between 1 and 82.
My cunning plan is to implement a frequency hopping algorithm by getting the receiver to generate the next channel it wants to receive on and sending that to the transmitter. The transmitter will then send the next packet on that channel and wait for the ack with the next channel to use. The 1 to 82 limitation is because these are the only channels allowed to be used for applications such as this here in the land of Oz. UK too I believe. Channels 83 to 125 are reserved for something else apparently.
Is there a way to implement this kind of functionality with micropython?
Beta Was this translation helpful? Give feedback.
All reactions