SENA ProBee-ZE20S User Manual
Page 45

45
ProBee-ZE20S User Guide Rev.1.10
the digital I/O line values, the AT+DIO command can be used as below. Return value is a combination of
0 (Low) and 1 (High) if the pins are configured as digital I/O lines. If the pins are configured as analog
inputs, the corresponding return values are shown as *.
AT+DIO?
, where
AT+DIO command can also be used to set the digital output lines.
AT+DIO=
, where
combination of 0 or 1, 0 = Low, 1 = High
The analog input values can be read using the AT+AI command. Return value is a combination of 16-bit
hexadecimal integer between 0~2EE0(0~1200.0mV) which unit value corresponds to 0.1mv. To convert
the hexadecimal value to the actual voltage, please use the formula below. If the pins are configured as
digital I/Os, the corresponding return values are shown as *.
AT+AI?
, where
If the Value is between 0 ~ 7FFF, Voltage (mV) = Value * 0.1
If the Value is between 8000 ~ FFFF, Voltage (mV) = (Value – 65536) * 0.1
Example)
AT+DIO?
10001000111**0000
DIO 0, 4, 8, 9, 10 are ON. GPIO11, 12 are configured
as analog inputs
OK
AT+DIO0=0
OK
AT+DIO?
00001000111**0000
DIO 4, 8, 9, 10 are ON. GPIO11, 12 are configured as
analog inputs
OK
AT+AI?
****,****,192A,13E8,****,****
AI 2, 3 are used. (GPIO11, 12) The others
are configured as DIO.
OK