
AO-1505/AO-1505A ZigBee to AIDO Module
Operation Manual
Page 8 of 18
Version 1.0
Date:2012/2/17
APAC Opto Electronics Inc.
3 Tzu Chiang Road, Hsinchu Industrial Park
Hukow, Hsinchu Hsien, Taiwan 303
TEL: +886-3-5986799
FAX: +886-3-5986655
Website:
www.apacoe.com.tw
Direction: Host
Coordinator
Router
Format
CCC
RSTU
,
CCC
includes the below three forms.
Action / Function
QDO
Query the current status for assigned digital output channel
QAI
Query the current status for assigned analog input channel
SDO
Set the current status for digital output channel
RSTU
indicates channels of current command, R = Channel 4, S = Channel 3, T =
Channel 2, and U = Channel 1. The value for each channel only is 0, 1 or -.
Example:
QDO
1111
presents inquiry digital output pin status of all AO-1505/AO-1505A at
the same PAN network.
SDO
1111
sets digital output pin status of all AO-1505/AO-1505A at the same PAN
network.
QAI
1111
presents inquiry analog input pin status of all AO-1505/AO-1505A at
the same PAN network.
6.
Installation and Operation
6.1 Construction of ZigBee Networks
A ZigBee network must consist of a coordinator, a router, and some end devices. By
appropriate pin assignments, the AO-1505/AO-1505A ZigBee to AIDO module can
operate in a router mode. Since all elements in a ZigBee network must have the same PAN
ID and distinct NODE IDs, setting PAN ID and NODE ID for the module through the
UART interface is required before operation. For details of setting procedures, please refer
to “Initialization” described in Section 4.2 and “AT Command Compilation” described in
Section 6 of AO-1503 user manual.
6.2 Host Queries Data
In a ZigBee network, a coordinator can link up to 65535 devices. Thus, if the host
wants to send messages to any router via the AO-1503/AO-1503A module as a coordinator,
NODE ID of the destination router must be appended to each message. The
AO-1503/AO-1503A uses ASCII code to define the command. The format of the command
is “:xxxx”, in which “:” is the initial code and “xxxx” is the destination NODE ID. The