-
Notifications
You must be signed in to change notification settings - Fork 31
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
Nrf24 module doesn't communicate #61
Comments
Sorry, lots of people having trouble with this recently and I'm kind of swamped with other work to investigate now :-( You can try set |
Thank you for your reply. I finally managed to receive packets, adding some code that maybe cause problems to internal status of the driver: radio.begin(function() { With this code I receive packets (the content is reversed, but there are no packet loss) The problem remains the trasmission with ack: no packet are transmitted. I think because no ack is received this is the last fragment of debug: last line is the result of tx.write. Then the program stop doing anything, no other output is printed. |
Same for me. After Did you managed to fix it until now? |
Hi, I'm trying to work with your library without success.
I Have a sensor based on Arduino nano that communicates with a Raspberry.
Arduino and Raspberry are working well with a C++ program, that I need to move to javascript.
I don't know what I'm doing wrong or what I'm not doing, but the two are absolutely not communicating.
As You mention in the documentation, I need to reload the SPI driver with
sudo modprobe -r spi_bcm2835
sudo modprobe spi_bcm2835
and this enables the communication between Raspberry and RF24 module.
The fact that I have a working project tells me that the hardware is ok.
I've also re-checked connections and tried with and without IRQ connected.
Then I've tried to restart from basics, writing a really simple software, still not working.
Also tried to work with fixed and variable payload: nothing
Maybe I'm working with some default that I should change? How?
This outputs with C++ program
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0x4152443031 0x5250493031
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0x4152443031
RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA = 0x00
EN_RXADDR = 0x03
RF_CH = 0x4c
RF_SETUP = 0x07
CONFIG = 0x0e
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_MAX
And this from Javascript program
SPI device: /dev/spidev0.0
CE GPIO: 24
IRQ GPIO: 25
STATUS: 0xe RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0â1: 0x4152443031 0x5250493031
RX_ADDR_P2â5: 0xc3 0xc4 0xc5 0xc6
TX_ADDR: 0x4152443031
RX_PW_P0â5: 0x0 0x0 0x0 0x0 0x0 0x0
EN_AA: 0x00
EN_RXADDR: 0x02
RF_CH: 0x4c
RF_SETUP: 0x03
CONFIG: 0x0e
DYNPD/FEATURE: 0x00 0x07
Data Rate: 1Mbps
Model: nRF24L01+
CRC Length: 16 bits
PA Power: PA_LOW
Please help me: I'm getting mad!
Thank you
Luciano
The text was updated successfully, but these errors were encountered: