User's Manual

EZBee series Manual / Ver. 1.0
44
7.10.2
7.10.27.10.2
7.10.2 GPIO
GPIO GPIO
GPIO control
controlcontrol
control
For control or monitor GPIO of a local or remote modem, following AT
commands are utilized.
Command
Parameter Result Description
AT+IO?
None <value>
Read the GPIO status value of a local
modem
AT+IO=
<value> <value>
Set the GPIO status value of a local
modem
AT+IO@
<DstID>?
OK
Read the GPIO status value of a
remote modem
AT+IO@
<DstID>=<value>
OK
Set the GPIO status value of a remote
modem
The format of GPIO is shown as following.
7(MSB)
6 5 4 3 2 1 0(LSB)
PORT7 PORT6 PORT5 PORT4 PORT3 PORT2 PORT1 PORT0
Effective value (
00
~
FF
)
When the bit value of each port is 1, it means the port voltage level
(status) is high. When the bit value is 0, the port voltage is low. It is
possible to set the bit of each port when the port is assigned as an output
port.
When the command for a remote modem is accomplished successfully,
a following event message is returned.
Message Parameter Description
$IO@
<DstID>=<value>
Return the GPIO status value of a remote modem
<DstID>