CN117202371B - LoRa multi-node big data transmission processing method and device and electronic equipment - Google Patents

LoRa multi-node big data transmission processing method and device and electronic equipment Download PDF

Info

Publication number
CN117202371B
CN117202371B CN202310931883.7A CN202310931883A CN117202371B CN 117202371 B CN117202371 B CN 117202371B CN 202310931883 A CN202310931883 A CN 202310931883A CN 117202371 B CN117202371 B CN 117202371B
Authority
CN
China
Prior art keywords
node
transmission
data
node group
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310931883.7A
Other languages
Chinese (zh)
Other versions
CN117202371A (en
Inventor
李孔政
王晓明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Baxtrand Technology Co ltd
Original Assignee
Guangdong Baxtrand Technology Co ltd
Filing date
Publication date
Application filed by Guangdong Baxtrand Technology Co ltd filed Critical Guangdong Baxtrand Technology Co ltd
Priority to CN202310931883.7A priority Critical patent/CN117202371B/en
Publication of CN117202371A publication Critical patent/CN117202371A/en
Application granted granted Critical
Publication of CN117202371B publication Critical patent/CN117202371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a processing method, a device and electronic equipment for LoRa multi-node big data transmission, wherein the method is applied to a server and comprises the following steps: acquiring a first transmission frequency of a first node group, wherein a plurality of transmission nodes of the first node group are positioned in a first preset channel; acquiring a second transmission frequency of a second node group, wherein a plurality of transmission nodes of the second node group are positioned in a second preset channel, and the first preset channel and the second preset channel have no communication frequency intersection; judging whether the first transmission frequency is consistent with the second transmission frequency, if the first transmission frequency is inconsistent with the second transmission frequency, sending a first data packet to a first node group, wherein the first data packet is any one of a plurality of data packets, and the data packet is a data unit after the data packets to be transmitted are compressed. The application has the effect of improving the accuracy in the multi-node big data transmission process.

Description

LoRa multi-node big data transmission processing method and device and electronic equipment
Technical Field
The application relates to the technical field of wireless communication, in particular to a processing method and device for LoRa multi-node big data transmission and electronic equipment.
Background
LoRa is an abbreviation for "Long distance Low Power consumption" (Long Range Low Power). LoRa is a low power consumption, long range wireless communication technology that can transmit small amounts of data over a large range using spread spectrum modulation techniques and received signal-to-noise ratio techniques to achieve long range communication. LoRa is commonly used for Internet of things (IoT) applications such as smart cities, smart homes, and remote monitoring, among others.
When a plurality of nodes transmit data at the same time, if they transmit at the same time using the same frequency, the data packets collide during transmission. This is because the wireless signals take time to propagate in the air to the target receiving node, and the signals transmitted by different nodes may interfere with each other during the propagation process, resulting in the signals becoming unreliable or completely lost, thereby reducing the accuracy of data transmission.
Therefore, a method is needed to improve the accuracy in the multi-node big data transmission process.
Disclosure of Invention
The application provides a processing method, a processing device and electronic equipment for LoRa multi-node big data transmission, which have the effect of improving the accuracy in the multi-node big data transmission process.
In a first aspect of the present application, there is provided a method for processing large data transmission of a LoRa multi-node, the method being applied to a server and comprising:
acquiring a first transmission frequency of a first node group, wherein the first node group is any one of a plurality of node groups, the node group is a combination of a plurality of transmission nodes, and a plurality of transmission nodes of the first node group are positioned in a first preset channel;
Acquiring a second transmission frequency of a second node group, wherein the second node group is any node group except the first node group in a plurality of node groups, the plurality of transmission nodes of the second node group are positioned in a second preset channel, and the first preset channel and the second preset channel have no communication frequency intersection;
And judging whether the first transmission frequency is consistent with the second transmission frequency, and if the first transmission frequency is inconsistent with the second transmission frequency, sending a first data packet to the first node group, wherein the first data packet is any one of a plurality of data packets, and the data packet is a data unit after the data packets to be transmitted are compressed.
By adopting the technical scheme, the plurality of transmission nodes are grouped, and the transmission nodes of each node group are positioned on the same preset channel, so that the transmission nodes in the node group are not communicated with the transmission nodes outside the group, and the probability of data collision is greatly reduced by reducing the number of times of node communication. And the transmission rate of the node group is larger than that of a single node, so that the transmission of the data packet can be completed rapidly. Finally, the server transmits the data packet after judging that the transmission frequencies of the node groups are inconsistent, so that the data collision caused by simultaneous data transmission on the same frequency can be avoided, and the effect of improving the accuracy in the multi-node big data transmission process can be achieved.
Optionally, before the acquiring the first transmission frequency of the first node group, the method further includes:
acquiring the sending position information of the sending end of the data to be transmitted, and acquiring the receiving position information of the receiving end of the data to be transmitted;
Acquiring a plurality of transmission nodes between the transmitting end and the receiving end based on the transmitting position information and the receiving position information;
Acquiring first node information of a first transmission node, wherein the first transmission node is any one of a plurality of transmission nodes, the first node information comprises a plurality of node sub-information, and the first node sub-information is any one of physical position information, transmission frequency, signal strength and data transmission rate;
And based on the node sub-information, carrying out grouping processing on the transmission nodes through a preset algorithm to obtain the node groups.
By adopting the technical scheme, the multi-node grouping processing is carried out on the multi-node, and the nodes in the node group are not communicated with the nodes outside the group, so that the communication times among a plurality of transmission nodes are effectively reduced, the occurrence probability of collision is reduced, and the transmission rate of the node group is higher than that of a single node, so that the transmission of data packets can be rapidly completed.
Optionally, after the grouping processing is performed on the plurality of transmission nodes through a preset algorithm based on the plurality of node sub-information to obtain a plurality of node groups, the method further includes:
Acquiring first node sub-information of the first transmission node, wherein the first node sub-information is any one node sub-information of a plurality of node sub-information;
acquiring second node information of a second transmission node, wherein the second transmission node is any transmission node except the first node in a plurality of transmission nodes, the second node information comprises a plurality of node sub-information, and the second node sub-information is any one of physical position information, transmission frequency, signal strength and data transmission rate;
acquiring second node sub-information of the second transmission node, wherein the second node sub-information is any one of a plurality of node sub-information;
Based on a preset rule, the first node sub-information and the second node sub-information are subjected to priority ranking;
and acquiring a result of the priority ordering, and determining the first transmission node as a management node based on the result so as to manage the transmission nodes in the first node group.
By adopting the technical scheme, the plurality of transmission nodes are grouped and the sub-information of the nodes is ordered in priority based on the preset algorithm and rule, so that the first transmission node is determined to serve as a management node and is used for managing the transmission nodes in the first node group, more effective node management, resource utilization and task allocation are realized, and therefore the performance and manageability of the whole node group are improved.
Optionally, the acquiring the first transmission frequency of the first node group specifically includes:
acquiring output transmission frequency of a preset tail node, wherein the tail node is a preset data output node in the first node group;
setting the output transmission frequency to the first transmission frequency.
By adopting the technical scheme, the network configuration process can be simplified by setting the output transmission frequency as the first transmission frequency. The frequency setting between the tail node and the first node group is consistent, no additional configuration and adjustment are needed, the complexity and the error possibility of the configuration are reduced, and the usability and the deployment efficiency of the system are improved.
Optionally, sending the first data packet to the first node group specifically includes:
Acquiring the data size of the data to be transmitted;
Judging whether the data size is larger than a preset threshold value, and if the data size is determined to be larger than the preset threshold value, dividing the data to be transmitted into a preset number of data groups;
compressing each data group to obtain a plurality of data packets;
And calling a first data packet and sending the first data packet to the first node group.
By adopting the technical scheme, the server acquires the data size of the data to be transmitted and judges whether the data size exceeds the preset threshold, if the data size is larger than the preset threshold, the data to be transmitted is divided into a preset number of data groups, and each data group is compressed. Thus, the size of each data packet can be reduced, and the transmission capacity of different nodes can be adapted.
Optionally, after the determining whether the first transmission frequency is consistent with the second transmission frequency, if it is determined that the first transmission frequency is inconsistent with the second transmission frequency, the method further includes:
Acquiring information of the first node group for transmitting the first data packet, and detecting whether the second node group transmits a second data packet within a first preset duration, wherein the second data packet is any one of a plurality of data packets;
and if the second node group sends the second data packet within the first preset time period, sending a stop instruction to the first node group so that the first node group stops sending the first data packet.
By adopting the technical scheme, if the server acquires that the data packet transmitted by other nodes exists on the channel in the process of transmitting the data packet, the server can stop the node group from transmitting the data packet and prevent data loss.
Optionally, after the second node group sends a stop instruction to the first node group if it is determined that the second node group sends the second data packet within the preset time, so that the first node group stops sending the first data packet, the method further includes:
Recording duration from the sending of the stop instruction;
And when the time length reaches a second preset time length, sending a start instruction to the first node group so as to enable the first node group to resend the first data packet.
By adopting the technical scheme, retransmission is carried out on the basis of collision detection, so that collision and loss of data packets in the transmission process can be avoided, and the accuracy of data transmission is improved.
In a second aspect of the present application, a processing device for large data transmission of multiple LoRa nodes is provided, where the device is a server, and includes a first obtaining module, a second obtaining module, and a processing module, where:
The first obtaining module is configured to obtain a first transmission frequency of a first node group, where the first node group is any one node group of a plurality of node groups, the node group is a combination of a plurality of transmission nodes, and a plurality of transmission nodes of the first node group are in a first preset channel;
The second obtaining module is configured to obtain a second transmission frequency of a second node group, where the second node group is any node group other than the first node group among the plurality of node groups, and the plurality of transmission nodes of the second node group are in a second preset channel, where the first preset channel and the second preset channel do not have a communication frequency intersection;
The processing module is configured to determine whether the first transmission frequency is consistent with the second transmission frequency, and if it is determined that the first transmission frequency is inconsistent with the second transmission frequency, send a first data packet to the first node group, where the first data packet is any one of a plurality of data packets, and the data packet is a data unit after compression of a data packet to be transmitted.
In a third aspect the application provides an electronic device comprising a processor, a memory for storing instructions, a user interface and a network interface, both for communicating to other devices, the processor being for executing the instructions stored in the memory to cause the electronic device to perform a method as claimed in any one of the preceding claims.
In a fourth aspect the application provides a computer readable storage medium storing instructions which, when executed, perform the method steps of any one of the above.
In summary, one or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
And grouping the plurality of transmission nodes, wherein the transmission nodes of each node group are positioned in the same preset channel, so that the transmission nodes in the node group are not communicated with the transmission nodes outside the group, and the probability of data collision is greatly reduced by reducing the number of times of node communication. And the transmission rate of the node group is larger than that of a single node, so that the transmission of the data packet can be completed rapidly. Finally, the server transmits the data packet after judging that the transmission frequencies of the node groups are inconsistent, so that the data collision caused by simultaneous data transmission on the same frequency can be avoided, and the effect of improving the accuracy in the multi-node big data transmission process can be achieved.
Drawings
FIG. 1 is a schematic diagram of a transmission process of LoRa multi-node big data transmission according to an embodiment of the present application;
Fig. 2 is a schematic flow chart of a processing method for large data transmission of multiple LoRa nodes according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a processing device for large data transmission of LoRa multiple nodes according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals illustrate: 301. a first acquisition module; 302. a second acquisition module; 303. a processing module; 401. a processor; 402. a communication bus; 403. a user interface; 404. a network interface; 405. a memory.
Detailed Description
In order that those skilled in the art will better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments.
In describing embodiments of the present application, words such as "for example" or "for example" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "such as" or "for example" in embodiments of the application should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "or" for example "is intended to present related concepts in a concrete fashion.
In the description of embodiments of the application, the term "plurality" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating an indicated technical feature. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Before describing embodiments of the present application, some terms involved in the embodiments of the present application will be first defined and described.
LoRa is an abbreviation for "Long distance Low Power consumption" (Long Range Low Power). LoRa is a low power consumption, long range wireless communication technology that can transmit small amounts of data over a large range using spread spectrum modulation techniques and received signal-to-noise ratio techniques to achieve long range communication. LoRa is commonly used for Internet of things (IoT) applications such as smart cities, smart homes, and remote monitoring, among others.
Referring to fig. 1, in the process of multiple node large data transmission based on LoRa, if the distance between the data transmitting end and the final receiving end is too long, data is generally forwarded through multiple transmission nodes, so as to complete data transmission. Specifically, first, data acquisition equipment such as an internet of things device or a sensor acquires environmental data or information of a specific event through an interface, and a server receives and encodes the acquired data into a LoRa signal by using a LoRa modulation technology. When the data size is large, in order to reduce the probability of retransmission due to data transmission failure, the data is generally divided into a plurality of data packets, different data packets are encoded into corresponding LoRa signals and sent to different transmission nodes, the transmission nodes send the encoded LoRa signals out through radio channels, and the signals can cover a region within a certain range. After being forwarded by a plurality of transmission nodes, a gateway in the LoRa network receives the LoRa signals sent by the nodes, and forwards the received LoRa signals to a network server, and the network server decodes and recognizes the LoRa signals to obtain original data.
When a plurality of nodes transmit data simultaneously, since the data is converted into a LoRa signal, if the plurality of nodes transmit the LoRa signal at the same time using the same frequency, the LoRa signals interfere with each other in the air, resulting in collision of the data during transmission, which is called "collision". The network server finally cannot decode and identify the incomplete signals due to interference, which causes loss or damage of the data packet, thereby reducing the accuracy of data transmission.
The embodiment discloses a processing method for LoRa multi-node big data transmission, referring to FIG. 2, comprising the following steps S110-S130:
s110, a first transmission frequency of a first node group is acquired, wherein the first node group is any one of a plurality of node groups, the node group is a combination of a plurality of transmission nodes, and the plurality of transmission nodes of the first node group are located in a first preset channel.
S120, obtaining a second transmission frequency of a second node group, wherein the second node group is any node group except the first node group in the plurality of node groups, the plurality of transmission nodes of the second node group are positioned in a second preset channel, and the first preset channel and the second preset channel have no communication frequency intersection.
Specifically, the more nodes are transmitted, the more the number of communications between the nodes is, the higher the probability of collision of data. To address this problem, multiple nodes may be grouped based on clustering techniques. Clustering is a data analysis method for grouping similar objects or data points into a set. It is an unsupervised learning method, meaning that pre-labeled training data is not required to guide the classification process. The goal of clustering is to divide the objects in the dataset into a plurality of interrelated groups such that the objects within a group are more similar and the objects between groups are less similar.
Firstly, a server acquires sending position information of a sending end of data to be transmitted, and acquires receiving position information of a receiving end of the data to be transmitted. The sending position information is physical position information, and can be three-dimensional coordinates under a certain preset coordinate system, and can be longitude and latitude in the real world. The server obtains a plurality of transmission nodes between the transmitting end and the receiving end based on the transmitting position information and the receiving position information. The transmitting end and the receiving end can be connected through a line segment, the line segment is used as a diameter, the middle point of the line segment is used as a circle center to form a circular area, and transmission nodes in the circular area are selected to participate in data transmission.
The server then performs feature selection and acquisition to acquire node information for each transmission node, including but not limited to physical location information, transmission frequency, signal strength, and data transmission rate of the transmission node, which are input to the clustering algorithm. In the present application, in order to make the transmission nodes in the same node group in the same channel, the transmission frequencies of the transmission nodes need to be used as algorithm inputs, so that the obtained transmission nodes in the same class are transmission nodes with similar transmission frequencies.
The server then selects the appropriate clustering algorithm to process the LoRa node data. Common algorithms include K-means clustering, hierarchical clustering, spectral clustering, and the like. The selection of the specific algorithm should take into account the size of the data set, the computational complexity and the scalability of the algorithm, so the selection of the specific algorithm is not further limited in this embodiment.
The server then needs to perform parameter setting, i.e. parameter setting for the selected clustering algorithm. For example, for K-means clustering, the number of clusters (K-value) needs to be specified; for hierarchical clustering, a suitable similarity measure and a clustering linking mode need to be selected. The quality of the clustering result can be directly influenced by the quality of the parameter setting.
Finally, after the server inputs the data of the node information into the clustering algorithm, the algorithm divides the nodes into a plurality of groups (clusters) according to factors such as similarity and distance among the nodes, and each group (cluster) is a node group. In the process of performing group (cluster) division through a clustering algorithm, the related technology is only a conventional technical means in the related technical field, and will not be further described herein.
The plurality of transmission nodes of each node group are all located in the same channel, each channel corresponds to a specific center frequency, and the transmission frequencies of the plurality of nodes float up and down in the center frequency. Each channel may cover a certain bandwidth and transmit data within that bandwidth. The LoRa networks in different areas may employ different channel plans, and divide the available channels according to specific frequency bands and regulations, so as to ensure that there is no intersection between the different channels, for example, when the first preset channel is in the range of 435Hz to 450Hz, the second channel may be in any range other than 435Hz to 450 Hz.
After the group (cluster) partition, the server needs to select one cluster head node, which is also a management node, for managing communication of a plurality of communication nodes within the group (cluster). For the selection of the cluster head node, the selection needs to be performed according to the ordering results of the physical location information, the transmission frequency, the signal strength and the data transmission rate of the transmission node.
For the physical location information, the sorting can be performed from near to far according to the distance between the transmission nodes in the group and the server, and the transmission node farthest or nearest to the server can be selected as the cluster head node. For the transmission frequency, the transmission node with the highest transmission frequency in the plurality of transmission nodes can be selected as the cluster head node. For the signal strength, the transmission node with the highest signal strength of the LoRa signals sent by the plurality of transmission nodes may be selected as the cluster head node. For the data transmission rate, the transmission node with the fastest data transmission rate may be selected as the cluster head node.
Multiple transmitting nodes within a node group may transmit data via single-hop or multi-hop transmissions.
In particular, in single hop transmissions, each communication node may communicate directly with other communication nodes in the group. When a communication node receives data, it can transmit the data directly to other communication nodes via the LoRa wireless connection. This approach is applicable to direct communication distances between communication nodes being short and communication paths between communication nodes being feasible. Each communication node can determine whether to transfer data to other communication nodes by itself after receiving the data.
In multi-hop transmission, the transmitting node transmits data to the next node group or gateway by relaying. When a transmitting node receives data, it may forward the data to neighboring transmitting nodes within the group, which then forward to their neighboring transmitting nodes until the data reaches the next node group or gateway. This approach is applicable to situations where the direct communication distance between nodes is large, or where there is an obstacle blocking. Multi-hop transmission requires cooperation between nodes, where each transmission node may act as a relay node.
In both single-hop transmission and multi-hop transmission, only one transmission node of a certain node group is used for receiving data sent by other nodes, and only one transmission node is used for sending data to other node groups, and other nodes in the group do not communicate with other nodes outside the group, so that the communication times among a plurality of transmission nodes are effectively reduced, the occurrence probability of collision is reduced, and the transmission rate of the node group is higher than that of a single node, and the transmission of data packets can be completed rapidly.
S130, judging whether the first transmission frequency is consistent with the second transmission frequency, if the first transmission frequency is inconsistent with the second transmission frequency, sending a first data packet to the first node group, wherein the first data packet is any one of a plurality of data packets, and the data packet is a data unit after the data packets to be transmitted are compressed.
After grouping the multiple transmission nodes, only one transmission node per node group is used to send data to other node groups, and the node is the tail node. Each node group can be regarded as a transmitting node, and the transmitting frequency of the node group is that of the tail node.
When the server needs to send data, the cluster head nodes of the plurality of node groups in a preset range are controlled to send the transmission frequencies of the node groups, after the transmission frequencies of the plurality of node groups are acquired, the transmission frequencies of the plurality of node groups are compared with each other, whether a certain transmission frequency is different from other transmission frequencies or not is judged, and then the node group corresponding to the transmission frequency is selected for first data transmission.
If the server needs to send the data to be transmitted, the server firstly obtains the data size of the data to be transmitted, and then judges the size relation between the data size and the preset threshold value. The specific size of the preset threshold needs to be set according to the data transmission capability of the transmission node, so that the data size of the data to be transmitted is within the transmission capability range of the transmission node. And if the data size is smaller than or equal to the preset threshold value, the data to be transmitted does not need to be subjected to packet compression processing, and the server directly sends the data to be transmitted to the first node group. And when the size of the data is larger than the preset threshold, the size of the data to be transmitted exceeds the transmission capacity of the transmission node, and the data is required to be grouped and compressed and then transmitted. The server divides the data to be transmitted into a plurality of groups with the preset number, the difference of the sizes of any two data groups is not more than 1G, the preset number is set according to the size of the data to be transmitted, and then a plurality of data groups are obtained. And then the server compresses the data group to obtain a plurality of compressed packets, wherein the compressed packets are data packets.
After obtaining a plurality of data packets, the server selects a first node group with transmission frequency different from other transmission frequencies, and sequentially sends the plurality of data packets to the first node group. At the time of transmission, the server needs to use the LoRa modulation technique to encode each data packet into a corresponding LoRa signal, and send the LoRa signal to the first node group. The technology involved in the process of encoding the data packet into the LoRa signal is merely a conventional technical means in the related art, and will not be further described herein.
The server also needs to perform collision detection after sending the data packet to reduce the possibility of signal interference. Therefore, when the server transmits each data packet to the first node group, it needs to detect whether there are other node groups transmitting data within the first preset time period. The first preset duration is set according to the transmission speed of the data packet, and the first preset duration is the duration of the transmission completion of the data packet. The cluster head node of the first node group performs channel monitoring to detect whether other nodes simultaneously transmit data packets. If the cluster head node detects that the data packets sent by other nodes exist on the channel in the process of sending the data packets, the cluster head node indicates that collision occurs. The cluster head node sends the information to the server, the server sends a stop instruction to the first node group after receiving the stop instruction, and the cluster head node controls other nodes to stop sending data packets after receiving the stop instruction.
After collision, the server waits for a period of time by adopting an exponential backoff algorithm and other mechanisms, and controls the transmission node to retransmit the data packet. When the server sends the stop instruction, a retransmission timer is set, the timing duration is a second preset duration, and for the specific duration of the second preset duration, other embodiments can be adjusted according to actual conditions, and the embodiment is not limited specifically. After reaching the second preset time length, the server sends a start instruction to the cluster head nodes of the first node group, and the cluster head nodes control the transmission nodes to resend the first data packet after receiving the first data packet. If a possible collision is still detected during retransmission, retransmission is required again.
According to the technical scheme, the plurality of transmission nodes are grouped, and the transmission nodes of each node group are located in the same preset channel, so that the transmission nodes in the node group are not communicated with the transmission nodes outside the group, and the probability of data collision is greatly reduced by reducing the number of times of node communication. And the transmission rate of the node group is larger than that of a single node, so that the transmission of the data packet can be completed rapidly. Finally, the server transmits the data packet after judging that the transmission frequencies of the node groups are inconsistent, so that the data collision caused by simultaneous data transmission on the same frequency can be avoided, and the effect of improving the accuracy in the multi-node big data transmission process can be achieved.
The embodiment also discloses a processing device for large data transmission of multiple LoRa nodes, which is a server, and referring to fig. 3, the processing device includes a first obtaining module 301, a second obtaining module 302, and a processing module 303, where:
The first obtaining module 301 is configured to obtain a first transmission frequency of a first node group, where the first node group is any one of a plurality of node groups, the node group is a combination of a plurality of transmission nodes, and the plurality of transmission nodes of the first node group are in a first preset channel.
The second obtaining module 302 is configured to determine whether the first transmission frequency is consistent with the second transmission frequency, and if it is determined that the first transmission frequency is inconsistent with the second transmission frequency, send a first data packet to the first node group, where the first data packet is any one of a plurality of data packets, and the data packet is a data unit after compression of the data packet to be transmitted.
The processing module 303 is configured to determine whether the first transmission frequency is consistent with the second transmission frequency, and if it is determined that the first transmission frequency is inconsistent with the second transmission frequency, send a first data packet to the first node group, where the first data packet is any one of a plurality of data packets, and the data packet is a data unit after compression of a data packet to be transmitted.
In one possible implementation manner, the first obtaining module 301 is configured to obtain sending location information of a sending end of data to be transmitted, and obtain receiving location information of a receiving end of the data to be transmitted.
The first obtaining module 301 is further configured to obtain a plurality of transmission nodes between the transmitting end and the receiving end based on the transmitting location information and the receiving location information.
The second obtaining module 302 is configured to obtain first node information of a first transmission node, where the first transmission node is any one of a plurality of transmission nodes, the first node information includes a plurality of node sub-information, and the first node sub-information is any one of physical location information, transmission frequency, signal strength, and data transmission rate.
The processing module 303 is configured to perform packet processing on the plurality of transmission nodes through a preset algorithm based on the plurality of node sub-information, so as to obtain a plurality of node groups.
In a possible implementation manner, the first obtaining module 301 is configured to obtain first node sub-information of a first transmission node, where the first node sub-information is any node sub-information of a plurality of node sub-information.
The first obtaining module 301 is further configured to obtain second node information of a second transmission node, where the second transmission node is any one transmission node except the first node among the plurality of transmission nodes, and the second node information includes a plurality of node sub-information, and the second node sub-information is any one of physical location information, transmission frequency, signal strength, and data transmission rate.
The second obtaining module 302 is configured to obtain second node sub-information of the second transmission node, where the second node sub-information is any node sub-information of the plurality of node sub-information.
The processing module 303 is configured to prioritize the first node sub-information and the second node sub-information based on a preset rule.
The processing module 303 is further configured to obtain a result of the prioritization, determine that the first transmission node is a management node based on the result, so as to manage the transmission nodes in the first node group.
And the processing module 303 is configured to determine, based on the result of the prioritization, that the first transmission node is a management node, so as to manage the transmission nodes in the first node group.
In a possible implementation manner, the first obtaining module 301 is configured to obtain a preset output transmission frequency of a tail node, where the tail node is a preset data output node in the first node group.
The processing module 303 is configured to set the output transmission frequency to the first transmission frequency.
In a possible implementation manner, the first acquiring module 301 is configured to acquire a data size of data to be transmitted.
The processing module 303 is configured to determine whether the data size is greater than a preset threshold, and if the data size is determined to be greater than the preset threshold, divide the data to be transmitted into a preset number of data sets.
The processing module 303 is further configured to compress each data set to obtain a plurality of data packets.
In a possible implementation manner, the first obtaining module 301 is configured to obtain information that the first node group sends the first data packet, and detect whether the second node group sends the second data packet, where the second data packet is any one of the plurality of data packets, in a first preset duration.
And a processing module 303, configured to send a stop instruction to the first node group if it is determined that the second node group sends the second data packet within the first preset duration, so that the first node group stops sending the first data packet.
In one possible implementation, the processing module 303 is configured to start recording the duration from the sending of the stop instruction.
The processing module 303 is further configured to send a start instruction to the first node group when the duration reaches a second preset duration, so that the first node group resends the first data packet.
The embodiment also discloses an electronic device, referring to fig. 4, the electronic device may include: at least one processor 401, at least one communication bus 402, a user interface 403, a network interface 404, at least one memory 405.
Wherein communication bus 402 is used to enable connected communications between these components.
The user interface 403 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 403 may further include a standard wired interface and a standard wireless interface.
The network interface 404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 401 may include one or more processing cores. The processor 401 connects the various parts within the entire server using various interfaces and lines, performs various functions of the server and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 405, and invoking data stored in the memory 405. Alternatively, the processor 401 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 401 may integrate one or a combination of several of a central processor 401 (Central Processing Unit, CPU), an image processor 401 (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 401 and may be implemented by a single chip.
The Memory 405 may include a random access Memory 405 (Random Access Memory, RAM), or may include a Read-Only Memory 405 (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 405 may be used to store instructions, programs, code sets, or instruction sets. The memory 405 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 405 may also optionally be at least one storage device located remotely from the aforementioned processor 401. As shown, the memory 405, which is a computer storage medium, may include an operating system, network communication modules, user interface 403 modules, and an application program for a method of processing a LoRa multi-node big data transfer.
In the electronic device shown in fig. 4, the user interface 403 is mainly used for providing an input interface for a user, and acquiring data input by the user; and processor 401 may be used to invoke an application in memory 405 that stores a processing method for a LoRa multi-node big data transmission, which when executed by one or more processors 401, causes the electronic device to perform the method as in one or more of the embodiments described above.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as a division of units, merely a division of logic functions, and there may be additional divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory 405. Based on such understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory 405, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned memory 405 includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a magnetic disk or an optical disk.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (7)

1. A processing method for LoRa multi-node big data transmission is characterized in that the method is applied to a server and comprises the following steps:
acquiring a first transmission frequency of a first node group, wherein the first node group is any one of a plurality of node groups, the node group is a combination of a plurality of transmission nodes, and a plurality of transmission nodes of the first node group are positioned in a first preset channel;
Acquiring a second transmission frequency of a second node group, wherein the second node group is any node group except the first node group in a plurality of node groups, the plurality of transmission nodes of the second node group are positioned in a second preset channel, and the first preset channel and the second preset channel have no communication frequency intersection;
Judging whether the first transmission frequency is consistent with the second transmission frequency, if the first transmission frequency is inconsistent with the second transmission frequency, sending a first data packet to the first node group, wherein the first data packet is any one of a plurality of data packets, and the data packet is a data unit after the data packets to be transmitted are compressed;
Before the acquiring the first transmission frequency of the first node group, the method further includes: acquiring the sending position information of the sending end of the data to be transmitted, and acquiring the receiving position information of the receiving end of the data to be transmitted; acquiring a plurality of transmission nodes between the transmitting end and the receiving end based on the transmitting position information and the receiving position information; acquiring first node information of a first transmission node, wherein the first transmission node is any one of a plurality of transmission nodes, the first node information comprises a plurality of first node sub-information, and the first node sub-information is any one of physical position information, transmission frequency, signal strength and data transmission rate; based on the sub-information of the plurality of first nodes, grouping the plurality of transmission nodes through a preset algorithm to obtain a plurality of node groups; each node group corresponds to a channel, a plurality of transmission nodes of each node group are positioned in the same channel, each channel corresponds to a central frequency, and frequency intersections do not exist in different channels;
The sending the first data packet to the first node group specifically includes: acquiring the data size of the data to be transmitted; judging whether the data size is larger than a preset threshold value, and if the data size is determined to be larger than the preset threshold value, dividing the data to be transmitted into a preset number of data groups; compressing each data group to obtain a plurality of data packets; calling a first data packet and sending the first data packet to the first node group;
After determining whether the first transmission frequency is consistent with the second transmission frequency, if it is determined that the first transmission frequency is inconsistent with the second transmission frequency, sending a first data packet to the first node group, the method further includes: acquiring information of the first node group for transmitting the first data packet, and detecting whether the second node group transmits a second data packet within a first preset duration, wherein the second data packet is any one of a plurality of data packets; and if the second node group sends the second data packet within the first preset time period, sending a stop instruction to the first node group so that the first node group stops sending the first data packet.
2. The method for processing large data transmission of multiple LoRa nodes according to claim 1, wherein after said grouping processing is performed on multiple transmission nodes by a preset algorithm based on multiple node sub-information to obtain multiple node groups, the method further comprises:
acquiring first node sub-information of the first transmission node;
Acquiring second node information of a second transmission node, wherein the second transmission node is any one transmission node except the first transmission node among a plurality of transmission nodes, the first transmission node and the second transmission node are both in the first node group, the second node information comprises a plurality of second node sub-information, and the second node sub-information is one corresponding to the first node sub-information in physical position information, transmission frequency, signal strength and data transmission rate;
Acquiring second node sub-information of the second transmission node;
Based on a preset rule, the first node sub-information and the second node sub-information are subjected to priority ranking;
and acquiring a result of the priority ordering, and determining the first transmission node as a management node based on the result so as to manage the transmission nodes in the first node group.
3. The method for processing the large data transmission of the LoRa multi-node according to claim 1, wherein the obtaining the first transmission frequency of the first node group specifically includes:
acquiring output transmission frequency of a preset tail node, wherein the tail node is a preset data output node in the first node group;
setting the output transmission frequency to the first transmission frequency.
4. The method according to claim 1, wherein after determining that the second node group transmits the second data packet within a preset time, the second node group transmits a stop command to the first node group to stop the first node group from transmitting the first data packet, the method further comprises:
Recording duration from the sending of the stop instruction;
And when the time length reaches a second preset time length, sending a start instruction to the first node group so as to enable the first node group to resend the first data packet.
5. The processing device for LoRa multi-node big data transmission is characterized by being a server and comprising a first acquisition module (301), a second acquisition module (302) and a processing module (303), wherein:
The first obtaining module (301) is configured to obtain a first transmission frequency of a first node group, where the first node group is any one of a plurality of node groups, the node group is a combination of a plurality of transmission nodes, and a plurality of transmission nodes of the first node group are in a first preset channel;
The second obtaining module (302) is configured to obtain a second transmission frequency of a second node group, where the second node group is any node group other than the first node group among the plurality of node groups, and the plurality of transmission nodes of the second node group are in a second preset channel, and there is no communication frequency intersection between the first preset channel and the second preset channel;
The processing module (303) is configured to determine whether the first transmission frequency is consistent with the second transmission frequency, and if it is determined that the first transmission frequency is inconsistent with the second transmission frequency, send a first data packet to the first node group, where the first data packet is any one of a plurality of data packets, and the data packet is a data unit after compression of a data packet to be transmitted;
The first obtaining module (301) is configured to obtain sending position information of a sending end of the data to be transmitted, and obtain receiving position information of a receiving end of the data to be transmitted;
The second obtaining module (302) is configured to obtain a plurality of the transmission nodes between the transmitting end and the receiving end based on the transmitting position information and the receiving position information;
The first obtaining module (301) is configured to obtain first node information of a first transmission node, where the first transmission node is any one of a plurality of transmission nodes, the first node information includes a plurality of first node sub-information, and the first node sub-information is any one of physical location information, transmission frequency, signal strength, and data transmission rate;
The processing module (303) is configured to perform packet processing on the plurality of transmission nodes through a preset algorithm based on the plurality of first node sub-information, so as to obtain a plurality of node groups;
The processing module (303) is configured to correspond to one channel to each node group, where a plurality of transmission nodes in each node group are located in the same channel, each channel corresponds to a center frequency, and there is no frequency intersection between different channels;
The first acquisition module (301) is configured to acquire a data size of the data to be transmitted; judging whether the data size is larger than a preset threshold value, and if the data size is determined to be larger than the preset threshold value, dividing the data to be transmitted into a preset number of data groups;
-said processing module (303) configured to compress each of said data sets to obtain a plurality of said data packets; calling a first data packet and sending the first data packet to the first node group;
The first obtaining module (301) is configured to obtain information of the first node group sending the first data packet, and detect whether the second node group sends a second data packet within a first preset duration, where the second data packet is any one of the data packets;
The processing module (303) is configured to send a stop instruction to the first node group if it is determined that the second node group sends the second data packet within the first preset duration, so that the first node group stops sending the first data packet.
6. An electronic device comprising a processor (401), a memory (405), a user interface (403) and a network interface (404), the memory (405) being configured to store instructions, the user interface (403) and the network interface (404) being configured to communicate to other devices, the processor (401) being configured to execute the instructions stored in the memory (405) to cause the electronic device to perform the method of any of claims 1-4.
7. A computer readable storage medium storing instructions which, when executed, perform the method steps of any of claims 1-4.
CN202310931883.7A 2023-07-26 LoRa multi-node big data transmission processing method and device and electronic equipment Active CN117202371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310931883.7A CN117202371B (en) 2023-07-26 LoRa multi-node big data transmission processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310931883.7A CN117202371B (en) 2023-07-26 LoRa multi-node big data transmission processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN117202371A CN117202371A (en) 2023-12-08
CN117202371B true CN117202371B (en) 2024-06-21

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753327A (en) * 2019-09-30 2020-02-04 国电南瑞科技股份有限公司 Terminal Internet of things access system based on wireless ad hoc network and LoRa
CN112583511A (en) * 2020-12-06 2021-03-30 广州技象科技有限公司 Networking method, device, equipment and storage medium based on same time slot transmission

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753327A (en) * 2019-09-30 2020-02-04 国电南瑞科技股份有限公司 Terminal Internet of things access system based on wireless ad hoc network and LoRa
CN112583511A (en) * 2020-12-06 2021-03-30 广州技象科技有限公司 Networking method, device, equipment and storage medium based on same time slot transmission

Similar Documents

Publication Publication Date Title
Lavric et al. Performance evaluation of LoRaWAN communication scalability in large‐scale wireless sensor networks
US5604869A (en) System and method for sending and responding to information requests in a communications network
JPH11501491A (en) Method for initializing a wireless packet hopping network
WO2020164442A1 (en) Communication method and apparatus
JP2007006497A (en) Apparatus and method for providing enhanced wireless communication
WO2019177702A1 (en) Communicating packets in a mesh network
JP5784831B2 (en) Device and method for communication of management information in an ad hoc wireless network
KR20130053650A (en) Method and apparatus for transmitting data in a device to device communition service system
CN114077568A (en) Inter-core communication method and device, electronic assembly and electronic equipment
CN110971533B (en) Method, server apparatus, client apparatus, and medium for data communication
WO2019015040A1 (en) Signal strength based frequency point selection method and internet of things terminal
CN113179509B (en) Ad hoc network method and device based on WiFi, storage medium and wireless node
CN117202371B (en) LoRa multi-node big data transmission processing method and device and electronic equipment
CN114040440A (en) Wireless transmission method, device, equipment and storage medium
CN116390156B (en) LoRa communication method, device, equipment and readable storage medium
CN110943813A (en) SRS resource transmission method and device
WO2014076878A1 (en) Data sharing system
US8855693B2 (en) Method and apparatus for controlling wireless devices
CN117202371A (en) LoRa multi-node big data transmission processing method and device and electronic equipment
US10548152B2 (en) Coordinating wireless data communications
CN113259956A (en) LoRa data transmission method, LoRa gateway, LoRa node and LoRa network
US11877168B2 (en) Radio frame analysis system, radio frame analysis method, and program
US11350297B2 (en) Radio frame analysis system, radio frame analysis method, and program
KR102025730B1 (en) Communication method and apparatus using high-speed data aggregation
WO2021087909A1 (en) Signal transmission method and device, and mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant