Chapter 14 – Specific AT Commands

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

+WIOR: 0

Read GPIO 32 value

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

OK

Set GPIO 47 to 1

GPIO value is written

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

97

Page 97
Image 97
Multi-Tech Systems CDMA Wireless Modem manual Read Gpio Value +WIOR, Write Gpio Value +WIOW, Gpio to read, Gpio to write