Shanghai ZLAN Information Technology Co., Ltd
Tel: +86-17321037177
http://www.zlmcu.com
50
The Realcom protocol is a mature protocol with registry and heartbeat
packages that users can use to implement registry and heartbeat package
functionality. The way to enable Realcom protocol is to select
"REAL_COM protocol" as "REAL_COM protocol" in the device Settings
dialog box.
Figure 40 Enable the realcom protocol
It is not a transparent transport after the Realcom protocol enabled. It has
the following features:
1) When a TCP connection is established between the device and the
cloud, the device automatically sends a hex registry FA 07 13 02 FA
02 MAC[5] MAC[4] MAC[3] MAC[2] MAC[1] MAC[0] FA FF. The
MAC[5]~MAC[0] is the MAC address of the device.
2) When the device sends data to the network, it will automatically add
the 3-byte header prefix of FA 01 01.
3) The device sends a 00 byte heartbeat packet to the software every
keep-alive time.
The REAL_COM protocol can be used as a registry for devices because
the registry contains MAC addresses. But because it is a fixed format, it
can only be designed in the cloud software that REALCOM protocol to be
compatible with this way.
8.1.3 Custom Registry
The custom registry format allows users to fill in an arbitrary registry