Skip to content

Nrf24 module doesn't communicate #61

@luckysistemi

Description

@luckysistemi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions