Parameter adjustment method, device and equipment, and training system for LoRa parameter adjustment algorithm

Through the LoRa parameter adjustment algorithm training system, the parameters of LoRa terminal equipment are monitored and adjusted, which solves the data packet collision problem caused by the increase in the number of LoRa terminal equipment and improves communication accuracy and adaptability.

CN115442830BActive Publication Date: 2024-09-20ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211057615.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2024-09-20
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

The increase in the number of LoRa terminal devices has led to an increase in the probability of data packet collisions. Existing technologies are difficult to effectively solve the collision problem and affect transmission accuracy.

Method used

A training system for LoRa parameter adjustment algorithm is designed. Through the terminal side host computer, gateway side host computer, collision monitoring platform and multiple terminal software radio peripherals, it generates and adjusts LoRa data packets, monitors and counts collisions, and uses LoRa The parameter adjustment algorithm adjusts terminal parameters based on collision statistics to reduce collisions.

Benefits of technology

The accuracy and adaptability of the LoRa parameter adjustment algorithm are improved, and parameters can be optimized in multiple terminal devices and various interference scenarios, reducing data packet collisions and improving communication efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442830B
    Figure CN115442830B
Patent Text Reader

Abstract

The present application discloses a parameter adjustment method, device and equipment, and a training system for a LoRa parameter adjustment algorithm, the system comprising a terminal-side host computer for generating node data and sending the node data to a collision monitoring platform, a gateway-side host computer for parsing LoRa data packets received by a gateway software radio peripheral, and sending the parsing results to the collision monitoring platform, a collision monitoring platform for determining collision statistics and sending the collision statistics to the gateway-side host computer, a gateway software radio peripheral for receiving LoRa data packets, and a terminal software radio peripheral for generating LoRa data packets according to node data; the gateway-side host computer is used to use the LoRa parameter adjustment algorithm to generate an adjustment command for adjusting the parameters in the terminal-side host computer and the terminal software radio peripheral according to the collision statistics, until the preset conditions are met. It can be seen that the present application can better train the LoRa parameter adjustment algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of LoRa technology, and more specifically, to a parameter adjustment method, device and equipment, and a training system for a LoRa parameter adjustment algorithm. Background Art

[0002] LoRa is a low-power IoT communication technology that can achieve long-distance transmission. It is widely used in enterprises and institutions with low power consumption, self-organizing network and other requirements. With the continuous increase of LoRa terminal devices, it has brought certain pressure to LoRa gateway devices. In addition, the increase of LoRa terminal devices has led to an increasing probability of collision between LoRa data packets, resulting in transmission errors.

[0003] Based on this, in order to solve the above problems, a LoRa parameter adjustment algorithm that can adjust the parameters of the LoRa terminal device to reduce the probability of collision or avoid the recurrence of collision can be introduced. The key to the LoRa parameter adjustment algorithm is to determine the accurate LoRa terminal parameters. Therefore, a technical solution for training the LoRa parameter adjustment algorithm is urgently needed to improve the accuracy of the LoRa terminal parameters determined by the LoRa parameter adjustment algorithm. Summary of the invention

[0004] In view of this, the present application provides a parameter adjustment method, apparatus and device, and a training system for a LoRa parameter adjustment algorithm, which are used to improve the accuracy of the LoRa parameter adjustment algorithm in determining the LoRa terminal parameters.

[0005] In order to achieve the above objectives, the proposed solution is as follows:

[0006] A training system for a LoRa parameter adjustment algorithm, comprising a terminal-side host computer, a gateway-side host computer, a collision monitoring platform, a gateway software radio peripheral and a plurality of terminal software radio peripherals;

[0007] The terminal-side host computer is used to generate multiple node data and send each of the node data to the collision monitoring platform, wherein each node data has a unique corresponding terminal software radio peripheral;

[0008] Each of the terminal software radio peripherals is used to generate a LoRa data packet according to the node data corresponding to the terminal software radio peripheral;

[0009] The gateway software radio peripheral is used to receive the LoRa data packet sent by each terminal software radio peripheral;

[0010] The gateway-side host computer is used to parse each LoRa data packet received by the gateway software radio peripheral, obtain a parsing result, and send the parsing result to the collision monitoring platform;

[0011] The collision monitoring platform is used to determine the collision statistics results according to each of the node data and the analysis results, and send the collision statistics results to the host computer on the gateway side;

[0012] The gateway side host computer is used to generate an adjustment command based on the collision statistical result using the LoRa parameter adjustment algorithm, and the adjustment command is used to adjust the parameters in the terminal side host computer and the terminal software radio peripheral until the collision statistical result generated by the collision monitoring platform meets the preset conditions.

[0013] Optionally, a plurality of virtual nodes are created in the terminal-side host computer, and each virtual node corresponds to each terminal software radio peripheral one by one;

[0014] Each of the virtual nodes is used to generate node data corresponding to the virtual node, and the node data corresponds to the terminal software radio peripheral corresponding to the virtual node.

[0015] Optionally, each of the virtual nodes has a corresponding identifier;

[0016] Each of the terminal software radio peripherals includes a data packet generation module;

[0017] The data packet generation module is used to generate a LoRa data packet according to the node data generated by the virtual node corresponding to the terminal software radio peripheral, wherein the LoRa data packet is encapsulated in the LoRa format and contains an identifier corresponding to the virtual node.

[0018] Optionally, the collision monitoring platform includes a collision result statistics module;

[0019] The collision result statistics module is used to compare the multiple node data and the analysis results, determine whether a collision occurs during the sending of the LoRa data packet, and if a collision occurs, determine the identifier, collision type and number of collisions of the virtual node where the collision occurs, and update the collision statistics according to the identifier, collision type and number of collisions of the virtual node where the collision occurs.

