Copyright © Neoway Technology Co., Ltd
7 TCP Data Service
7.1 Setting Up TCP Link: +TCPSETUP
AT+TCPSETUP=<n>,<ip>,<port><CR>
<n>: Socket number, ranging from 0 to 4
<ip>: Destination IP address, in xx.xx.xx.xx or domain name format
<port>: Destination port ID in decimal ASCII code
AT+TCPSETUP=0,220.199.66.56,6800
OK
+TCPSETUP:0,OK
The link to 220.199.66.56,6800 is
successfully set up on socket 0.
AT+TCPSETUP=0,neowayjsr.oicp.net,60
010
OK
+TCPSETUP:0,OK
The connection to
neowayjsr.oicp.net,60010 is set up on
socket 0 successfully.
AT+TCPSETUP=1,192.168.20.6,7000
OK
+TCPSETUP: 1,FAIL
Fails to set up the connection to
192.168.20.6,7000 on socket 1. The
server is probably not started, the IP
address is incorrect, or the SIM card
is out of credit.
AT+TCPSETUP=0,neowayjsr.oicp.net,60
010
+TCPSETUP:0,ERROR1
A TCP/UDP link has been set up on
socket 0.
AT+TCPSETUP=5,192.168.20.6,7000
+TCPSETUP:ERROR
The socket number is incorrect.
AT+TCPSETUP=0.58.60.184.213.10012
The punctuations in the command are
incorrect.