A gateway communication method and system for group control

By introducing gateway communication methods and systems for group control in the Internet of Things system, the limitations of large-scale device access and low-power control are solved, efficient control and long-term operation of terminal devices are achieved, and it is suitable for IoT applications in complex environments.

CN114980189BActive Publication Date: 2025-06-27SOUTH CHINA UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210517408.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2025-06-27
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

Existing IoT solutions have limitations in large-scale device access and low-power control, which is difficult to meet large-scale demands, and the existing technology has few and incomplete low-power control solutions for large-scale devices.

Method used

A gateway communication method and system for group control is proposed. Through the coordinated work of gateways, handheld terminals and cloud servers, a specific naming rules and communication protocol format is adopted to realize single control and group control of terminal devices, including synchronous group control and asynchronous group control methods.

Benefits of technology

It realizes effective control of large-scale terminal equipment, reduces the power consumption of the equipment, extends the working time of the equipment, and provides a control solution for handheld terminals in complex environments to ensure that production is not affected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114980189B_ABST
    Figure CN114980189B_ABST
Patent Text Reader

Abstract

The present invention discloses a gateway communication method and system for group control. The method includes a handheld terminal connecting to the gateway for gateway configuration; gateway initialization; according to the real-time and power consumption requirements of terminal devices, the cloud server issues single terminal device or group control instructions; the group control instructions are divided into synchronous group control and asynchronous group control; according to the instructions issued by the cloud server, the gateway performs corresponding control operations; determining whether the terminal device reports information; if the terminal device reports information, corresponding operations are performed according to the information reported by the terminal device, and the reported information includes an access request, a query control instruction, and a status report. The present invention proposes different control modes for requirements such as real-time power consumption. When asynchronous group control is adopted, the power consumption can be greatly reduced, and the working duration of the terminal device can be extended, which is applicable to scenarios where it is not easy to replace the batteries of a large number of terminal devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of Internet of Things communication, and particularly relates to a gateway communication method and system for group control. Background Art

[0002] In recent years, with the rapid development of the Internet of Things, many traditional industries have begun to transform towards intelligence, such as agriculture, industry, etc. The Internet of Things applications in agriculture often involve data collection of large-scale devices and control tasks of the devices, and communication technology plays a crucial role. Currently, many Internet of Things solutions directly connect terminal devices to the Internet of Things server, which requires relatively high communication signals, and when the number of connections is large, the group control is difficult. There are also solutions that connect terminal devices to the Internet of Things platform through repeaters. The communication between the Internet of Things platform and the gateway is mainly based on the MQTT Internet of Things communication protocol.

[0003] Currently, existing gateway devices have many restrictions on device access, and the quantity cannot meet the large-scale demand. Moreover, there are few and incomplete solutions for low-power control of large-scale devices. Summary of the Invention

[0004] The main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and propose a gateway communication method and system for group control.

[0005] To achieve the above purpose, the present invention adopts the following technical solutions:

[0006] A gateway communication method for group control, provided with a gateway, a handheld terminal, a cloud server, and terminal devices. The method includes:

[0007] The handheld terminal connects to the gateway for gateway configuration;

[0008] The gateway initializes;

[0009] According to the real-time and power consumption requirements of the terminal devices, the cloud server issues single-terminal device or group control instructions; the group control instructions include synchronous group control and asynchronous group control;

[0010] According to the instructions issued by the cloud server, the gateway performs corresponding control operations;

[0011] Judge whether the terminal device reports information;

[0012] If the terminal device reports information, perform corresponding operations according to the information reported by the terminal device. The reported information includes network access requests, query control instructions, and status reports.

[0013] Furthermore, the terminal devices and the gateway adopt specific naming rules;

[0014] The communication between the terminal device and the gateway adopts specific uplink communication protocol formats and downlink communication protocol formats, and the handheld terminal adopts a specific communication protocol format.

[0015] Furthermore, the naming rule of the terminal device is specifically that the terminal device name is unique, is a hierarchical structure, includes the affiliated institution code, regional code, and device number, and the name length is fixed;

[0016] The naming rule of the gateway is specifically that the gateway name is unique, is a hierarchical structure, includes the affiliated institution code, regional code, and device number, and the name length is fixed.

[0017] Furthermore, the uplink communication protocol format between the gateway and the terminal device is specifically that it includes the gateway ID, terminal device ID, message body length, and message body;

[0018] The downlink communication protocol format between the gateway and the terminal device is specifically that it includes the message ID, gateway ID, terminal device ID, message body length, and message body;

[0019] The communication protocol format between the handheld terminal and the gateway is specifically that it includes the message flag, gateway ID, message length, and message body.

[0020] Furthermore, when the cloud server issues a control instruction for a single terminal device, the control operation of the gateway is:

[0021] The gateway receives the control instruction, parses out the control instruction content, combines the instruction according to the downlink communication protocol format between the gateway and the terminal device, and issues the control instruction to the terminal device. The terminal device parses out the control instruction according to the protocol and then performs the corresponding operation.

[0022] Furthermore, for the situation with high real-time requirements and low power consumption requirements, the synchronous group control method is adopted;

[0023] When the cloud server issues a synchronous group control instruction, the control operation of the gateway is:

[0024] The gateway receives the control instruction, parses out the control instruction content, combines the control instruction according to the downlink communication protocol format between the gateway and the terminal device, and issues the control instruction to each terminal device under the gateway. The terminal device parses out the control instruction according to the protocol and then performs the corresponding operation;

[0025] For the situation with low real-time requirements and high power consumption requirements, the asynchronous group control method is adopted;

[0026] When the cloud server issues an asynchronous group control instruction, the control operation of the gateway is:

[0027] The gateway receives a control instruction, parses out the content of the control instruction and stores the instruction content in the memory of the gateway. At the same time, it also updates the message ID and stores it in the memory;

[0028] At a certain moment, the terminal device wakes up and actively sends a query control instruction to the gateway. After receiving the message, the gateway retrieves the control instruction in the memory, combines it according to the downlink communication protocol format and sends it to the terminal device;

[0029] The terminal device determines whether the control instruction has been executed according to the message ID. If it has not been executed, the terminal device parses out the control instruction according to the protocol and then performs the corresponding operation.

[0030] Furthermore, when the gateway cannot connect to the cloud server, a handheld terminal is used to control a single terminal device or perform group control on terminal devices.

[0031] Furthermore, using the handheld terminal to control a single terminal device specifically means:

[0032] The handheld terminal device is connected to the gateway via Bluetooth, and sends a control instruction containing the ID of a certain terminal device. After receiving the control instruction, the gateway parses out the terminal device ID, combines the instruction according to the downlink communication protocol format between the gateway and the terminal device, and sends the control instruction to the terminal device;

[0033] Using the handheld terminal to perform group control on terminal devices specifically means that group control includes synchronous group control and asynchronous group control;

[0034] For synchronous group control, the handheld terminal is connected to the gateway via Bluetooth. The handheld terminal sends a synchronous group control instruction to the gateway. After receiving the control instruction, the gateway parses out the content of the control instruction and combines the control instruction according to the downlink communication protocol format between the gateway and the terminal device, and sends the control instruction to each terminal device under the gateway; The terminal device parses out the control instruction according to the protocol and then performs the corresponding operation;

[0035] For asynchronous group control, the handheld terminal is connected to the gateway via Bluetooth. The handheld terminal sends an asynchronous group control instruction to the gateway. After receiving the control instruction, the gateway parses out the content of the control instruction and simultaneously updates the message ID in the memory, stores the instruction content in the memory, updates the message ID and stores it in the memory;

[0036] At a certain moment, the terminal device wakes up and actively sends a query control instruction to the gateway. After receiving the message, the gateway retrieves the control instruction in the memory, combines it according to the downlink communication protocol format and sends it to the terminal device;

[0037] The terminal device determines whether the control instruction has been executed according to the message ID. If it has not been executed, the terminal device parses out the control instruction according to the protocol and then performs the corresponding operation.

[0038] The present invention further includes a gateway communication system based on the provided gateway communication method, which includes a gateway, a handheld terminal, a cloud server, and a terminal device;

[0039] Among them, the gateway includes a main control chip MCU, a cloud communication module, a handheld terminal communication module, and a terminal device communication module; the cloud communication module is used for the gateway to communicate with the cloud server, the handheld terminal communication module is used for the gateway to communicate with the handheld terminal, and the terminal device communication module is used for the gateway to communicate with the terminal device;

[0040] The main control chip is used to control the communication between the gateway and the handheld terminal, the cloud server, and the terminal device.

