Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
37
1: Return value is displayed after the TCP data is (or not) sent successfully.
<time>: Time when the TCP data is sent, ranging from 1 to 1800, unit: s (valid only when
<operation> is set to 1)
<length>: data length, ranging from 1 to 50, unit: byte (valid only when <operation> is set
to 1)
Return Value
See the Example
Example
AT+TCPAUTO=0,1,1,120,20
>
OK
+TCPAUTO: 0,OK
AT+TCPSETUP=0,220.199.66.56,6800
OK
+TCPSETUP:0,OK
AT+TCPAUTO=0,2
OK
+TCPAUTO: 0,120,20,OK
+TCPAUTO: 0,120,20,ERROR
Set socket 0 to send 20-byte data after 120
seconds and allow return value.
Enter the 20-byte TCP data after > is
returned.
Set up a TCP connection.
Start the automatic sending.
Return value after socket 0 successfully
sends 20-byte data at the scheduled time.
Return value after socket 0 fails to send
20-byte data at the scheduled time.
AT+TCPAUTO=0,1,0,120,20
>
OK
+TCPAUTO: 0,OK
Set socket 0 to send 20-byte data after 120
seconds and forbid return value.
Enter the 20-byte TCP data after > is
returned.
AT+TCPAUTO=0,1,1,120,20
>
+TCPAUTO: 0,OPERATION EXPIRED
After > is displayed, the operation expired
information will be displayed if you do not
enter TCP data in 1 minute.
AT+TCPAUTO=0,2
OK
After the TCP connection is set up, send this
command to start the automatic sending.
AT+TCPAUTO=0,2
ERROR
ERROR is returned because the TCP
connection has not been set up or the
automatic sending is not set on socket 0.
AT+TCPAUTO=0,3
OK
Stop automatic sending on socket 0.
AT+TCPAUTO=0,3
ERROR
ERROR is returned because the automatic
sending is not set on socket 0 or has been
stopped.
AT+TCPAUTO=0,0
OR
Restore the default settings of socket 0, that
is, cancel the automatic sending.
AT+TCPAUTO=0,0
ERROR
ERROR is returned because automatic
sending is not set on socket 0.
AT+TCPAUTO=?
+TCPAUTO: (0-5),(0-3),(1-1800),(1-50)
Query the available range of parameters