Command descriptions for the XBee/XBee-PRO RF Module
XBee / XBee-PRO RF Modules 802.15.4 Product Manual 61
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: 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