[0020] Optionally, the collision monitoring platform includes a node data statistics module;

[0021] The node data statistics module is used to update the preset node data volume after receiving the node data, and determine whether the value corresponding to the node data volume exceeds a first threshold value. If it exceeds the first threshold value, the collision statistics result is sent to the host computer on the gateway side, and the node data volume and the collision statistics result are cleared. The node data volume indicates the amount of node data received by the collision monitoring platform after the latest collision statistics result is sent.

[0022] Optionally, the gateway-side host computer includes a training data input module and a command sending module;

[0023] The training data input module is used to input the received collision statistics results into the LoRa parameter adjustment algorithm, so that the LoRa parameter adjustment algorithm determines the virtual nodes of the parameters to be adjusted, and generates node parameters corresponding to each virtual node of the parameters to be adjusted;

[0024] The command sending module is used to determine the virtual node corresponding to the newly generated parsing result after the LoRa parameter adjustment algorithm generates the node parameters corresponding to each virtual node of the parameter to be adjusted, and generate an adjustment command according to the node parameters corresponding to the virtual node, and send the adjustment command to the virtual node to adjust the parameters of the virtual node and the parameters of the terminal software radio peripheral corresponding to the virtual node.

[0025] A parameter adjustment method, comprising:

[0026] Obtain collision statistics, where the collision statistics include the identification, collision type, and collision number of one or more LoRa terminals that collided;

[0027] The LoRa parameter adjustment algorithm trained by the training system of any one of claims 1 to 6 generates LoRa terminal parameters according to the collision statistics, wherein the LoRa terminal parameters include the terminal bandwidth and terminal spreading factor corresponding to each LoRa terminal that needs to adjust the parameters;

[0028] Generate an adjustment command according to the LoRa terminal parameters;

[0029] The adjustment command is sent to the LoRa terminal that needs to adjust the parameters, so that each LoRa terminal that needs to adjust the parameters updates the terminal bandwidth and the terminal spreading factor according to the adjustment command.

[0030] Optionally, the LoRa parameter adjustment algorithm includes a scoring layer and a parameter determination layer;

[0031] Generate LoRa terminal parameters according to the collision statistics using the LoRa parameter adjustment algorithm, including:

[0032] Using the scoring layer, scoring each LoRa terminal according to the collision statistics;

[0033] The parameter determination layer is used to determine the target LoRa terminal that needs to adjust parameters according to the scores corresponding to each LoRa terminal, and the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal is selected from the preset terminal bandwidths and terminal spreading factors, and the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal is used as the LoRa terminal parameter.

[0034] A parameter adjustment device, comprising:

[0035] A statistical result acquisition unit, used to acquire collision statistical results, wherein the collision statistical results include the identification, collision type and collision number of one or more LoRa terminals that collided;

[0036] A parameter generating unit, configured to generate LoRa terminal parameters according to the collision statistics using the LoRa parameter adjustment algorithm trained by the training system of the LoRa parameter adjustment algorithm according to any one of claims 1 to 6, wherein the LoRa terminal parameters include the terminal bandwidth and the terminal spreading factor corresponding to each LoRa terminal that needs to adjust the parameters;

[0037] A command generating unit, used to generate an adjustment command according to the LoRa terminal parameters;

[0038] The command sending unit is used to send the adjustment command to the LoRa terminal that needs to adjust the parameters, so that each LoRa terminal that needs to adjust the parameters updates the terminal bandwidth and the terminal spreading factor according to the adjustment command.

[0039] A parameter adjustment device, comprising a memory and a processor;

[0040] The memory is used to store programs;

[0041] The processor is used to execute the program to implement each step of the above parameter adjustment method.

[0042] A readable storage medium stores a computer program, and when the computer program is executed by a processor, each step of the parameter adjustment method described above is implemented.

[0043] It can be seen from the above technical solution that the training system of the LoRa parameter adjustment algorithm provided in this application is composed of a terminal side host computer, a gateway side host computer, a collision monitoring platform, a gateway software radio peripheral and a plurality of terminal software radio peripherals. Based on this, a plurality of terminal software radio peripherals can simulate a plurality of LoRa terminal devices; the terminal side host computer is used to generate a plurality of node data and send each of the node data to the collision monitoring platform, wherein each node data has a unique corresponding terminal software radio peripheral; each of the terminal software radio peripherals is used to generate a LoRa data packet according to the node data corresponding to the terminal software radio peripheral; the gateway software radio peripheral is used to receive the LoRa data packet sent by each of the terminal software radio peripherals; the gateway side host computer is used to parse each LoRa data packet received by the gateway software radio peripheral, obtain the parsing result, and send the parsing result to the collision monitoring platform; the collision monitoring platform is used to determine the collision statistics according to each of the node data and the parsing result, and send the collision statistics to the gateway side host computer; the gateway side host computer is used to use LoRa The parameter adjustment algorithm generates an adjustment command according to the collision statistics, and the adjustment command is used to adjust the parameters in the terminal side host computer and the terminal software radio peripheral until the collision statistics generated by the collision monitoring platform meets the preset conditions. Based on this, the situation where there are multiple LoRa terminal devices can be simulated to train the LoRa parameter adjustment algorithm, and a LoRa parameter adjustment algorithm that can adjust the parameters of each LoRa terminal device in the presence of multiple LoRa terminal devices to reduce collisions can be obtained.

[0044] In addition, in the process of generating collision statistics, since each terminal software radio peripheral is an entity, it can be placed in various types of real interference scenarios, so that the trained LoRa parameter adjustment algorithm can adapt to various types of usage scenarios. For example, the distance of each terminal software radio peripheral can be adjusted, and environmental interference factors such as electromagnetic influence and electric field influence can be added, that is, each terminal software radio is placed in an environment with large electromagnetic changes or large electric field forces. On this basis, more types of collision statistics are obtained, and the collision statistics are used to train the LoRa parameter adjustment algorithm, so that the trained LoRa parameter adjustment algorithm can adapt to a wider and harsher environment, and after the LoRa parameter adjustment algorithm is trained using the collision statistics generated by the above process, the accuracy, practicality and wide range of usage scenarios of the LoRa parameter adjustment algorithm can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0046] Figure 1 A system architecture diagram of a LoRa parameter adjustment algorithm for training provided in an embodiment of the present application;

[0047] Figure 2 An optional signaling process of a training system for a LoRa parameter adjustment algorithm provided in an embodiment of the present application;

[0048] Figure 3 A flow chart of a parameter adjustment method provided in an embodiment of the present application;

[0049] Figure 4 A structural block diagram of a parameter adjustment device provided in an embodiment of the present application;

[0050] Figure 5 A hardware structure block diagram of a parameter adjustment device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] The parameter adjustment method, device and equipment provided in this application, and the training system of the LoRa parameter adjustment algorithm can be applied to the field of LoRa technology. The LoRa parameter adjustment algorithm can be trained using a terminal-side host computer, a gateway-side host computer, a collision monitoring platform, a gateway software radio peripheral and multiple terminal software radio peripherals to obtain a trained LoRa parameter adjustment algorithm, and the trained LoRa parameter adjustment algorithm can be used to adjust the parameters of a real LoRa terminal device to reduce the occurrence of data packet collisions.

[0053] Next, combine Figure 1 The training system of the LoRa parameter adjustment algorithm of this application is introduced in detail. Figure 1The training system of the LoRa parameter adjustment algorithm can be composed of a terminal side host computer 10, a gateway side host computer 20, a collision monitoring platform 50, a gateway software radio peripheral 40 and multiple terminal software radio peripherals 30.

[0054] The terminal side host computer 10 and each terminal software radio peripheral 30 are connected via USB, and the gateway side host computer 20 and a gateway software radio peripheral 40 are connected via USB. Data information can be transmitted between the terminal side host computer 10 and each terminal software radio peripheral 30, and data information can be transmitted between the gateway side host computer 20 and a gateway software radio peripheral 40.

[0055] Among them, the combination of the terminal-side host computer 10 and each terminal software radio peripheral 30 is equivalent to multiple real LoRa terminal devices, and the combination of the gateway-side host computer 20 and a gateway software radio peripheral 40 is equivalent to a real LoRa gateway device.

[0056] The number of each terminal software radio peripheral 30 can be set based on the number of LoRa terminal devices in the actual communication process.

[0057] Each terminal software radio peripheral 30 and the gateway software radio peripheral 40 are general software radio peripherals. The model of each terminal software radio peripheral 30 and the gateway software radio peripheral 40 can be a B210 model or a USRPUSB series model.

[0058] The terminal-side host computer 10 controls each terminal software radio peripheral 30 to perform data transmission through the GNU Radio software, and the gateway-side host computer 20 controls the gateway software radio peripheral 40 to perform data transmission through the GNU Radio software.

[0059] Before each terminal software radio peripheral 30 sends a LoRa data packet to the gateway software radio peripheral 40, it is necessary to align the parameters of the terminal-side host computer 10, the gateway-side host computer 20, each terminal software radio peripheral 30 and the gateway software radio peripheral 40 so that each terminal software radio peripheral 30 can send a LoRa data packet to the gateway software radio peripheral 40. During the alignment process, a virtual node corresponding to each terminal software radio peripheral 30 can be created in the terminal-side host computer 10, and the parameters of the virtual node can be initialized.

[0060] Among them, during the initialization process, a unique corresponding identifier can be generated for each virtual node, and the node distance between each virtual node, the size of the LoRa data packet corresponding to each virtual node, the transmission interval of each virtual node, the coding rate of each virtual node, the spreading factor of each virtual node and the bandwidth of each virtual node can be set.

[0061] Since there is a one-to-one correspondence between each virtual node and each terminal software radio peripheral 30 , the node distance between each virtual node can be adjusted by moving each terminal software radio peripheral 30 or setting attenuation.

[0062] The sizes of the LoRa data packets corresponding to the virtual nodes may be the same or different. For example, the size of the LoRa data packet may be 50 bytes or 100 bytes.

[0063] The coding rate of each virtual node can be set according to the LoRaWAN protocol standard.

[0064] The bandwidth of each virtual node can be 125, 250, or 500.

[0065] The spreading factor of each virtual node may be 7, 8, 9, 10, 11 or 12.

[0066] Each terminal software radio peripheral 30 and the gateway software radio peripheral 40 may be connected wirelessly or data may be transmitted via Ethernet.

[0067] The terminal side host computer 10 sends each LoRa data packet to the gateway software radio peripheral 40 through each terminal software radio peripheral 30 to simulate the process of a real LoRa terminal device sending a LoRa data packet to a real LoRa gateway device. During this process, collisions may occur between each LoRa data packet. The collision types generally include spreading factor collision, frequency collision, power collision and transmission time collision.

[0068] The collision monitoring platform 50 can count the number of collisions of each terminal software radio peripheral 30 and determine the type of collision. The construction basis of the collision monitoring platform 50 can be an Ubuntu operating system environment, a Windows operating system, or other Linux operating systems.

[0069] The LoRa parameter adjustment algorithm can adjust the parameters of the terminal-side host computer 10 and each terminal software radio peripheral 30 based on the number of collisions and the type of collisions of each terminal software radio peripheral 30 counted by the collision monitoring platform 50 .

