Chapter 14 – Specific AT Commands
Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C 97
Read GPIO Value +WIOR
Description: Set the I/O port as an input and read the I/O pin value.
Values: <index>
The GPIO to read. (0-47)
<value>
Value of the GPIO pin.
Syntax: Command syntax: AT+WIOR=<index>
Response syntax: +WIOR: <value>
Command Possible Responses
AT+WIOR=32
Read GPIO 32 value
+WIOR: 0
OK
GPIO 32 value is 0
Write GPIO Value +WIOW
Description: Set the I/O port as an output and set the requested I/O pin value. Valid writeable GPIOs for
23xx are: 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 16, 20, 21, 22, 23, 30, 36, 40, 42, 43, 44, 45, 46, 47.
Values: <index>
The GPIO to write.
<value>
0: I/O bit is set to 0.
1: I/O bit is set to 1.
The GPIO values for 24xx are: 2, 3, 4, 5, 6, 11, 15, 16, 17, 18, 19, 37, 41, 42, 44, 48, 49, 50,
54, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66.
Syntax: Command syntax: AT+WIOW=<index>,<value>
Command Possible Responses
AT+WIOW=47,1
Set GPIO 47 to 1
OK
GPIO value is written