User manual

Confidential, the whole present document is the sole property of Maestro Wireless Solution Ltd.
17
4.2. AT commands for Auto TCP/UDP connection
4.2.1. AT+AUTOTCP command
This command controls the Maestro 100 2G to start TCP socket connection automatically.
Before using AT+AUTOTCP TCP and GPRS settings MUST be setup properly using AT+IPTCP and AT+IPGPRS
command respectively.
Command Syntax
AT+AUTOTCP=<mode>
Response syntax:
+AUTOTCP: <mode>
Command
Possible responses:
AT+AUTOTCP=0
OK
Note : disable AutoTCP
AT+AUTOTCP=1
OK
Enable AutoTCP for main UART
AT+ AUTOTCP?
+AUTOTCP : 1
OK
Note display current status
AT+AUTOTCP=?
+AUTOTCP : (0-1)
Note : possible argument
Defined Values:
<mode>
0 disable auto TCP (for main and USB UART)
1 enable auto TCP for main UART, disable autoTCP for USB UART
Note :
- Before enabling Auto TCP, it MUST be properly set the GPRS settings by AT+IPGPRS command and TCP settings
by AT+IPTCP command (see Chapter 3)
- ONLY GPRS PDP context # 1 will be used. So please 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 then.
- In TCP connected data mode, the DSR and DCD signals of the serial port will go to high.
- If the 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.
- The setting will be saved, and after power off, the AUTOTCP will be restarted with the 20 seconds delay after power
up.
- To stop auto TCP connection, you need to enter the command AT+AUTOTCP=0 by either 1: within 20 seconds after
power up, or 2: during reconnection (serial port back to command mode), or 3: by SMS (see Chapter 11, SMS AT
command).
- Auto TCP connection is exclusive to other TCP/UDP feature. See Chapter 23 Q&A)