[0041] Furthermore, the communication methods between the cloud communication module and the cloud server include NB-IOT, 2G, 3G, 4G, 5G, and WIFI;

[0042] The communication methods between the handheld terminal communication module and the handheld terminal include WIFI and Bluetooth;

[0043] The communication method between the terminal device communication module and the terminal device is LoRa.

[0044] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0045] 1. In the asynchronous group control mode of the present invention, the terminal device can maintain the sleep state for a long time, which can greatly reduce the power consumption and extend the working duration of the terminal device.

[0046] 2. The present invention provides a control solution for the handheld terminal. In some complex environments, such as when the outdoor network communication is interrupted and cannot connect to the cloud server, the handheld terminal can temporarily replace the cloud to control the terminal device without affecting the production; it can also be used to perform on-site debugging of the specified device with the help of the handheld terminal, which is helpful for the installation and troubleshooting of the terminal device on-site.

[0047] 3. The present invention provides control modes for multiple devices, which can effectively cope with the data collection and control of terminal devices in different scenarios.

[0048] 4. The present invention provides a private communication protocol format for the gateway, the terminal device, and the handheld terminal, which can protect the transmitted data to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a schematic structural diagram of the system of the present invention;

[0050] Figure 2 is a schematic diagram of the uplink communication protocol format of the terminal device of the present invention;

[0051] Figure 3It is a schematic diagram of the downlink communication protocol format of the terminal device of the present invention;

[0052] Figure 4 It is a schematic diagram of the communication protocol format of the handheld terminal of the present invention;

[0053] Figure 5 It is a flowchart of the method of the present invention;

[0054] Figure 6 It is a timing diagram of the synchronous group control of the terminal device of the present invention;

[0055] Figure 7 It is a timing diagram of the asynchronous group control of the terminal device of the present invention. Detailed implementation manners

[0056] The present invention will be further described in detail below in conjunction with embodiments and the accompanying drawings, but the implementation manners of the present invention are not limited thereto.

[0057] Embodiment

[0058] Such as Figure 1 shown, a gateway communication system for group control includes a gateway, a handheld terminal, a cloud server, and a terminal device;

[0059] Among them, the gateway includes a main control chip MCU, a cloud communication module, a handheld terminal communication module, and a terminal device communication module; the cloud communication module is used for the gateway to communicate with the cloud server, the handheld terminal communication module is used for the gateway to communicate with the handheld terminal, and the terminal device communication module is used for the gateway to communicate with the terminal device; the main control chip is used to control the gateway to communicate with the handheld terminal, the cloud server, and the terminal device.

[0060] The communication methods between the cloud communication module and the cloud server include NB-IOT, 2G, 3G, 4G, 5G, and WIFI; the communication methods between the handheld terminal communication module and the finger terminal include WIFI and Bluetooth; the communication method between the terminal device communication module and the terminal device is LoRa.

[0061] In this embodiment, the handheld terminal is connected to the gateway through Bluetooth, and the device information registered by the gateway in the cloud server is input in the terminal application and sent to the gateway. After receiving the message, the gateway parses out the corresponding data including the device name, device key, and gateway product key information. The gateway accesses the network through the cloud communication module according to the protocol of the server; in this embodiment, the gateway uses NB-IOT to communicate with the cloud server, and the cloud server uses the Alibaba Cloud Internet of Things platform. The communication protocol used by the gateway and the cloud server in this embodiment is MQTT, and the mechanism of subscription / publishing is used for data communication.

[0062] In this embodiment, the terminal device is connected to the gateway via LoRa. LoRa has advantages such as long transmission distance and strong anti-interference ability. The terminal device needs to send an access request to the gateway. The data message body format of the access request is a hexadecimal number 0x3B of one byte. When the gateway receives the access request from the terminal device, it first parses the gateway ID according to the uplink protocol and determines that it is a terminal device mounted under this gateway; then it parses the ID of the terminal device, the message length, and the message body data; after determining that the message length matches the actual length of the message body, it parses the frame header, determines that it is a terminal device access request according to the flag bit, and then performs device access according to the sub-device access process of Alibaba Cloud. The processing method of the remaining uplink data of the gateway for the terminal device is similar to the access of the terminal device in this embodiment.

[0063] In this system, the terminal device and the gateway adopt specific naming rules; the communication between the terminal device and the gateway adopts specific uplink communication protocol formats and downlink communication protocol formats, and the handheld terminal adopts a specific communication protocol format. For example Figure 2 , Figure 3 and Figure 4 shown, the specific uplink communication protocol format between the gateway and the terminal device is as follows, including the gateway ID, the terminal device ID, the message body length, and the message body;

[0064] The specific downlink communication protocol format between the gateway and the terminal device is as follows, including the message ID, the gateway ID, the terminal device ID, the message body length, and the message body;

[0065] The specific communication protocol format between the handheld terminal and the gateway is as follows, including the message flag, the gateway ID, the message length, and the message body.

[0066] In this embodiment, according to the naming rules of the terminal device and the gateway, the gateway name A0 - A0 - A0 - 001 is generated, with a length of 12 bytes;

[0067] For several terminal devices, the name format is A0 - A0 - A0 - *****, with a length of 14 bytes, where ***** represents the terminal device number. Each terminal device is bound to a device name, and the cloud server has established the topological relationship between the gateway and the terminal device.

[0068] As Figure 5 shown, in this embodiment, the gateway communication method of the system in this embodiment is: the handheld terminal connects to the gateway for gateway configuration;

[0069] The gateway is initialized;

[0070] According to the real-time performance and power consumption requirements of the terminal device, the cloud server issues single-terminal device or group control instructions; the group control instructions are divided into synchronous group control and asynchronous group control; for the case where the power consumption requirements of a large number of terminal devices are low and the real-time performance requirements are high, the synchronous group control method can be adopted; for the case where the power consumption requirements of a large number of terminal devices are high and the real-time performance requirements are low, the asynchronous group control method can be adopted.

[0071] According to the instructions issued by the cloud server, the gateway performs corresponding control operations;

[0072] Judge whether the terminal device reports information;

[0073] If the terminal device reports information, corresponding operations are performed according to the information reported by the terminal device, and the reported information includes an access request, a query control instruction, and a status report.

[0074] In this embodiment, when the cloud server issues a single-terminal device control instruction, the control operation of the gateway is:

[0075] The gateway receives the control instruction through the cloud communication module, analyzes the content of the control instruction and combines the instruction according to the downlink communication protocol format between the gateway and the terminal device, and issues the control instruction to the terminal device through the terminal device communication module. The terminal device analyzes the control instruction according to the protocol and then executes the corresponding operation.

[0076] As Figure 6 shown, when the cloud server issues a synchronous group control instruction, the control operation of the gateway is:

[0077] The gateway receives the control instruction through the cloud communication module, analyzes the content of the control instruction and combines the control instruction according to the downlink communication protocol format between the gateway and the terminal device, and issues the control instruction to each terminal device under the gateway through the terminal device communication module. The terminal device analyzes the control instruction according to the protocol and then executes the corresponding operation.

[0078] Synchronous group control is applicable to the situation where the terminal device is in the wake-up state for a long time and requires high real-time performance for controlling the terminal device.

[0079] As Figure 7 shown, when the cloud server issues an asynchronous group control instruction, the control operation of the gateway is:

[0080] The gateway receives the control instruction through the cloud communication module, analyzes the content of the control instruction and stores the instruction content in the memory of the gateway. At the same time, the message ID is updated and stored in the memory;

[0081] At a certain moment, the terminal device wakes up and actively sends a query control instruction to the gateway. After receiving the message through the communication module of the terminal device, the gateway retrieves the control instruction from the memory, combines it according to the format of the downlink communication protocol, and sends it to the terminal device through the communication module of the terminal device;

[0082] The terminal device determines whether the control instruction has been executed according to the message ID. If not, the terminal device parses the control instruction according to the protocol and then performs the corresponding operation.

[0083] Asynchronous group control is applicable to the situation where the terminal device has low requirements for real-time performance and can sleep for a long time. This method can greatly reduce the operating power consumption of the terminal device and extend the working time of the device.

[0084] In this embodiment, when the gateway cannot connect to the cloud server, the handheld terminal is used to control a single terminal device or group control the terminal devices.

[0085] Using the handheld terminal to control a single terminal device specifically is:

[0086] The handheld terminal device connects to the gateway through Bluetooth, sends a control instruction containing the ID of a certain terminal device. After receiving the control instruction through the communication module of the handheld terminal, the gateway parses out the terminal device ID, combines the instruction according to the format of the downlink communication protocol between the gateway and the terminal device, and sends the control instruction to the terminal device through the communication module of the terminal device;

[0087] Using the handheld terminal to group control the terminal devices specifically is that the group control includes synchronous group control and asynchronous group control;

[0088] Such as Figure 6 shown, the synchronous group control includes:

[0089] The handheld terminal connects to the gateway through Bluetooth. The handheld terminal sends a synchronous group control instruction to the gateway. After receiving the control instruction through the communication module of the handheld terminal, the gateway parses out the content of the control instruction and combines the control instruction according to the format of the downlink communication protocol between the gateway and the terminal device, and sends the control instruction to each terminal device under the gateway through the LoRa broadcast method and the communication module of the terminal device; The terminal device parses the control instruction according to the protocol and then performs the corresponding operation;

[0090] Such as Figure 7 shown, the asynchronous group control includes:

[0091] The handheld terminal connects to the gateway through Bluetooth. The handheld terminal sends an asynchronous group control instruction to the gateway. After receiving the control instruction through the communication module of the handheld terminal, the gateway parses out the content of the control instruction and updates the message ID in the memory at the same time, and stores the instruction content in the memory, updates the message ID and stores it in the memory;

[0092] At a certain moment, the terminal device wakes up and actively sends a query control instruction to the gateway. After receiving the message through the communication module of the terminal device, the gateway retrieves the control instruction from the memory, combines it according to the downlink communication protocol format, and sends it to the terminal device through the communication module of the terminal device;

[0093] The terminal device determines whether the control instruction has been executed according to the message ID. If it has not been executed, the terminal device parses the control instruction according to the protocol and then performs the corresponding operation.

[0094] The present invention proposes different control modes for real-time power consumption, etc. For the situation where the power consumption requirements of a large number of terminal devices are relatively low and the real-time requirements are relatively high, the synchronous group control method can be adopted, that is, after receiving the synchronous group control instruction, the gateway timely distributes the control instruction to the terminal devices through broadcasting. For the situation where the power consumption requirements of a large number of terminal devices are relatively high and the real-time requirements are relatively low, the asynchronous group control method is adopted. When the gateway receives the control information, it first stores it in the memory of the gateway, waits for the terminal device to actively request the gateway according to the demand setting, and then sends the control instruction to the terminal device. In most of the remaining time, the terminal device can enter the deep sleep state, which can greatly reduce the power consumption and extend the working duration of the terminal device, and is applicable to some scenarios where it is not easy to replace the batteries of a large number of terminal devices.

[0095] It should also be noted that in this specification, terms such as "including", "comprising" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the said element.

[0096] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A gateway communication method for group control, which is provided with a gateway, a handheld terminal, a cloud server and terminal devices, and is characterized in that, Including: The handheld terminal connects to the gateway for gateway configuration; The gateway is initialized; According to the real-time and power consumption requirements of the terminal device, the cloud server issues a single terminal device or group control instruction; the group control instruction includes synchronous group control and asynchronous group control; According to the instruction issued by the cloud server, the gateway performs corresponding control operations; Judge whether the terminal device reports information; If the terminal device reports information, corresponding operations are performed according to the information reported by the terminal device. The reported information includes an access request, a query control instruction, and a status report; The uplink communication protocol format between the gateway and the terminal device is specifically as follows, including the gateway ID, the terminal device ID, the message body length, and the message body; The downlink communication protocol format between the gateway and the terminal device is specifically as follows, including the message ID, the gateway ID, the terminal device ID, the message body length, and the message body; The communication protocol format between the handheld terminal and the gateway is specifically as follows, including the message flag, the gateway ID, the message length, and the message body; When the cloud server issues a single terminal device control instruction, the control operation of the gateway is: The gateway receives the control instruction, parses out the content of the control instruction, combines the instruction according to the downlink communication protocol format between the gateway and the terminal device, and sends the control instruction to the terminal device. The terminal device parses out the control instruction according to the protocol and then performs the corresponding operation; For the case of high real-time requirements and low power consumption requirements, the synchronous group control method is adopted; When the cloud server issues a synchronous group control instruction, the control operation of the gateway is: The gateway receives the control instruction, parses out the content of the control instruction, combines the control instruction according to the downlink communication protocol format between the gateway and the terminal device, and sends the control instruction to each terminal device under the gateway. The terminal device parses out the control instruction according to the protocol and then performs the corresponding operation; For the case of low real-time requirements and high power consumption requirements, the asynchronous group control method is adopted; When the cloud server issues an asynchronous group control instruction, the control operation of the gateway is: The gateway receives the control instruction, parses out the content of the control instruction, stores the instruction content in the memory of the gateway, and at the same time updates the message ID and stores it in the memory; The terminal device wakes up at a certain moment, actively sends a query control instruction to the gateway. After the gateway receives the message, it retrieves the control instruction in the memory, combines it according to the downlink communication protocol format, and sends it to the terminal device; The terminal device judges whether the control instruction has been executed according to the message ID. If it has not been executed, the terminal device parses out the control instruction according to the protocol and then performs the corresponding operation.