[0070] The process of adjusting the parameters of the terminal-side host computer 10 and each terminal software radio peripheral 30 is also the training process of the LoRa parameter adjustment algorithm. When an adjustment command is generated according to the output of the LoRa parameter adjustment algorithm, and the parameters of the terminal-side host computer 10 and each terminal software radio peripheral 30 are adjusted according to the adjustment command, the process of sending LoRa data packets and counting the number of collisions and the type of collisions can be repeated. The gateway-side host computer 20 adjusts the parameters of the LoRa parameter adjustment algorithm with the newly counted number of collisions and collision types until the collision statistics generated by the collision monitoring platform 50 meet the preset conditions.

[0071] Among them, each terminal software radio peripheral 30 is an entity, so each terminal software radio peripheral 30 can be placed in a variety of different real environments, so that each terminal software radio peripheral 30 can generate and send LoRa data packets under various types of real interference, so as to know the collision situation of the LoRa data packets sent by each terminal software radio peripheral 30 under various types of real interference. The LoRa parameter adjustment algorithm can adjust the parameters of each terminal software radio peripheral 30 according to the collision situation, that is, the LoRa terminal device under each interference can be adjusted until the collision statistics generated by the collision monitoring platform 50 meets the preset conditions. Based on this, the LoRa parameter adjustment algorithm can be applied to various types of real interference, and the usage scenarios are very wide.

[0072] based on Figure 1 The system architecture shown, Figure 2 An optional signaling process of the training system of the LoRa parameter adjustment algorithm provided in the embodiment of the present application, referring to Figure 2 , the process may include:

[0073] Step S1 : The terminal-side host computer 10 generates a plurality of node data, and sends each of the node data to the collision monitoring platform 50 .

[0074] Specifically, each node data has a unique corresponding terminal software radio peripheral 30 .

[0075] It should be noted that, each time the terminal-side host computer 10 generates node data, it is not necessary to simultaneously generate node data corresponding to each terminal software radio peripheral 30. The terminal software radio peripherals 30 corresponding to each node data sent to the collision monitoring platform each time constitute a terminal software radio peripheral 30 set, and the number of terminal software radio peripherals 30 in the terminal software radio peripheral 30 set is less than or equal to the number of each terminal software radio peripheral 30 connected to the terminal-side host computer 10.

[0076] The node data corresponding to each terminal software radio peripheral 30 may be generated multiple times. The number of node data corresponding to each terminal software radio peripheral 30 is not necessarily the same.

[0077] The node data generated for the first time may exist in the form of a thread.

[0078] Step S2: Each of the terminal software radio peripherals 30 generates a LoRa data packet according to the node data corresponding to the terminal software radio peripheral 30.

[0079] Specifically, each terminal software radio peripheral 30 generates a LoRa data packet according to the node data corresponding to the terminal software radio peripheral 30 .

[0080] The size of each LoRa data packet corresponds to the parameters of the virtual node corresponding to the terminal software radio peripheral 30. If the parameters of the virtual node corresponding to the terminal software radio peripheral 30 indicate that the size of the LoRa data packet should be 50 bytes, multiple 50-byte LoRa data packets are generated according to the node data.

[0081] Step S3: Each of the terminal software radio peripherals 30 sends the LoRa data packet generated by the terminal software radio peripheral 30 to the gateway software radio peripheral 40 .

[0082] Specifically, after generating a LoRa data packet, each terminal software radio peripheral 30 sends the LoRa data packet to the gateway software radio peripheral 40 .

[0083] Step S4: The gateway-side host computer 20 parses each LoRa data packet received by the gateway software radio peripheral 40 to obtain a parsing result, and sends the parsing result to the collision monitoring platform 50 .

[0084] Specifically, when the gateway software radio peripheral 40 receives each LoRa data packet, the gateway-side host computer 20 can parse each LoRa data packet to obtain a parsing result, which includes the content of each node data.

[0085] After the analysis result is obtained, the analysis result can be sent to the collision monitoring platform 50 so that the collision monitoring platform 50 can count the collision conditions during the LoRa data packet transmission process.

[0086] Step S5 : The collision monitoring platform 50 determines collision statistics results according to the node data and the analysis results, and sends the collision statistics results to the gateway-side host computer 20 .

[0087] Specifically, the collision monitoring platform 50 determines the collision statistics according to each of the node data and the analysis results. The collision statistics may include the identifiers of the virtual nodes or terminal software radio peripherals 30 corresponding to each of the colliding LoRa data packets, wherein each identifier corresponds to the number of collisions and the type of collision.

[0088] Step S6: The gateway-side host computer 20 generates an adjustment command based on the collision statistics result using the LoRa parameter adjustment algorithm.

[0089] Specifically, the adjustment command is used to adjust the parameters in the terminal-side host computer 10 and the terminal software radio peripheral 30 until the collision statistics generated by the collision monitoring platform meets the preset conditions.

[0090] The preset condition may be that a ratio corresponding to each terminal software radio peripheral 30 is less than a threshold value, wherein the ratio is a ratio between the number of collisions occurring in each terminal software radio peripheral 30 and the total number of LoRa data packets sent.

[0091] The size of the threshold can be set according to actual conditions. When higher accuracy is required, the threshold can be smaller.

[0092] In order to better determine the parameters in the terminal side host computer 10 and the terminal software radio peripheral 30, the parameters of the LoRa parameter adjustment algorithm will also be adjusted during the adjustment of the parameters in the terminal side host computer 10 and the terminal software radio peripheral 30, and the training of the LoRa parameter adjustment algorithm is completed based on this.

