User Manual

Table Of Contents
XBee®/XBeePRO®RFModules‐802.15.4‐v1.xEx[2011.06.1]
©2011DigiInternatonal,Inc. 40
AP (API Enable) Command
<Serial Interfacing> The AP command is used to
enable the RF module to operate using a frame-
based API instead of using the default Transpar-
ent (UART) mode.
Refer to the API Operation section when API operation is enabled (AP = 1 or 2).
AS (Active Scan) Command
<Network {Association}> The AS command is
used to send a Beacon Request to a Broadcast
(0xFFFF) and Broadcast PAN (0xFFFF) on every
channel. The parameter determines the amount
of time the RF module will listen for Beacons on
each channel. A ‘PanDescriptor’ is created and
returned for every Beacon received from the
scan. Each PanDescriptor contains the following
information:
CoordAddress (SH + SL parameters)<CR> (NOTE: If MY on the coordinator is set less than
0xFFFF, the MY value is displayed)
CoordPanID (ID parameter)<CR>
CoordAddrMode <CR>
0x02 = 16-bit Short Address
0x03 = 64-bit Long Address
Channel (CH parameter) <CR>
SecurityUse<CR>
ACLEntry<CR>
SecurityFailure<CR>
SuperFrameSpec<CR> (2 bytes):
bit 15 - Association Permitted (MSB)
bit 14 - PAN Coordinator
bit 13 - Reserved
bit 12 - Battery Life Extension
bits 8-11 - Final CAP Slot
bits 4-7 - Superframe Order
bits 0-3 - Beacon Order
GtsPermit<CR>
RSSI<CR> (- RSSI is returned as -dBm)
TimeStamp<CR> (3 bytes)
<CR> (A carriage return <CR> is sent at the end of the AS command.
The Active Scan is capable of returning up to 5 PanDescriptors in a scan. The actual scan time on
each channel is measured as Time = [(2 ^ (SD Parameter)) * 15.36] ms. Total scan time is this
time multiplied by the number of channels to be scanned (16 for the XBee, 12 for the XBee-PRO).
AT Command: ATAP
Parameter Range:0 - 2
Parameter Configuration
0
Disabled
(Transparent operation)
1 API enabled
2
API enabled
(with escaped characters)
Default Parameter Value:0
Minimum Firmware Version Required: v1.x80
AT Command: ATAS
Parameter Range: 0 - 6
Related Command: SD (Scan Duration), DL
(Destination Low Address), DH (Destination
High Address), ID (PAN ID), CH (Channel)
Minimum Firmware Version Required: v1.x80