Nrf24l01+ issue. Wrong pipe addresses detected. What am I doing wrong here?

Hi,

I setup the example for transceiver.
RF24 radio(46, 47); // This is on Mega

The pipe addresses are :
const uint64_t pipes[2] = { 0xDEDEDEDEE7LL, 0xDEDEDEDEE9LL };

Rest rest of the setup code is :

  printf_begin();
  radio.begin();

  radio.setDataRate(RF24_1MBPS);
  radio.setPALevel(RF24_PA_HIGH);
  radio.setChannel(70);

  radio.enableDynamicPayloads();
  radio.setRetries(15, 15);
  radio.setCRCLength(RF24_CRC_16);

  radio.openWritingPipe(pipes[0]);
  radio.openReadingPipe(1, pipes[1]);

  radio.startListening();
  radio.printDetails();

Output I get is (there is a minor variance every time in the addresses):

STATUS		 = 0xf0 RX_DR=1 TX_DS=1 MAX_RT=1 RX_P_NO=0 TX_FULL=0
RX_ADDR_P0-1	 = 0xffffffff0a 0xffffffff0b
RX_ADDR_P2-5	 = 0x0c 0x0d 0x0e 0x0f
TX_ADDR		 = 0xffffffff21
RX_PW_P0-6	 = 0x11 0x12 0x13 0x14 0x15 0x16
EN_AA		 = 0x01
EN_RXADDR	 = 0x02
RF_CH		 = 0x0b
RF_SETUP	 = 0x0d
CONFIG		 = 0x01
DYNPD/FEATURE	 = 0x1c 0x1d
Data Rate	 = 2MBPS
Model		 = nRF24L01
CRC Length	 = Disabled
PA Power	 = PA_MAX

I am using SPI bus to communicate with two slave Pro Minis on this Mega. Can that be an issue?

You need to post a complete program and also a diagram showing how you have everything connected.

...R
Simple nRF24L01+ Tutorial

Ok.
The program currently has become too large to be posted here.
I am currently trying to provide power to the NRF24l01+ module from a separate source instead of directly from Mega and see if it helps fix some of the issues.

If not, I will post the code on github or such and link.

Meanwhile, if anyone has any previous experience of using nRF24l01+ with multiple other SPI devices, and how they made it work, will be happy to hear of those experiences.

Do you read the same junk if you only initialize the NRF with a rather minimalistic sketch?

Are you shure CE and CSN are not swapped?

What other devices are on the SPI bus?

Do you read the same junk if you only initialize the NRF with a rather minimalistic sketch?
--> No, there is nothing. It listens but with 0 length of data.

Are you shure CE and CSN are not swapped?
--> Yes. Certain about it.

What other devices are on the SPI bus?
--> For now, there are 2 Pro Minis. There is a SD Card module too, but I have removed it for now.

acumensw:
The program currently has become too large to be posted here.

You can post your .ino files as attachments.

However I strongly recommend that you sort out wireless problems with short programs. When the wireless stuff works then add the other functionality.

...R