Hi i opened a new topic because these will be focused on the Network Layer for RF24 Radios …
I just received 10 rf24 so i will move from my current experience with the great driver from maniacbug and start with the network layer…
How to define the type of node :
- Base nodes
- leaf nodes
- Relay nodes
I even don’t know if this names should be used …
Following the documentation
Each node must be assigned an 15-bit address by the administrator. This address exactly describes the position of the node within the tree. The address is an octal number. Each digit in the address represents a position in the tree further from the base.
Node 00 is the base node.
Nodes 01-05 are nodes whose parent is the base.
Node 021 is the second child of node 01.
Node 0321 is the third child of node 021, an so on.
The largest node address is 05555, so 3,125 nodes are allowed on a single channel.
is just based on the addressing ?
So if i set adresses like this:
unit name unit adress
UB 011 ← first child of node 01 (UA)
means that UB will always talk to UA to reach base ? or only if not in range ?
This means if i need a node as relay i will put all the nodes that can’t reach the base as child of the node that reach the base ??
So with this there is no formal declaration of the leaf, relay, or base ?
i will always put on the network.write the final destination the network layer will find the way trough all the child’s, correct ?
RF24NetworkHeader header(/*to node*/ other_node); bool ok = network.write(header,hello,strlen(hello));
my header will always be the final destination, in this example the node 011 will always have the destination of the base and not the parent, correct ?
Maniacbug Thanks again for your great work