CN115474291B - LoRa communication method and system - Google Patents

LoRa communication method and system Download PDF

Info

Publication number
CN115474291B
CN115474291B CN202211419703.9A CN202211419703A CN115474291B CN 115474291 B CN115474291 B CN 115474291B CN 202211419703 A CN202211419703 A CN 202211419703A CN 115474291 B CN115474291 B CN 115474291B
Authority
CN
China
Prior art keywords
communicated
lora
equipment
lora gateway
label
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
CN202211419703.9A
Other languages
Chinese (zh)
Other versions
CN115474291A (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.)
Hunan Qifeng Intelligent Technology Co ltd
Original Assignee
Hunan Qifeng Intelligent Technology 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 Hunan Qifeng Intelligent Technology Co ltd filed Critical Hunan Qifeng Intelligent Technology Co ltd
Priority to CN202211419703.9A priority Critical patent/CN115474291B/en
Publication of CN115474291A publication Critical patent/CN115474291A/en
Application granted granted Critical
Publication of CN115474291B publication Critical patent/CN115474291B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements
    • 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

Abstract

The invention relates to the technical field of communication of the Internet of things, and particularly discloses a LoRa communication method and a system, wherein the method comprises the steps of obtaining equipment to be communicated and the spatial position of the equipment to be communicated, and determining a LoRa gateway according to the spatial position of the equipment to be communicated; establishing a record connection channel between the equipment to be communicated and the LoRa gateway according to the spatial position; inserting an encryption algorithm into the LoRa gateway according to a preset rule; and receiving transmission data containing a target position sent by equipment to be communicated, selecting an LoRa gateway according to the target position, and building a transmission channel. The method comprises the steps that an LoRa gateway is determined according to the position of equipment to be communicated, a data processing function is added in the LoRa gateway, when a communication requirement is received, the LoRa gateway capable of completing the preset function is inquired, and a data transmission channel is established according to the position and the working process of the LoRa gateway; the data processing process of the equipment to be communicated is finished by the LoRa gateway, so that the system architecture is greatly optimized.

Description

