Multi-Tech Systems iCell GPRS (MTSMC-G2-IP Manual Do Utilizador

Página de 119
Part 1 – AT Commands for All Universal IP Devices
   
Chapter 5 – TCP AT Commands 
Universal IP AT Commands Reference Guide (Document S000457K) 
36 
 
#TCPINACTIVITYTIMER – TCP Client Inactivity Timeout Value 
Description: 
  This parameter determines the inactivity time in seconds as to when a socket connection will 
automatically disconnect. 
 
Note: 
Data transmission from either the remote or local side will reset the internal timer 
to the #TCPINACTIVITYTIMER value 
 
Note: 
This command is for all devices except the SocketWireless Wi-Fi (MT810SWM-IP)
 
Syntax: 
AT#TCPINACTIVITYTIMER=<parameter1>, <parameter2> 
Values: 
parameter 1 
1 TCP profile 1 
2 TCP profile 2 
parameter 2 
0-65535 – the time in seconds of inactivity before a socket will automatically disconnect. A 
setting of 0 will disable the function. 
Responses:
 
\r\n#TCPINACTIVITYTIMER: VALUE1,VALUE2\r\n 
\r\nOK\r\n 
\r\nERROR\r\n 
Examples:
 
send: AT#TCPINACTIVITYTIMER=1,100\r 
 
reply: \r\nOK\r\n 
send: AT#TCPINACTIVITYTIMER=1\r 
 
reply: \r\n#TCPINACTIVITYTIMER: 1,100\r\n 
 
reply: \r\nOK\r\n 
send: AT#TCPINACTIVITYTIMER=2,300\r 
 
reply: \r\nOK\r\n 
send: AT#TCPINACTIVITYTIMER=2\r 
 
reply: \r\n#TCPINACTIVITYTIMER: 2,300\r\n 
 
reply: \r\nOK\r\n 
 
 
 
#TCPNETWORKTIMER – TCP Client Network Transmit Safety Timeout Value 
Description: 
This parameter determines the inactivity time in seconds of the TCP TX buffer. 
 
Note:
 This command is for all devices except the SocketWireless Wi-Fi (MT810SWM-IP)
 
Syntax: 
AT#TCPNETWORKTIMER=<parameter1>, <parameter2> 
Values:
 
parameter 1 
1 TCP profile 1 
2 TCP profile 2 
parameter 2 
0-65535 – the time in seconds the client will wait for the TCP available TX buffer to be greater 
than 0. A setting of 0 will disable the function. 
Responses: 
\r\n#TCPNETWORKTIMER: VALUE1,VALUE2\r\n 
\r\nOK\r\n 
\r\nERROR\r\n 
Examples: 
send: AT#TCPNETWORKTIMER=1,100\r 
 
reply: \r\nOK\r\n 
send: AT#TCPNETWORKTIMER=1\r 
 
reply: \r\n#TCPNETWORKTIMER: 1,100\r\n 
 
reply: \r\nOK\r\n 
send: AT#TCPNETWORKTIMER=2,300\r 
 
reply: \r\nOK\r\n 
send: AT#TCPNETWORKTIMER=2\r 
 
reply: \r\n#TCPNETWORKTIMER: 2,300\r\n 
 
reply: \r\nOK\r\n