2. The gateway communication method for group control according to claim 1, wherein The terminal device and the gateway adopt a specific naming rule; The terminal device and the gateway communicate using a specific uplink communication protocol format and downlink communication protocol format, and the handheld terminal uses a specific communication protocol format.

3. A gateway communication method for group control according to claim 1, characterized in that, The naming rule of the terminal device is specifically as follows. The name of the terminal device is unique, is a hierarchical structure, includes the affiliated organization code, the geographical area code, and the device number, and the name length is fixed; The naming rule of the gateway is specifically as follows. The name of the gateway is unique, is a hierarchical structure, includes the affiliated organization code, the geographical area code, and the device number, and the name length is fixed.

4. A gateway communication method for group control according to claim 1, characterized in that, When the gateway fails to connect to the cloud server, use the handheld terminal to control a single terminal device or perform group control on terminal devices.

5. A gateway communication method for group control according to claim 4, characterized in that, The specific method of using the handheld terminal to control a single terminal device is as follows: The handheld terminal device connects to the gateway via Bluetooth and sends a control instruction containing the ID of a certain terminal device. After receiving the control instruction, the gateway parses out the terminal device ID and combines the instruction according to the downlink communication protocol format between the gateway and the terminal device, and then sends the control instruction to the terminal device. The specific method of using the handheld terminal to perform group control on terminal devices is that group control includes synchronous group control and asynchronous group control. For synchronous group control, the handheld terminal connects to the gateway via Bluetooth. The handheld terminal sends a synchronous group control instruction to the gateway. After receiving the control instruction, the gateway parses out the content of the control instruction and combines the control instruction according to the downlink communication protocol format between the gateway and the terminal device, and then sends the control instruction to each terminal device under the gateway. The terminal device parses out the control instruction according to the protocol and then performs the corresponding operation. For asynchronous group control, the handheld terminal connects to the gateway via Bluetooth. The handheld terminal sends an asynchronous group control instruction to the gateway. After receiving the control instruction, the gateway parses out the content of the control instruction, updates the message ID in the memory at the same time, and stores the instruction content in the memory, updates the message ID and stores it in the memory. At a certain moment, the terminal device wakes up and actively sends a query control instruction to the gateway. After receiving the message, the gateway retrieves the control instruction in the memory, combines it according to the downlink communication protocol format and sends it to the terminal device. The terminal device determines whether the control instruction has been executed according to the message ID. If not, the terminal device parses out the control instruction according to the protocol and then performs the corresponding operation.

6. A gateway communication system based on the gateway communication method according to any one of claims 1-5, characterized in that, It includes a gateway, a handheld terminal, a cloud server, and terminal devices. Among them, the gateway includes a main control chip MCU, a cloud communication module, a handheld terminal communication module, and a terminal device communication module. The cloud communication module is used for communication between the gateway and the cloud server. The handheld terminal communication module is used for communication between the gateway and the handheld terminal. The terminal device communication module is used for communication between the gateway and the terminal device. The main control chip is used to control the communication between the gateway and the handheld terminal, the cloud server, and the terminal device.

7. The gateway communication system according to claim 6, wherein The communication methods between the cloud communication module and the cloud server include NB-IOT, 2G, 3G, 4G, 5G, and WIFI. The communication methods between the handheld terminal communication module and the handheld terminal include WIFI and Bluetooth. The communication method between the terminal device communication module and the terminal device is LoRa.

Citation Information

Patent Citations

  • Design method and application system of next-generation Internet of Things system architecture

    CN114189856A

  • Multi-speed mesh networks

    US20070177538A1