Example - Digi XBee XTC User Manual

Digimesh radio frequency (rf) module
Hide thumbs Also See for XBee XTC:
Table of Contents

Advertisement

Work with networked devices
Number of
bytes
8
2
2
2
2
1
1
1
1
1

Example

Suppose that you want to test the link between device A (SH/SL = 0x0013A200 40521234) and device
B (SH/SL=0x0013A 200 4052ABCD) by transmitting 1000 40-byte packets:
Send the following API packet to the serial interface of device A.
In the following example packet, whitespace marks fields, bold text is the payload portion of the
packet:
7E 0020 11 01 0013A20040521234 FFFE E6 E6 0014 C105 00 00 0013A2004052ABCD 0028 03E8 EB
When the test is finished, the following API frame may be received:
7E 0027 91 0013A20040521234 FFFE E6 E6 0094 C105 00 0013A2004052ABCD 0028 03E8 03E7 0064
00 0A 50 53 52 9F
This means:
999 out of 1000 packets were successful.
n
The device made 100 retries.
n
RR = 10.
n
maxRSSI = -80 dBm.
n
minRSSI = -83 dBm.
n
avgRSSI = -82 dBm.
n
If the Result field does not equal zero, an error has occurred. Ignore the other fields in the packet.
If the Success field equals zero, ignore the RSSI fields.
The device that sends the request for initiating the Test link and outputs the result does not need to
be the sender or receiver of the test. It is possible for a third node, "device C", to request device A to
perform a test link against device B and send the results back to device C to be output. It is also
possible for device B to request device A to perform the previously mentioned test. In other words, the
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
Field name
Description
Destination
The address the device used to test its link.
address
Payload size
The size of the test packet device A sent to test the link.
Iterations
The number of packets that device A sent.
Success
The number of packets that were successfully
acknowledged.
Retries
The number of MAC retries used to transfer all the packets.
Result
0x00 - the command was successful.
0x03 - invalid parameter used.
RR
The maximum number of MAC retries allowed.
maxRSSI
The strongest RSSI reading observed during the test.
minRSSI
The weakest RSSI reading observed during the test.
avgRSSI
The average RSSI reading observed during the test.
Test links between adjacent devices
101

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee-pro xtc

Table of Contents