-16-
v7.1
Node Parameters
5.5. Channel Mask
The channel mask command allows channels to be selectively enabled or disabled. This is useful to avoid using
frequencies that experience unacceptable levels of RF interference. This command is a bitfield. Each bit in the
bitfield corresponds to a frequency as defined in the “Available Frequencies” section. When a bit in the Channel
Mask and the corresponding bit in the Available Frequencies are both set to 1 then that physical channel may be
chosen by the module as an active channel for communication.
At least two channels must be enabled, except when using only the g4 frequency. When using only the g4 frequency
(use 0x20000000) LBT+AFA will be disabled and requires the power level to be 5 mW e.r.p. or less.
All modules in a network must use an identical set of active channels. Separate networks which are in physical
range of each other should use different Preamble Patterns (HP) and/or Network ID’s (ID) to avoid receiving data
from the other network.
Parameter range: From 0 to 0x3FFFFFFF. Default: 0x3FFFFFFF.
Example of use
{
uint8_t channelMask[4] = {0xFF, 0xFF, 0xFF, 0xFF};
xbee868LP.setChannelMask( channelMask );
xbee868LP.getChannelMask();
}
Related Variables
_channelMask[0-3]
→
stores the operating channel
• XBee configuration example:
http://www.libelium.com/development/waspmote/examples/868lp-01-configure-xbee-parameters
5.6. Preamble ID
Only modules with matching preamble IDs can communicate with each other. Different preamble IDs minimize
interference between multiple sets of modules operating in the same vicinity. When receiving a packet this is
checked before the network ID, as it is encoded in the preamble, and the network ID is encoded in the MAC header.
Parameter range: From 0x00 to 0x09. Default: 0x00.
Example of use:
{
xbee868LP.setPreambleID( 0x00 );
xbee868LP.getPreambleID();
}
Related Variables
_preambleID
→
stores the preamble ID
• XBee configuration example:
http://www.libelium.com/development/waspmote/examples/868lp-01-configure-xbee-parameters