Hi,
I have several NRF24L01+ modules and several different codes that I use with them. Many times auto ack worked and many times it didnt.
So, I did some experiments, I figured out that even though the TX side does not receive anything, it still requires a sequence of
radio.openReadingPipe(1,self_dev_address);
radio.startListening();
radio.stopListening()
for auto ack to work. I have alteast 2 different types of NRF24L01 (typical black) modules and they work now. I have 2 different types of PA modules and they too work.
If you face the auto ack problem then you may try the same and report back here. I m using the recent TMRH20 library on Arduino.
Thanks and Regards,
WonderfulIOT
Did you remove the old maniacbug library?
Autoack works without repeated stop/startListening.
I never installed Maniacbug library on the development laptop.
I removed the claimed startListening and stopListening and it stops working, its 100% reproducible.
Thanks and Regards,
WonderfulIOT
Then you have other problems in your code that lead to that effect.
You did only post a snippet of one program, so good luck.
Robin2
June 21, 2017, 8:22am
5
Have a look at this Simple nRF24L01+ Tutorial
...R
Robin2:
Have a look at this Simple nRF24L01+ Tutorial
...R
Those examples dont show only autoack. They show ack with payload.
Will post both the Tx and Rx side code soon.
wonderfuliot:
Those examples dont show only autoack. They show ack with payload.
Wrong.
See: "Simple one way transmission"
Robin2:
Have a look at this Simple nRF24L01+ Tutorial
Just a question Robin: is that NRF24L01 library interfering with the millis() instruction?
Some radio libraries are jeopardizing the timers, so one can't rely on millis() and wait() any more.
Is it the case here?
Thank you for your advice.
Robin2
June 25, 2017, 8:59pm
9
RIN67630:
Just a question Robin: is that NRF24L01 library interfering with the millis() instruction?
No. Not at all. I am using it myself in a program that uses both micros() and millis()
If you have further queries about a project of your own please start your own Thread.
...R