Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
53
Even if no heartbeat packets are set, the ZLAN device enables the implied
heartbeat when it is on the TCP Client. Therefore, the implied heartbeat
function means that the device has sent data, but the server cannot
receive the heartbeat data. Therefore, it cannot play the first function of
heartbeat packet, that is, the server can detect whether the device is
active or not. However, since the device actually sends data, it can play
the second function of heartbeat packet, that is, the function of the device
to detect whether the TCP connection is normal. Once the detection is
broken, the TCP connection can still be re-established automatically.
8.2.2 REALCOM agreement
As described in the “8.1.2 Realcom Protocol”, the Realcom protocol can
send a byte data of 00 at every guaranteed time, which is the heartbeat
packet of the Realcom protocol.
8.2.3 Customize Heartbeat Packets
First, fill in the registration package according to the method of “8.1.3
Custom Registration Package”. Then increase the heartbeat packet as
follows: click the "more advanced options" button in the device Settings,
write the hexadecimal heartbeat packet in the second line of the
multi-destination IP and port, and change the option on the right to
"Parameter Packet Destination".
Figure 43 Custom Registry
Note that the total number of registered and heartbeat packets is less than
33 bytes. The first line is actually the registry.
9. HTTPD Client Communication Function