Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
Ensure that the TCP connection has been set up before sending TCP data.
It is recommended that you use the
AT+IPSTATUS
command to check the buffer
size before sending data.
Network congestion can result in sending failure.
Before > is 0x0d, 0x0a.
3.4 Receiving TCP Data: +TCPRECV
+TCPRECV:<n>,<length>,<data><CR><LF>
<n>:Socket number, ranging from
0
to
5
<length>: The length of the data received
<data>: The data received
Add
0x0d 0x0a
to the end of the data. You can identify the end based on
<length>
.
+TCPRECV: 0,10,1234567890
10-byte data is successfully received on
socket 0. The data is
1234567890
.
3.5 Closing TCP Connection: +TCPCLOSE
To close a TCP connection
<n>: Socket number, ranging from 0 to 5
Close the TCP connection.
The TCP connection on socket 1 is closed
successfully.
AT+TCPCLOSE=5
+TCPCLOSE:ERROR
The server sends TCP connection closing command or
the network encounters abnormality or weak signals.
3.6 Setting Up UDP Connection: +UDPSETUP
To set up a UDP connection