Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
AT+TCPSENDS=<socket>,<length><CR>
<socket>: The value of
AcceptSocket
, that is, the socket of the module. See the
description of the
AT+TCPLISTEN
command.
<length>: The length of the data to be sent, value ranges from
1
to
2000
, unit: byte.
<CR><LF>+TCPSENDS: <socket>,<length><CR><LF>
AT+TCPSENDS=0,10
>1234567890
OK
+TCPSENDS:0,10
10-byte data is successfully sent through
socket 0.
>1234567890…
+TCPSENDS:Buffer not enough,439
536-byte data is sent on socket 0. Failed to
transmit the data because internal buffer is
insufficient.
The module (server) sends TCP data and
encounters data congestion.
Ensure that the TCP connection has been set up before sending TCP data.
6.6 Querying the Connection Status on the Client:
+CLIENTSTATUS
To query the status of the connection with the client
AT+CLIENTSTATUS=<socket><CR>
<socket>: The value of
AcceptSocket
, that is, the socket of the module. See the
description of the
AT+TCPLISTEN
command.
<CR><LF>+CLIENTSTATUS:<socket>,CONNECT,TCP,<send-buffer-size><CR><LF
>
Or
<CR><LF>+CLIENTSTATUS:Error 1<CR><LF>
<send-buffer-size>: The size of the available send buffer on the module, in decimal
ASCII mode, unit: byte
+CLIENTSTATUS:0,CONNECT,TCP,2048
A TCP connection has been set up with
the socket 0 client and the buffer size is
2048 bytes.
The connection does not exist.