AS (Active Scan)

This command applies to the XBee/XBee-PRO S2C 802.15.4 RF Module.

Sends a Beacon Request to a Broadcast address (0xFFFF) and Broadcast PAN (0xFFFF) on every channel in SC. SD determines the amount of time the device listens 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> - will always report 0x00

ACLEntry<CR> - will always report 0x00

SecurityFailure<CR> - will always report 0x00

SuperFrameSpec<CR> (2 bytes):

bit 15 - Association Permitted (MSB) - depending on bit 3 of A2 (Coordinator Association)

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 five 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 (as determined by the SC parameter).

Refer to the scan table in SD (Scan Duration) to determine scan times. If using API Mode, no <CR>’s are returned in the response. For more information, see Operate in API mode. If no PANs are discovered during the scan, only one carriage return is printed.

Parameter range

0 - 6

Default

N/A