XB24-BPDK Digi International/Maxstream, XB24-BPDK Datasheet - Page 57

no-image

XB24-BPDK

Manufacturer Part Number
XB24-BPDK
Description
KIT DEVELOPMENT XBEE SERIES 2
Manufacturer
Digi International/Maxstream
Series
XBee™r
Type
802.15.4/Zigbeer
Datasheet

Specifications of XB24-BPDK

Frequency
2.4GHz
For Use With/related Products
XBee™ Series 2 Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
XBee ZNet 2.5/XBee‐PRO ZNet 2.5 ZigBee OEM RF Modules v1.x4x 
6.0.2. API Examples
Checksum
To test data integrity, a checksum is calculated and verified on non-escaped data.
To calculate: Not including frame delimiters and length, add all bytes keeping only the lowest 8
bits of the result and subtract the result from 0xFF.
To verify: Add all bytes (include checksum, but not the delimiter and length). If the checksum is
correct, the sum will equal 0xFF.
Example: Create an API AT command frame to configure an XBee to allow joining (set NJ to
0xFF). The frame should look like:
Where 0x0005 = length
The checksum is calculated as [0xFF - (0x08 + 0x01 + 0x4E + 0x4A + 0xFF)]
Example: Send a transmission to a module with destination address 0x0013A200 40014011,
payload "TxData1B". If escaping is disabled, (AP=1), the frame should look like:
Where 0x16 = length (22 bytes excluding checksum)
If escaping is enabled (AP=2), the frame should look like:
The checksum is calculated (on all non-escaped bytes) as [0xFF - (sum of all bytes from API frame
type through data payload)].
Example: Send a transmission to the coordinator without specifying the coordinator's 64-bit
address. The API transmit request frame should look like:
0x7E 0x00 0x16 0x10 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF 0xFE 0x00
0x00 0x54 0x78 032 0x43 0x6F 0x6F 0x72 0x64 0xFC
Where 0x16 = length (22 bytes excluding checksum)
64-bit address if known
0x7E 0x00 0x05 0x08 0x01 0x4E 0x4A 0xFF 5F
0x7E 0x00 0x16 0x10 0x01 0x00 0x13 0xA2 0x00 0x40 0x0A 0x01 0x27 0xFF
0xFE 0x00 0x00 0x54 0x78 0x44 0x61 0x74 0x61 0x30 0x41 0x13
0x7E 0x00 0x16 0x10 0x01 0x00 0x7D 0x33 0xA2 0x00 0x40 0x0A 0x01 0x27
0xFF 0xFE 0x00 0x00 0x54 0x78 0x44 0x61 0x74 0x61 0x30 0x41 0x7D 0x33
© 2008 Digi International, Inc.
0x10 = ZigBee Transmit Request API frame type
0x08 = AT Command API frame type
0x01 = Frame ID (set to non-zero value)
0x4E4A = AT Command ('NJ')
0xFF = value to set command to
0x5F = Checksum
0x10 = ZigBee Transmit Request API frame type
0x01 = Frame ID (set to non-zero value)
0x0013A200400A0127 = 64-bit Destination Address
0xFFFE = 16-bit Destination Address
0x00 = Broadcast radius
0x00 = Options
0x5478446174613041 = Data payload ("TxData0A")
0x64 = Checksum
0x01 = Frame ID (set to non-zero value)
0x0000000000000000 = Coordinator's address (can be replaced with coordinator's actual
0xFFFE = 16-bit Destination Address
     56

Related parts for XB24-BPDK