LoRa communication method and system
Technical Field
The invention relates to the technical field of communication of the Internet of things, in particular to a LoRa communication method and system.
Background
LoRa is a low-power consumption local area network wireless standard developed by semtech company, and the name of LoRa is Long Range Radio (Long Range Radio), which is characterized in that the distance of propagation is longer than that of other wireless modes under the same power consumption condition, the unification of low power consumption and Long Range is realized, and the distance of the communication is enlarged by 3-5 times than that of the traditional wireless Radio frequency communication under the same power consumption condition.
The LoRa gateway is commonly used in the field of Internet of things, and is connected with each device to be communicated; however, in the interaction process of the internet of things devices, the existing LoRa gateway only plays a data transmission function, and the data processing process is completed by the internet of things devices, in a common way, the internet of things devices process data first and then send the processed data to other main bodies through the gateway.
Disclosure of Invention
The present invention is directed to a method and a system for LoRa communication, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of LoRa communication, the method comprising:
acquiring a device to be communicated and a spatial position thereof, and determining an LoRa gateway according to the spatial position of the device to be communicated;
establishing a record connection channel between the equipment to be communicated and the LoRa gateway according to the spatial position;
inserting an encryption algorithm containing a trigger into the LoRa gateway according to a preset rule; the encryption algorithm is used for encrypting the data passing through the LoRa gateway;
and receiving transmission data containing a target position sent by equipment to be communicated, selecting an LoRa gateway according to the target position, and building a transmission channel.
As a further scheme of the invention: the step of obtaining the device to be communicated and the spatial position thereof and determining the LoRa gateway according to the spatial position of the device to be communicated comprises the following steps:
receiving a recording request containing the number of the equipment to be communicated and uploaded by a user, and acquiring the spatial position of the equipment to be communicated;
arranging the equipment to be communicated according to the spatial position, and updating a scale in real time;
building a display graph according to the real-time updated scale, and determining an LoRa gateway based on the display graph; the display graph contains equipment points corresponding to equipment to be communicated;
and receiving adjustment information input by a user based on the display image, and correcting the LoRa gateway.
As a further scheme of the invention: the method comprises the following steps of constructing a display graph according to a real-time updated scale, and determining the LoRa gateway based on the display graph, wherein the steps comprise:
determining a display map, and determining equipment points corresponding to the spatial position of the equipment to be communicated according to the real-time updated scale and the display map;
sequentially calculating a radius by taking each equipment point as a center and a preset numerical value as a radius, and determining a query circle;
acquiring the number of equipment points in the query circle, and marking the level of the central point according to the number of the equipment points; the level is proportional to the number of device points;
determining LoRa gateways according to the level descending order;
and judging whether each LoRa gateway belongs to the same query circle, and reserving one LoRa gateway when at least two LoRa gateways belong to the same query circle.
As a further scheme of the invention: the step of establishing a record connection channel between the device to be communicated and the LoRa gateway according to the spatial position comprises the following steps:
calculating the distance between the equipment to be communicated and other LoRa gateways, and selecting the LoRa gateway closest to the equipment to be communicated as a target LoRa gateway;
acquiring a data structure of communication data of equipment to be communicated, and establishing an interface in an LoRa gateway according to the data structure;
and establishing a connection channel between the LoRa gateway and the equipment to be communicated based on the interface.
As a further scheme of the invention: the step of inserting an encryption algorithm containing a trigger into the LoRa gateway according to a preset rule comprises the following steps:
sequentially taking the LoRa gateways as centers, inquiring the LoRa gateway closest to the LoRa gateways in a preset traversal direction, and establishing a connecting channel;
inquiring the number of LoRa gateways connected with the LoRa gateways, and determining the communication level of the LoRa gateways according to the number of the gateways;
selecting an LoRa gateway as a target gateway according to the communication level, and inserting an encryption algorithm containing a trigger into the target gateway;
the encryption algorithm comprises a data conversion interface which is adapted to communication data of each device to be communicated.
As a further scheme of the invention: the method comprises the following steps of receiving transmission data containing a target position sent by equipment to be communicated, selecting an LoRa gateway according to the target position, and building a transmission channel, wherein the transmission data comprises the following steps:
receiving transmission data containing a target position sent by equipment to be communicated, and selecting an information channel with an LoRa gateway as a transit point based on the target position;
calculating the data transmission distance of the information channel and the number of gateways containing an encryption algorithm, and generating a communication label to be inserted into the corresponding information channel;
counting the work process amount of all LoRa gateways, and adjusting the communication labels according to the work process amount;
selecting an information channel as a transmission channel according to the communication label;
the communication label is a dynamic label, and the communication label comprises a space efficiency label, a time efficiency label and a security level label.
As a further scheme of the invention: the step of selecting an information channel as a transmission channel according to the communication label comprises the following steps:
calculating the selected value of each information channel according to a preset calculation formula, and selecting the information channel as a transmission channel based on the selected value;
opening a user selection port in real time, and determining a transmission channel with higher priority based on the user selection port;
wherein, the calculation formula is:
Figure 764442DEST_PATH_IMAGE001
in the formula (I), the compound is shown in the specification,
Figure 462271DEST_PATH_IMAGE002
is a selected value of the information channel,
Figure 276774DEST_PATH_IMAGE003
divided into corresponding space efficiency label and time efficiency labelA label and a security level label, wherein,
Figure 616620DEST_PATH_IMAGE004
is a correlation coefficient; and the correlation coefficient corresponding to the time efficiency label and the security level label is greater than the correlation coefficient corresponding to the space efficiency label.
The technical scheme of the invention also provides a LoRa communication system, which comprises:
the gateway determining module is used for acquiring the equipment to be communicated and the spatial position of the equipment to be communicated and determining an LoRa gateway according to the spatial position of the equipment to be communicated;
the gateway recording module is used for establishing a recording connection channel between the equipment to be communicated and the LoRa gateway according to the spatial position;
the encryption algorithm inserting module is used for inserting an encryption algorithm containing a trigger into the LoRa gateway according to a preset rule; the encryption algorithm is used for encrypting the data passing through the LoRa gateway;
and the channel building module is used for receiving transmission data containing a target position sent by the equipment to be communicated, selecting an LoRa gateway according to the target position and building a transmission channel.
As a further scheme of the invention: the gateway determination module includes:
the device comprises a position acquisition unit, a communication unit and a communication unit, wherein the position acquisition unit is used for receiving a filing request which is uploaded by a user and contains the serial number of the device to be communicated and acquiring the spatial position of the device to be communicated;
the scale updating unit is used for arranging the equipment to be communicated according to the spatial position and updating the scale in real time;
the display graph establishing unit is used for establishing a display graph according to the real-time updated scale and determining the LoRa gateway based on the display graph; the display graph contains equipment points corresponding to equipment to be communicated;
and the gateway correction unit is used for receiving the adjustment information input by the user based on the display image and correcting the LoRa gateway.
As a further scheme of the invention: the gateway filing module comprises:
the gateway selection unit is used for calculating the distance between the equipment to be communicated and other LoRa gateways, and selecting the LoRa gateway closest to the equipment to be communicated as a target LoRa gateway;
the interface establishing unit is used for acquiring a data structure of communication data of the equipment to be communicated and establishing an interface in the LoRa gateway according to the data structure;
and the connection unit is used for establishing a connection channel between the LoRa gateway and the equipment to be communicated based on the interface.
Compared with the prior art, the invention has the beneficial effects that: the LoRa gateway is determined according to the position of the equipment to be communicated, the data processing algorithm is additionally arranged in the LoRa gateway, when the communication data which is sent by any equipment to be communicated and contains the processing requirement is received, the gateway with the corresponding function is selected according to the processing requirement, so that the data is transmitted through the gateways, at the moment, the data processing task is switched from the equipment to the gateway, the frequently-used function (such as data encryption) does not need to be repeatedly set on the equipment, and the utilization rate of computing resources is greatly improved. .
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
Fig. 1 is a flow chart diagram of the LoRa communication method.
Fig. 2 is a first sub-flow block diagram of the LoRa communication method.
Fig. 3 is a second sub-flow block diagram of the LoRa communication method.
Fig. 4 is a third sub-flowchart of the LoRa communication method.
Fig. 5 is a fourth sub-flow block diagram of the LoRa communication method.
Fig. 6 is a block diagram of the configuration of the LoRa communication system.
Detailed Description
LoRa is a low-power consumption local area network wireless standard developed by semtech company, the name of LoRa is Long Range Radio (Long Range Radio), the wireless communication device has the greatest characteristic that the wireless communication device is longer in distance than other wireless modes under the same power consumption condition, low power consumption and Long Range unification is realized, and the wireless communication device is 3-5 times longer in distance than the traditional wireless Radio frequency communication device under the same power consumption condition.
The LoRa gateway is commonly used in the field of Internet of things, and is connected with each device to be communicated; however, most of the existing LoRa gateways only have a data transmission function, and actually, some algorithms are added to the LoRa gateways, so that many communication data which need the same processing procedure can be integrated and processed, and the work efficiency of the whole system is greatly improved.
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Example 1
Fig. 1 is a flow chart of an LoRa communication method, and in an embodiment of the present invention, an LoRa communication method includes:
step S100: acquiring a device to be communicated and a spatial position thereof, and determining an LoRa gateway according to the spatial position of the device to be communicated;
the technical scheme is applied to the field of the Internet of things, the to-be-communicated equipment is equipment to be accessed into the Internet of things, the to-be-communicated equipment and the spatial position of the to-be-communicated equipment are obtained, and the LoRa gateway is arranged according to the spatial position, so that the transmission efficiency can be improved.
Step S200: establishing a record connection channel between the equipment to be communicated and the LoRa gateway according to the spatial position;
after the loRa gateway is determined, the data of the devices to be communicated which are mainly received by the loRa gateway are also determined, on the basis, the loRa gateway and the corresponding devices to be communicated are subjected to recording connection, and when the loRa gateway receives the data sent by the devices to be communicated after the recording connection, the data can be acquired more quickly.
Step S300: inserting an encryption algorithm containing a trigger into the LoRa gateway according to a preset rule; the encryption algorithm is used for encrypting the data passing through the LoRa gateway;
the technical scheme of the invention has the advantages that a plurality of algorithms can be additionally arranged in the LoRa gateway and used for processing the data of each device to be communicated, wherein encryption is the most common mode; of course, the encryption algorithm may be replaced by other algorithms, such as a data recognition filtering algorithm, etc.
Step S400: receiving transmission data containing a target position sent by equipment to be communicated, selecting an LoRa gateway according to the target position, and building a transmission channel;
when receiving transmission data containing a target position sent by equipment to be communicated, selecting an LoRa gateway according to the target position and the position of the equipment to be communicated, and constructing a transmission channel; the transmission channel consists of LoRa gateways with different functions and different positions, and the LoRa gateways with higher transmission efficiency are selected to build the transmission channel on the premise of meeting the required functions.
Fig. 2 is a first sub-flow block diagram of the LoRa communication method, where the step of obtaining the device to be communicated and its spatial position, and determining the LoRa gateway according to the spatial position of the device to be communicated includes:
step S101: receiving a filing request containing the number of the equipment to be communicated and uploaded by a user, and acquiring the spatial position of the equipment to be communicated;
the spatial position is input by a worker;
step S102: arranging the equipment to be communicated according to the spatial position, and updating a scale in real time;
arranging all the devices to be communicated according to the spatial position, and then determining a scale according to the farthest distance and the display parameters;
step S103: building a display graph according to the real-time updated scale, and determining an LoRa gateway based on the display graph; the display graph contains equipment points corresponding to equipment to be communicated;
a dynamic display image can be determined according to the scale, and LoRa gateways are determined in the display image according to the positions corresponding to the devices to be communicated; the corresponding position of each device to be communicated is the device point.
Step S104: receiving adjustment information input by a user based on the display image, and correcting the LoRa gateway;
step 101 to step 103 are automatic generation processes, and on some bases, a user-oriented adjustment port is generated, so that the position matching degree of the LoRa gateway can be greatly improved.
Further, the step of establishing a display graph according to the real-time updated scale and determining the LoRa gateway based on the display graph includes:
determining a display map, and determining equipment points corresponding to the spatial position of the equipment to be communicated according to the real-time updated scale and the display map;
the LoRa gateway determination process is completed based on the display graph, and the device point corresponding to the device to be communicated is updated in a timing mode in the display graph.
Sequentially calculating a radius by taking each equipment point as a center and a preset numerical value as a radius, and determining a query circle;
acquiring the number of equipment points in a query circle, and marking the level of a central point according to the number of the equipment points; the level is proportional to the number of device points;
the more equipment points around one equipment point represent the highest cost performance of installing a gateway (sharing the same set of power supply equipment) at the equipment point; the purpose of the query circle is to define a range of device points that are considered to be surrounding device points of the center device point.
Determining LoRa gateways according to the level descending order;
the process of determining the LoRa gateways is sequentially completed according to the descending order of the levels, specifically, the LoRa gateways with high levels are determined, then the equipment points around the LoRa gateways are removed, and the steps are executed in a circulating mode until all the equipment points have the corresponding LoRa gateways.
It should be noted that, after all the LoRa gateways are determined, it is determined whether each LoRa gateway belongs to the same query circle, and when there are at least two LoRa gateways belonging to the same query circle, one LoRa gateway is reserved.
Fig. 3 is a second sub-flow block diagram of the LoRa communication method, where the step of establishing a record connection channel between the device to be communicated and the LoRa gateway according to the spatial location includes:
step S201: calculating the distance between the equipment to be communicated and other LoRa gateways, and selecting the LoRa gateway closest to the equipment to be communicated as a target LoRa gateway;
step S202: acquiring a data structure of communication data of equipment to be communicated, and establishing an interface in an LoRa gateway according to the data structure;
step S203: and establishing a connection channel between the LoRa gateway and the equipment to be communicated based on the interface.
The process from step S201 to step S203 is easy, the data structure of the communication data of the device to be communicated is obtained, the corresponding interface is established according to the data structure, and when the corresponding communication data is received, the transmission can be quickly identified without preprocessing.
Fig. 4 is a third sub-flow block diagram of the LoRa communication method, where the step of inserting the encryption algorithm including the trigger into the LoRa gateway according to the preset rule includes:
step S301: sequentially taking the LoRa gateways as centers, inquiring the nearest LoRa gateways in the preset traversing direction, and establishing a connecting channel;
step S302: inquiring the number of LoRa gateways connected with the LoRa gateway, and determining the communication level of the LoRa gateway according to the number of the gateways;
step S303: selecting an LoRa gateway as a target gateway according to the communication level, and inserting an encryption algorithm containing a trigger into the target gateway;
the encryption algorithm comprises a data conversion interface which is adapted to communication data of each device to be communicated.
The trigger may be an instruction identifier, and when the received communication data contains a corresponding instruction, the trigger triggers an encryption algorithm, and the encryption algorithm may be an existing encryption algorithm.
Specifically, not all the LoRa gateways need to be provided with built-in encryption algorithms, the communication level of the LoRa gateway can be calculated according to the number of the LoRa gateways connected with the LoRa gateway, and the LoRa gateway with the higher communication level is selected and implanted with the encryption algorithms; when certain communication data needs to be encrypted, the LoRa gateway containing the encryption algorithm is selected when a data transmission channel is established. It is conceivable that different encryption algorithms may be superimposed, for example, if there are two LoRa gateways including an encryption algorithm in a certain data transmission channel, the corresponding communication data will be encrypted twice.
Fig. 5 is a fourth sub-flow block diagram of the LoRa communication method, where the receiving of transmission data containing a target location sent by a device to be communicated, selecting an LoRa gateway according to the target location, and building a transmission channel includes:
step S401: receiving transmission data containing a target position sent by equipment to be communicated, and selecting an information channel with an LoRa gateway as a transit point based on the target position;
step S402: calculating the data transmission distance of the information channels and the number of gateways containing encryption algorithms, and generating a communication label to be inserted into the corresponding information channel;
step S403: counting the work process amount of all LoRa gateways, and adjusting the communication labels according to the work process amount;
step S404: selecting an information channel as a transmission channel according to the communication label;
the communication label is a dynamic label, and the communication label comprises a space efficiency label, a time efficiency label and a security level label.
Step S401 to step S404 are specific implementation procedures, and receive transmission data containing a target location sent by a device to be communicated, select an LoRa gateway according to the target location, select all (or a preset number of) eligible information channels, and then select one of the information channels as a transmission channel according to the three parameters; wherein the three parameters are a space efficiency label, a time efficiency label and a security level label, respectively.
Specifically, the step of selecting an information channel according to the communication tag as a transmission channel includes:
calculating the selected value of each information channel according to a preset calculation formula, and selecting the information channel as a transmission channel based on the selected value;
wherein the calculation formula is as follows:
Figure 347815DEST_PATH_IMAGE001
in the formula (I), the compound is shown in the specification,
Figure 174736DEST_PATH_IMAGE002
is a selected value of the information channel,
Figure 256962DEST_PATH_IMAGE003
divided into a corresponding space efficiency label, a time efficiency label and a security level label,
Figure 72602DEST_PATH_IMAGE004
is a correlation coefficient; and the correlation coefficient corresponding to the time efficiency label and the security level label is greater than the correlation coefficient corresponding to the space efficiency label.
The space efficiency label reflects the distance between the equipment to be communicated and the target position; the time efficiency label reflects the time required by each LoRa gateway to process data; the security level label reflects the need for several layers of encryption.
Opening a user selection port in real time, and determining a transmission channel with higher priority based on the user selection port;
the user selects the port to directly face the user, and the participation degree of the user is improved.
Example 2
Fig. 6 is a block diagram of a composition structure of an LoRa communication system, in an embodiment of the present invention, an LoRa communication system includes:
the gateway determining module 11 is configured to obtain a device to be communicated and a spatial position of the device to be communicated, and determine an LoRa gateway according to the spatial position of the device to be communicated;
the gateway filing module 12 is configured to establish a filing connection channel between the device to be communicated and the LoRa gateway according to the spatial position;
an encryption algorithm insertion module 13, configured to insert an encryption algorithm including a trigger into the LoRa gateway according to a preset rule; the encryption algorithm is used for encrypting the data passing through the LoRa gateway;
and the channel building module 14 is used for receiving transmission data containing a target position sent by the equipment to be communicated, selecting an LoRa gateway according to the target position and building a transmission channel.
The gateway determining module 11 includes:
the device comprises a position acquisition unit, a communication unit and a communication unit, wherein the position acquisition unit is used for receiving a filing request which is uploaded by a user and contains the serial number of the device to be communicated and acquiring the spatial position of the device to be communicated;
the scale updating unit is used for arranging the equipment to be communicated according to the spatial position and updating the scale in real time;
the display graph establishing unit is used for establishing a display graph according to the real-time updated scale and determining the LoRa gateway based on the display graph; the display graph contains equipment points corresponding to equipment to be communicated;
and the gateway correction unit is used for receiving the adjustment information input by the user based on the display image and correcting the LoRa gateway.
The gateway filing module 12 includes:
the gateway selection unit is used for calculating the distance between the equipment to be communicated and other LoRa gateways, and selecting the LoRa gateway closest to the equipment to be communicated as a target LoRa gateway;
the interface establishing unit is used for acquiring a data structure of communication data of the equipment to be communicated and establishing an interface in the LoRa gateway according to the data structure;
and the connecting unit is used for establishing a connecting channel between the LoRa gateway and the equipment to be communicated based on the interface.
The functions that can be implemented by the LoRa communication method are all performed by a computer device, which includes one or more processors and one or more memories, where at least one program code is stored in the one or more memories, and loaded and executed by the one or more processors to implement the functions of the LoRa communication method.
The processor fetches instructions and analyzes the instructions one by one from the memory, then completes corresponding operations according to the instruction requirements, generates a series of control commands, enables all parts of the computer to automatically, continuously and coordinately act to form an organic whole, realizes the input of programs, the input of data, the operation and the output of results, and the arithmetic operation or the logic operation generated in the process is completed by the arithmetic unit; the Memory comprises a Read-Only Memory (ROM) for storing a computer program, and a protection device is arranged outside the Memory.
Illustratively, a computer program can be partitioned into one or more modules, which are stored in memory and executed by a processor to implement the present invention. One or more of the modules may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of the computer program in the terminal device.
Those skilled in the art will appreciate that the above description of the service device is merely exemplary and not limiting of the terminal device, and may include more or less components than those described, or combine certain components, or different components, such as may include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is the control center of the terminal equipment and connects the various parts of the entire user terminal using various interfaces and lines.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the terminal device by operating or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory mainly comprises a storage program area and a storage data area, wherein the storage program area can store an operating system, application programs (such as an information acquisition template display function, a product information publishing function and the like) required by at least one function and the like; the storage data area may store data created according to the use of the berth-state display system (e.g., product information acquisition templates corresponding to different product types, product information that needs to be issued by different product providers, etc.), and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The terminal device integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the modules/units in the system according to the above embodiment may also be implemented by instructing relevant hardware by a computer program, and the computer program may be stored in a computer-readable storage medium, and when executed by a processor, the computer program may implement the functions of the above embodiments of the system. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (8)

