
Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
61
module (hereafter referred to as "module
”) establish a TCP connection, the module will
first send a bunch of code to the software, thus the software can know which module is in
communication. This string of code is the register package.
The register package is very suitable for the monitoring of the Internet of things, because
cloud software generally runs on the Internet public server, and the modules are
scattered in various collection and monitoring points. How to make cloud software
recognize module is very important, it is necessary to realize IoT communication.
Serial device server of Shanghai ZLAN provides the following types of register package.
8.1.1 Connect to send MAC address
Connect to the MAC address: this is not only for the 4 models (such as 5143), but
also for regular models. The method is to send your MAC address to the cloud when
the module is connected to the cloud. Because the MAC address is unique, it can
only identify the device. This approach is simple and no need to write the register
package of each device with simple and effective. Using the method is: in the device
Settings dialog box, click on the "more advanced setting", found
“Send Mac when
TCP establish
” in the upper and select, then back to the setting interface, click
"Modify Settings".
Figure 51 Connect to send MAC address
8.1.2 Realcom Agreement
The Realcom protocol is a mature protocol that contains register package and
heartbeat packet that users can use to implement the function of register and
heartbeat package. The way to enable Realcom protocol is to select the "Transfer