Neo_M660 AT Command Set
Copyright © Neoway Technology Co., Ltd
68
Receive the connection request from the client. The client has set up socket 1 with the
module and
119.123.77.133
is the IP address of the client, 8000 is the port ID of the client.
Remarks
The server must set up socket link with the client before it transparently transmits TCP
data.
Use +++ to switch the server to the command mode and ATO to switch it to the data
mode.
Only the SIM cards with fixed IP addresses can be used as servers. The server set up in
transparent transmission mode can be connected to only one TCP client (transparent
transmission mode or non-transparent transmission mode).
The server will automatically disconnect from the client if a call or message is incoming.
12.9 Querying the Status of Data Sent by the TCP Server:
+TCPACKS
Description
To query the size of data successfully sent by the TCP server and the size of the data
successfully received
Format
AT+TCPACKS=<socket><CR>
AT+TCPACKS<CR>
Parameter
<socket>: The ID of the socket that is set up between the client and the module. The value
ranges from
0
to
4
.
Return
Value
AT+TCPACKS=<socket><CR> (Non-transparent transmission mode)
+TCPACKS:<socket>,<data_sent>,<acked_recv>
<data_sent>: The size of data that the module sent to the client successfully
<acked_recv>: The size of the data that the client received successfully
+TCPACKS:<socket>,<DISCONNECT>: The link with the client has not been set up.
AT+TCPACKS<CR> (Transparent transmission mode)
+TCPACKS:<data_sent>,<acked_recv>
<data_sent>: The size of data that the module sent to the client successfully
<acked_recv>: The size of the data that the client received successfully
+TCPACKS:<DISCONNECT>: The link with the client has not been set up.
Example
AT+TCPACKS=0
+ TCPACK:0,20,20
The module sent 20-byte data to the socket
0 client and the client received 20-byte data
successfully.
AT+TCPACK=0
+ TCPACK:0,128,120
The module sent 128-byte data to the socket
0 client and the client received 120-byte
data successfully.
AT+TCPACK=1
+ TCPACK:1,DISCONNECT
Socket 1 has not set up link with the client.
AT+TCPACK
+TCPACK:1024,1024
TCP transparent transmission mode
The module sent 1024-byte data to the
socket 0 client and the client received
1024-byte data successfully.