Advanced application features Network commissioning and diagnostics
XBee® SX 868 RF Module User Guide
63
The configuration steps for sending data to the loopback cluster ID depend on what mode the device
is in. For details on setting the mode, see AP (API Mode). The following sections list the steps based on
the device's mode.
Transparent operating mode configuration (AP = 0)
To send data to the loopback cluster ID on the data endpoint of a remote device:
1. Set the CI command to 0x12.
2. Set the SE and DE commands to 0xE8 (default value).
3. Set the DH and DL commands to the address of the remote (0 for the coordinator, or the 64-bit
address of the remote).
After exiting Command mode, the device transmits any serial characters it received to the remote
device, which returns those characters to the sending device.
API operating mode configuration (AP = 1 or AP = 2)
Send an Explicit Addressing Command Request - 0x11 using 0x12 as the cluster ID and 0xE8 as both
the source and destination endpoint.
The remote device echoes back the data packets it receives to the sending device.
Test Link cluster
The primary difference between the Loopback cluster ID (0x12) and the Test Link cluster (0x14) is the
number of hops. With the Loopback cluster you can verify that a route exists across one or more hops
between any two nodes in the network.
With the Test Link cluster you can determine the signal strength between any two nodes without
using intermediate nodes. If the two nodes are too far apart, you can expect 100% failure. If they are
close together, you can expect 100% success.
When placing nodes, the following sequence could occur:
1. You can use the Loopback cluster to verify that a route exists between all nodes of interest; for
example, between the aggregator and each of the other nodes.
2. If step 1 fails, you could perform a trace route on any pair of nodes that failed in step 1. The
trace route indicates the failing link.
3. Once a weak link is identified, you can run Test Link to exercise that link to determine how
strong and reliable it is.
4. Now that the problem has been isolated, you can place nodes apropriately to resolve the
connectivity problems.
Device discovery
Network discovery
Use the network discovery command to discover all devices that have joined a network. Issuing the
ND command sends a broadcast network discovery command throughout the network. All devices
that receive the command send a response that includes:
n
Device addressing information
n
Node identifier string (see NI (Node Identifier))
n
Other relevant information