Hi Folks!
I'm trying to get working nRF24L01 with Arduino Uno R3 and I can't make it work with any lib (RF24, RF24network or Mirf).
I have a 10 pin nRF24L01 (2 VCC and 2 GND).
I'm using the folloing pinout
CE - D9
CSN - D10
MI - D11
MO - D12
SCK - D13
I'm using an old floppy flat cable, with male pins in on side. I've already checked the cable for continuity and it's OK.
After try all samples of all libs, with no luck, I decide do something "stupid".
I made a test with only one module+arduino running, and it's still getting/sending packets (from where I have no clue).
I used the samples without any changes.
Here are some more information from the serial output, all get from the same module+arduino, sometime running as sender, sometimes as receiver. As there is only one turned on I think I should get failed/timeouts replies, not the replies I'm showing now:
RF24/examples/GettingStarted/
ROLE: Pong back
*** PRESS 'T' to begin transmitting to the other node
STATUS = 0x00 RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=0 TX_FULL=0
RX_ADDR_P0-1 = 0x0000000000 0xffffffffff
RX_ADDR_P2-5 = 0xff 0xff 0x00 0x00
TX_ADDR = 0x0000000000
RX_PW_P0-6 = 0xff 0xff 0xff 0xff 0xff 0xff
EN_AA = 0xff
EN_RXADDR = 0x00
RF_CH = 0xff
RF_SETUP = 0xff
CONFIG = 0xff
DYNPD/FEATURE = 0xff 0xff
Data Rate = 1MBPS
Model = nRF24L01
CRC Length = 16 bits
PA Power = PA_HIGH
Got payload 4294967295...Sent response.
Got payload 4294967295...Sent response.
Got payload 4294967295...Sent response.
Got payload 4294967295...Sent response.
And when I send "T" on the serial console I got:
*** CHANGING TO TRANSMIT ROLE -- PRESS 'R' TO SWITCH BACK
Now sending 179145...ok...Got response 4294967295, round-trip delay: 179295
Now sending 180295...ok...Got response 4294967295, round-trip delay: 180494
Now sending 181495...ok...Got response 4294967295, round-trip delay: 181678
As you can see it's sending 179145 (for example) and receiving 4294967295 as reply.
RF24/examples/GettingStarted/
ROLE: Pong back
*** PRESS 'T' to begin transmitting to the other node
STATUS = 0xff RX_DR=1 TX_DS=1 MAX_RT=1 RX_P_NO=7 TX_FULL=1
RX_ADDR_P0-1 = 0x0000000000 0x0000000000
RX_ADDR_P2-5 = 0x00 0xff 0xff 0xff
TX_ADDR = 0xffffffffff
RX_PW_P0-6 = 0x00 0x00 0x00 0x00 0x0d 0xff
EN_AA = 0xff
EN_RXADDR = 0xff
RF_CH = 0xff
RF_SETUP = 0x00
CONFIG = 0x7f
DYNPD/FEATURE = 0xff 0xff
Data Rate = 1MBPS
Model = nRF24L01
CRC Length = 16 bits
PA Power = PA_HIGH
Got payload 4294967295...Sent response.
Got payload 4294967295...Sent response.
Got payload 4294967295...Sent response.
Again got 4294967295
With pingpair_dyn I got some similar results:
RF24/examples/pingpair_dyn/
ROLE: Ping out
STATUS = 0x1e RX_DR=0 TX_DS=0 MAX_RT=1 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xffffffffff 0xffffffffff
RX_ADDR_P2-5 = 0x00 0x00 0x00 0x00
TX_ADDR = 0x0000000000
RX_PW_P0-6 = 0xff 0xff 0xff 0xff 0xff 0xff
EN_AA = 0x00
EN_RXADDR = 0xff
RF_CH = 0xff
RF_SETUP = 0xff
CONFIG = 0xff
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01
CRC Length = 16 bits
PA Power = PA_HIGH
Now sending length 4...Got response size=255 value=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Now sending length 6...Got response size=255 value=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Now sending length 8...Got response size=255 value=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Now sending length 10...Got response size=255 value=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Now sending length 12...Got response size=255 value=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Now sending length 14...Got response size=255 value=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
See, send 4, receive 255 with and strange value
When I connect D7-GND I got:
RF24/examples/pingpair_dyn/
ROLE: Pong back
STATUS = 0xff RX_DR=1 TX_DS=1 MAX_RT=1 RX_P_NO=7 TX_FULL=1
RX_ADDR_P0-1 = 0xffffffffff 0x0701000000
RX_ADDR_P2-5 = 0x00 0x00 0x00 0x00
TX_ADDR = 0xffffffffff
RX_PW_P0-6 = 0xff 0xff 0xff 0xff 0x3f 0x00
EN_AA = 0x00
EN_RXADDR = 0x7f
RF_CH = 0xff
RF_SETUP = 0xff
CONFIG = 0xff
DYNPD/FEATURE = 0x7f 0xff
Data Rate = 1MBPS
Model = nRF24L01
CRC Length = 16 bits
PA Power = PA_HIGH
Got payload size=255 value=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Sent response.
Got payload size=255 value=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Sent response.
Where is it geting this payloads if I only have one turned on?
Can anyone had this problem and/or could give me a piece of advise?
Thanks a lot for your time.
Carlos