-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RF24 could not send radio packet in (Any Address) #7
Comments
Hi |
I'm planning on using the radio to communicate between my Raspberry pi and Arduino Mega2560, the Arduino side works fine, I've tested with another Arduino, but the case with Rpi is neither transmitting nor receiving anything. |
Software response seems ok as the radio is detected and is able to send to commands to the radio. If the radio works with another Arduino then the radio is ok. To discard first a hardware problem I would try 2 things first:
If this fails let me know. There as testing script inside the nrf24 module that will test the radio using an arduino as remote location that can test if the radio is working fine on the PI more easily than in node red. |
When restarting flows this message is normal as the radio module is restarted. This not happen on start up as the radio is configured for the first time. To test if your radio is working with the Pi you can use a testing script without using node-red:
~:$ mkdir -p test_nrf24
~:$ cd test_nrf24
~/test_nrf24:$git clone https://github.com/ludiazv/node-nrf24.git
~/test_nrf24:$cd node-nrf24
~/test_nrf24/node-nrf24:$ npm install This will compile the base module for you with the latest version. It could take a few minutes. now edit the file This example will work with the default sketch in arduino in the NRF24 library called also "GettingStarted". You can remove the |
If this script fails the probability of a problem in the software is low. Did you tried using the arduino as sender and the rpi as receiver? |
No, I have not. |
Long cables and poor contacts can be problem specially at high frequencies. Specially the CE pin causes a lot of problems with the radio interface. Try also to exchange or use new radio modules. |
Hi, 2nd Case is clear the rpi fails to send the packed. The problem is that your radio in the RPI can't send neither acks nor data packets. Send problems can be related CE pin as is the one used to change radio states. Trying with clean old-stable strech version could be a way to discard any OS interference. |
Well now you have at least now that buster is not the problem. On the pi MOSI,MISO,SLCK,CE0 must be connected SPI interface of the radio MOSI,MISO,SLCK,CSN pins. This is ok You must be sure that in test script is using this correct pin in line when you run the program this pin is exported to user space an is visible here If you have logical analyser or oscilloscope you can check if this pin changing when the radio start transmitting. Try to use different pins on the PI to check this out. |
Hi, |
Remenber that payloads are fixed size in in base nrf24protocol. By default 32 bytes. I I have a major release of a new version I think I will include post processing for supporting null terminated strings. But is not a priority. |
Oh okay, I understand, I think that's all I have to ask, I will close this issue, thank you for your help ; ) |
Hi, I'm trying to get this on my Raspberry pi working, but I've encountered some problems.
I have a Raspberry pi 3B+ with Raspbian Buster fresh installed with the official NOOBS from RPi website. (Also tried with RPi 2B+, same result.)
I installed the RF24 library and node in ~/.node-red directory with following commands in terminal:
cd ~/.node-red
npm install nrf24
npm install node-red-contrib-nrf24
What I'm trying to do basically is a simple receive/transmit flow, the inject node sends a string (in this case "Hello world") to the RF24 output node
But this is where I'm having problems, when the string is injected to the output node, I keep getting the warning "RF24 could not send radio packet in 0x72646f4e32" popping up in my node-red debug window.
I also tried disabling auto-ack, same results.
I've also configured the configuration node accordingly to my setup
NRF24 & RPi pin layout configuation
V+ -> 3.3V(pin01)
GND -> GND(pin06)
CSN -> CE0 (pin24)
CE -> GPIO27(pin13)
MOSI -> MOSI(pin19)
SCK -> SCLK(pin23)
MISO -> MISO(pin21)
IRQ -> not connected
Got any ideas why it is not working? I've been debugging this for the past 2 months, but still haven't found a solution. Thanks.
The text was updated successfully, but these errors were encountered: