EasyManua.ls Logo

Neoway M590E - Setting up TCP Connection: +TCPSETUP

Neoway M590E
65 pages
Print Icon
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...
Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
29
Parameter
<n>: 1
Return Value
See the Example.
Example
AT+XIIC=1
OK
The module is required to set up a
PPP connection.
AT+XIIC=1
OK
GPRS DISCONNECTION
GPRS DISCONNECTION
is
returned because no SIM card is
installed or network abnormality
occurs.
AT+XIIC?
+XIIC: 1, 10.232.165.29
OK
The PPP connection is set up
successfully and the IP address is
10.232.165.29
.
There are four spaces before
1
.
AT+XIIC?
+XIIC: 0, 0.0.0.0
OK
The PPP connection has not been set
up successfully.
There are four spaces before
0
.
GPRS DISCONNECTION
PPP connection is disconnected.
Remarks
Ensure that a PPP connection has been set up before you establish a TCP connection.
You can run the
+XIIC
command to check.
Use the
AT+CGDCONT
command to set the APN and other parameters before you
set up a PPP connection.
Ensure that the module has registered the network before you use the
AT+XIIC=1
command to set up PPP connection.
You can use AT+GREG?to check whether the module has registered the network or
not. If +CREG: 0,1 or +CREG: 0,5 is returned, the module has registered the
network.
3.2 Setting Up TCP connection: +TCPSETUP
Description
To set up a TCP connection
Format
AT+TCPSETUP=<n>,<ip>,<port><CR>
Parameter
<n>: Socket number, ranging from 0 to 5
<ip>: Destination IP address, in
xx.xx.xx.xx
or domain name format
<port>: Destination port ID in decimal ASCII code
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+TCPSETUP:<n>,OK<CR><LF>
Or
<CR><LF>OK<CR><LF>
<CR><LF>+TCPSETUP:<n>, FAIL<CR><LF>
Or:

Table of Contents

Related product manuals