Go Down

Topic: RF24L01 Network nodes (Read 321 times) previous topic - next topic

ltheoret

Hi,

I am currently using the RF24 and RF24Network libraries by TMRh20. And RF24L01 radios connected to UNOs, well Infiduino's, they can run at 3.3V.
I have had a 2 node system working since last November. Now this has been logging to a MySQL database since then with no issues.
I would like to add a second transmitter or 3rd node.
The problem is I do not want to take my network off line while I debug my code.
Here is my question:
I used the RF24Network example Helloworld_rx as the receiver and Helloworld_TX as the transmitter.
Modified it to suite my needs. now I want to ad a second transmitter.
My question is:

For the 2 transmitter I have this setup:

Code: [Select]
const uint16_t this_node = 01;        // Address of our node in Octal format
const uint16_t other_node = 00;       // Address of the other node in Octal format


for transmitter one and

Code: [Select]
const uint16_t this_node = 02;        // Address of our node in Octal format
const uint16_t other_node = 00;       // Address of the other node in Octal format


for transmitter two.

now for the receiving node 0 this what I had

Code: [Select]
const uint16_t this_node = 00;    // Address of our node in Octal format ( 04,031, etc)
const uint16_t other_node = 01;   // Address of the other node in Octal format


To add node two what do I change the other_node to?
Or how do I change this so it listens to both nodes or transmitters.

Luc

ltheoret

Hi,

OK! after surfing the web and reading the TMRh20 manual again I did not find a solution to this problem, but a simple search for "other_node" in my receiver code reviled that is was never used, so problem solved, you only need to supply the node you want to transmit to and this one is not transmitting.

Luc

Go Up