[0093] It can be seen from the above technical solutions that the training system of the LoRa parameter adjustment algorithm provided in the embodiment of the present application trains the LoRa parameter adjustment algorithm through the parameter adjustment process of the terminal side host computer 10 and the terminal software radio peripheral 30. In addition, in the process of generating collision statistics, since each terminal software radio peripheral is an entity, it can be placed in various types of real interference scenarios, so that the trained LoRa parameter adjustment algorithm can adapt to various types of usage scenarios. For example, the distance of each terminal software radio peripheral can be adjusted, and environmental interference factors such as electromagnetic influence and electric field influence can also be added, that is, each terminal software radio is placed in an environment with large electromagnetic changes or large electric field forces. On this basis, more types of collision statistics are obtained, and the collision statistics are used to train the LoRa parameter adjustment algorithm, so that the trained LoRa parameter adjustment algorithm can adapt to a wider and harsher environment, and after the collision statistics generated by the above process are used to train the LoRa parameter adjustment algorithm, the accuracy, practicality and extensiveness of the LoRa parameter adjustment algorithm can be improved.

[0094] In some embodiments of the present application, multiple virtual nodes are created in the terminal-side host computer 10, and each virtual node corresponds one-to-one to each terminal software radio peripheral 30; each of the virtual nodes is used to generate node data corresponding to the virtual node, and the node data corresponds to the terminal software radio peripheral 30 corresponding to the virtual node.

[0095] Specifically, the terminal-side host computer 10 may generate node data in each virtual node.

[0096] Since each node data has a unique corresponding virtual node, each virtual node has a one-to-one correspondence with each terminal software radio peripheral 30, and thus each node data has a unique corresponding terminal software radio peripheral 30. It should be noted that a virtual node can generate multiple node data.

[0097] It can be seen from the above technical solution that this embodiment provides an optional way to generate node data. Specifically, node data can be generated in a virtual node. Based on this, multiple virtual nodes can be called at the same time to generate multiple node data, saving the time of generating node data, thereby improving the efficiency of training the LoRa parameter adjustment algorithm.

[0098] In some embodiments of the present application, each of the virtual nodes corresponds to an identifier; each of the terminal software radio peripherals includes a data packet generation module; the data packet generation module is used to generate a LoRa data packet according to the node data generated by the virtual node corresponding to the terminal software radio peripheral, wherein the LoRa data packet is encapsulated in the LoRa format, and the LoRa data packet contains the identifier corresponding to the virtual node.

[0099] Specifically, each virtual node may have a unique corresponding identifier. Based on this, when the data packet generation module generates a LoRa data packet according to the node data, the virtual node identifier for generating the node data may be written into each LoRa data packet. And each data packet may be encapsulated in the LoRa format according to the data format of LoRaWAN through GNU Radio to obtain a LoRa data packet.

[0100] It can be seen from the above technical solution that this embodiment provides a method for generating LoRa data packets. Through the above method, after parsing each LoRa data packet, the gateway side host computer 20 can determine the virtual node corresponding to each received LoRa data packet, and the parsing result can include the identifier of each virtual node. Based on this, the collision monitoring platform 50 can better complete the collision statistics.

[0101] In some embodiments of the present application, the collision monitoring platform 50 includes a collision result statistics module; the collision result statistics module is used to compare the multiple node data and the analysis results to determine whether a collision occurs during the sending of the LoRa data packet. If a collision occurs, the identification, collision type and number of collisions of the virtual node where the collision occurs are determined, and the collision statistics are updated according to the identification, collision type and number of collisions of the virtual node where the collision occurs.

[0102] Specifically, the number of collisions includes the total number of LoRa data packets sent by the terminal software radio peripheral 30 corresponding to each identifier, and the total number of LoRa data packets that collide with each other during the process of sending the LoRa data packets by the terminal software radio peripheral 30 .

[0103] Different types of collisions result in different differences between node data and parsing results. For example, a spreading factor collision generally occurs when two terminal software radio peripherals 30 corresponding to two virtual nodes send LoRa data packets at the same time. When the terminal software radio peripherals 30 corresponding to two virtual nodes with the same spreading factor send LoRa data packets at the same time, the gateway-side host computer 20 cannot parse the LoRa data packets, and the collision monitoring platform 50 only has the node data uploaded by the terminal-side host computer. A frequency collision generally occurs when the frequency of the two virtual nodes is less than the specified value under the corresponding bandwidth, that is, a frequency collision may occur when the bandwidth of the two virtual nodes is 500 and the frequency of the two virtual nodes is less than 120, a frequency collision may occur when the bandwidth of the two virtual nodes is 250 and the frequency of the two virtual nodes is less than 60, and a frequency collision may occur when the bandwidth of the two virtual nodes is 125 and the frequency of the two virtual nodes is less than 30. A power collision is mainly affected by the receiving strength RSSI. If the power difference between the terminal software radio peripherals 30 corresponding to the two virtual nodes is less than 6dB, the reception of the gateway software radio peripheral 40 will be affected. Compared with software simulation, power collision detection is affected by many environmental factors. In some cases, virtual nodes may experience packet loss, which can also be classified as power collision; transmission time collision is generally caused by the preamble of a new virtual node colliding with the LoRa data packets being transmitted by other virtual nodes. The preamble can be determined according to the relevant regulations of LoRa, and the reception time of the node data can also cause transmission time collision.

[0104] Based on this, by comparing the difference between each node data and the parsing result corresponding to the node data, it is determined whether a collision occurs, and after it is determined that a collision occurs, the type of collision is determined.

[0105] It can be seen from the above technical solution that in this embodiment, the collision statistics recorded by the collision monitoring platform 50 can indicate the number of collisions and the type of collisions corresponding to each virtual node. Based on this, the LoRa parameter adjustment algorithm can better determine the virtual nodes and terminal software radio peripherals 30 that need to be adjusted according to the collision statistics, and adjust the parameters in the virtual nodes and terminal software radio peripherals 30.

