Such as
Chinese patent 201610029034.2 and
Chinese patent 201620167221.2, this type of invention provides a communication module based on the TCP protocol, which belongs to the communication class of the
transport layer protocol. The
IP address of the connection and an
open port, otherwise the connection initiator cannot establish an incoming connection to the recipient. This condition can be satisfied when the local IP is allocated in the
local area network, but when the communication range extends to the Internet, due to the Internet IP Due to the exhaustion of addresses and the need for
network security, the egress IPs obtained by home network users are all converted by NAT, not public IPs. Even if the network egress of enterprise network users may be public IPs, it is impossible to target each communication module on the egress IP. Open a port and configure related access rules. In both cases, when performing point-to-point communication, the
IP address of the party receiving the connection cannot be accessed by the connection initiator. Therefore, this type of communication module can only use
Client /
Server within the Internet range. Architecture, it is necessary to fix a
server with
public network IP and
open port as the communication party, which cannot realize point-to-point communication, and cannot realize serial port transparent transmission
[0004] For example,
Chinese patent 201510496705.1 provides a wired serial-to-
Ethernet data transmission device. This device uses the
MQTT Internet of Things protocol as the
application layer protocol for part of the message transmission of the
communication device itself on the basis of the
transport layer TCP protocol. It seems that the transmission range has been expanded, but the device specification [0014] and [0015] clearly pointed out that the
MQTT protocol is only applicable to the communication between the transmission device itself and other transmission devices, and the RS-232 serial port data transmitted by the external target device , still use the
transport layer TCP or UDP protocol for transmission
Therefore, for the target device sending serial data, this module is the same as the above-mentioned module, and still belongs to the communication category of the transport layer protocol. The communication range is limited to the
local area network, and the serial port transparent transmission within the Internet range cannot be realized.
Moreover, the
Ethernet access of the device must be connected with a network cable through the RJ-45 interface, and
wireless communication cannot be realized. In smart home application scenarios, it is difficult to connect various objects such as light bulbs, smart speakers, washing machines, and Network terminal connected to the network cable
[0005] For example, the article "Implementation Method of
Remote Control of IoT Terminal Based on
Serial Port to WiFi" published in Volume 25 "
Computer Measurement and Control" in 2017, although using WiFi to access
Ethernet avoids network cable connection, but in terms of data transmission, Similar to the aforementioned device, only the MQTT protocol is used for sending and receiving control commands. For the serial port data of external devices, the TCP or UDP protocol is still used for transmission, so it is still impossible to realize serial port transparent transmission within the Internet range.
[0006] To sum up, the existing communication devices on the market that transmit data through serial ports all use connection-oriented transport layer protocols for communication. When communication within the Internet range is required, due to the general limitations of the existing
network architecture, only It can realize the communication between the
communication device and the network
server, and if the network server forwards the data to other communication devices at the transport layer, it needs to allocate a transport layer port for each
communication device, and maintain a
list of all communication devices. The
routing table of the device, which is basically impossible to achieve when the number of communicating parties is large, so none of the above communication devices can realize point-to-point communication within the Internet range, nor can it realize serial port transparent transmission within the Internet range
[0007] At present, with the increase of
embedded system functions and the complexity of
program code, on the one hand, it is inevitable that the program will have behavioral defects or even security vulnerabilities. Failure to update the code in time will affect product operation and even personal safety. There is a need to update programs to
upgrade and optimize functions, but the existing IoT communication modules represented by the aforementioned patents often only implement data transmission functions, and there is no solution for program updates. Traditionally, manufacturers of
industrial equipment and household Updates often require product recalls. For large-scale equipment, it is even necessary to send engineers to the installation site for
firmware updates, resulting in a huge waste of manpower and
material resources.
[0008] In recent years, some
consumer electronic products with networking functions have begun to use OTA technology to remotely update their own programs, such as "Design and Implementation of Remotely Updating ARM Programs" published in Volume 4 of "Electronic Technology and
Software Engineering" in 2014, Both use the
program code of the
microcontroller of the target device to realize this function, but because it involves the erasing and
rewriting of the controller's own
program code, the development
workload is heavy and difficult, and it is difficult for equipment developers to realize
Moreover, if there are problems such as power failure and
crash when the device updates its own program, the update is interrupted, because the data in the program memory is not completely written at this time, the device will be unusable, and the OTA program cannot be run again for remote repair.
Moreover, target devices used for smart home and industrial control, such as
digital signal processors and most embedded microprocessors, do not support
rewriting their own programs through their own instructions or cannot process
network data packets, and cannot use this method to program renew