EasyManua.ls Logo

Neoway N11 V2 - TCP Data Service AT Commands; Setting Up TCP Link (+TCPSETUP)

Neoway N11 V2
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
58
7 TCP Data Service
7.1 Setting Up TCP Link: +TCPSETUP
Description
To set up a TCP link
Format
AT+TCPSETUP=<n>,<ip>,<port><CR>
Parameter
<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
Return Value
See the Example.
Example
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.
+TCPCLOSE:0,Link Closed
The link is closed.
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.

Table of Contents

Related product manuals