[0106] In some embodiments of the present application, the collision monitoring platform 50 includes a node data statistics module; the node data statistics module is used to update a preset node data volume after receiving the node data, and determine whether the numerical value corresponding to the node data volume exceeds a first threshold value. If it exceeds the first threshold value, the collision statistics result is sent to the gateway side host computer 20, and the node data volume and the collision statistics result are cleared. The node data volume indicates the amount of node data received by the collision monitoring platform 50 after the latest collision statistics result is sent.

[0107] Specifically, considering the appropriate number of node data in the process of generating collision statistics, the reference value of the collision statistics is greater, and sending the collision statistics too frequently is not conducive to training the LoRa parameter adjustment algorithm. Therefore, the collision statistics can be sent after counting the collision situations corresponding to a certain number of node data.

[0108] Before clearing the node data volume and collision statistics, the collision statistics and the node data volume may be stored in a database corresponding to the collision monitoring platform 50 to summarize the node data volume and collision statistics of the entire training process.

[0109] After each collision statistics result is sent, the number of received node data and the collision statistics result are restarted.

[0110] The size of the first threshold can be set according to the parameters of the LoRa parameter adjustment algorithm and the time of sending the collision statistics. If the data volume of the collision statistics is too large, the LoRa parameter adjustment algorithm may not be able to accurately determine the LoRa terminal parameters, and may also cause errors in the transmission of the collision statistics.

[0111] It can be seen from the above technical solution that this embodiment provides an optional method for counting collision statistics. Through the above solution, the node data corresponding to the collision statistics can be determined according to the actual scenario, so as to better train the LoRa parameter adjustment algorithm.

[0112] In some embodiments of the present application, the gateway-side host computer 20 includes a training data input module and a command sending module; the training data input module is used to input the received collision statistics results into the LoRa parameter adjustment algorithm so that the LoRa parameter adjustment algorithm can determine the virtual nodes of the parameters to be adjusted and generate node parameters corresponding to each virtual node of the parameters to be adjusted; the command sending module is used to determine the virtual node corresponding to the newly generated analysis result after the LoRa parameter adjustment algorithm generates the node parameters corresponding to each virtual node of the parameters to be adjusted, and generate an adjustment command according to the node parameters corresponding to the virtual node, and send the adjustment command to the virtual node to adjust the parameters of the virtual node and the parameters of the terminal software radio peripheral 30 corresponding to the virtual node.

[0113] Specifically, the training data input module can use the LoRa parameter adjustment algorithm to obtain the virtual node of the parameter to be adjusted, and determine the node parameters corresponding to the virtual node of the parameter to be adjusted. The command sending module can generate an adjustment command corresponding to each virtual node of the parameter to be adjusted according to each node parameter, and the adjustment command includes the identifier of the virtual node of the parameter to be adjusted, and the spreading factor and bandwidth of the virtual node to update the spreading factor and bandwidth of the virtual node. Among them, the adjustment command is in the LoRaWAN data format, and LoRaWAN is a MAC layer protocol framework of LoRa.

[0114] Since each virtual node can only receive the adjustment command sent by the gateway software radio peripheral 40 after the corresponding terminal software radio peripheral 30 sends a LoRa data packet, after generating the adjustment command, the newly received adjustment command LoRa data packet can be parsed, and the virtual node that is in a state of receiving the adjustment command can be determined based on the parsing result, and the adjustment command corresponding to the virtual node in a state of receiving the adjustment command can be sent to the corresponding virtual node.

[0115] It can be seen from the above technical solution that this embodiment provides an optional method for generating and sending adjustment commands. Through the above method, each adjustment command can be accurately sent to the corresponding virtual node to adjust the spreading factor and bandwidth of the virtual node.

[0116] Considering that the trained LoRa parameter adjustment algorithm can be applied to the actual communication process, the present application also provides a parameter adjustment method.

[0117] Next, we will combine Figure 3 The parameter adjustment method provided in this application is introduced in detail, and the specific steps are as follows:

[0118] Step S7: Obtain collision statistics, wherein the collision statistics include the identification, collision type and collision number of one or more LoRa terminals that collided.

[0119] Specifically, in the process of adjusting the LoRa terminal, it is necessary to first obtain the collision statistics result, which includes the identifier of the LoRa terminal where the collision occurs, and the identifier of the LoRa terminal corresponds to the collision type and the number of collisions.

[0120] Step S8: Generate LoRa terminal parameters according to the collision statistics using a LoRa parameter adjustment algorithm, wherein the LoRa terminal parameters include a terminal bandwidth and a terminal spreading factor corresponding to each LoRa terminal that needs to adjust parameters.

[0121] Specifically, the LoRa parameter adjustment algorithm is an algorithm trained using any of the above embodiments. The LoRa parameter adjustment algorithm can analyze the collision statistics, determine the LoRa terminals that need to be adjusted based on the analysis results, and determine the terminal bandwidth and terminal spreading factor corresponding to each LoRa terminal that needs to adjust parameters.

[0122] Step S9: Generate an adjustment command according to the LoRa terminal parameters.

[0123] Specifically, an adjustment command corresponding to each LoRa terminal that needs to adjust the parameters can be generated according to the LoRa terminal parameters.

[0124] Step S10: Send the adjustment command to the LoRa terminal that needs to adjust the parameters, so that each LoRa terminal that needs to adjust the parameters updates the terminal bandwidth and the terminal spreading factor according to the adjustment command.

[0125] Specifically, when the LoRa terminal that needs to adjust parameters is in a state where it can receive adjustment commands, the corresponding adjustment command can be sent to the LoRa terminal that needs to adjust parameters, so as to update the bandwidth and spreading factor of the LoRa terminal to the terminal bandwidth and terminal spreading factor in the adjustment command.

