-13-
v7.1
Node Parameters
5. Node Parameters
When configuring a node, it is necessary to set some parameters which will be used lately in the network, and
some parameters necessary for using the API functions.
5.1. MAC Address
A 64-bit RF module’s unique IEEE address. It is divided in two groups of 32 bits (High and Low).
It identifies uniquely a node inside a network due to it can not be modified and it is given by the manufacturer.
Example of use
{
xbee868LP.getOwnMacLow(); // Get 32 lower bits of MAC Address
xbee868LP.getOwnMacHigh(); // Get 32 upper bits of MAC Address
}
Related Variables
sourceMacHigh[0-3]
→
stores the 32 upper bits of MAC address
sourceMacLow [0-3]
→
stores the 32 lower bits of MAC address
Besides, XBee modules provide a stick on the bottom side where the MAC address is indicated:
Figure : MAC address
5.2. PAN ID
The Personal Area Network Identifier (PAN ID) is the Network ID. The user network identifier. Nodes must have
the same network identifier to communicate. Only modules with matching IDs can communicate with each other
so all the nodes in the same network must have the same PAN ID. If using OEM network IDs, 0xFFFF will use the
factory value.
Parameter range: From 0 to 0x7FFF. Default: 0x7FFF.
Example of use
{
uint8_t panid[] = { 0x7F, 0xFF };
xbee868LP.setPAN(panid);
xbee868LP.getPAN();
}