CN113194425A - LoRa communication method, system and computer readable storage medium - Google Patents

LoRa communication method, system and computer readable storage medium Download PDF

Info

Publication number
CN113194425A
CN113194425A CN202110463980.9A CN202110463980A CN113194425A CN 113194425 A CN113194425 A CN 113194425A CN 202110463980 A CN202110463980 A CN 202110463980A CN 113194425 A CN113194425 A CN 113194425A
Authority
CN
China
Prior art keywords
communication
target
channel
determining
lora
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.)
Granted
Application number
CN202110463980.9A
Other languages
Chinese (zh)
Other versions
CN113194425B (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 Mushroom Iot Technology Co ltd
Original Assignee
Mogulinker Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Mogulinker Technology Shenzhen Co Ltd filed Critical Mogulinker Technology Shenzhen Co Ltd
Priority to CN202110463980.9A priority Critical patent/CN113194425B/en
Publication of CN113194425A publication Critical patent/CN113194425A/en
Application granted granted Critical
Publication of CN113194425B publication Critical patent/CN113194425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0413MIMO systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses an LoRa communication method, a system and a computer readable storage medium, wherein the LoRa communication method is used for an edge server, the edge server is connected with at least two transmitting terminals, each transmitting terminal corresponds to at least two channels, and the method comprises the following steps: when the sending condition of the operation instruction is met, a target transmitting terminal and a target channel are determined; and sending the operation instruction to the equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction. LoRa communication is realized through a plurality of receiving terminals and a plurality of transmitting terminals, so that data can be transmitted based on a plurality of communication channels, and the stability and the transmission efficiency of communication are improved.

Description

LoRa communication method, system and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, a system, and a computer-readable storage medium for LoRa communication.
Background
At present, multiple types of multiple equipment units in an air compression station room (namely, a compressed air station) realize automation or industrial thing connection by adopting a local Long-distance wireless transmission technology (Long Range, Long ra for short), and through the communication between a system and a cloud and an edge server, the intelligent operation capacity of the local unit can be improved by sending a control instruction and an intelligent joint control algorithm through the cloud and the edge server. However, the existing LoRa network performs one-to-one communication, i.e., single-input single-output communication through one transmitting end and one receiving end, but this communication method easily causes communication instability and transmission efficiency inefficiency.
Disclosure of Invention
The embodiment of the application aims to solve the problems of unstable communication and low transmission efficiency of the existing LoRa network by providing a LoRa communication method, a system and a computer readable storage medium.
In order to achieve the above object, an aspect of the present application provides an LoRa communication method, where the LoRa communication method is used for an edge server, and the edge server is connected to at least two transmitting terminals, where each transmitting terminal corresponds to at least two channels, and the method includes:
when the sending condition of the operation instruction is met, a target transmitting terminal and a target channel are determined;
and sending the operation instruction to an equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction.
Optionally, the step of determining the target transmitting end and the target channel includes:
acquiring current communication time, and determining the target transmitting terminal according to the communication time;
acquiring operation information in the operation instruction, acquiring equipment to be operated in the operation information, and determining a receiving end where the equipment to be operated is located;
and determining the target channel according to the receiving end where the device to be operated is located.
Optionally, after the step of sending the operation instruction to the device side through the target channel, the method includes:
acquiring the communication quality of each channel;
determining the current communication condition according to the communication quality, and executing different channel configuration operations according to the communication condition, wherein the channel configuration at least comprises channel optimization and channel switching.
Optionally, the step of performing different channel configuration operations according to the communication situation includes:
if the communication condition is a first communication condition, sending a channel switching instruction to the target transmitting terminal so that the target transmitting terminal performs channel switching operation according to the channel switching instruction; or,
and if the communication situation is the second communication situation, executing channel optimization operation.
Optionally, before the step of determining the target transmitting end and the target channel, the method includes:
acquiring the operation type of the operation instruction, and determining the priority corresponding to the operation instruction according to the operation type;
and determining the execution sequence of the operation instructions according to the priority.
Optionally, the step of determining the priority corresponding to the operation instruction according to the operation type includes:
if the operation type is the control type, determining that the priority corresponding to the operation instruction is a first priority; or,
and if the operation type is the acquisition type, determining that the priority corresponding to the operation instruction is a second priority, wherein the execution sequence of the first priority is before the second priority.
Optionally, before the step of determining the target transmitting end and the target channel when the condition for sending the operation instruction is satisfied, the method includes:
determining the importance of the collected data;
and determining the acquisition frequency of the data according to the importance degree, wherein the acquisition frequency is associated with the frequency of sending the operation instruction to the equipment terminal.
Optionally, before the step of determining the target transmitting end and the target channel when the condition for sending the operation instruction is satisfied, the method further includes:
determining target operation equipment, wherein the target operation equipment is preset data acquisition equipment;
and transmitting the data of the target operation equipment by adopting at least two channels.
In addition, in order to achieve the above object, another aspect of the present application further provides a system, which includes a memory, a processor, and an LoRa communication program stored in the memory and running on the processor, wherein the processor implements the steps of the LoRa communication method when executing the LoRa communication program.
In addition, to achieve the above object, another aspect of the present application further provides a computer readable storage medium having stored thereon an LoRa communication program, which when executed by a processor implements the steps of the LoRa communication method as described above.
When the condition for sending the operation instruction is met, the target transmitting terminal and the target channel are determined; and sending the operation instruction to the equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction. LoRa communication is realized through a plurality of receiving terminals and a plurality of transmitting terminals, so that data can be transmitted based on a plurality of communication channels, and the stability and the transmission efficiency of communication are improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a first embodiment of the LoRa communication method of the present application;
fig. 3 is a flowchart illustrating a second embodiment of the LoRa communication method of the present application;
fig. 4 is a schematic flowchart of a third embodiment of the LoRa communication method of the present application;
fig. 5 is a schematic flowchart of a fourth embodiment of the LoRa communication method according to the present application;
fig. 6 is a flowchart illustrating a fifth embodiment of the LoRa communication method according to the present application;
fig. 7 is a schematic flowchart illustrating a process of determining a target transmitting end and a target channel in the LoRa communication method of the present application;
fig. 8 illustrates a communication principle between each LoRa base station and each LoRa node in the LoRa communication method of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: when the sending condition of the operation instruction is met, a target transmitting terminal and a target channel are determined; and sending the operation instruction to an equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction.
Since the existing LoRa network performs one-to-one communication, that is, single-input single-output communication is performed through one transmitting end and one receiving end, this communication method easily causes communication instability and transmission efficiency inefficiency. When the operating instruction sending condition is met, a target transmitting terminal and a target channel are determined; and sending the operation instruction to the equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction. LoRa communication is realized through a plurality of receiving terminals and a plurality of transmitting terminals, so that data can be transmitted based on a plurality of communication channels, and the stability and the transmission efficiency of communication are improved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operation terminal, a network communication module, a user interface module, and an LoRa communication program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for data communication with the background server; the user interface 1003 is mainly used for data communication with the client; when the terminal is an edge server, the processor 1001 may be configured to call the LoRa communication program in the memory 1005, and perform the following operations:
when the sending condition of the operation instruction is met, a target transmitting terminal and a target channel are determined;
and sending the operation instruction to an equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction.
Referring to fig. 2, fig. 2 is a schematic flowchart of a LoRa communication method according to a first embodiment of the present application.
While the present embodiments provide an embodiment of the LoRa communication method, it should be noted that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in an order different from that here.
The LoRa communication method is used for an edge server, the edge server is connected with at least two transmitting terminals, wherein each transmitting terminal corresponds to at least two channels, and the method comprises the following steps:
step S10, when the operation instruction sending condition is satisfied, the target transmitting terminal and the target channel are determined;
in this embodiment, a Multiple-Input Multiple-Output (MIMO) technique is used for a multipath wireless channel, and it refers to using Multiple transmitting antennas and Multiple receiving antennas at a transmitting end and a receiving end respectively, and is different from a conventional signal processing method in that it simultaneously studies signal processing problems from two aspects of time and space, so as to improve a data rate of a system, reduce a bit error rate, and improve transmission quality of a wireless signal without increasing a bandwidth and a transmission power. The application applies the MIMO technology to Long-distance radio communication (Long Range, LoRa for short), and the biggest characteristic of the LoRa communication is that the distance of propagation is farther than that of other wireless modes under the same power consumption condition, so that the low power consumption and the Long distance are unified. In the prior art, the LoRa communication implements one-to-one communication, that is, a receiving end and a transmitting end are used for communication, because this communication method has only one channel, when the channel fails, the communication cannot be performed, and at the same time, the information that can be transmitted by one channel is limited, which results in low and unstable transmission efficiency. When the MIMO technology is applied to the LoRa communication, information can be transmitted and received through a plurality of channels, thereby improving communication stability and transmission efficiency.
In an embodiment, taking a compressed air station as an example, in order to ensure safe and reliable operation of the equipment group in the air station room, local and remote monitoring and control are required to be realized through automation and industrial internet of things technology. The multiple kinds of multiple equipment units in the air compression station room are connected with the edge server through a local wireless LoRa communication network to realize automation or industrial internet of things, and the equipment is monitored and controlled through the edge server. Specifically, a plurality of LoRa base stations (transmitting terminals) are arranged at a transmitting terminal of the communication system, a plurality of LoRa nodes (receiving terminals) are arranged at the receiving terminal, the LoRa nodes and the LoRa base stations are communicated in a mutual transparent transmission mode, and a master-slave structure is adopted to enable one LoRa base station to manage the plurality of LoRa nodes. The same communication channel is used between the LoRa base station and the LoRa nodes, and different communication channels can be used in one station house to form a plurality of groups of communication. Further loRa base station and edge server adopt LAN communication, have a plurality of loRa base stations and edge server communication in a station room, through the communication system who builds like this, can realize the automation and the industry thing of whole station room and ally oneself with the system. Referring to fig. 8, fig. 8 illustrates a communication principle between each LoRa base station and each LoRa node, where the specific communication is as follows: LoRa base stations 3-1, 3-2 and 3-3 carry out local area network communication with an edge server 5-1 through a switch 4-1, and simultaneously carry out LoRa bidirectional communication with LoRa nodes 2-1, 2-2 and 2-3 through a plurality of LoRa channels; LoRa nodes 2-1, 2-2 and 2-3 are connected with pressure sensors 1-1 and 1-2 and a controller 1-3 locally to carry out bidirectional communication of a field bus, so that automation and an industrial internet of things system of the whole station room are realized. Further, the LoRa nodes 2-1, 2-2 and 2-3 report the collected data of the pressure sensors 1-1 and 1-2 and the controller 1-3 to the edge server 5-1 through the LoRa base stations 3-1, 3-2 and 3-3 to analyze the data and display the data locally, and the edge server 5-1 manages the LoRa communication network according to the data and an algorithm and controls and adjusts the equipment below the LoRa nodes 2-1, 2-2 and 2-3.
When the edge server needs to collect device data or control device operation, an operation instruction is sent to the LoRa base station, and because there are multiple LoRa base stations and each LoRa base station corresponds to multiple LoRa channels, it is necessary to determine one LoRa base station among the multiple LoRa base stations as a target transmitting end, and select one LoRa channel among the multiple LoRa channels corresponding to the target transmitting end to transmit signals. Wherein, satisfying the operation instruction sending condition means: the edge server receives a control instruction for the device sent by the user or the current sending time of the operation instruction, for example, the edge server collects device data every 3 hours by default, and when the collecting time is reached, the sending condition meeting the operation instruction is determined, wherein the sending condition meeting the operation instruction can be determined according to the user requirement, and is not limited herein.
Further, referring to fig. 7, the step of determining the target transmitting end and the target channel includes:
step S11, obtaining the current communication time, and determining the target transmitting terminal according to the communication time;
step S12, obtaining operation information in the operation instruction, obtaining equipment to be operated in the operation information, and determining a receiving end where the equipment to be operated is located;
step S13, determining the target channel according to the receiving end where the device to be operated is located.
In this embodiment, the edge server only communicates with one LoRa base station at a certain time, e.g., at time T1, the edge server communicates with LoRa base station 3-1; at time T2, the edge server communicates with LoRa base station 3-2; at time T3, the edge server communicates with LoRa base station 3-3. Therefore, when the edge server sends an operation instruction to the LoRa base station, the current communication time is acquired in advance, and it is possible to determine which LoRa base station is currently in communication with according to the current communication time. In addition, each LoRa node has a unique 10-bit address, such as 2003020001, and each LoRa base station also has a unique 10-bit address, such as 2103020003. in the communication system, an edge server is provided, and the LoRa node and the LoRa base station in the system need to configure the address and the number of the node in the system, so as to determine the corresponding communication path according to the address and the number. After the target LoRa base station is determined, it is further required to determine which LoRa channel in the target LoRa base station is used for transmitting information, specifically, to obtain operation information in the operation instruction, to obtain a device to be operated in the operation information, to determine a receiving end where the device to be operated is located, and to determine a channel corresponding to the target transmitting end according to the receiving end where the device to be operated is located. If the current operation information is the pressure information collected by the pressure sensor 1-1, and the receiving end corresponding to the pressure sensor 1-1 is the LoRa node 2-1, at this time, the edge server can know the address and the number of the LoRa node 2-1, so as to determine the corresponding LoRa channel transmission operation instruction.
Step S20, sending the operation instruction to the device side through the target channel, so that the device side executes a corresponding operation according to the operation instruction.
In this embodiment, after determining the LoRa base station and the LoRa channel, the edge server directly sends the operation instruction to the device side through the LoRa channel, and after receiving the operation instruction, the device side obtains operation information corresponding to the operation instruction and executes corresponding operation according to the operation information. In an embodiment, when an edge server sends an operation through an LoRa channel 1 in an LoRa base station 3-1, an LoRa node 2-1 receives an operation instruction, the LoRa node 2-1 sends the operation instruction to a pressure sensor 1-1, the pressure sensor 1-1 further analyzes the operation instruction, so as to obtain a content corresponding to the operation instruction, if the content is to control the pressure sensor 1-1 to be started, the pressure sensor 1-1 executes a start operation, and returns an execution result to the edge server; if the content is the pressure data of the pressure sensor 1-1, the pressure sensor 1-1 executes the pressure data acquisition operation and returns the acquired pressure data to the edge server in an original way.
When the condition for sending the operation instruction is met, the target transmitting terminal and the target channel are determined; and sending the operation instruction to the equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction. LoRa communication is realized through a plurality of receiving terminals and a plurality of transmitting terminals, so that data can be transmitted based on a plurality of communication channels, and the stability and the transmission efficiency of communication are improved. In addition, the system can be assisted to operate stably and reliably, the air compressor can be effectively operated alternately to balance the working condition of the machine, air compressor resources are reasonably configured, and control is optimized, so that the operation efficiency of the equipment is improved, the service life of the electromechanical equipment is prolonged, and the operation and maintenance cost is reduced.
Further, referring to fig. 3, a second embodiment of the LoRa communication method of the present application is proposed.
The second embodiment of the LoRa communication method is different from the first embodiment of the LoRa communication method in that, after the step of sending the operation command to the device side through the target channel, the method includes:
step S21, obtaining the communication quality of each channel;
step S22, determining a current communication condition according to the communication quality, and performing different channel configuration operations according to the communication condition, wherein the channel configuration at least includes channel optimization and channel switching.
In this embodiment, in the communication process, the edge server may detect the communication quality of each LoRa channel in real time, determine the current communication condition according to the communication quality, and perform different channel configuration operations according to the communication condition, where the communication condition includes a channel failure, a weak communication signal, a base station failure, a node failure, an abnormal connection, an abnormal data acquisition, and the like. If the base station and the node are normal, but the corresponding channel can not transmit any information, determining that a channel fault occurs; if the current communication signal strength does not meet the set strength value, determining that the communication signal is weak; and if the current base station, the node and the channel are normal, but the edge server cannot acquire the data of the equipment end, determining that the data acquisition is abnormal. Different communication abnormal conditions have different channel configuration operations, and the channel configuration at least comprises channel switching, channel optimization, communication protocol modification and the like. Further, the step of performing different channel configuration operations according to the communication situation includes:
if the communication condition is a first communication condition, sending a channel switching instruction to the target transmitting terminal so that the target transmitting terminal performs channel switching operation according to the channel switching instruction;
and if the communication situation is the second communication situation, executing channel optimization operation.
In this embodiment, the first communication condition refers to a channel fault, a base station fault, a node fault, and the like, and when the first communication condition occurs, the operation sequence and the operation rule of the faulty LoRa base station are modified through an algorithm of the edge server, and meanwhile, the LoRa channel configuration of other LoRa base stations is modified, and the faulty LoRa base station is replaced to realize safe and stable operation of the system. In an embodiment, the edge server sends a channel switching instruction to the LoRa base station, where the channel switching instruction includes a channel path to be switched, and the LoRa base station directly executes a channel switching operation after receiving the channel switching instruction, and switches the failed channel to a channel with normal communication.
The second communication condition is signal abnormality, such as weak communication signal, unstable communication, transmission efficiency, etc., and when the first communication condition occurs, the edge server automatically performs channel optimization, such as adjusting the transmission power of the base station, switching channels, adjusting the communication frequency, etc. In an embodiment, the signal strength is used as a determination index of the communication quality, wherein when the communication quality is within a range of 2db-10db, it indicates that the communication signal of the current channel is weak, the edge server sends a transmission power modification instruction to the LoRa base station, where the transmission power modification instruction includes a required transmission power value, and the LoRa base station directly adjusts the current transmission power operation after receiving the transmission power modification instruction, so as to improve the strength of the communication signal and ensure the communication quality.
The embodiment determines the current communication condition according to the communication quality by acquiring the communication quality of each channel, and executes different channel configuration operations according to the communication condition, thereby ensuring the safe and stable operation of the system.
Further, referring to fig. 4, a third embodiment of the LoRa communication method of the present application is proposed.
The third embodiment of the LoRa communication method is different from the first and second embodiments of the LoRa communication method in that the step of determining the target transmitting end and the target channel includes, before the step of determining the target transmitting end and the target channel:
step S14, obtaining the operation type of the operation instruction, and determining the priority corresponding to the operation instruction according to the operation type;
and step S15, determining the execution sequence of the operation instructions according to the priority.
In this embodiment, the operation instruction of the edge server mainly includes two types, one is a control type, and the other is an acquisition type, and different operation types are provided with different priorities, where the priority refers to an execution priority. In the communication process, the edge server acquires the operation type of the operation instruction, determines the priority corresponding to the operation instruction according to the operation type, and determines the execution sequence of the operation instruction according to the priority. Specifically, if the operation type is the control type, determining that the priority corresponding to the operation instruction is a first priority; and if the operation type is the acquisition type, determining that the priority corresponding to the operation instruction is a second priority, wherein the execution sequence of the first priority is before the second priority. That is, the control command is prior to the data collecting command, so as to ensure that the control command is executed with the highest priority, and the data collection is collected in a continuous cycle.
In the embodiment, the operation type of the operation instruction is obtained, the priority corresponding to the operation instruction is determined according to the operation type, and the execution sequence of the operation instruction is determined according to the priority, wherein the priority of the control instruction is higher than the priority of the data acquisition instruction, that is, a control priority policy is set, so that the control instruction is guaranteed to be executed with the highest priority.
Further, referring to fig. 5, a fourth embodiment of the LoRa communication method of the present application is proposed.
The fourth embodiment of the LoRa communication method is different from the first, second and third embodiments of the LoRa communication method in that, before the step of determining the target transmitting end and the target channel when the operation instruction sending condition is satisfied, the method includes:
step S16, determining the importance degree of the collected data;
and step S17, determining the data acquisition frequency according to the importance degree, wherein the acquisition frequency is associated with the frequency of sending the operation instruction to the equipment terminal.
In this embodiment, since the edge server needs to collect various types of device data, such as: the operation data, the pressure data, the temperature data and the like, and the corresponding importance degrees of different equipment data are different, for example, the pressure data is the most important data in an air compression station room. When the edge server collects the equipment data, the data collection is divided into a plurality of levels in advance, such as an important level, a secondary level and a general three-level; or primary, secondary, tertiary and the like, and the data acquisition grade corresponds to the importance degree of the acquired data. After the importance degree of the acquired data is determined, the acquisition frequency of the data is determined according to the importance degree, and an operation instruction is sent to the equipment end according to the acquisition frequency, wherein the acquisition frequency is associated with the frequency of sending the operation instruction to the equipment end; if the acquired data is the temperature data of the equipment and the corresponding data acquisition grade is general, the acquisition frequency of the temperature data is that the temperature information of the equipment is acquired every four hours.
According to the embodiment, the data acquisition frequency is determined according to the importance degree of the acquired data, the data acquisition instruction is sent to the equipment terminal according to the data acquisition frequency, and if the data acquisition frequency is high, the frequency for sending the data acquisition instruction is also high, so that the important data can be acquired in time, and the running condition of the equipment can be analyzed in time according to the important data.
Further, referring to fig. 6, a fifth embodiment of the LoRa communication method of the present application is proposed.
The fifth embodiment of the LoRa communication method is different from the first, second, third, and fourth embodiments of the LoRa communication method in that, before the step of determining the target transmitting end and the target channel when the operation instruction sending condition is satisfied, the method further includes:
step S18, determining a target operation device, wherein the target operation device is a preset data acquisition device;
and step S19, transmitting the data of the target operating device by adopting at least two channels.
In this embodiment, in order to improve the robustness of the system and ensure safe production, at least two channels are used for transmitting the target data to the target operating device, where the target operating device is a preset data acquisition device, such as a pressure sensor. Specifically, double backup is adopted for key sensors, data are not transmitted in the same LoRa channel, and during normal operation, comparison filtering processing can be performed on three groups of data of 2-path sensor data and data statistics in equipment, so that stable operation can be realized, and the safety of a system affected by a certain sensor fault can be ensured. Meanwhile, the method can be divided into four-level operation modes according to data real-time performance and bandwidth: and (3) running at full speed: three threads manage three base stations to run concurrently; and (3) stable operation: after the screen saver is started, the three threads run alternately; safe operation: when a certain pressure acquisition fault occurs, alarming, starting standby pressure data acquisition and continuing to operate; pressure maintaining operation: when the standby pressure default acquisition path fails, the LoRa channel switching is started, and industrial control resources are saved for pressure maintaining operation.
According to the embodiment, the key sensors are subjected to double backup, and data are not transmitted in the same LoRa channel, so that the robustness of the system is improved, and the safety production is ensured.
The present application further provides an LoRa communication system, where in an embodiment, the LoRa communication system includes a memory, a processor, and an upgrade program of an algorithm stored on the memory and executable on the processor, where the upgrade program of the algorithm implements the following steps when executed by the processor:
when the sending condition of the operation instruction is met, a target transmitting terminal and a target channel are determined;
and sending the operation instruction to an equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction.
In one embodiment, the LoRa communication system includes a determining module and a transmitting module.
The determining module is used for determining a target transmitting terminal and a target channel when the condition of sending the operation instruction is met;
the sending module is used for sending the operation instruction to an equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction.
Further, the determining module comprises an acquiring unit and a determining unit;
the acquisition unit is used for acquiring the current communication time and determining the target transmitting terminal according to the communication time;
the obtaining unit is further configured to obtain operation information in the operation instruction, obtain a device to be operated in the operation information, and determine a receiving end where the device to be operated is located;
the determining unit is configured to determine the target channel according to a receiving end where the device to be operated is located.
Further, the sending module comprises an acquiring unit and an executing unit;
the acquiring unit is used for acquiring the communication quality of each channel;
the execution unit is configured to determine a current communication condition according to the communication quality, and execute different channel configuration operations according to the communication condition, where the channel configuration at least includes channel optimization and channel switching.
Further, the execution unit comprises a sending subunit and an execution subunit;
the sending subunit is configured to send a channel switching instruction to the target sending end if the communication condition is a first communication condition, so that the target sending end performs a channel switching operation according to the channel switching instruction; or,
the execution subunit is configured to execute a channel optimization operation if the communication situation is a second communication situation.
Further, the obtaining unit is further configured to obtain an operation type of the operation instruction, and determine a priority corresponding to the operation instruction according to the operation type;
the determining unit is further configured to determine an execution order of the operation instructions according to the priority.
Further, the determining unit is further configured to determine, if the operation type is a control type, that the priority corresponding to the operation instruction is a first priority;
the determining unit is further configured to determine that the priority corresponding to the operation instruction is a second priority if the operation type is an acquisition type, where an execution sequence of the first priority is before the second priority.
Further, the determining unit is further configured to determine the importance of the acquired data;
the determining unit is further configured to determine an acquisition frequency of data according to the importance degree, where the acquisition frequency is associated with a frequency of sending an operation instruction to the device side.
Further, the determining unit further comprises a transmitting unit;
the determining unit is further configured to determine a target operating device, where the target operating device is a preset data acquisition device;
the transmission unit is configured to transmit the data of the target operating device by using at least two channels.
The implementation of the functions of each module of the LoRa communication system is similar to the process in the above method embodiment, and is not described herein again.
Further, the present application provides a computer-readable storage medium having stored thereon a LoRa communication method program, which when executed by a processor, implements the steps of the LoRa communication method described above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. An LoRa communication method is used for an edge server, where the edge server is connected to at least two transmitting terminals, where each transmitting terminal corresponds to at least two channels, and the method includes:
when the sending condition of the operation instruction is met, a target transmitting terminal and a target channel are determined;
and sending the operation instruction to an equipment end through the target channel so that the equipment end executes corresponding operation according to the operation instruction.
2. The LoRa communication method of claim 1, wherein the step of determining a target transmitting end and a target channel comprises:
acquiring current communication time, and determining the target transmitting terminal according to the communication time;
acquiring operation information in the operation instruction, acquiring equipment to be operated in the operation information, and determining a receiving end where the equipment to be operated is located;
and determining the target channel according to the receiving end where the device to be operated is located.
3. The LoRa communication method according to claim 1, wherein the step of sending the operation command to the device side through the target channel is followed by:
acquiring the communication quality of each channel;
determining the current communication condition according to the communication quality, and executing different channel configuration operations according to the communication condition, wherein the channel configuration at least comprises channel optimization and channel switching.
4. The LoRa communication method according to claim 3, wherein the step of performing different channel configuration operations according to the communication situation comprises:
if the communication condition is a first communication condition, sending a channel switching instruction to the target transmitting terminal so that the target transmitting terminal performs channel switching operation according to the channel switching instruction; or,
and if the communication situation is the second communication situation, executing channel optimization operation.
5. The LoRa communication method according to any one of claims 1 to 4, wherein the step of determining the target transmitting end and the target channel is preceded by the steps of:
acquiring the operation type of the operation instruction, and determining the priority corresponding to the operation instruction according to the operation type;
and determining the execution sequence of the operation instructions according to the priority.
6. The LoRa communication method according to claim 5, wherein the step of determining the priority corresponding to the operation instruction according to the operation type includes:
if the operation type is the control type, determining that the priority corresponding to the operation instruction is a first priority; or,
and if the operation type is the acquisition type, determining that the priority corresponding to the operation instruction is a second priority, wherein the execution sequence of the first priority is before the second priority.
7. The LoRa communication method as claimed in claim 1, wherein the step of determining the target transmitting end and the target channel when the operation command transmission condition is satisfied comprises:
determining the importance of the collected data;
and determining the acquisition frequency of the data according to the importance degree, wherein the acquisition frequency is associated with the frequency of sending the operation instruction to the equipment terminal.
8. The LoRa communication method as claimed in claim 1, wherein before the step of determining the target transmitting end and the target channel when the operation instruction sending condition is satisfied, the method further comprises:
determining target operation equipment, wherein the target operation equipment is preset data acquisition equipment;
and transmitting the data of the target operation equipment by adopting at least two channels.
9. An LoRa communication system, comprising a memory, a processor, and an LoRa communication program stored on the memory and running on the processor, wherein the processor, when executing the LoRa communication program, performs the steps of the method of any one of claims 1-8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an LoRa communication program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.
CN202110463980.9A 2021-04-27 2021-04-27 LoRa communication method, system and computer readable storage medium Active CN113194425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110463980.9A CN113194425B (en) 2021-04-27 2021-04-27 LoRa communication method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110463980.9A CN113194425B (en) 2021-04-27 2021-04-27 LoRa communication method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113194425A true CN113194425A (en) 2021-07-30
CN113194425B CN113194425B (en) 2022-08-19

Family

ID=76979967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110463980.9A Active CN113194425B (en) 2021-04-27 2021-04-27 LoRa communication method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113194425B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841571A (en) * 2014-03-20 2014-06-04 吉林大学 Wireless sensor network beam forming transmission array node selecting method
US20200008105A1 (en) * 2018-06-28 2020-01-02 At&T Intellectual Property I, L.P. Framework for dynamic radio access network and intelligent service delivery using a software-defined network for 5g or other next generation network
US20200213419A1 (en) * 2017-09-12 2020-07-02 Huawei Technologies Co., Ltd. Service processing method, mobile edge computing device, and network device
US10715411B1 (en) * 2019-02-17 2020-07-14 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Altering networking switch priority responsive to compute node fitness
CN111512579A (en) * 2018-03-30 2020-08-07 英特尔公司 Multiple access management service packet recovery mechanism
US20200412565A1 (en) * 2019-06-30 2020-12-31 Charter Communications Operating, Llc Wireless enabled distributed data apparatus and methods
CN112165511A (en) * 2020-09-07 2021-01-01 天地(常州)自动化股份有限公司 Coal mine monitoring system, method and computer storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841571A (en) * 2014-03-20 2014-06-04 吉林大学 Wireless sensor network beam forming transmission array node selecting method
US20200213419A1 (en) * 2017-09-12 2020-07-02 Huawei Technologies Co., Ltd. Service processing method, mobile edge computing device, and network device
CN111512579A (en) * 2018-03-30 2020-08-07 英特尔公司 Multiple access management service packet recovery mechanism
US20200008105A1 (en) * 2018-06-28 2020-01-02 At&T Intellectual Property I, L.P. Framework for dynamic radio access network and intelligent service delivery using a software-defined network for 5g or other next generation network
US10715411B1 (en) * 2019-02-17 2020-07-14 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Altering networking switch priority responsive to compute node fitness
US20200412565A1 (en) * 2019-06-30 2020-12-31 Charter Communications Operating, Llc Wireless enabled distributed data apparatus and methods
CN112165511A (en) * 2020-09-07 2021-01-01 天地(常州)自动化股份有限公司 Coal mine monitoring system, method and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JIAJUN XU等: "Discrete Particle Swarm Optimization Based Antenna Selection for MIMO LoRa IoT Systems", 《IEEE 2019 COMPUTING, COMMUNICATIONS AND IOT APPLICATIONS》 *

Also Published As

Publication number Publication date
CN113194425B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN110034983B (en) Home equipment linkage method and system based on publish-subscribe message processing mechanism
CN102014019B (en) Aggregated link switching method and device
US11329866B2 (en) Battery management system and communication method thereof
EP2642699A1 (en) Method of controlling communication system, communication system, communication device
CN101102222A (en) A communication network connection method and its device
CN103001799A (en) Method and node for achieving redundancy on basis of chain network
CN106411585A (en) Server switching method, adapter, server and scheduling device
US9166868B2 (en) Distributed control plane for link aggregation
CN102882705A (en) Method for reporting log through terminal equipment and log reporting system
CN103179178A (en) Method and device for expanding member ports of aggregation groups among clusters
US20170116094A1 (en) Fault handling methods in a home service system, and associated household appliances and servers
CN107483084B (en) Broadband carrier networking method, site and system
CN103914354A (en) Method and system for database fault recovery
CN115022084A (en) Network isolation gatekeeper data exchange method and application thereof
CN112838942A (en) Network operation and maintenance method, electronic equipment and storage medium
CN113194425B (en) LoRa communication method, system and computer readable storage medium
AU2022204679B2 (en) Method for monitoring apparatus
CN111465079A (en) Method for connecting wireless terminal with multiple base stations based on power Internet of things
CN110909055A (en) Data processing method, data processing device, electronic equipment and storage medium
AU2022412721A1 (en) Network carrying out distributed unit scaling and operation method thereof
CN103023698A (en) LACP (link aggregation control protocol) link aggregation optimization method and device based on Ethernet link-level OAM (operation, administration and maintenance)
CN116939897A (en) 5G power gateway and data transmission method
CN112261627B (en) High-speed transmission method and system for wireless monitoring data of boiler temperature based on Internet of things
CN108631826A (en) Alternative beam selection method and communication equipment
CN110601914B (en) Method and system for monitoring survival state of server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: No. 118, Building C1, No.1 Qingsheng Avenue, Nansha District, Guangzhou City, Guangdong Province, 511455

Patentee after: Guangdong Mushroom IoT Technology Co.,Ltd.

Country or region after: China

Address before: 518110 block 1505, building 9, Baoneng Science Park, Qinghu village, Qinghu community, Longhua street, Longhua District, Shenzhen City, Guangdong Province

Patentee before: MOGULINKER TECHNOLOGY (SHENZHEN) CO.,LTD.

Country or region before: China

CP03 Change of name, title or address