1. A LoRa communication method, the method comprising:
acquiring a device to be communicated and a spatial position thereof, and determining an LoRa gateway according to the spatial position of the device to be communicated;
establishing a record connection channel between the equipment to be communicated and the LoRa gateway according to the spatial position;
inserting an encryption algorithm containing a trigger into the LoRa gateway according to a preset rule; the encryption algorithm is used for encrypting the data passing through the LoRa gateway;
receiving transmission data containing a target position sent by equipment to be communicated, selecting an LoRa gateway according to the target position, and building a transmission channel;
the method comprises the following steps of receiving transmission data containing a target position sent by equipment to be communicated, selecting an LoRa gateway according to the target position, and building a transmission channel, wherein the steps comprise:
receiving transmission data containing a target position sent by equipment to be communicated, and selecting an information channel with an LoRa gateway as a transit point based on the target position;
calculating the data transmission distance of the information channels and the number of gateways containing encryption algorithms, and generating a communication label to be inserted into the corresponding information channel;
counting the work process amount of all LoRa gateways, and adjusting the communication labels according to the work process amount;
selecting an information channel as a transmission channel according to the communication label;
the communication label is a dynamic label, and the communication label comprises a space efficiency label, a time efficiency label and a security level label; the space efficiency label is used for representing the distance between the device to be communicated and the target position; the time efficiency label is used for representing the time required by each LoRa gateway for processing data; the security level label is used for representing that several layers of encryption are needed;
the step of selecting an information channel as a transmission channel according to the communication label comprises the following steps:
calculating the selected value of each information channel according to a preset calculation formula, and selecting the information channel as a transmission channel based on the selected value;
opening a user selection port in real time, and determining a transmission channel with higher priority based on the user selection port;
wherein the calculation formula is as follows:
Figure FDA0004035120070000011
wherein X is the selected value of the information channel, B i Divided into corresponding space efficiency labels, time efficiency labels and security level labels, alpha i Is a correlation coefficient; and the correlation coefficient corresponding to the time efficiency label and the security level label is greater than the correlation coefficient corresponding to the space efficiency label.
2. The LoRa communication method according to claim 1, wherein the step of obtaining the device to be communicated and the spatial location thereof, and determining the LoRa gateway according to the spatial location of the device to be communicated comprises:
receiving a recording request containing the number of the equipment to be communicated and uploaded by a user, and acquiring the spatial position of the equipment to be communicated;
arranging the equipment to be communicated according to the spatial position, and updating the scale in real time;
building a display graph according to the real-time updated scale, and determining an LoRa gateway based on the display graph; the display graph contains equipment points corresponding to equipment to be communicated;
and receiving adjustment information input by a user based on the display image, and correcting the LoRa gateway.
3. The LoRa communication method according to claim 2, wherein the building of a display graph according to the real-time updated scale includes the steps of:
determining a display map, and determining a device point corresponding to the spatial position of the device to be communicated according to the real-time updated scale and the display map;
sequentially calculating a radius by taking each equipment point as a center and a preset numerical value as a radius, and determining a query circle;
acquiring the number of equipment points in the query circle, and marking the level of the central point according to the number of the equipment points; the level is proportional to the number of device points;
determining LoRa gateways according to the level descending order;
and judging whether each LoRa gateway belongs to the same query circle, and reserving one LoRa gateway when at least two LoRa gateways belong to the same query circle.
4. The LoRa communication method according to claim 1, wherein the step of establishing a docketing connection channel between the device to be communicated and the LoRa gateway according to the spatial location comprises:
calculating the distance between the equipment to be communicated and other LoRa gateways, and selecting the LoRa gateway closest to the equipment to be communicated as a target LoRa gateway;
acquiring a data structure of communication data of equipment to be communicated, and establishing an interface in an LoRa gateway according to the data structure;
and establishing a connection channel between the LoRa gateway and the equipment to be communicated based on the interface.
5. The LoRa communication method according to claim 1, wherein the step of inserting an encryption algorithm including a trigger into the LoRa gateway according to a preset rule comprises:
sequentially taking the LoRa gateways as centers, inquiring the nearest LoRa gateways in the preset traversing direction, and establishing a connecting channel;
inquiring the number of LoRa gateways connected with the LoRa gateway serving as the center, and determining the communication level of the LoRa gateway according to the number of the gateways;
selecting an LoRa gateway as a target gateway according to the communication level, and inserting an encryption algorithm containing a trigger into the target gateway;
the encryption algorithm comprises a data conversion interface which is adapted to communication data of each device to be communicated.
6. A LoRa communication system, the system comprising:
the gateway determining module is used for acquiring the equipment to be communicated and the spatial position of the equipment to be communicated and determining an LoRa gateway according to the spatial position of the equipment to be communicated;
the gateway filing module is used for establishing a filing connection channel between the equipment to be communicated and the LoRa gateway according to the spatial position;
the encryption algorithm inserting module is used for inserting an encryption algorithm containing a trigger into the LoRa gateway according to a preset rule; the encryption algorithm is used for encrypting the data passing through the LoRa gateway;
the channel building module is used for receiving transmission data containing a target position sent by the equipment to be communicated, selecting an LoRa gateway according to the target position and building a transmission channel;
the receiving of transmission data containing a target position sent by a device to be communicated, selecting an LoRa gateway according to the target position, and building a transmission channel comprises the following steps:
receiving transmission data containing a target position sent by equipment to be communicated, and selecting an information channel with an LoRa gateway as a transit point based on the target position;
calculating the data transmission distance of the information channel and the number of gateways containing an encryption algorithm, and generating a communication label to be inserted into the corresponding information channel;
counting the work process amount of all LoRa gateways, and adjusting the communication labels according to the work process amount;
selecting an information channel as a transmission channel according to the communication label;
the communication label is a dynamic label, and the communication label comprises a space efficiency label, a time efficiency label and a security level label; the space efficiency label is used for representing the distance between the device to be communicated and the target position; the time efficiency label is used for representing the time required by each LoRa gateway for processing data; the security level label is used for representing that several layers of encryption are needed;
the selecting of the information channel according to the communication label as the content of the transmission channel comprises:
calculating the selected value of each information channel according to a preset calculation formula, and selecting the information channel as a transmission channel based on the selected value;
opening a user selection port in real time, and determining a transmission channel with higher priority based on the user selection port;
wherein, the calculation formula is:
Figure FDA0004035120070000041
wherein X is the selected value of the information channel, B i Divided into corresponding space efficiency labels, time efficiency labels and security level labels, alpha i Is a correlation coefficient; and the correlation coefficient corresponding to the time efficiency label and the security level label is greater than the correlation coefficient corresponding to the space efficiency label.
7. The LoRa communication system of claim 6, wherein the gateway determination module comprises:
the device comprises a position acquisition unit, a communication unit and a communication unit, wherein the position acquisition unit is used for receiving a filing request which is uploaded by a user and contains the serial number of the device to be communicated and acquiring the spatial position of the device to be communicated;
the scale updating unit is used for arranging the equipment to be communicated according to the spatial position and updating the scale in real time;
the display graph establishing unit is used for establishing a display graph according to the real-time updated scale and determining the LoRa gateway based on the display graph; the display graph contains equipment points corresponding to equipment to be communicated;
and the gateway correction unit is used for receiving the adjustment information input by the user based on the display image and correcting the LoRa gateway.
8. The LoRa communication system of claim 7, wherein the gateway docketing module comprises:
the gateway selection unit is used for calculating the distance between the equipment to be communicated and other LoRa gateways, and selecting the LoRa gateway closest to the equipment to be communicated as a target LoRa gateway;
the interface establishing unit is used for acquiring a data structure of communication data of the equipment to be communicated and establishing an interface in the LoRa gateway according to the data structure;
and the connection unit is used for establishing a connection channel between the LoRa gateway and the equipment to be communicated based on the interface.
CN202211419703.9A 2022-11-14 2022-11-14 LoRa communication method and system Active CN115474291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211419703.9A CN115474291B (en) 2022-11-14 2022-11-14 LoRa communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211419703.9A CN115474291B (en) 2022-11-14 2022-11-14 LoRa communication method and system

