
Chapter 13 – Specific AT Commands
Multi-Tech Systems, Inc. CDMA Wireless AT Commands (PN S000294J)
78
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.
<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 GPIO pins 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.
Valid GPIO pins for the V5 24xx module are: 3, 4, 6, 15, 16, 17, 18, 19, 37, 48.
Values:
<index>
The GPIO to write.
<value>
0
I/O bit is set to 0.
1
I/O bit is set to 1.
Syntax
:
Command syntax:
AT+WIOW=<index>,<value>
Command
Possible Responses
AT+WIOW=16,1
Set GPIO 16 to 1
OK
GPIO value is written
Play Tone +WTONE
Description:
This specific command allows a tone to be played on the current speaker or on the buzzer. Frequency,
volume and duration can be set.
Values:
<mode>
0
Stop playing.
1
Play a tone
<dest>
This parameter sets the destination (mandatory if <mode>=1)
1
Speaker
2
Buzzer
<freq>
This parameter sets tone frequency (in Hz) (mandatory if <mode>=1). The range is
between 1 and 4000Hz. However, for handset and a person to hear, the effective range
may be 150-4000Hz.
<volume>(0-3)
This parameter sets the tone volume. The default value is 1. Values are the same as
+CRSL.
<duration> (0-50)
This parameter sets tone duration (unit of 100 ms). When this parameter is equal to 0
(default value), the duration is infinite, and the tone can be stopped by AT+WTONE=0.
Syntax:
Command syntax:
AT+WTONE=<mode>[,<dest>,<freq>,<volume>,<duration>]
Command
Possible Responses
AT+WTONE=1,1,300,2,50
Note: Play a tone
OK
Note: Done
AT+WTONE?
Note: Current value
+WTONE: 1,1,300,2,50
OK
AT+WTONE=0
Note: Stop playing
OK
Note: Done
AT+WTONE=?
Note: Test command
+WTONE: (0-1),(1-2),(1-4000),(0-3),(0-50)
OK
Note: Done