2017-11-22 26 views
0

Ich versuche, Verbindung zwischen zwei BBB mit nrf24l01 einzurichten. Ich hoffe, dass ich alles richtig eingerichtet (aber ich bin mir nicht wirklich sicher), habe ich dieses Tutorial https://electron14.com/?p=404 und diesen Code: RF24/librf24-bbb/librf24, und einige Selbstuntersuchung. das Ergebnis Pingtest ist:2x Beaglebone schwarze Mikrocontroller und nrf24l01 Verbindung funktioniert nicht

./pingtest 

RF24/examples/pingpair/ 
ROLE: Ping out 
- gpio.cpp RF24::begin end fun 
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   = 0x27 
CONFIG   = 0x0f 
DYNPD/FEATURE = 0x00 0x00 
Data Rate  = 250KBPS 
Model   = nRF24L01+ 
CRC Length  = 16 bits 
PA Power   = PA_HIGH 
Now sending 23...ok...Failed, response timed out. 
Now sending 1231...ok...Failed, response timed out. 
Now sending 2441...ok...Failed, response timed out. 
Now sending 3649...ok...Failed, response timed out. 
Now sending 4859...ok...Failed, response timed out. 
Now sending 6071...ok...Failed, response timed out. 

und von anderen BBB pongtest ./pongtest

RF24/examples/pingpair/ 
ROLE: Pong back 
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   = 0x27 
CONFIG   = 0x0f 
DYNPD/FEATURE = 0x00 0x00 
Data Rate  = 250KBPS 
Model   = nRF24L01+ 
CRC Length  = 16 bits 
PA Power   = PA_HIGH 

Kann mir jemand helfen?

Antwort

1

Basierend auf Ihren Daten haben beide Geräte einen Statusregisterwert von 0x0e, der die LSB löscht; Dieses Bit legt die Richtung des Geräts fest, entweder Tx (0) oder Rx (1). Basierend auf dem Statusregister jeder gelöschten Karte haben Sie beide als Sender eingerichtet.