3.2 AT commands for Auto TCP/UDP connection
3.2.1 Automatic TCP connection
AT+AUTOTCP
This command controls the modem to start TCP socket connection automatically.
Two socket connections can be established at the same time, mapping to the main Serial port or USB COM port in
case of the M1003G.
Before using AT+AUTOTCP TCP and cellular settings MUST be setup properly using AT+IPTCP and AT+IPGPRS
command respectively. See section 2.2.1 and 2.1.1 for more details.
Syntax: AT+AUTOTCP=<mode>
Response: +AUTOTCP: <mode>
Defined Values:
<mode> 0 disable auto TCP (for main Serial port and USB COM port).
1 enable auto TCP mapped to main Serial port, disable auto TCP mapped to USB COM port.
2 enable auto TCP mapped to USB COM port, disable auto TCP mapped to main Serial port.
3 enable auto TCP on both main and USB COM port.
Example:
Command Response
AT+AUTOTCP=0 OK
Note: disable AutoTCP.
AT+AUTOTCP=1 OK
Note: enable AutoTCP.
AT+AUTOTCP? +AUTOTCP: 1
OK
AT+AUTOTCP=? +AUTOTCP: (0-3)
OK
Note:
– AUTOTCP connection is exclusive to other TCP/UDP feature. See chapter 24.
– Before enabling AUTOTCP, the cellular settings MUST be properly configured by AT+IPGPRS command and
TCP settings by AT+IPTCP command, see section 2.2.1 and 2.1.1 for more details.
– If AUTOTCP is enabled, cellular reconnection will happen automatically if the modem loses cellular IP address.
– USB COM port is not available on the 2G model.
– ONLY cellular PDP context # 1 will be used. Please make sure to setup +IPGPRS settings with <Cid>=1.
– Once AUTOTCP is enabled, it will start the TCP socket connection automatically after 20 seconds.
– Once the TCP connection is established successfully, the serial port will go to data mode, all data entered to
the serial port will be sent to remote TCP peer. No more AT commands will be accepted.
– In TCP connected data mode, the DSR and DCD signals of the serial port will go to high.
– If TCP connection is broken the modem will try to reconnect automatically. During re-connection period serial
port will go back to command mode, and DSR/DCD signal back to low.
Confidential, the whole document is the sole property of Maestro Wireless Solutions ltd.
support@maestro-wireless.com
27