node-nrf24 icon indicating copy to clipboard operation
node-nrf24 copied to clipboard

Writing fail on nRF24L01+ with raspberry pi zero W and arduino pro mini

Open robinpdev opened this issue 3 years ago • 2 comments

Hi, I am using the Gettingstarted program on the pi and arduino. When i start the program on pi, i get this output of the details:

Cofiguration pins CE-> 22 CS-> 0 IRQ-> -1 Radio details after config:

================ SPI Configuration ================ CSN Pin = 0 CE Pin = Custom GPIO22 SPI Speedz = 10 Mhz ================ NRF Configuration ================ STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0 RX_ADDR_P0-1 = 0x65646f4e32 0x65646f4e31 RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6 TX_ADDR = 0x65646f4e32 RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00 EN_AA = 0x3f EN_RXADDR = 0x03 RF_CH = 0x4c RF_SETUP = 0x00 CONFIG = 0x7e DYNPD/FEATURE = 0x00 0x00 Data Rate = 1MBPS Model = nRF24L01+ CRC Length = 16 bits PA Power = PA_MIN

So i think everything is working there, however, when i set the arduino radio number to 0 and set send mode on the pi, i get a writing fail error: Sending....[Sync] Failed to send 1627043188

I have tried many changes to running these programs, changing writing mode, changing radio numbers etc.. nothing has worked so far. But when i try the gettingstarted example of the RF24 library written in C++ everything does work, so it's very odd. Is there something i am missing here? Thank you in advance.

robinpdev avatar Jul 23 '21 12:07 robinpdev

Hi Radio output seems ok. Have you crosscheck if the cpp version of getting started is configured to interact with the example provided here?

ludiazv avatar Jul 26 '21 15:07 ludiazv

I was checking it now and it seems that the base lib has updated the example. I'm not sure but I think I think it has to be with the payload size and the radionumber used as default in the new example provided in the library.

I need however to update this module to the most recent version of the library.

ludiazv avatar Jul 26 '21 15:07 ludiazv