User manual

Confidential, the whole present document is the sole property of Maestro Wireless Solution Ltd.
80
24 Examples of MSP setup and operation
24.1 To setup an Automatic TCP connection
To setup Auto connect to TCP server with IP 61.167.60.1 port 23 (client mode)
Commands to be entered
Modem response
AT+IPGPRS=1,INTERNET
(APN is INTERNET)
OK
AT+IPTCP = 23,”C”,”61.167.60.1,1
(target TCP is 61.167.60.1, port 23, client
mode, TxDelay is enabled)
OK
AT+AUTOTCP=1
(open TCP socket connection)
OK
(TCP connection will start after 20 secs)
To setup Auto connect to TCP server with IP 61.167.60.1 port 23 (client mode), with 2 minutes idle
disconnection setting
Commands to be entered
Modem response
AT+IPGPRS=1,INTERNET
(APN is INTERNET)
OK
AT+IPTCP = 23,”C”,”61.167.60.1,1
(target TCP is 61.167.60.1, port 23, client
mode, TxDelay is enabled)
OK
AT+AUOPT=1,2
(socket idle periood 2 minutes)
OK
AT+AUTOTCP=1
(open TCP socket connection)
OK
(UART go to data mode in 20 seconds)
To setup Auto connect to remote TCP client request with any IP address, port 23(server mode)
Commands to be entered
Modem response
AT+IPGPRS=1,INTERNET
(APN is INTERNET)
OK
AT+IPTCP = 23,”S”,”255.255.255.255, 1
(to accept TCP connection from any IP
address, port 23, client mode, TxDelay is
enabled )
OK
AT+AUTOTCP=1
(open TCP socket connection)
OK
(Modem will start to monitor TCP port 23
after 20 secs)
24.2 To make a AT command driven TCP connection
To connect to TCP server with IP 61.167.60.1 port 23
Commands to be entered
Modem
response
AT+IPGPRS=1,INTERNET
(APN is INTERNET)
OK
AT+IPTCP = 23,”C”,”61.167.60.1,1
(target TCP is 61.167.60.1, port 23, TxDelay is enabled )
OK
AT+DLEMODE=1
OK
AT+CGATT=1
OK
AT+IPCONNECT=1,1
(GPRS connection)
OK
AT+OTCP
(open TCP socket connection)
CONNECT
115200