Multi-Tech Systems iCell GPRS (MTSMC-G2-IP Manuale Utente
Part 5 – GPIO AT Commands
Chapter 15 – GPIO AT Commands
Universal IP AT Commands Reference Guide (Document S000457K)
89
Hangup:
Determines whether to disconnect from the network after GPIOs have been processed.
Values:
0 - Physical connection will disconnect when all GPIOs have been processed
1 - Physical connection will stay connected.
2 - Physical connection will disconnect when all GPIOs have been processed; suppress
responses
3 - Physical connection will stay connected; suppress responses
Default:
1,1,0,0,0,0,x
2,1,0,0,0,0,x
3,0,0,0,0,0,x
4,0,0,0,0,0,x
5,3,0,0,0,0,x
Note:
The final number (represented by ‘x’) is variable and not supported at this time.
Example:
AT#GPIO=1,0,1,180,1,0
GPIO 1 would be configured as a Digital Input with internal pullup (0).
A positive voltage will trigger the GPIO (1).
A Debounce time of 180 ms (180) will be used.
#SENDMAIL1 will be called if the GPIO triggers (1).
After processing the GPIO, the physical connection will be disconnected (0) and all responses
will be printed to the user.
GPIO 1 would be configured as a Digital Input with internal pullup (0).
A positive voltage will trigger the GPIO (1).
A Debounce time of 180 ms (180) will be used.
#SENDMAIL1 will be called if the GPIO triggers (1).
After processing the GPIO, the physical connection will be disconnected (0) and all responses
will be printed to the user.
#GPIOR – Read the Current Register Status of the Specified GPIO Pin
Description:
The current status of the specific GPIO pin is displayed according to its configuration.
Syntax:
AT#GPIOR=<parameter>
Values:
parameter
1 GPIO Port 1
2 GPIO Port 2
3 GPIO Port 3
4 GPIO Port 4
5 GPIO Port 5
2 GPIO Port 2
3 GPIO Port 3
4 GPIO Port 4
5 GPIO Port 5
Responses:
\r\n#GPIOR: VALUE1,VALUE2\r\n
\r\nOK\r\n
\r\nERROR\r\n
\r\nOK\r\n
\r\nERROR\r\n
Examples:
send: AT#GPIOR=1\r
reply: \r\n#GPIOR: 1,1\r\n
reply: \r\nOK\r\n
reply: \r\nOK\r\n