Good evening !
I´m using the RF24.h library in order to develop a system that comunicates in peer-to-peer mode.
When I transmit 3 bytes towards a receiver, it spends 806us, in simplex mode.
In half-duplex mode, the receiver have to answer and send 5 bytes. The total cycle spends about 32ms.
I am not using serial comunication with a PC; only a LED sinalizes me the start and stop of the cycle, and I monitor and measure it with a scope.
How can I minimize the time ?
I assume you are talking about this library?
What bitrate do you use, and what is the maximum payload length you need?
Sorry on my delay for returning. I suffered a car accident. Now, everything is all right.
Yes, I´m using the RF24 library.
The dynamic is: The transmitter (Arduino 1) sends 3 bytes to the receiver; The receiver (Arduino 2) sends 5 bytes to the transmitter; 500 times, wasting 16 seconds. I need to reduce the time to 4 seconds.
About the bitrate: I know that it is possible to adjust in the nRF24L01, but I don´t know how. In the setup, the only functions that I select is: radio.begin, radio.openWritingPipe and radio.openReadingPipe.
Is it possible to make my Hw talks more faster ?
I am sorry to hear it, good to hear that you are doing fine
Can you try this library instead, apparently it is a more optimized fork of the original library:https://github.com/nRF24/RF24
The issues page seems to be regularly maintained by the authors of the library, and they might be able to help you out if you still are having performance issues. They are bound to know the code much more intimately than us, since we didn't write it.
Thanks a lot, Torbjørn for your attention.
I´ll update the library and experiment new compilations.
Good luck. If you have more questions just let me know