User's Manual

EZBee series Manual / Ver. 1.0
43
7.10.1
7.10.17.10.1
7.10.1 GPIO
GPIO GPIO
GPIO direction setting
direction settingdirection setting
direction setting
The GPIO direction of a local or remote modem can be set by utilizing
following AT commands.
Command
Parameter Result Description
AT+IOD?
None <direction value>
Read the GPIO direction of a
local modem
AT+IOD=
<value> <direction value>
Set the GPIO direction of a
local modem
AT+IOD@
<DstID>?
OK
Read the GPIO direction of a
remote modem.
<DstID>=<value>
Set the GPIO direction 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
)
If the bit value of a port is 1, then the port acts as the output port. If
the bit value of a port is 0, then the port acts as the input port.
In order to set the GPIO input/ output mode of a remote modem, the
value for accessing to a remote modem should be set as 1. Please refer
to a command AT+RA’.
When the command for a remote modem is accomplished successfully,
a following event message is returned.
Message Parameter Description
$IOD@
<DstID>=<value>
Return the GPIO input/output mode value of a
remote modem <DstID>