[0126] It can be seen from the above technical solution that this embodiment provides an optional parameter adjustment method. Through the above method, the terminal bandwidth and terminal spreading factor of the LoRa terminal that sends the LoRa data packet that collides can be updated to reduce collisions during communication and complete data transmission better and more accurately.

[0127] In some embodiments of the present application, the LoRa parameter adjustment algorithm may include a scoring layer and a parameter determination layer. Based on this, step S8, using the LoRa parameter adjustment algorithm to generate LoRa terminal parameters according to the collision statistics, wherein the LoRa terminal parameters include the terminal bandwidth and terminal spreading factor corresponding to each LoRa terminal that needs to adjust the parameters, is described in detail as follows:

[0128] The scoring layer is used to score each LoRa terminal according to the collision statistics.

[0129] Specifically, the scoring layer can score each LoRa terminal according to the ratio between the number of collisions of LoRa data packets sent by each LoRa terminal and the total number of LoRa data packets sent by the LoRa terminal. The lower the ratio, the higher the score.

[0130] The parameter determination layer is used to determine the target LoRa terminal that needs to adjust parameters according to the scores corresponding to each LoRa terminal, and the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal is selected from the preset terminal bandwidths and terminal spreading factors, and the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal is used as the LoRa terminal parameter.

[0131] Specifically, the parameter determination layer can compare the score corresponding to each LoRa terminal with a preset second threshold. If it is not greater than the second threshold, the LoRa terminal can be considered as the target LoRa terminal. The size of the second threshold can be set according to the specific scenario. If the accuracy requirement is high, the second threshold can be set larger.

[0132] The parameter determination layer can determine the possibility of a collision of the target LoRa terminal after changing each target LoRa terminal to each terminal bandwidth and terminal spreading factor combination according to the number of collisions and the type of collision of the target LoRa terminal in the collision statistics, and score each terminal bandwidth and terminal spreading factor combination according to the possibility, and determine the combination with the highest score as the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal.

[0133] There are 18 combinations of terminal bandwidths and terminal spreading factors. The value of any terminal bandwidth can be combined with the value of any terminal spreading factor, that is, a terminal bandwidth of 125 may be combined with a spreading factor of 7, 8, 9, 10, 11 or 12, a terminal bandwidth of 250 may be combined with a spreading factor of 7, 8, 9, 10, 11 or 12, and a terminal bandwidth of 500 may be combined with a spreading factor of 7, 8, 9, 10, 11 or 12.

[0134] It can be seen from the above technical solution that an optional method for determining LoRa terminal parameters is provided in this application. Through the above method, the matching degree between each terminal bandwidth and terminal spreading factor combination and each target LoRa terminal can be comprehensively considered to determine the LoRa terminal parameters, so as to improve the reliability and accuracy of parameter adjustment.

[0135] Next, we will combine Figure 4 , the parameter adjustment device provided in the present application is introduced in detail. The parameter adjustment device provided below can be referred to in correspondence with the parameter adjustment method provided above.

[0136] Reference Figure 4 , the parameter adjustment device may include:

[0137] A statistical result acquisition unit 7 is used to acquire collision statistical results, wherein the collision statistical results include the identification, collision type and collision number of one or more LoRa terminals that collided;

[0138] A parameter generating unit 8, configured to generate LoRa terminal parameters according to the collision statistics using a LoRa parameter adjustment algorithm, wherein the LoRa terminal parameters include a terminal bandwidth and a terminal spreading factor corresponding to each LoRa terminal that needs to adjust parameters;

[0139] A command generating unit 9, configured to generate an adjustment command according to the LoRa terminal parameters;

[0140] The command sending unit 10 is used to send the adjustment command to the LoRa terminal that needs to adjust the parameters, so that each LoRa terminal that needs to adjust the parameters updates the terminal bandwidth and the terminal spreading factor according to the adjustment command.

[0141] Furthermore, the parameter generation unit may include:

[0142] A first parameter generating unit, configured to score each LoRa terminal according to the collision statistics result by using the scoring layer;

[0143] The second parameter generating unit is used to determine the target LoRa terminal that needs to adjust the parameters according to the scores corresponding to each LoRa terminal by using the parameter determination layer, and select the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal from the preset terminal bandwidths and terminal spreading factors, and use the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal as the LoRa terminal parameter.

[0144] The parameter adjustment device provided in the embodiment of the present application can be applied to parameter adjustment devices, such as PC terminals, calculators, servers, etc. Optionally, Figure 5 The hardware structure diagram of the parameter adjustment device is shown in FIG. Figure 5 ,The hardware structure of the parameter adjustment device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;

[0145] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;

[0146] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;

[0147] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;

[0148] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:

[0149] Obtain collision statistics, where the collision statistics include the identification, collision type, and collision number of one or more LoRa terminals that collided;

[0150] Generate LoRa terminal parameters according to the collision statistics using a LoRa parameter adjustment algorithm, wherein the LoRa terminal parameters include a terminal bandwidth and a terminal spreading factor corresponding to each LoRa terminal that needs to adjust parameters;

[0151] Generate an adjustment command according to the LoRa terminal parameters;

[0152] The adjustment command is sent to the LoRa terminal that needs to adjust the parameters, so that each LoRa terminal that needs to adjust the parameters updates the terminal bandwidth and the terminal spreading factor according to the adjustment command.

[0153] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0154] The embodiment of the present application further provides a storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:

[0155] Obtain collision statistics, where the collision statistics include the identification, collision type, and collision number of one or more LoRa terminals that collided;

[0156] Generate LoRa terminal parameters according to the collision statistics using a LoRa parameter adjustment algorithm, wherein the LoRa terminal parameters include a terminal bandwidth and a terminal spreading factor corresponding to each LoRa terminal that needs to adjust parameters;

