WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
82
AT+TCPKEEPALIVE=1,120,75
OK
Enable the KEEPALIVE function
and set its parameters.
AT+TCPKEEPALIVE=0
OK
Disable the KEEPALIVE function.
AT+TCPKEEPALIVE?
+TCPKEEPALIVE: 1,120,75
OK
Obtain the current KEEPALIVE
parameters.
AT+TCPKEEPALIVE=?
+TCPKEEPALIVE: (0-1),( 30-7200),( 1-1800)
OK
Remarks
The settings by this command will not be saved after the module is powered
off
This command should be executed before setting a TCP link. It will be valid
for all links. DO NOT run this command after establishing a TCP link.
This function will consume some data.
The recommended value for <time> ranges from 120 to 300, and for
<interval> from 40 to 100.
Set the parameters based on your network work environment.
If
<time>
is set to a great value, the terminal might set up a connection that
does not work.
If
<interval>
is greater than
<time>
, the module will not resend the
KEEPALIVE packet.
If
<time>
and
<interval>
are set to small values, the terminal might disconnect
to the remote server. Because of the sleep mechanism of WCDMA, multiple
heartbeat packets might be sent during the sleep of the module, and they are
sent out together after the module is woke up. Then the receiver will consider
them as one packet and will not send the ACK message. The terminal will
disconnect from the remote server after failing to receive the ACK messages
for several times.
This command is applicable to E9C33501H and later versions.