
Confidential, the whole present document is the sole property of Maestro Wireless Solution Ltd.
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)
AT+IPGPRS=1,”INTERNET”
(APN is INTERNET)
AT+IPTCP = 23,”C”,”61.167.60.1”,1
(target TCP is 61.167.60.1, port 23, client
mode, TxDelay is enabled)
AT+AUTOTCP=1
(open TCP socket connection)
(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
AT+IPGPRS=1,”INTERNET”
(APN is INTERNET)
AT+IPTCP = 23,”C”,”61.167.60.1”,1
(target TCP is 61.167.60.1, port 23, client
mode, TxDelay is enabled)
AT+AUOPT=1,2
(socket idle periood 2 minutes)
AT+AUTOTCP=1
(open TCP socket connection)
(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)
AT+IPGPRS=1,”INTERNET”
(APN is INTERNET)
AT+IPTCP = 23,”S”,”255.255.255.255”, 1
(to accept TCP connection from any IP
address, port 23, client mode, TxDelay is
AT+AUTOTCP=1
(open TCP socket connection)
(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
AT+IPGPRS=1,”INTERNET”
(APN is INTERNET)
AT+IPTCP = 23,”C”,”61.167.60.1”,1
(target TCP is 61.167.60.1, port 23, TxDelay is enabled )
AT+IPCONNECT=1,1
(GPRS connection)
AT+OTCP
(open TCP socket connection)
Kommentare zu diesen Handbüchern