EasyManuals Logo
Home>Digi>Control Unit>XBEE2

Digi XBEE2 User Manual

Digi XBEE2
195 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #118 background imageLoading...
Page #118 background image
API operation API frames
XBee/XBee-PRO ZigBee RF Modules User Guide 118
Example: The example above shows how to send a transmission to a module where escaping is disabled (AP=1)
with destination address 0x0013A200 40014011, payload “TxData1B. If escaping is enabled (AP=2), the frame
should look like:
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
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)
0x10 = ZigBee Transmit Request API frame type
0x01 = Frame ID (set to non-zero value)
0x0000000000000000 = Coordinator's address (can be replaced with coordinator's actual 64-bit address if
known
0xFFFE = 16-bit Destination Address
Frame-specific
Data
Options
16 0x00
Bitfield of supported transmission options. Supported values
include the following:
0x01 - Disable retries and route repair
0x20 - Enable APS encryption (if EE=1)
0x40 - Use the extended transmission timeout
Enabling APS encryption presumes the source and destination have
been authenticated.
I also decreases the maximum number of RF payload bytes by 4
(below the value reported by NP).
The extended transmission timeout is needed when addressing
sleeping end devices.It also increases the retry interval between
retries to compensate for end device polling. See Transmission
timeouts on page 71 for a description.
Unused bits must be set to 0.
RF Data
17 0x54
Data that is sent to the destination device
18 0x78
19 0x44
20 0x61
21 0x74
22 0x61
23 0x30
24 0x41
Checksum
25 0x13
0xFF - the 8 bit sum of bytes from offset 3 to this byte.
Frame Fields Offset Example Description

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Digi XBEE2 and is the answer not in the manual?

Digi XBEE2 Specifications

General IconGeneral
BrandDigi
ModelXBEE2
CategoryControl Unit
LanguageEnglish

Related product manuals