A communication protocol processing method and protocol device of internet of things and interactive software

By using a multi-module protocol device and ZigBee module, the problem of error-prone communication protocols for IoT devices is solved, enabling rapid network establishment and accurate and effective data transmission, optimizing transmission performance, and supporting real-time data encryption.

CN115967755BActive Publication Date: 2026-11-10PINGGAO GRP CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211461790.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2026-11-10
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

The single-module design of existing IoT devices makes communication protocols prone to errors, makes it difficult to quickly and accurately determine the state of network communication channels, and makes it difficult to sort the order of communication channel transitions.

Method used

The protocol device, which adopts a multi-module design, includes a control module, a data interaction module, an encryption module, an authorization module, a gateway module, and a communication module. It realizes data conversion between different protocols through the ZigBee module, and performs authorization and encryption through the link of the nodes. It establishes a network using a ZigBee coordinator, a LoRa concentrator, and a Wi-Fi controller to optimize transmission performance.

Benefits of technology

It enables rapid network establishment and compatibility with different protocols, ensures the accuracy and effectiveness of data transmission, optimizes network transmission performance, and achieves real-time encrypted data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115967755B_ABST
    Figure CN115967755B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of communication protocol, and particularly relates to a communication protocol processing method and protocol device for an Internet of Things and interactive software. The protocol device comprises a control module, a data interaction module, an encryption module, an authorization module, a gateway module, a switch module and a communication module. The various modules of the application cooperate with each other, realize the establishment of a network, and realize the data conversion between different protocols, so as to be compatible with multiple protocols and ensure the accuracy and effectiveness of data transmission. Moreover, the communication process of the application accesses a protocol gateway by means of a link established by nodes, so as to realize mutual authentication of the authorization module and the encryption module. After mutual authentication, real-time data encryption transmission can be performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of communication protocol technology, specifically relating to a communication protocol processing method and protocol device for Internet of Things and interactive software. Background Technology

[0002] With the continuous increase in the number of IoT devices, the communication and interaction methods between these devices have become an important topic of consideration. Communication is very common and crucial for IoT; both short-range wireless transmission technology and mobile communication technology influence the development of IoT. In the communication between IoT and interactive software, communication protocols are particularly important, serving as the rules and agreements that both entities must follow to complete communication or services. Due to the large variety of communication devices, even for the same type of smart device, protocols from different manufacturers vary. Furthermore, the numerous manufacturers supplying communication equipment result in even more protocol types, requiring multi-step collaboration to complete protocol functions. Even single-standard protocols require multiple steps to fulfill their functions. When designing protocol devices for network communication protocols between IoT and interactive software, a single-module design is often adopted, completing all network protocol functions on a single chip. This single-chip design is inefficient, prone to errors, and struggles to quickly and accurately determine the current network communication channel status and to properly sequence communication channel transitions. Summary of the Invention

[0003] The purpose of this invention is to provide a communication protocol processing method and protocol device for Internet of Things and interactive software, so as to solve the problem of easy error caused by the use of single-module design in the prior art.

[0004] To address the aforementioned technical problems, this invention provides a protocol device for Internet of Things (IoT) and interactive software. The protocol device includes a control module, a data interaction module, an encryption module, an authorization module, a gateway module, a switch module, and a communication module. The data interaction module, upon receiving a node join request, acquires and parses the node's data. Connected to the control module, it reassembles the parsed data and sends it to the control module. The control module decrypts the parsed and reassembled data. Upon successful decryption, the data is added to the gateway module's receiving queue. The received data undergoes integrity verification, and after successful verification, it is sent to the communication module via the gateway module and the switch module. The encryption module provides a temporary key for authorized access. The authorization module receives the temporary key from the encryption module and, through the link established by the nodes, achieves mutual recognition between the authorization module and the encryption module. The communication module enables communication between the protocol device and external devices, facilitating data transmission.

[0005] Its beneficial effects are as follows: The protocol device of the present invention includes multiple modules, each with its own division of labor and cooperation, realizing the establishment of a network and the conversion of data between different protocols, thereby ensuring compatibility with multiple protocols and guaranteeing the accuracy and effectiveness of data transmission. Moreover, the communication process of the present invention utilizes the established link between nodes to access the protocol gateway, thereby achieving mutual recognition between the authorization module and the encryption module. After mutual recognition is successful, real-time encrypted data transmission can be performed.

[0006] Furthermore, the data interaction module is a ZigBee module.

[0007] Its benefits include: choosing the ZigBee module ensures data transmission efficiency and accuracy.

[0008] Furthermore, the ZigBee module includes a processor unit, a data acquisition unit, a radio frequency (RF) unit, a driver unit, and an interface unit; the data acquisition unit is used to acquire data from the nodes and is connected to the processor unit to send the acquired data to the processor unit; the driver unit is used to drive the stable operation of the RF unit and the processing unit; the interface unit is connected to the processor unit.

[0009] Furthermore, the ZigBee module includes a ZigBee coordinator, a LoRa concentrator, and a Wi-Fi controller; the ZigBee coordinator and the Wi-Fi controller are connected in communication, and the LoRa concentrator and the Wi-Fi controller are also connected in communication.

[0010] Its beneficial effects are as follows: the ZigBee coordinator, LoRa concentrator, and Wi-Fi controller are responsible for establishing the network and realizing data conversion between different protocols, thereby achieving compatibility with multiple protocols.

[0011] Furthermore, the control module is also used to calculate the transmission delay, set the power, select the transmission channel, and set the reception protocol when transmitting data. It optimizes the network transmission performance by adjusting the transmission power of each data packet and transmits the data through the channel.

[0012] The beneficial effects are: the above measures can maximize the network transmission rate and optimize the network transmission performance.

[0013] Furthermore, the data interaction module is used to reassemble the parsed data into a POST request using the HTTP protocol.

[0014] Furthermore, the gateway module is also used to retrieve the first element of the sending queue and invoke the MAC layer frame indication service for resource scheduling when sending data.

[0015] To address the aforementioned technical problems, this invention also provides a method for processing communication protocols between the Internet of Things (IoT) and interactive software, comprising the following steps:

[0016] 1) After receiving a request to join a node, the data of the node is obtained through the data interaction module included in the protocol device, parsed and reassembled, and then sent to the control module;

[0017] 2) The control module in the protocol device decrypts the parsed and reassembled data. If the decryption is successful, the data is added to the receiving queue of the gateway module. The integrity of the received data is then checked. If the check is successful, the data is sent to the communication module in the protocol device through the gateway module and the switch module. The processed data is then sent.

[0018] The protocol device further includes an encryption module and an authorization module; the encryption module is used to provide a temporary key for data to authorize access; the authorization module is used to receive the temporary key from the encryption module and realize mutual recognition between the authorization module and the encryption module through the link established by the nodes.

[0019] Its beneficial effects are as follows: The protocol device of the present invention includes multiple modules, each with its own division of labor and cooperation, realizing the establishment of a network and the conversion of data between different protocols, thereby ensuring compatibility with multiple protocols and guaranteeing the accuracy and effectiveness of data transmission. Moreover, the communication process of the present invention utilizes the established link between nodes to access the protocol gateway, thereby achieving mutual recognition between the authorization module and the encryption module. After mutual recognition is successful, real-time encrypted data transmission can be performed.

[0020] Furthermore, when sending data, the transmission delay is calculated first, and the power, transmission channel, and reception protocol are set. The transmission performance of the network is optimized by adjusting the transmission power of each data packet.

[0021] The beneficial effects are: the above measures can maximize the network transmission rate and optimize the network transmission performance.

[0022] Furthermore, when sending data, the first element of the sending queue is retrieved, and the MAC layer frame indication service is invoked for resource scheduling. Attached Figure Description

[0023] Figure 1 This is an architecture diagram of the protocol device for the Internet of Things and interactive software of the present invention;

[0024] Figure 2 This is an architecture diagram of the ZigBee module of the present invention;

[0025] Figure 3 This is a flowchart of the communication protocol processing method of the present invention;

[0026] Figure 4 This is a flowchart of the process of receiving and processing input protocol data to be processed in the communication protocol receiving data of the present invention;

[0027] Figure 5 This is a flowchart of the method for sending data using the communication protocol of the present invention. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments.

[0029] Examples of protocol devices for Internet of Things (IoT) and interactive software:

[0030] An embodiment of a protocol device for Internet of Things (IoT) and interactive software according to the present invention, such as... Figure 1 As shown, it includes a control module, which is connected to a gateway module, an encryption module, a ZigBee module, an authorization module, and a switch module. The gateway module is also connected to the ZigBee module, the encryption module is also connected to the authorization module, the authorization module is also connected to the switch module, and the switch module is also connected to the communication module.

[0031] The control module is used to perform data analysis, processing, calculation and control of the entire protocol device, and to complete the configuration, conversion and communication of the protocol device. In this embodiment, the STM32F103C chip is used as the main control chip.

[0032] The gateway module consists of two internal nodes and communicates with sensors through different connection types based on the Internet of Things (IoT) communication protocol.

[0033] The encryption module provides a temporary key for communication data and decryption for authorized access. The data provider, through mutual recognition with the authorization module, obtains parameters to calculate the temporary key and uses it to encrypt the data. The data requester, through mutual recognition with the authorization module, obtains the temporary key for the communication data based on the parameters and uses it to decrypt the data, thus gaining authorized access.

[0034] ZigBee modules are used to enable data transmission between various electronic devices in protocol devices that require short distances, low power consumption, and low transmission rates. They are low-rate, low-power, low-cost, and low-complexity bidirectional short-range wireless network modules. In this embodiment, as... Figure 2As shown, the ZigBee module includes a processor unit, which is connected to the radio frequency (RF) unit, driver unit, acquisition unit, and interface unit. The processor unit is a separate microprocessor; in this embodiment, a CC2530 chip is preferred to form the minimum system. It provides power to the RF unit, driver unit, acquisition unit, and interface unit, and performs calculations and control. The RF unit is used for long-distance spread spectrum transmission of data, and its operating frequency band can be selected as 430-490MHz or 1.2GHz-2.4GHz. The driver unit is used to drive the stable operation of the RF unit and processor unit. The acquisition unit includes at least a sensor for collecting node data, providing a data source for the processor unit. The interface unit uses a PL2303 circuit to convert the TTL level signal of the ZigBee module's serial port into a USB level, enabling direct access by a computer.

[0035] Furthermore, the ZigBee module can also consist of three parts: a ZigBee coordinator, a LoRa concentrator, and a Wi-Fi controller. These components are responsible for network establishment and data conversion between different protocols. The ZigBee coordinator and Wi-Fi controller communicate serially via USART1, while the LoRa concentrator and Wi-Fi controller communicate serially via USART2. ZigBee uses TI's CC2530 RF chip, LoRa uses Guangzhou Zhiyuan's ZM470SX-M RF chip, and the Wi-Fi controller uses an STM32+ESP8266 solution. The ESP8266 is a low-cost Wi-Fi RF chip manufactured by Espressif Systems.

[0036] The authorization module receives messages forwarded from the protocol gateway and determines whether to authorize based on the protocol configuration. More specifically, the authorization module receives and records the MAC address, ID code, and key of the encryption module. Using the established link between the nodes, it accesses the protocol gateway to achieve mutual recognition between the authorization module and the encryption module. Once mutual recognition is successful, real-time encrypted data transmission can proceed.

[0037] The switch module is used to receive and forward data through message exchange. It can provide a dedicated electrical signal path for any two network nodes connected to the switch module, allowing them to transmit information packets without interference and preventing transmission conflicts, thereby improving the actual throughput of the protocol device.

[0038] The communication module is used to enable communication between the protocol device and external devices, and includes at least wireless WIFI, fiber optic, RS232, RS485, 2G, 3G, 4G and 5G.

[0039] Based on the protocol apparatus described above, a communication protocol processing method for Internet of Things (IoT) and interactive software according to the present invention can be implemented, such as... Figure 3 As shown, the specific process is as follows:

[0040] Step one involves receiving and processing the input protocol data to be processed. For example... Figure 4 As shown, the specific process is as follows:

[0041] 1. Data arrival. The specific process is as follows:

[0042] 1) Requesting to join the communication network. The node requests to join the communication network by sending node information. Nodes can include data acquisition nodes and terminal nodes. When a node requests to join the communication network, it first obtains the address translation mapping table.

[0043] 2) Acquire and encapsulate sensor data. After sending the address translation mapping table information, the node begins data acquisition. After completing one data acquisition and transmission cycle, the node proceeds to data encapsulation.

[0044] 3) Request drive from ZigBee driver unit and RF unit.

[0045] 4) The processor unit performs data polling, parsing, address translation, and control instruction execution. After a node successfully joins the ZigBee network, the processor unit begins monitoring the current network status. When it receives node information, it forwards the information. When it receives coordination information, it parses the information. If the information is control information for the current node, it executes the corresponding control instructions; otherwise, it forwards the information.

[0046] 5) Select the interface unit to send based on the parsing and address conversion results.

[0047] 2. Data verification, correction, and password parsing. Upon receiving data, the processor unit first parses the data, then reassembles the valid data into an HTTP POST request and transmits it to the control module. When the interface unit detects a data transmission trigger event from the control module, the processor unit retrieves the data using an HTTP GET request, parses it, extracts the valid data, and sends it to the control module for decryption via the interface serial port according to the data address content.

[0048] 3. Add to the receive queue. After the control module successfully parses and decrypts the data, it broadcasts a request data frame to the ZigBee module. When a node receives a data request frame, it parses it. If the parsing result matches the node's address information, it replies to the encryption and authorization modules. After receiving the data, including the configuration password and MAC address, the encryption and authorization modules add the data to the gateway module's receive queue and begin requesting data from the next node.

[0049] 4. Reception complete.

[0050] 5. Verify data integrity. The control module verifies the integrity of the data: if the verification is correct, the data is sent to the communication module via the gateway module and the switching module for transmission; if the verification fails, the data is rejected and recorded.

[0051] 6. Data forwarding. The complete data is forwarded by the switch module and the communication module.

[0052] Step two involves sending / outputting the data processed according to the protocol. For example... Figure 5 As shown, the specific process is as follows:

[0053] 1. Retrieve the first element of the transmission queue. Specifically, when selecting a transmission channel for data transmission, the gateway module retrieves the first element of the queue data and invokes the MAC layer frame indication service.

[0054] 2. MAC Layer Frame Indication. After obtaining the first element of the queue, the MAC layer frame indication service is immediately scheduled for resource scheduling, and a new data packet is added to the tail of the transmission queue.

[0055] 3. Check if the sending element is empty. If it is empty, wait for the next sending time. Specifically, the control module and gateway module check the new data packet added to the end of the queue to determine if the sending element is empty. If the sending element is empty, do not send it temporarily and wait for the next sending time.

[0056] 4. For the non-empty elements detected in the previous step, calculate the transmission delay, set the power, select the transmission channel, and set the reception protocol. The calculation of transmission delay and power setting are based on the assumption that all links in the network exchange information on the same channel, and that the channel state information from the transmitter to the receiver can be accurately measured by the receiver. However, interference can occur between communication networks during data transmission, reducing the network transmission rate and causing network congestion and delay. To solve this problem, power control is used to maximize the network transmission rate, i.e., adjusting the transmission power of each data packet to optimize the overall network transmission performance. According to Shannon's theorem, the reception rate R at gateway i... i It can be represented as:

[0057]

[0058] In the formula, p i h represents the power of the i-th data packet; ii p represents the channel gain from the i-th data packet to the i-th gateway; j h represents the power of the j-th data packet; ji This represents the channel gain from the j-th data packet to the i-th gateway; Indicates noise.

[0059] 5. Transmit data through the channel.

[0060] In summary, this invention has the following characteristics: 1) This invention designs a ZigBee module consisting of a ZigBee coordinator, a LoRa concentrator, and a Wi-Fi controller, responsible for network establishment and data conversion between different protocols, thus achieving compatibility with multiple protocols. 2) This invention is compatible with multiple protocols. Different devices use different communication networks for their communication needs. The gateway completes the protocol conversion between different networks, enabling the communication network to quickly find a suitable channel and sort the channel hopping order, improving communication efficiency. 3) The communication process of this invention utilizes the established link between nodes to access the protocol gateway, thereby achieving mutual recognition between the authorization module and the encryption module. After mutual recognition is successful, real-time encrypted data transmission can be performed. 4) This invention detects non-empty elements in the transmitted data, calculates the transmission delay, sets the power, selects the transmission channel, and sets the receiving protocol, using power control to maximize the network transmission rate.

[0061] Implementation examples of communication protocol processing methods for IoT and interactive software:

[0062] An embodiment of the communication protocol processing method for Internet of Things (IoT) and interactive software of the present invention is implemented in the same way as the communication protocol processing method for IoT and interactive software described in the embodiment of the protocol device for IoT and interactive software. Therefore, the method will not be described again in this embodiment.

Claims

1. A protocol device for Internet of Things (IoT) and interactive software, characterized in that, The protocol device includes a control module, a data interaction module, an encryption module, an authorization module, a gateway module, a switch module, and a communication module; The data interaction module is used to obtain and parse the node's data after receiving a node join request; it is connected to the control module to reassemble the parsed data and send it to the control module. The control module is used to decrypt the parsed and reassembled data. If the decryption is successful, it broadcasts a request data frame to the data interaction module. The node parses the received data request frame. If the parsing result matches the node's address information, it replies with data to the encryption module and the authorization module. After the encryption module and the authorization module receive the data configuration password and MAC address, they add the data to the gateway module's receiving queue. The received data is then subjected to integrity verification. After successful verification, the data is sent to the communication module via the gateway module and the switch module. The control module is also used to calculate the transmission delay, set the power, select the transmission channel, and set the receiving protocol when sending data. It optimizes the network transmission performance by adjusting the transmission power of each data packet and sends the data through the channel. The encryption module is used to provide a temporary key for data to authorize access; The authorization module is used to receive the temporary key from the encryption module, and achieves mutual recognition between the authorization module and the encryption module by means of the link established by the node; The communication module is used to enable communication between the protocol device and external devices, and to transmit data. The gateway module is also used to retrieve the first element of the sending queue when sending data, and to invoke the MAC layer frame indication service to perform resource scheduling, and add a new data packet to the tail of the sending queue.

2. The protocol device for Internet of Things and interactive software according to claim 1, characterized in that, The data interaction module is a ZigBee module.

3. The protocol device for Internet of Things and interactive software according to claim 2, characterized in that, The ZigBee module includes a processor unit, a data acquisition unit, a radio frequency (RF) unit, a driver unit, and an interface unit. The data acquisition unit is used to acquire data from the nodes and is connected to the processor unit to send the acquired data to the processor unit. The driver unit is used to drive the stable operation of the RF unit and the processor unit. The interface unit is connected to the processor unit.

4. The protocol device for Internet of Things and interactive software according to claim 2, characterized in that, The ZigBee module includes a ZigBee coordinator, a LoRa concentrator, and a Wi-Fi controller; the ZigBee coordinator and the Wi-Fi controller are connected by communication, and the LoRa concentrator and the Wi-Fi controller are also connected by communication.

5. The protocol device for Internet of Things and interactive software according to claim 1, characterized in that, After retrieving the first element of the sending queue, invoking the MAC layer frame indication service for resource scheduling, and adding a new data packet to the tail of the sending queue, the process further includes: Determine whether the sending element in the sending queue is empty; If the sending queue is empty, then wait for the next sending moment; If the sending queue is not empty, the sending delay is calculated, and the power is set, the sending channel is selected, the receiving protocol is set, and the data is sent through the channel.

6. The protocol device for Internet of Things and interactive software according to claim 1, characterized in that, The data interaction module is used to reassemble the parsed data into a POST request using the HTTP protocol.

7. The protocol device for Internet of Things and interactive software according to claim 1, characterized in that, After adding the data to the gateway module's receive queue, the following is also included: Start requesting data from the next node.

8. A method for processing communication protocols between the Internet of Things (IoT) and interactive software, characterized in that, Includes the following steps: 1) After receiving a request to join a node, the data of the node is obtained through the data interaction module included in the protocol device, parsed and reassembled, and then sent to the control module; 2) The control module in the protocol device decrypts the parsed and reconstructed data. If the decryption is successful, a request data frame is broadcast to the data interaction module. The node parses the received data request frame. If the parsing result matches the node's address information, it replies to the encryption module and the authorization module. After the encryption module and the authorization module receive the data configuration password and MAC address, they add the data to the gateway module's receiving queue. The received data is then checked for integrity. After the check is successful, the data is sent to the communication module in the protocol device via the gateway module and the switch module. The control module is also used to calculate the transmission delay, set the power, select the transmission channel, and set the receiving protocol when sending data. The transmission performance of the network is optimized by adjusting the transmission power of each data packet, and the data is sent through the channel. The protocol device further includes an encryption module and an authorization module; the encryption module is used to provide a temporary key for data to authorize access; the authorization module is used to receive the temporary key from the encryption module and realize mutual recognition between the authorization module and the encryption module through the link established by the nodes. The gateway module is also used to retrieve the first element of the sending queue when sending data, and to invoke the MAC layer frame indication service to perform resource scheduling, and add a new data packet to the tail of the sending queue.

9. The communication protocol processing method for IoT and interactive software according to claim 8, characterized in that, After retrieving the first element of the sending queue, invoking the MAC layer frame indication service for resource scheduling, and adding a new data packet to the tail of the sending queue, the process further includes: Determine whether the sending element in the sending queue is empty; If the sending queue is empty, then wait for the next sending moment; If the sending queue is not empty, the sending delay is calculated, and the power is set, the sending channel is selected, the receiving protocol is set, and the data is sent through the channel.

10. The communication protocol processing method for IoT and interactive software according to claim 8, characterized in that, After adding the data to the gateway module's receive queue, the following is also included: Start requesting data from the next node.

Citation Information

Patent Citations

  • Multi-chain intelligent security gateway for application of Internet of Things and implementation method of multi-chain intelligent security gateway

    CN112804310A