[0157] Generate an adjustment command according to the LoRa terminal parameters;

[0158] The adjustment command is sent to the LoRa terminal that needs to adjust the parameters, so that each LoRa terminal that needs to adjust the parameters updates the terminal bandwidth and the terminal spreading factor according to the adjustment command.

[0159] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0160] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprises a..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0161] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0162] The above description of the disclosed embodiments enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. The various embodiments of the present application can be combined with each other. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A training system for a LoRa parameter adjustment algorithm, characterized in that: Including terminal side host computer, gateway side host computer, collision monitoring platform, gateway software radio peripherals and multiple terminal software radio peripherals; The terminal side host computer creates a plurality of virtual nodes, each virtual node corresponds to each terminal software radio peripheral, and each virtual node has a corresponding identifier; Each of the virtual nodes of the terminal-side host computer is used to generate node data corresponding to the virtual node; The terminal-side host computer is also used to send each of the node data to the collision monitoring platform, wherein each node data has a unique corresponding terminal software radio peripheral; Each of the terminal software radio peripherals is used to generate a LoRa data packet according to the node data generated by the virtual node corresponding to the corresponding terminal software radio peripheral, wherein the LoRa data packet is encapsulated in the LoRa format and contains an identifier corresponding to the virtual node; The gateway software radio peripheral is used to receive the LoRa data packet sent by each terminal software radio peripheral; The gateway-side host computer is used to parse each LoRa data packet received by the gateway software radio peripheral, obtain a parsing result, and send the parsing result to the collision monitoring platform; The collision monitoring platform is used to compare the multiple node data and the analysis results to determine whether a collision occurs during the sending of the LoRa data packet. If a collision occurs, the identification, collision type and number of collisions of the virtual node where the collision occurs are determined, and the collision statistics are determined according to the identification, collision type and number of collisions of the virtual node where the collision occurs, and the collision statistics are sent to the gateway side host computer; The gateway-side host computer is also used to generate an adjustment command based on the collision statistics result using the LoRa parameter adjustment algorithm, and the adjustment command is used to adjust the parameters in the terminal-side host computer and the terminal software radio peripheral until the collision statistics result generated by the collision monitoring platform meets the preset conditions.

2. The training system of the LoRa parameter adjustment algorithm according to claim 1, characterized in that The collision monitoring platform includes a node data statistics module; The node data statistics module is used to update the preset node data volume after receiving the node data, and determine whether the value corresponding to the node data volume exceeds a first threshold value. If it exceeds the first threshold value, the collision statistics result is sent to the host computer on the gateway side, and the node data volume and the collision statistics result are cleared. The node data volume indicates the amount of node data received by the collision monitoring platform after the latest collision statistics result is sent.

3. The training system of the LoRa parameter adjustment algorithm according to claim 1, characterized in that, The gateway-side host computer includes a training data input module and a command sending module; The training data input module is used to input the received collision statistics results into the LoRa parameter adjustment algorithm, so that the LoRa parameter adjustment algorithm determines the virtual nodes of the parameters to be adjusted, and generates node parameters corresponding to each virtual node of the parameters to be adjusted; The command sending module is used to determine the virtual node corresponding to the newly generated parsing result after the LoRa parameter adjustment algorithm generates the node parameters corresponding to each virtual node of the parameter to be adjusted, and generate an adjustment command according to the node parameters corresponding to the virtual node, and send the adjustment command to the virtual node to adjust the parameters of the virtual node and the parameters of the terminal software radio peripheral corresponding to the virtual node.

4. A parameter adjustment method, characterized in that: include: Obtain collision statistics, where the collision statistics include the identification, collision type, and collision number of one or more LoRa terminals that collided; The LoRa parameter adjustment algorithm trained by the training system of any one of claims 1 to 3 generates LoRa terminal parameters according to the collision statistics, wherein the LoRa terminal parameters include the terminal bandwidth and terminal spreading factor corresponding to each LoRa terminal that needs to adjust the parameters; Generate an adjustment command according to the LoRa terminal parameters; The adjustment command is sent to the LoRa terminal that needs to adjust the parameters, so that each LoRa terminal that needs to adjust the parameters updates the terminal bandwidth and the terminal spreading factor according to the adjustment command.

5. The parameter adjustment method according to claim 4, characterized in that: The LoRa parameter adjustment algorithm includes a scoring layer and a parameter determination layer; The LoRa terminal parameters are generated according to the collision statistics using the LoRa parameter adjustment algorithm, including: Using the scoring layer, scoring each LoRa terminal according to the collision statistics; The parameter determination layer is used to determine the target LoRa terminal whose parameters need to be adjusted according to the scores corresponding to each LoRa terminal, and the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal is selected from the preset terminal bandwidths and terminal spreading factors, and the terminal bandwidth and terminal spreading factor combination that best matches the target LoRa terminal is used as the LoRa terminal parameter.

6. A parameter adjustment device, characterized in that: include: A statistical result acquisition unit, used to acquire collision statistical results, wherein the collision statistical results include the identification, collision type and collision number of one or more LoRa terminals that collided; A parameter generating unit, configured to generate LoRa terminal parameters according to the collision statistics using the LoRa parameter adjustment algorithm trained by the training system of any one of claims 1 to 3, wherein the LoRa terminal parameters include the terminal bandwidth and terminal spreading factor corresponding to each LoRa terminal that needs to adjust the parameters; A command generating unit, used to generate an adjustment command according to the LoRa terminal parameters; The command sending unit is used to send the adjustment command to the LoRa terminal that needs to adjust the parameters, so that each LoRa terminal that needs to adjust the parameters updates the terminal bandwidth and the terminal spreading factor according to the adjustment command.

7. A parameter adjustment device, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the parameter adjustment method as described in claim 4 or 5.