Getting data from multiple sensor nodes to the same base using nrf24l01

Hello , i managed to write a working code on each node , and if i only power up one all seems fine , but the moment i power up the second one all data gets scrambled.My setup is as following : mini pro+nrf24l01+dht11 , mini pro+nrf24l01+PIR (motion sensor) and the base is a mega2560+nrf24l01 . Here is the code on the base written with rf24network library.

#include <RF24Network.h>
#include <RF24.h>
#include <SPI.h>

#define CEPIN 49
#define CSNPIN 53

RF24 radio(CEPIN,CSNPIN);
RF24Network network(radio);

const uint16_t this_node = 0;
const uint16_t other_node[3] ={1,2,3};
struct payload_t
{
  unsigned long temp;
  unsigned long humi;
};
char proxiState;

void setup() {
  Serial.begin(57600); 
  SPI.begin();
  radio.begin();
  network.begin(/*channel*/ 90, /*node address*/ this_node);

}

void loop() {
  network.update();
  while (network.available())
    {
      RF24NetworkHeader header(other_node[0],'t');
      payload_t payload;
      network.read(header,&payload,sizeof(payload));
      Serial.print("Temperatura: ");
      Serial.print(payload.temp);
      Serial.print(" C \t");
      Serial.print("Umiditate: ");
      Serial.print(payload.humi);
      Serial.print(" %");
      RF24NetworkHeader header1(other_node[1],'t');
      network.read(header1,&proxiState,sizeof(char));
      Serial.println();
      Serial.println(proxiState);      
    }

}

I think my problem is related to the fact that i am not fully understanding the rf24network … Thanks in advance

Hope this can be helpful http://www.insidegadgets.com/2013/06/09/nrf24-multi-network-allowing-for-255-addresses/

Figured it out last night , if anyone wants needs help or just wants to see my resolve feel free to ask.

Hi,

I would like to see your solution.

Andreas

andrey9492

Can you please share how you resolved the issue.