RF24
RF24 copied to clipboard
Cannot establish communication
I am trying to establish a connection between my Arduino Uno and RPi.
I followed the connections and run the Getting Started example on the Arduino and "pongtest" on the Pi
Output on Arduino -
¼8)>±û8<«<²)=�
á'kmcû»%?'ãpdq1>6ãh>1>
ñ4{"j#bca(&UOê
eTY)`
RF24/examples/GettingStarted/
ROLE: Pong back
*** PRESS 'T' to begin transmitting to the other node
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 � = 0xf0f0f0f0e1 0xf0f0f0f0d2
RX_ADDR_P2-5 � = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0xf0f0f0f0e1
RX_PW_P0-6 � = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA = 0x3f
EN_RXADDR � = 0x03
RF_CH = 0x4c
RF_SETUP � = 0x07
CONFIG = 0x0f
DYNPD/FEATURE � = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_HIGH
*** CHANGING TO TRANSMIT ROLE -- PRESS 'R' TO SWITCH BACK
Now sending 7010...failed.
Failed, response timed out.
Now sending 8286...failed.
Failed, response timed out.
Now sending 9560...failed.
Failed, response timed out.
Now sending 10833...failed.
Failed, response timed out.
Output on Pi -
RF24/examples/pingpair/
ROLE: Pong back
SPI device = /dev/spidev0.0
SPI speed = 8000000
CE GPIO = 25
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xf0f0f0f0d2 0xf0f0f0f0e1
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0xf0f0f0f0d2
RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA = 0x00
EN_RXADDR = 0x03
RF_CH = 0x4c
RF_SETUP = 0x03
CONFIG = 0x0f
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_LOW
Now when I change to "R" mode, output on Arduino :
*** CHANGING TO RECEIVE ROLE -- PRESS 'T' TO SWITCH BACK
Output on Pi running "pingtest"
RF24/examples/pingpair/
ROLE: Ping out
SPI device = /dev/spidev0.0
SPI speed = 8000000
CE GPIO = 25
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xf0f0f0f0e1 0xf0f0f0f0d2
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0xf0f0f0f0e1
RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA = 0x00
EN_RXADDR = 0x03
RF_CH = 0x4c
RF_SETUP = 0x07
CONFIG = 0x0f
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_MAX
Now sending 3411559399...ok...Failed, response timed out.
Now sending 3411560616...ok...Failed, response timed out.
Now sending 3411561831...ok...Failed, response timed out.
I cannot establish communication between the 2 devices. I have checked, double checked and triple checked the connections. They're all correct. Using connections as mentioned in http://hack.lenotta.com/arduino-raspberry-pi-switching-light-with-nrf24l01/
Also, both devices are in the same room so range is not a problem.