Internet of Things wireless communication networking transmission method, device, and computer equipment

By unpacking and automatically generating downstream commands in the gateway, and sending them directly to IoT terminal devices, the problems of long delay and high power consumption in traditional transmission methods are solved, automatic control of the gateway is realized, and the power consumption and power consumption of IoT devices are reduced. Extended battery life.

CN111918368BActive Publication Date: 2024-08-30SHENZHEN NEOWAY TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010564030.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-19
Publication Date
2024-08-30
Estimated Expiration
2040-06-19

AI Technical Summary

Technical Problem

In traditional wireless communication transmission methods, IoT devices need to go through multiple processing nodes, resulting in large processing delays and high power consumption, which affects the battery life of the device.

Method used

By receiving and unpacking the uplink messages from IoT terminal devices in the gateway, the configuration information is obtained, automatically generating downlink commands, and sent directly to the terminal devices, avoiding processing by network server nodes, and realizing automatic offline configuration and autonomous control of the gateway.

Benefits of technology

It reduces the power consumption and processing latency of IoT devices, extends the device's battery life, and reduces network packet storms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111918368B
    Figure CN111918368B
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for wireless communication networking transmission of the Internet of Things. The method is applied to a gateway, and the gateway is a gateway determined by an Internet of Things terminal device based on the response signal strength. The response signal strength is the strength of the response signal generated by at least one gateway to a message request initiated by an Internet of Things terminal device. The method includes: receiving an uplink message sent by the Internet of Things terminal device; unpacking the uplink message to obtain the uplink data sent by the Internet of Things terminal device; obtaining configuration information, and generating a corresponding downlink command based on the configuration information and the uplink data; and sending the downlink command to the corresponding Internet of Things terminal device. The use of this method can effectively eliminate the entire network data packet storm, reduce the processing delay in the entire network architecture by reducing the node transfer, and thus effectively reduce the power consumption generated by each data report of the Internet of Things device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for wireless communication networking transmission in the Internet of Things. Background Art

[0002] With the development of computer technology and the advent of the 5G era, the emergence of the Internet of Things has brought great convenience to modern life. More and more companies can use the Internet of Things platform to intelligently perceive, identify and manage a variety of devices and usage processes online. In the traditional field of the Internet of Things, LPWAN (Low-Power Wide-Area Network) communication technology is usually used, that is, a low-power wide-area network for data transmission. Among them, LoRa (Long Range Radio) long-distance radio transmission is one of the LPWAN communication technologies. It is a long-distance wireless transmission technology based on spread spectrum technology, which can provide users with a simple wireless communication method that can achieve long-distance and low-power consumption.

[0003] However, in the current wireless communication transmission mode of the Internet of Things, the uplink message sent by the IoT terminal device can only be packaged through the only registered gateway, forwarded to the network server through the gateway, unpacked and processed by the network server node, and then sent to the user data server through the network server. Downlink messages are similar. The command and other information of the user data server are packaged by the network server and then transparently transmitted to the terminal side through a gateway. As a result, the entire transmission process needs to go through multiple processing nodes, which easily causes a large processing delay in the entire network architecture, resulting in huge power consumption of IoT devices. Summary of the invention

[0004] Based on this, it is necessary to provide an Internet of Things wireless communication networking transmission method, device, computer equipment and storage medium that can reduce the power consumption of Internet of Things devices in response to the above technical problems.

[0005] A method for wireless communication networking transmission of the Internet of Things, the method being applied to a gateway, the gateway being a gateway determined by an Internet of Things terminal device based on a response signal strength, the response signal strength being the strength of a response signal generated by at least one gateway to a message request initiated by the Internet of Things terminal device, the method comprising:

[0006] Receiving an uplink message sent by the IoT terminal device;

[0007] Unpacking the uplink message to obtain uplink data sent by the IoT terminal device;

[0008] Acquire configuration information, and generate corresponding downlink commands according to the configuration information and the uplink data;

[0009] The downlink command is sent to the corresponding Internet of Things terminal device.

[0010] In one of the embodiments, before receiving the uplink message sent by the IoT terminal device, the method further includes:

[0011] Receive a message request sent by an IoT terminal device, and return corresponding protocol parameters according to the message request; the protocol parameters include a response signal strength of the gateway; the response signal strength is used by the IoT terminal device to determine the gateway to be connected;

[0012] Receive a communication request sent by the Internet of Things terminal device, and establish a communication connection with the Internet of Things terminal device according to the communication request.

[0013] In one embodiment, the configuration information is generated by:

[0014] Get the configuration item information entered by the user;

[0015] Call the preset configuration template, fill the configuration item information into the corresponding field of the preset configuration template, and generate corresponding configuration information.

[0016] In one of the embodiments, the configuration information includes downlink signal transmission time and downlink signal frequency information;

[0017] The sending of the downlink command to the corresponding Internet of Things terminal device includes:

[0018] According to the downlink signal transmission time, a corresponding response signal is transmitted to the corresponding Internet of Things terminal device according to the frequency information.

[0019] In one embodiment, after sending the downlink command to the corresponding IoT terminal device, the method further includes:

[0020] Use the MQTT protocol to receive downlink data sent by multiple data servers;

[0021] Packaging the downlink data to obtain downlink messages sent by multiple data servers;

[0022] The downlink message is sent to the corresponding IoT terminal device.

[0023] An Internet of Things wireless communication networking transmission device, the device comprising:

[0024] A receiving module, used to receive an uplink message sent by the IoT terminal device;

[0025] An unpacking module, used to unpack the uplink message to obtain the uplink data sent by the IoT terminal device;

[0026] A generating module, used to obtain configuration information, and generate corresponding downlink commands according to the configuration information and the uplink data;

[0027] The sending module is used to send the downlink command to the corresponding Internet of Things terminal device.

[0028] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0029] Receiving an uplink message sent by the IoT terminal device;

[0030] Unpacking the uplink message to obtain uplink data sent by the IoT terminal device;

[0031] Acquire configuration information, and generate corresponding downlink commands according to the configuration information and the uplink data;

[0032] The downlink command is sent to the corresponding Internet of Things terminal device.

[0033] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0034] Receiving an uplink message sent by the IoT terminal device;

[0035] Unpacking the uplink message to obtain uplink data sent by the IoT terminal device;

[0036] Acquire configuration information, and generate corresponding downlink commands according to the configuration information and the uplink data;

[0037] The downlink command is sent to the corresponding Internet of Things terminal device.

[0038] A method for wireless communication networking and transmission of Internet of Things, applied to an Internet of Things terminal device, the method comprising:

[0039] Broadcast message request;

[0040] receiving a response signal strength of at least one gateway to the message request;

[0041] Determine a target gateway from the at least one gateway according to the response signal strength;

[0042] Sending a communication request to the target gateway, and establishing a communication connection with the target gateway according to the communication request;

[0043] Sending an uplink message to the target gateway;

[0044] A downlink command returned by the target gateway is received, where the downlink command is generated according to the uplink message and configuration information.

[0045] In one of the embodiments, after receiving the response signal strength of at least one gateway device to the message request, the method further includes:

[0046] Obtain the reception time of each response signal strength;

[0047] Filter and obtain the response signal strength within a preset time range at the receiving moment;

[0048] The determining a target gateway from the at least one gateway according to the response signal strength includes:

[0049] The target gateway is determined from the at least one gateway according to the response signal strength at the receiving moment within a preset time range.

[0050] An Internet of Things wireless communication networking transmission device, the device comprising:

[0051] Broadcast module, used to broadcast message requests;

[0052] A receiving module, configured to receive a response signal strength of at least one gateway to the message request;

[0053] A determination module, configured to determine a target gateway from the at least one gateway according to the response signal strength;

[0054] An establishing module, used for sending a communication request to the target gateway, and establishing a communication connection with the target gateway according to the communication request;

[0055] A sending module, used for sending an uplink message to the target gateway;

[0056] The receiving module is further used to receive a downlink command returned by the target gateway, wherein the downlink command is generated according to the uplink message and configuration information.

[0057] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0058] Broadcast message request;

[0059] receiving a response signal strength of at least one gateway to the message request;

[0060] Determine a target gateway from the at least one gateway according to the response signal strength;

[0061] Sending a communication request to the target gateway, and establishing a communication connection with the target gateway according to the communication request;

[0062] Sending an uplink message to the target gateway;

[0063] A downlink command returned by the target gateway is received, where the downlink command is generated according to the uplink message and configuration information.

[0064] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0065] Broadcast message request;

[0066] receiving a response signal strength of at least one gateway to the message request;

[0067] Determine a target gateway from the at least one gateway according to the response signal strength;

[0068] Sending a communication request to the target gateway, and establishing a communication connection with the target gateway according to the communication request;

[0069] Sending an uplink message to the target gateway;

[0070] A downlink command returned by the target gateway is received, where the downlink command is generated according to the uplink message and configuration information.

[0071] The above-mentioned Internet of Things wireless communication networking transmission method, device, computer equipment and storage medium, by receiving the uplink message sent by the Internet of Things terminal device, unpacks the uplink message relative to the traditional Internet of Things wireless communication transmission mode, and obtains the uplink data sent by the Internet of Things terminal device. Obtain configuration information, generate corresponding downlink commands according to the configuration information and uplink data, and send the downlink commands to the corresponding Internet of Things terminal device. As a result, under the long-distance wireless transmission technology network standard based on spread spectrum technology, the gateway receives the uplink message sent by the Internet of Things terminal device, unpacks the uplink message, and obtains the uplink data sent by the Internet of Things terminal device. At the same time, the gateway can obtain the corresponding local configuration information, automatically generate the corresponding downlink command according to the configuration information and uplink data, and send the downlink command to the corresponding Internet of Things terminal device, so as to realize the gateway automatic offline configuration function and gateway autonomous control processing, without the need for processing through the network server node, and can eliminate the entire network data packet storm, thereby reducing the processing delay in the entire network architecture, that is, reducing the delay by reducing the node transfer, thereby effectively reducing the power consumption generated by each data report of the Internet of Things device, and extending the battery life of the Internet of Things device. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 This is an application environment diagram of an Internet of Things wireless communication networking transmission method in an embodiment;

[0073] Figure 2 It is a flowchart of a method for wireless communication networking and transmission of the Internet of Things in one embodiment;

[0074] Figure 3 A schematic diagram of a flow chart of a step of sending downlink data to a corresponding IoT terminal device in an embodiment;

[0075] Figure 4 A schematic diagram of a flow chart of a method for wireless communication networking and transmission of the Internet of Things in another embodiment;

[0076] Figure 5 It is a structural block diagram of an Internet of Things wireless communication networking transmission device in one embodiment;

[0077] Figure 6 It is a structural block diagram of an Internet of Things wireless communication networking transmission device in another embodiment;

[0078] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0080] The Internet of Things wireless communication networking transmission method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the Internet of Things terminal device 102 communicates with the gateway 104 through the network. The gateway 104 is a gateway determined by the Internet of Things terminal device 102 based on the response signal strength, and the response signal strength is the strength of the response signal generated by at least one gateway to the message request initiated by the Internet of Things terminal device 102. The gateway 104 receives the uplink message sent by the Internet of Things terminal device 102, unpacks the uplink message, obtains the uplink data sent by the Internet of Things terminal device 102, and obtains the configuration information. According to the configuration information and the uplink data, the gateway 104 generates the corresponding downlink command, and the gateway 104 sends the downlink command to the corresponding Internet of Things terminal device 102. Among them, the Internet of Things terminal device 102 can be, but is not limited to, various types of sensors, smart home devices, smart transportation equipment, smart medical equipment, portable wearable devices, etc., and the gateway 104 can be implemented with an independent gateway or a gateway cluster composed of multiple gateways.

[0081] In one embodiment, Figure 2 As shown, a method for wireless communication networking transmission of the Internet of Things is provided, and the method is applied to Figure 1 The gateway in the example is used for explanation, the gateway is a gateway determined by the IoT terminal device based on the response signal strength, and the response signal strength is the strength of the response signal generated by at least one gateway to the message request initiated by the IoT terminal device, including the following steps:

[0082] Step 202: Receive an uplink message sent by an IoT terminal device.

[0083] IoT terminal devices can communicate with gateways through the network and stay online through network communication connections. For example, different types of IoT terminal devices can use the operator's stable network transmission after connecting to a wireless network or local area network. IoT devices are usually deployed in a scattered manner, and the requirements for communication networks are different, especially cellular communication networks based on authorized frequency bands. Among them, cellular communication networks based on authorized frequency bands can include different cellular network communication systems such as 2G, 3G, 4G, 5G, and NB-IoT. IoT terminal devices can include various types of communication devices, sensors, actuators and other physical devices in the Internet of Things. Gateway is also called network connector and protocol converter. Gateway realizes network interconnection above the network layer. It is a complex network interconnection device that is only used for interconnection between two networks with different high-level protocols. Gateway can be used for both wide area network interconnection and local area network interconnection. Gateway is a computer system or device that performs the important task of conversion. IoT is an information carrier such as the Internet and traditional telecommunications network, which enables all ordinary objects that can perform independent functions to achieve interconnection. The IoT platform can provide real-time panoramic monitoring of all IoT devices on the platform, including panoramic monitoring of device temperature, humidity, switch status, etc. It can also batch distribute applications to a certain category, group or a single device. Enterprise tenants can use the IoT platform to intelligently perceive, identify and manage multiple devices and usage processes online. Different enterprise tenants can use the IoT platform to conduct real-time statistical analysis of device monitoring in different scenarios, and visualize the analysis results, so as to intuitively and comprehensively control the operation of all connected devices on the platform.

[0084] In the current field of the Internet of Things, LPWAN (Low-Power Wide-Area Network) communication technology is usually used, that is, a low-power wide-area network for data transmission. Among them, LoRa (Long Range Radio) long-distance radio transmission is one of the LPWAN communication technologies. It is a long-distance wireless transmission technology based on spread spectrum technology, which can provide users with a simple wireless communication method that can achieve long-distance and low-power consumption. LoRaWAN (Long Range Wide Area Network) is a low-power wide area network specification. The LoRaWAN standard stipulates that LoRaWAN terminal devices can only register one gateway. LoRaWAN terminal devices mainly run the LoRaWAN protocol and have a built-in LoRa radio frequency module. LoRaWAN terminal devices are sensors that can communicate with LoRaWAN servers. As a wireless communication base station, the LoRaWAN gateway provides LoRa wireless access and IP (Internet Protocol) backhaul communication architecture, which can provide a channel to transmit radio frequency signals between IoT terminal devices and network servers. Specifically, when a newly connected IoT terminal device needs to report real-time monitoring data, the IoT terminal device can broadcast a message request. After sending the message request in the display mode of the RF frame, after multiple gateways receive the above RF signal, the gateway returns a corresponding response signal according to the message request of the IoT terminal device. Within the response time, the IoT terminal device can determine one of the gateways as the target gateway according to the response signal strength returned by multiple gateways, that is, the IoT terminal device can send the corresponding communication connection completion message to the corresponding target gateway. When the target gateway receives the message of the completion of the communication connection returned by the IoT terminal device, the target gateway can perform data transmission with the IoT device, that is, the IoT device uses a single-hop wireless communication to connect to a specific gateway. Among them, the response signal is a feedback signal emitted in response to the RF signal sent by the IoT terminal device, and the response signal strength is the RSSI (Received Signal Strength Indicator) received signal strength indication, an optional part of the wireless transmission layer, used to determine the link quality and whether to increase the broadcast transmission strength. After the gateway establishes a communication connection with the IoT device, the gateway can receive the uplink message sent by the IoT terminal device. Among them, the uplink message is sent by the terminal device and forwarded to the network server by one or more gateways. The uplink message uses the explicit mode of the LoRa radio frame, which includes the LoRa physical layer header (PHDR), header CRC (PHDR_CRC) and message content, and the integrity check of the payload is guaranteed by CRC. The PHDR, PHDR_CRC and payload CRC fields are embedded by the radio transceiver.Uplink messages may include data reporting messages and feedback messages sent by IoT terminal devices, as well as data output messages after executing corresponding actions according to downlink commands.