Publications (2)

Publication Number Publication Date
CN115474291A CN115474291A (en) 2022-12-13
CN115474291B true CN115474291B (en) 2023-02-28

Family

ID=84338206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211419703.9A Active CN115474291B (en) 2022-11-14 2022-11-14 LoRa communication method and system

Country Status (1)

Country Link
CN (1) CN115474291B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897579A (en) * 2015-10-21 2016-08-24 乐卡汽车智能科技(北京)有限公司 Data transmission method and device
CN106713360A (en) * 2017-02-15 2017-05-24 上海市共进通信技术有限公司 Method for realizing web encrypted access and information encryption storage based on gateway device
CN107979844A (en) * 2016-12-30 2018-05-01 上海掌门科技有限公司 For accessing the method and apparatus of network
CN209046890U (en) * 2018-12-06 2019-06-28 中国铁塔股份有限公司韶关市分公司 LoRa encrypts authentication gateway apparatus and system
JP2021100233A (en) * 2019-12-23 2021-07-01 奇邑科技股▲ふん▼有限公司 Gateway device with built-in server module and communication system
CN115134835A (en) * 2022-08-30 2022-09-30 成都星联芯通科技有限公司 Internet of things networking system and gateway selection method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238704B (en) * 2010-05-05 2015-03-11 中国移动通信集团公司 Method and device for selecting local gateway for user equipment (UE) in wireless network
FR3044198B1 (en) * 2015-11-25 2018-04-27 Sagemcom Energy & Telecom Sas METHOD FOR CONFIGURING A GATEWAY
US11057758B2 (en) * 2019-05-26 2021-07-06 T-Mobile Usa, Inc. Location verification and enforcement for content access devices
US11369006B2 (en) * 2020-06-19 2022-06-21 Urbit Group LLC IoT gateway device, system, and computer program product
CN114641052B (en) * 2022-03-18 2023-11-24 湖南中龙通科技有限责任公司 Multi-hop network routing method based on LoRa intelligent security system
CN114585100A (en) * 2022-04-01 2022-06-03 成都纵横智控科技有限公司 LoRa networking method, LoRa networking system, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897579A (en) * 2015-10-21 2016-08-24 乐卡汽车智能科技(北京)有限公司 Data transmission method and device
CN107979844A (en) * 2016-12-30 2018-05-01 上海掌门科技有限公司 For accessing the method and apparatus of network
CN106713360A (en) * 2017-02-15 2017-05-24 上海市共进通信技术有限公司 Method for realizing web encrypted access and information encryption storage based on gateway device
CN209046890U (en) * 2018-12-06 2019-06-28 中国铁塔股份有限公司韶关市分公司 LoRa encrypts authentication gateway apparatus and system
JP2021100233A (en) * 2019-12-23 2021-07-01 奇邑科技股▲ふん▼有限公司 Gateway device with built-in server module and communication system
CN115134835A (en) * 2022-08-30 2022-09-30 成都星联芯通科技有限公司 Internet of things networking system and gateway selection method

