Altering register to increase auto retransmit count

59 views
Skip to first unread message

Julien MAIRE

unread,
Aug 5, 2013, 4:52:18 AM8/5/13
to nrf24-...@googlegroups.com
Hi !

First of all, I use the NRF24 lib, two arduino (atmega 168 and 328) and NRF24L01+ modules like this one http://www.wvshare.com/product/NRF24L01-RF-Board.htm

I started with the ping example, and it almost works. Sometimes I get a ping of 1 or 2, but sometimes (maybe 1 on 3) I get a "No reply from server"
To work it around I changed adresses, channel, data rate, NRF24L01+ modules, tried to get them closer or not (1cm, 10 cm, 1m, 3m...) still the same

I went on and wrote a sender-receiver (with acknowledgment) sketch from scratch. The sender sends its timestamp every second, while the receiver pushes what it gets to my computer via serial.
I still get issues, some messages are transmitted nicely, other are never received.

Do you have an idea of where it could come from ?

As a solution I want to increase the number of auto retransmit before fail to see if things get better. But I am a newbie !

According to NRF24 datasheet (page 58/78), this is acheveivable by altering register
Adress 04
Mnemonic ARC
Bit 3:0
I want to set it to 1111 (15 retransmits) instead of default 0011 (3 retransmits)

I am stuck then,
I guess I have to use spiWriteRegister() function of the NRF24 lib to get it done, right ?
What parameters should I send ?

Thanks for your help !

Julien

Mike McCauley

unread,
Aug 5, 2013, 5:34:37 AM8/5/13
to nrf24-...@googlegroups.com
Hi,

Sorry I cant help you with this.
The library tests fine with the http://www.sparkfun.com/products/691

I dont know anything about the device you are using, but a quick look makes me
think there are no level shifters on it. The NRF24 is a 3.3V part. You need to
make sure it is voltage compatible with whatever Arduino you are connecting it
to.

Cheers.
--
Mike McCauley mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com
Phone +61 7 5598-7474 Fax +61 7 5598-7070

Reply all
Reply to author
Forward
0 new messages