[0085] Step 204: unpack the uplink message to obtain the uplink data sent by the IoT terminal device.

[0086] After the gateway receives the uplink message sent by the object to the networked terminal device, the gateway can unpack the uplink message to obtain the uplink data sent by the IoT terminal device. In the traditional IoT field, the main functions of the standard gateway include RF demodulation function and UDP protocol (UDP, User Datagram Protocol) sending function, and the configuration information of the standard LoRaWAN gateway needs to be issued from the LoRaWAN network server. The role of the standard gateway is a transparent bridge, which is used to relay messages between the terminal device and the LoRaWAN network server. In addition to the functions of the above-mentioned standard gateway, the gateway in this solution also has new unpacking and packaging functions. Specifically, the local LoRaWAN protocol packaging and unpacking functions can be configured in each independent gateway in advance, and various commonly used downlink configuration item information can be predefined, such as downlink transmission timing, frequency information, etc., thereby obtaining a LoRaWAN gateway enhancement with packaging and unpacking functions. Furthermore, when the gateway receives the uplink message sent by the object to the networked terminal device, the gateway can unpack the uplink message according to the local LoRaWAN protocol to obtain the corresponding uplink data sent by the IoT terminal device. Among them, the data in an uplink packet or a downlink packet may include information such as the terminal device identification, i.e., the ID of the terminal device, the sequence number of the data packet, the uplink message confirmation mode, and the user's encrypted load. For example, when the gateway receives an uplink message sent by an Internet-connected terminal device, the gateway can unpack the uplink message according to the local protocol, and after unpacking, obtain the message confirmation mode corresponding to the Internet of Things device, i.e., whether a reply confirmation is required. The message confirmation mode may include a non-confirmation packet and a confirmation packet. When the gateway unpacks the uplink message according to the local protocol and obtains that the data packet is a non-confirmation packet, the gateway does not need to return the corresponding confirmation message and waits to receive the data transmitted by the Internet of Things terminal device. When the gateway unpacks the uplink message according to the local protocol and obtains that the data packet is a confirmation packet, the gateway needs to return the corresponding confirmation message based on the unpacked information.

[0087] Step 206, obtaining configuration information, and generating corresponding downlink commands according to the configuration information and uplink data.

[0088] When the gateway unpacks the uplink message and obtains the uplink data sent by the IoT terminal device, the gateway can obtain the relevant local configuration information and automatically generate the corresponding downlink command based on the configuration information and the unpacked uplink data. The configuration information can be various downlink configuration item information predefined in advance according to user needs, and the relevant configuration item information can include downlink transmission timing, frequency and other information. The gateway can obtain the local predefined configuration information and automatically generate the corresponding downlink command based on the uplink data sent by the IoT terminal device currently collected and the autonomous computing and processing capabilities of the gateway itself. The downlink command can include the corresponding frequency information and the timing of sending the downlink command.

[0089] Step 208: Send the downlink command to the corresponding IoT terminal device.

[0090] After the gateway obtains the configuration information and generates the corresponding downlink command according to the configuration information and the uplink data, the gateway can send the downlink command to the corresponding IoT terminal device according to the frequency information in the downlink command and the transmission timing of the downlink signal. For example, the gateway automatically generates the corresponding downlink command according to the local configuration information and the uplink data by obtaining the local configuration information. The frequency information contained in the downlink command is 50Hz, and the transmission timing of the downlink signal is delayed by 60s. Then, after the gateway delays the transmission timing of the downlink signal by 60s, the gateway transmits the corresponding downlink signal to the IoT terminal device according to the frequency information 50Hz, that is, the gateway sends the downlink command to the corresponding IoT terminal device.

[0091] In the traditional IoT field, after the IoT terminal device sends the uplink message to the gateway, it is encapsulated into an IP packet by the gateway and then sent to the network server for unpacking and processing. At the same time, downlink commands and other information also need to be packaged and processed by the network server before being transparently transmitted to the terminal device side through the gateway. Among them, the network server needs to unpack and process the uplink message sent by each IoT terminal device, which is easy to cause a storm of data packets in the entire network. At the same time, the entire transmission process needs to go through multiple processing nodes, which makes the processing delay in the entire network architecture very large, resulting in huge power consumption of IoT terminal devices.

[0092] In this embodiment, by receiving the uplink message sent by the IoT terminal device, the uplink message is unpacked relative to the traditional IoT wireless communication transmission mode to obtain the uplink data sent by the IoT terminal device. The configuration information is obtained, and the corresponding downlink command is generated according to the configuration information and the uplink data, and the downlink command is sent to the corresponding IoT terminal device. As a result, in the long-distance wireless transmission technology network standard based on spread spectrum technology, the gateway receives the uplink message sent by the IoT terminal device, unpacks the uplink message, and obtains the uplink data sent by the IoT terminal device. At the same time, the gateway can obtain the corresponding local configuration information, automatically generate the corresponding downlink command according to the configuration information and the uplink data, and send the downlink command to the corresponding IoT terminal device, so as to realize the gateway automatic offline configuration function and the gateway autonomous control processing, without the need for processing through the network server node, and can eliminate the entire network data packet storm, thereby reducing the processing delay in the entire network architecture, that is, reducing the delay by reducing the node transfer, thereby effectively reducing the power consumption generated by each data report of the IoT device, and extending the battery life of the IoT device.

[0093] In one embodiment, before receiving the uplink message sent by the IoT terminal device, the method further includes the step of establishing a communication connection with the IoT terminal device according to the communication request, specifically including:

[0094] Receive the message request sent by the IoT terminal device, and return the corresponding protocol parameters according to the message request. The protocol parameters include the response signal strength of the gateway. The response signal strength is used by the IoT terminal device to determine the gateway to connect to.

[0095] Receive a communication request sent by an IoT terminal device, and establish a communication connection with the IoT terminal device according to the communication request.

[0096] Before the gateway receives the uplink message sent by the IoT terminal device, when the newly connected IoT device needs to report the real-time monitoring data, the IoT terminal device can broadcast a message request so that multiple gateways can receive the message request sent by the IoT terminal device, and each gateway device can return the corresponding protocol parameters according to the message request, wherein the protocol parameters include the response signal strength of the gateway, and the response signal strength is used by the IoT terminal device to determine the gateway to be connected. Since the LoRaWAN standard stipulates that the terminal device can only register one gateway, the IoT terminal device needs to screen the target gateway to be connected from multiple gateways that return response signals. When one of the gateways receives the communication request sent by the IoT terminal device, the gateway can establish a communication connection with the IoT terminal device according to the communication request to transmit data. In addition, when the target gateway cannot respond to the message sent by the IoT terminal device, that is, when the target gateway may fail, the IoT device can re-broadcast the message request and re-determine the target gateway to be connected. As a result, the IoT terminal device can establish a communication connection with different gateways, and the unpacking and packaging operations can be realized through the independent operation of the gateway, without the need for centralized processing by the network server node, thereby effectively eliminating the entire network data packet storm and reducing the processing delay on the entire network architecture.

[0097] In one embodiment, the steps of generating configuration information include:

[0098] Get the configuration item information entered by the user.

[0099] Call the preset configuration template, fill in the configuration item information into the corresponding field of the preset configuration template, and generate the corresponding configuration information.

[0100] When the gateway receives the uplink message sent by the IoT terminal device, unpacks the uplink message, and obtains the uplink data sent by the IoT terminal device, the gateway can obtain the corresponding local configuration information, and automatically generate the corresponding downlink command according to the configuration information and the unpacked uplink data. Specifically, the gateway can obtain the configuration item information input by the user in advance, call the preset configuration template, fill the configuration item information into the field corresponding to the preset configuration template, and generate the corresponding configuration information. The gateway stores the configuration item information input by the user for different IoT devices locally. The gateway can obtain the corresponding configuration item information input by the user according to the terminal identification corresponding to the IoT terminal device. The configuration item information may include information such as the timing and frequency of downlink signal transmission. For example, the gateway obtains the corresponding configuration item information according to the terminal identification of the IoT terminal device, which is the frequency of 50Hz, and the timing of downlink signal transmission is to send immediately. Then the gateway calls the preset configuration template, fills the above configuration item information into the field corresponding to the preset configuration template, and generates the configuration information corresponding to the terminal identification of the IoT device. This allows the gateway to unpack the uplink messages sent by IoT terminal devices, and at the same time, it can autonomously process them according to local configuration information and automatically generate corresponding downlink commands without the need to transparently transmit them to the network server for unpacking and processing, greatly shortening the configuration cycle and effectively reducing the processing delay in the entire network architecture.

[0101] In one of the embodiments, the configuration information includes the transmission time of the downlink signal and the frequency information of the downlink signal. Specifically, when the gateway receives the uplink message sent by the IoT terminal device, unpacks the uplink message, and obtains the uplink data sent by the IoT terminal device, the gateway can obtain the corresponding local configuration information according to the terminal identifier of the IoT terminal device. Further, the gateway can superimpose the corresponding configuration information in the local gateway according to the currently collected uplink data, and generate the corresponding downlink command through the autonomous calculation of the gateway. The downlink command may include the corresponding frequency information and the timing of the downlink signal transmission. For example, the gateway superimposes the corresponding configuration information in the local gateway according to the currently collected uplink data, and generates the corresponding downlink command through the autonomous calculation of the gateway. The frequency information contained in the downlink command is 50Hz, and the transmission timing of the downlink signal is to be transmitted after a delay of 10s. Then, after the gateway delays 10 seconds according to the transmission timing of the downlink signal, the gateway transmits the corresponding downlink signal to the IoT terminal device according to the frequency information 50Hz, that is, the gateway sends the downlink command to the corresponding IoT terminal device. Among them, the transmission time of the downlink command is automatically sorted by the gateway according to the terminal identifications of the multiple IoT terminal devices currently being processed, and the corresponding downlink signal transmission time is generated. For example, if the uplink messages sent by the two IoT terminal devices processed by the gateway at the same time need to return the corresponding confirmation signal immediately, the gateway can sort them according to the terminal identifications of the IoT terminal devices, and the downlink signal transmission time corresponding to the second IoT terminal device can be delayed by 3s. As a result, the gateway does not need to interact with other nodes, that is, there is no need for the gateway to transparently transmit the uplink message to the network server for processing, and autonomous control and processing can be achieved, thereby reducing the processing delay in the entire network architecture, thereby effectively reducing the power consumption generated by each IoT device reporting data.

[0102] In one embodiment, Figure 3 As shown, the steps of sending downlink data to the corresponding IoT terminal device include:

[0103] Step 302: Receive downlink data sent by multiple data servers using the MQTT protocol.

[0104] Step 304, encapsulate the downlink data to obtain downlink messages sent by multiple data servers.

[0105] Step 306: Send the downlink message to the corresponding IoT terminal device.

[0106] After the gateway sends the downlink command to the corresponding IoT terminal device, the gateway can also use the MQTT protocol to receive downlink data sent by multiple data servers. That is, when the user data server has a temporary and sudden downlink communication demand, the user data server can use the MQTT protocol to send downlink information to multiple gateway nodes. The gateway packages the received downlink data and obtains the downlink messages sent by multiple data servers. The gateway sends the downlink messages to the corresponding IoT terminal device according to the local protocol. Among them, MQ Telemetry Transport (MQTT) is a lightweight message transmission protocol based on proxy publish / subscribe. It uses the publish / subscribe message mode to provide one-to-many message publishing and decouple applications. The MQTT communication protocol can upgrade the original 1:1 single-point communication mechanism to a 1:M communication mode. That is, at the same time, the same message body can notify multiple gateways. As a result, the user data server node increases network redundancy and reduces packet loss rate through the 1:M communication mechanism, thereby effectively improving the reliability of the downlink wireless network.

[0107] In one embodiment, Figure 4 As shown, a method for wireless communication networking transmission of the Internet of Things is provided, and the method is applied to Figure 1 The IoT terminal device in the example is used as an example to illustrate, including the following steps:

[0108] Step 402, broadcast message request.

[0109] Step 404: Receive the response signal strength of at least one gateway to the message request.

[0110] Step 406: determine a target gateway from at least one gateway according to the response signal strength.

[0111] Step 408: Send a communication request to the target gateway, and establish a communication connection with the target gateway according to the communication request.

[0112] Step 410: Send an uplink message to a target gateway.

[0113] Step 412: Receive a downlink command returned by the target gateway, where the downlink command is generated based on the uplink message and configuration information.

[0114] The IoT terminal device can communicate with the gateway through the network based on the LoRa transmission technology and maintain an online state through the wireless network communication connection. Specifically, when the newly connected IoT terminal device needs to report real-time monitoring data, the IoT terminal device can broadcast a message request. After sending the message request in the display mode of the radio frequency signal, after multiple gateways receive the above radio frequency signal, each gateway can return a corresponding response signal according to the message request of the IoT terminal device. After the IoT terminal device receives the response signal of at least one gateway to the message request, within the preset response time range, the IoT terminal device determines the target gateway according to the response signal strength returned by each gateway. The IoT terminal device sends a communication request to the target gateway, that is, when the target gateway receives the communication request returned by the IoT terminal device, the IoT terminal device establishes a communication connection with the target gateway. Since the LoRaWAN standard stipulates that the terminal device can only register one gateway, the IoT terminal device needs to select the gateway to be connected from multiple gateways that return response signals. After the IoT terminal device establishes a communication connection with the target gateway, the IoT terminal device can send an uplink message to the target gateway. The gateway can unpack the received uplink message and automatically generate a corresponding downlink command based on the uplink parameters and local configuration information. The gateway sends the downlink command to the corresponding gateway according to the downlink signal transmission time, that is, the IoT terminal device receives the downlink command returned by the target gateway.

[0115] In this embodiment, by broadcasting a message request, relative to the traditional wireless communication transmission mode of the Internet of Things, the response signal strength of at least one gateway to the message request is received, the target gateway is determined from at least one gateway according to the response signal strength, a communication request is sent to the target gateway, and a communication connection is established with the target gateway according to the communication request. An uplink message is sent to the target gateway, and a downlink command returned by the target gateway is received, and the downlink command is generated according to the uplink message and configuration information. As a result, under the long-distance wireless transmission technology network standard based on spread spectrum technology, the Internet of Things terminal device uses single-hop wireless communication to connect to one or more gateways, and the gateway can autonomously control and process the uplink message sent by the Internet of Things device, and return the automatically generated downlink command to the corresponding Internet of Things terminal device, without the need for processing through the network server node, which can effectively eliminate the entire network data packet storm, thereby reducing the processing delay in the entire network architecture, that is, reducing the delay by reducing the node transfer, thereby effectively reducing the power consumption generated by each data report of the Internet of Things device, and extending the battery life of the Internet of Things device.

[0116] In one embodiment, the step of determining the target gateway according to the response signal strength includes:

[0117] Get the reception time of each response signal strength.

[0118] The response signal strength within a preset time range at the receiving moment is screened and obtained.

[0119] The target gateway is determined from at least one gateway according to the response signal strength at the receiving moment within a preset time range.

[0120] When a newly connected IoT terminal device needs to report real-time monitoring data, the IoT terminal device can broadcast a message request. After sending the message request in the display mode of a radio frequency signal, after multiple gateways receive the above radio frequency signal, each gateway can return a corresponding response signal according to the message request of the IoT terminal device. After the IoT terminal device receives the response signals of multiple gateway devices to the message request, the IoT terminal device can obtain the reception time of each response signal strength, and the IoT terminal device screens the response signal strength within the preset time range at the above reception time. The IoT terminal device determines the target gateway from at least one gateway according to the response signal strength at the reception time within the preset time range. For example, the preset response time range corresponding to a certain IoT device is 30s. After the IoT terminal device receives the response signals returned by the three gateway devices to the message request, the IoT terminal device can obtain the receiving time corresponding to each response signal strength, which is gateway 1: 26s, gateway 2: 29s and gateway 3: 40s respectively. Then the IoT terminal device selects the response signal strengths within the preset time range as the response signal strengths corresponding to gateway 1 and gateway 2. The IoT terminal device determines the target gateway according to the response signal strengths within the preset time range. For example, if the response signal strength corresponding to gateway 1 is -100dBm and the response signal strength corresponding to gateway 2 is -108dBm, the IoT terminal device selects the gateway with the largest response signal strength within the preset time range as the target gateway. Since -100dBm>-108dBm, the IoT terminal device determines the target gateway to be gateway 1. In this way, the IoT terminal device can use single-hop wireless communication to connect to the gateway with the relatively best wireless signal quality by broadcasting message requests. Through autonomous control and processing by the gateway, the entire network data packet storm can be eliminated, thereby reducing the processing delay in the entire network architecture.

[0121] It should be understood that although Figure 1-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-4At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0122] In one embodiment, Figure 5 As shown, a wireless communication networking transmission device for the Internet of Things is provided, including: a receiving module 502, an unpacking module 504, a generating module 506 and a sending module 508, wherein:

[0123] The receiving module 502 is used to receive an uplink message sent by an IoT terminal device.

[0124] The unpacking module 504 is used to unpack the uplink message to obtain the uplink data sent by the IoT terminal device.

[0125] The generating module 506 is used to obtain configuration information, and generate corresponding downlink commands according to the configuration information and uplink data.

[0126] The sending module 508 is used to send the downlink command to the corresponding Internet of Things terminal device.

[0127] In one embodiment, the device further includes: an establishing module.

[0128] The receiving module is also used to receive a message request sent by an IoT terminal device, and return corresponding protocol parameters according to the message request. The protocol parameters include the response signal strength of the gateway, and the response signal strength is used by the IoT terminal device to determine the gateway to be connected. The establishing module is used to receive a communication request sent by an IoT terminal device, and establish a communication connection with the IoT terminal device according to the communication request.

[0129] In one embodiment, the device further includes: an acquisition module.

[0130] The acquisition module is used to acquire the configuration item information input by the user. The generation module is also used to call the preset configuration template, fill the configuration item information into the corresponding field of the preset configuration template, and generate the corresponding configuration information.

[0131] In one embodiment, the device further includes: a transmitting module.

[0132] The transmitting module is used to transmit the corresponding response signal to the corresponding IoT terminal device according to the downlink signal transmission time and frequency information.

[0133] In one embodiment, the device further includes: a packaging module.

[0134] The receiving module is also used to receive downlink data sent by multiple data servers using the MQTT protocol. The packaging module is used to package the downlink data to obtain downlink messages sent by multiple data servers. The sending module is also used to send the downlink messages to the corresponding IoT terminal devices.

[0135] In one embodiment, Figure 6 As shown, a wireless communication networking transmission device for the Internet of Things is provided, including: a broadcast module 602, a receiving module 604, a determining module 606, an establishing module 608 and a sending module 610, wherein:

[0136] The broadcast module 602 is used to broadcast a message request.

[0137] The receiving module 604 is configured to receive a response signal strength of at least one gateway to a message request.

[0138] The determination module 606 is configured to determine a target gateway from at least one gateway according to the response signal strength.

[0139] The establishing module 608 is used to send a communication request to the target gateway and establish a communication connection with the target gateway according to the communication request.

[0140] The sending module 610 is used to send an uplink message to a target gateway.

[0141] The receiving module 604 is further used to receive a downlink command returned by the target gateway, where the downlink command is generated according to the uplink message and configuration information.

[0142] In one embodiment, the device further includes: a screening module.

[0143] The screening module is used to obtain the reception time of each response signal strength, and screen the response signal strength within the preset time range. The determination module is also used to determine the target gateway from at least one gateway according to the response signal strength within the preset time range.

[0144] For the specific definition of the Internet of Things wireless communication networking transmission device, please refer to the definition of the Internet of Things wireless communication networking transmission method above, which will not be repeated here. Each module in the above-mentioned Internet of Things wireless communication networking transmission device can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0145] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for wireless communication networking and transmission of the Internet of Things is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0146] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0147] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned method embodiments when executing the computer program.

[0148] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0149] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0150] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for wireless communication networking and transmission of Internet of Things, characterized in that: The method is applied to a gateway, the gateway being a gateway determined by an IoT terminal device based on a response signal strength at a reception time within a preset time range, the response signal strength being the strength of a response signal generated by at least one gateway to a message request initiated by the IoT terminal device, the response signal being a feedback signal emitted in response to a radio frequency signal sent by the IoT terminal device, the method comprising: Receiving a message request sent by the IoT terminal device in a display mode of a radio frequency frame, and returning corresponding protocol parameters according to the message request; the protocol parameters include a response signal strength of the gateway; and the reception time of the response signal strength is within a preset time range; Receiving a communication request sent by the IoT terminal device, and establishing a communication connection with the IoT terminal device according to the communication request; Receiving an uplink message sent by the IoT terminal device; Unpacking the uplink message according to the local LoRaWAN protocol to obtain the uplink data sent by the IoT terminal device; According to the terminal identification of the IoT terminal device, the corresponding local configuration information is obtained, and according to the various downlink configuration item information in the configuration information and the uplink data, a corresponding downlink command is generated; the downlink command includes frequency information and a transmission time of the downlink command; wherein the transmission time of the downlink command is a downlink signal transmission time generated by the gateway after automatically sorting the terminal identifications of the multiple IoT terminal devices currently being processed; Sending the downlink command to the corresponding Internet of Things terminal device according to the downlink signal transmission time; or Use the MQTT protocol to receive downlink data sent by multiple data servers; Packaging the downlink data to obtain downlink messages sent by multiple data servers; The downlink message is sent to the corresponding IoT terminal device.

2. The method according to claim 1, characterized in that The response signal strength is used by the IoT terminal device to determine the gateway to connect to.

3. The method according to claim 1, characterized in that The configuration information is generated in a manner including: Get the configuration item information entered by the user; Call the preset configuration template, fill the configuration item information into the corresponding field of the preset configuration template, and generate corresponding configuration information.

4. The method according to claim 3, characterized in that The configuration information includes downlink signal transmission time and downlink signal frequency information; The sending of the downlink command to the corresponding Internet of Things terminal device includes: According to the downlink signal transmission time, a corresponding response signal is transmitted to the corresponding Internet of Things terminal device according to the frequency information.

5. A method for wireless communication networking and transmission of Internet of Things, characterized in that: Applied to an IoT terminal device, the method comprises: Broadcast message request; receiving a response signal strength of at least one gateway to the message request; Determine a target gateway from the at least one gateway according to the response signal strength; Sending a communication request to the target gateway, and establishing a communication connection with the target gateway according to the communication request; Sending an uplink message to the target gateway; Receive a downlink command returned by the target gateway, wherein the downlink command is generated according to the uplink message and configuration information; the downlink command includes frequency information and a transmission time of the downlink command; wherein the transmission time of the downlink command is a downlink signal transmission time generated by the gateway after automatically sorting the terminal identifiers of a plurality of IoT terminal devices currently being processed.

6. The method according to claim 5, characterized in that After receiving the response signal strength of at least one gateway device to the message request, the method further includes: Obtain the reception time of each response signal strength; Filter and obtain the response signal strength within a preset time range at the receiving moment; The determining a target gateway from the at least one gateway according to the response signal strength includes: The target gateway is determined from the at least one gateway according to the response signal strength at the receiving moment within a preset time range.

7. An Internet of Things wireless communication networking transmission device, characterized in that: The device comprises: A receiving module, used to receive a message request sent by an IoT terminal device in a display mode of a radio frequency frame, and return corresponding protocol parameters according to the message request; the protocol parameters include a response signal strength of a gateway; and the reception time of the response signal strength is within a preset time range; Receive a communication request sent by the IoT terminal device, and establish a communication connection with the IoT terminal device according to the communication request; receive an uplink message sent by the IoT terminal device; An unpacking module is used to unpack the uplink message according to the local LoRaWAN protocol to obtain the uplink data sent by the IoT terminal device; A generation module, used to obtain the corresponding local configuration information according to the terminal identification of the Internet of Things terminal device, and generate a corresponding downlink command according to various downlink configuration item information in the configuration information and the uplink data; the downlink command includes frequency information and a transmission time of the downlink command; wherein the transmission time of the downlink command is a downlink signal transmission time generated by the gateway after automatically sorting the terminal identifications of multiple Internet of Things terminal devices currently being processed; A sending module, used to send the downlink command to the corresponding Internet of Things terminal device according to the downlink signal transmission time; The receiving module is also used to receive downlink data sent by multiple data servers using the MQTT protocol; A packaging module, used for packaging the downlink data to obtain downlink messages sent by multiple data servers; The sending module is also used to send the downlink message to the corresponding Internet of Things terminal device.

8. An Internet of Things wireless communication networking transmission device, characterized in that: The device comprises: Broadcast module, used to broadcast message requests; A receiving module, configured to receive a response signal strength of at least one gateway to the message request; A determination module, configured to determine a target gateway from the at least one gateway according to the response signal strength; An establishing module, used for sending a communication request to the target gateway, and establishing a communication connection with the target gateway according to the communication request; A sending module, used for sending an uplink message to the target gateway; The receiving module is also used to receive a downlink command returned by the target gateway, wherein the downlink command is generated based on the uplink message and configuration information; the downlink command includes frequency information and the transmission time of the downlink command; wherein the transmission time of the downlink command is the downlink signal transmission time generated by the gateway after automatically sorting the terminal identifiers of multiple IoT terminal devices currently being processed.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 or 5 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 or 5 to 6 are implemented.

Citation Information

Patent Citations

  • Smart home system and control method thereof

    CN108693777A

  • Intelligent equipment control method, ZigBee gateway and storage medium

    CN108924906A

  • E-mail sending method, system, computer device and storage medium

    CN109104360A

  • Community access control system, adaptation method and internet-of-things gateway

    CN109147118A

  • Intelligent door lock networking method, device and intelligent door lock

    CN109257803A