SENA ProBee-ZE20S User Manual

Page 45

Advertising
background image

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?<CR> or AT+DIO<number>?<CR>

, where <number> is the specific IO number between ranges 0 ~ 16 to read

AT+DIO command can also be used to set the digital output lines.

AT+DIO=<value><CR> or AT+DIO<number>=<value><CR>

, where <number> is the specific IO number between ranges 0 ~ 16 to read, and the <values> is a

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?<CR> or AT+AI<number>?<CR>

, where <number> is the specific IO number between ranges 0 ~ 5 to read

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?<CR>

10001000111**0000

 DIO 0, 4, 8, 9, 10 are ON. GPIO11, 12 are configured

as analog inputs

OK

AT+DIO0=0<CR>

OK

AT+DIO?<CR>

00001000111**0000

 DIO 4, 8, 9, 10 are ON. GPIO11, 12 are configured as

analog inputs

OK

AT+AI?<CR>

****,****,192A,13E8,****,****

 AI 2, 3 are used. (GPIO11, 12) The others

are configured as DIO.

OK

Advertising