Also Published As

Publication number Publication date
CN115474291A (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN1965296A (en) Dependency graph parameter scoping
US8024205B2 (en) System and method for calculating damage as a result of natural catastrophes
CN109447820B (en) Data processing method, device, computer equipment and storage medium
CN115549078B (en) Power grid integration planning method based on digital twin
CN110266517A (en) External service call method, device and terminal device based on gateway
CN116506223B (en) Collaborative network protection method and system
CN110458601A (en) Processing method, device, computer equipment and the storage medium of resource data
CN115249315A (en) Heterogeneous computing device-oriented deep learning image classification method and device
US11102145B2 (en) Resource sharing method, computer device, and storage medium
CN115474291B (en) LoRa communication method and system
CN110796367A (en) Equipment information management method and device based on information remote identification and terminal
CN115509765B (en) Super-fusion cloud computing method and system, computer equipment and storage medium
CN115086343B (en) Internet of things data interaction method and system based on artificial intelligence
CN114926306B (en) Apartment house scene mode artificial intelligence interaction method and system
CN110401925A (en) A kind of generation method and device of communication message
CN103516618A (en) Information providing method, system and related device
CN113435502B (en) Site flow determination method, device, equipment and storage medium
CN114399173A (en) 5G base station site evaluation method and device and electronic equipment
CN110502343B (en) Resource allocation method, system, device and computer readable storage medium
CN114202080A (en) Automatic identification method and system based on geographic information line crossing points
CN110096266A (en) A kind of characteristic processing method and device
CN112559221A (en) Intelligent list processing method, system, equipment and storage medium
CN114301735B (en) Method, system, terminal and storage medium for managing and controlling on-demand distribution of IPSEC tunnel data
CN116610268B (en) Data processing method and system for improving access speed
CN112417283A (en) Unit energy efficiency query method and device, computer equipment and storage medium

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