LoRa device networking method and system

By generating a networking information table and allocating communication frequency points based on address information, the problem of co-channel interference between LoRa devices is solved, self-organizing networks and standardized production of LoRa devices are realized, the production and installation process is simplified, and when the equipment group is replaced or Business communications will not be affected when adding new terminals.

CN114916067BActive Publication Date: 2024-09-20NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110182448.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-07
Publication Date
2024-09-20
Estimated Expiration
2041-02-07

AI Technical Summary

Technical Problem

Existing technology cannot effectively solve the problem of co-channel interference between multiple groups of LoRa devices, and setting different communication frequencies during the production process causes inconvenience in warehouse storage and factory delivery management, and the physical interface configuration increases equipment protection costs.

Method used

Generate a networking information table by obtaining the device information and address information of the LoRa device group, allocate different communication frequencies according to the address information, and perform network communication based on these frequencies in the LoRa device group, and use the cloud server to coordinate frequency point allocation. Implement self-organizing network of LoRa devices to avoid co-channel interference.

Benefits of technology

It achieves standardized production and easy installation of LoRa devices, avoids co-channel interference between different groups, and does not affect business communications when the equipment group is replaced or new terminals are added.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114916067B
    Figure CN114916067B
Patent Text Reader

Abstract

The present invention discloses a networking method and system for LoRa devices, the networking method is applied to at least two LoRa device groups, each LoRa device group includes one LoRa base station and multiple LoRa terminals, including: obtaining device information and address information of LoRa base stations and LoRa terminals in the same LoRa device group within a preset area to generate a networking information table corresponding to each LoRa device group; assigning corresponding communication frequencies to each LoRa device group according to all networking information tables; the LoRa base stations and LoRa terminals in each LoRa device group perform networking communication based on the corresponding communication frequencies and networking information tables. The LoRa devices of the present application do not need to be produced in a specific manner before they are produced. After standardized production, different communication frequencies are set for different LoRa device groups according to specific location information, and LoRa self-networking is realized based on their respective communication frequencies, thereby avoiding co-frequency interference between different groups, being easy to produce and install, and being convenient for subsequent device group replacement or adding new terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communications, and in particular relates to a networking method and system for LoRa devices. Background Art

[0002] In wireless communication technology, the LoRa communication system mainly includes nodes and gateways. All LoRa nodes are wirelessly connected to a gateway. The gateway is responsible for uploading and sending data from all nodes in the network. The higher the LoRa communication rate, the shorter the distance, and the lower the communication rate, the longer the distance. In order to increase the communication rate, there are usually multiple groups of LoRa devices in smart buildings. If adjacent groups of LoRa devices have the same communication frequency, it will cause the same-frequency interference problem of LoRa data transmission between multiple groups of devices. To solve this problem, one is to set up equipment with different communication frequencies during the production process, but it is inconvenient for warehouse storage and factory delivery management; the other is to manually configure the lora frequency through the reserved physical interface, but it increases the cost of equipment protection. Summary of the invention

[0003] The technical problem to be solved by the present invention is to overcome the defect that the prior art cannot effectively solve the problem of co-frequency interference of LoRa data transmission between multiple groups of devices, and provide a networking method and system for LoRa devices.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] A networking method for LoRa devices, the networking method being applied to at least two LoRa device groups, each LoRa device group including one LoRa base station and multiple LoRa terminals, the networking method comprising:

[0006] Obtain the device information and address information of the LoRa base station and LoRa terminal in the same LoRa device group within the preset area to generate a networking information table corresponding to each LoRa device group;

[0007] Assign corresponding communication frequency points to each LoRa device group according to all networking information tables;

[0008] The LoRa base station and LoRa terminal in each LoRa device group perform networking communication based on the corresponding communication frequency and networking information table.

[0009] Preferably, the step of allocating a corresponding communication frequency to each LoRa device group according to all networking information tables specifically includes:

[0010] Different communication frequencies are allocated to any LoRa device group and a LoRa device group within a preset distance range from any LoRa device group according to the address information.

[0011] Preferably, the steps of the LoRa base station and the LoRa terminal in each LoRa device group performing networking communication based on the corresponding communication frequency and the networking information table specifically include:

[0012] Send the target communication frequency and the networking information table to the target LoRa base station in the corresponding target LoRa device group;

[0013] Each target LoRa terminal in the target LoRa device group performs networking communication with the target LoRa base station based on the target communication frequency.

[0014] Preferably, the step of each target LoRa terminal in the target LoRa device group communicating with the target LoRa base station in networking based on the target communication frequency specifically includes:

[0015] Any LoRa terminal broadcasts registration information based on different communication frequencies in turn until the communication frequency of any LoRa terminal is consistent with the target communication frequency, so that the target LoRa base station receives the registration information; the registration information includes device information of any LoRa terminal;

[0016] The target LoRa base station detects whether the device information of any LoRa terminal is consistent with the networking information table stored in the target LoRa base station. If so, a communication connection between the target LoRa base station and any LoRa terminal is established.

[0017] Preferably, after the step of obtaining the device information and address information of the LoRa base stations and LoRa terminals in the same LoRa device group within the preset area to generate a networking information table corresponding to each LoRa device group, the networking method further includes:

[0018] Sending the networking information table to a cloud server;

[0019] The step of allocating corresponding communication frequencies to each LoRa device group according to all networking information tables specifically includes:

[0020] The cloud server allocates corresponding communication frequencies to each LoRa device group according to all networking information tables.

[0021] A networking system of LoRa devices, the networking system comprising at least two LoRa device groups, each LoRa device group comprising one LoRa base station and multiple LoRa terminals, the networking system comprising:

[0022] A networking information table generation module is used to obtain the device information and address information of the LoRa base station and the LoRa terminal in the same LoRa device group within a preset area to generate a networking information table corresponding to each LoRa device group;

[0023] The communication frequency allocation module is used to allocate the corresponding communication frequency to each LoRa device group according to all networking information tables;

[0024] The LoRa base station and LoRa terminal in each LoRa device group are used for networking communication based on the corresponding communication frequency and networking information table.

[0025] Preferably, the communication frequency allocation module is used to allocate different communication frequencies to any LoRa device group and a LoRa device group within a preset distance range from any LoRa device group according to the address information.

[0026] Preferably, the networking system further includes a first sending module;

[0027] The first sending module is used to send the target communication frequency and the networking information table to the target LoRa base station in the corresponding target LoRa device group;

[0028] Each target LoRa terminal in the target LoRa device group is used to perform networking communication with the target LoRa base station based on the target communication frequency.

[0029] Preferably, any LoRa terminal is used to broadcast registration information based on different communication frequencies in sequence until the communication frequency of any LoRa terminal is consistent with the target communication frequency, so that the target LoRa base station receives the registration information; the registration information includes device information of any LoRa terminal;

[0030] The target LoRa base station is used to detect whether the device information of any LoRa terminal is consistent with the networking information table stored in the target LoRa base station. If so, a communication connection between the target LoRa base station and any LoRa terminal is established.

[0031] Preferably, the networking system further includes a second sending module and a cloud server:

[0032] The second sending module is used to send the networking information table to the cloud server;

[0033] The cloud server is used to allocate corresponding communication frequencies to each LoRa device group according to all networking information tables.

[0034] A computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the above-mentioned LoRa device networking method are implemented.

[0035] The positive and progressive effects of the present invention are: in this application, LoRa devices do not need to be produced specifically when they are produced and shipped from the factory. After standardized production, different communication frequencies are set for different LoRa device groups according to specific location information, and LoRa self-organizing networks are implemented based on their respective communication frequencies, thereby avoiding co-frequency interference between different groups and being easy to produce and install. In addition, when the subsequent device group is replaced or a new terminal is added, the LoRa terminal registers with the LoRa base station using a frequency switching method, which will not affect the business communications of the device group. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a connection diagram of a LoRa device group in the LoRa device networking method of Example 1 of the present invention.

[0037] Figure 2 This is an interactive flow chart of the networking method of the LoRa device of Example 1 of the present invention.

[0038] Figure 3 This is a module schematic diagram of the networking system of the LoRa device of Example 2 of the present invention. DETAILED DESCRIPTION

[0039] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0040] Example 1

[0041] A networking method for LoRa devices, see Figure 1 The networking method is applied to at least two LoRa device groups 1, each LoRa device group 1 includes a LoRa base station 101 and multiple LoRa terminals 102, and the LoRa base station 101 and the LoRa terminal 102 establish a local LoRa local area network communication, such as Figure 2 As shown, the networking method includes:

[0042] Step 10, obtaining the device information and address information of the LoRa base station and the LoRa terminal in the same LoRa device group within the preset area to generate a networking information table corresponding to each LoRa device group;

[0043] Among them, after the LoRa base station and LoRa terminal are installed on site to form a device group, the mac body code of the LoRa base station and LoRa terminal of the same device group installed on site can be scanned and added to a device group information table through the APP, and the detailed address information of the location of the device group (such as: province, city, district + street + community + building + unit + household) is also added, and then summarized to generate a networking information table;

[0044] Step 20: Allocate corresponding communication frequency points to each LoRa device group according to all networking information tables;

[0045] Among them, step 20 specifically includes: allocating different communication frequencies to any LoRa device group and the LoRa device group within a preset distance range from any LoRa device group according to the address information. Specifically, according to the communication frequency band supported by the LoRa base station and the LoRa terminal (such as: 470~490MHZ), it is divided into N communication frequencies that do not interfere with each other according to the hardware filtering bandwidth (such as BW=2, it is divided into FQ1: [470~472], FQ2 [473~474]...), and then the communication frequency is allocated according to the address information.

[0046] Step 30: The LoRa base stations and LoRa terminals in each LoRa device group perform networking communication based on the corresponding communication frequencies and networking information tables.

[0047] In this embodiment, after step 10, the networking method further includes:

[0048] Step 11: Send the networking information table to the cloud server;

[0049] Furthermore, in step 20, the cloud server allocates a corresponding communication frequency to each LoRa device group according to all networking information tables.

[0050] In this embodiment, after the networking information table is generated, a communication frequency point different from that of the adjacent device group is automatically allocated according to the address information in the information table (see Figure 1 , the adjacent group is FQ1, then the current group is assigned to FQ2), and at the same time, the mac information of the same device group is sent to the LoRa base station of the corresponding group through communication methods such as 4G. Specifically, step 30 specifically includes:

[0051] Step 31, sending the target communication frequency and networking information table to the target LoRa base station in the corresponding target LoRa device group;

[0052] Step 32: Each target LoRa terminal in the target LoRa device group communicates with the target LoRa base station in a networking manner based on the target communication frequency.

[0053] Among them, the LoRa terminal is in an unregistered state by default when it leaves the factory. It automatically enters the registration mode after being powered on after on-site installation. According to the N communication frequencies designed in the above steps, different communication frequencies are switched in turn at a certain time interval (such as 10s), and registration information is actively sent to the LoRa base station. The mac information of the LoRa terminal is included in the registration information. When the LoRa terminal switches to the same communication frequency as the LoRa base station, the LoRa base station receives the registration information of the LoRa terminal, parses the mac information in the registration information, and then compares it with the device information in the registration information table. If it is included, the LoRa base station sends a response message to the corresponding LoRa terminal, and the response information includes the mac information of the LoRa base station. After receiving the response information of the LoRa base station, the LoRa terminal saves the current communication frequency FQn and the LoRa base station mac in the response information and exits the registration mode, and can communicate with the LoRa base station normally.

[0054] Specifically, step 32 specifically includes:

[0055] Step 321, any LoRa terminal broadcasts registration information based on different communication frequencies in sequence until the communication frequency of any LoRa terminal is consistent with the target communication frequency, so that the target LoRa base station receives the registration information; the registration information includes the device information of any LoRa terminal;

[0056] Step 322, the target LoRa base station detects whether the device information of any LoRa terminal is consistent with the networking information table stored in the target LoRa base station. If so, the target LoRa base station sends a response message to the target LoRa terminal;

[0057] Step 323: Establish a communication connection between the target LoRa base station and any LoRa terminal.

[0058] In this embodiment, LoRa devices do not need to be produced in a specialized manner before leaving the factory. After standardized production, different communication frequencies are set for different LoRa device groups according to specific location information, and LoRa self-organizing networks are implemented based on their respective communication frequencies to avoid co-frequency interference between different groups, making production and installation easy. In addition, when a device group is subsequently replaced or a new terminal is added, the LoRa terminal registers with the LoRa base station using a frequency switching method, which will not affect the business communications of the device group.

[0059] Example 2

[0060] A networking system of LoRa devices, such as Figure 3As shown, the networking system includes at least two LoRa device groups 1, each LoRa device group 1 includes a LoRa base station 101 and multiple LoRa terminals 102, the LoRa base station 101 and the LoRa terminal 102 establish a local LoRa local area network communication, and the networking system also includes:

[0061] The networking information table generating module 2 is used to obtain the device information and address information of the LoRa base station 101 and the LoRa terminal 102 in the same LoRa device group 1 within a preset area to generate a networking information table corresponding to each LoRa device group 1;

[0062] Among them, after the LoRa base station 101 and the LoRa terminal 102 are installed on the spot to form a device group, the mac body code of the LoRa base station 101 and the LoRa terminal 102 of the same device group installed on the spot can be scanned and added to a device group information table through the APP, and the detailed address information of the location of the device group (such as: province, city, district + street + community + building + unit + household) is also added, and then summarized to generate a networking information table;

[0063] The communication frequency allocation module 3 is used to allocate the corresponding communication frequency to each LoRa device group 1 according to all networking information tables;

[0064] Among them, the communication frequency allocation module 3 is used to allocate different communication frequencies to any LoRa device group 1 and the LoRa device group 1 within a preset distance range from any LoRa device group 1 according to the address information. Specifically, according to the communication frequency band supported by the LoRa base station 101 and the LoRa terminal 102 (such as: 470-490MHZ), it is divided into N communication frequencies that do not interfere with each other according to the hardware filtering bandwidth (such as BW=2, it is divided into FQ1: [470-472], FQ2 [473-474]...), and then the communication frequency is allocated according to the address information.

[0065] The LoRa base station 101 and the LoRa terminal 102 in each LoRa device group 1 are used for networking communication based on the corresponding communication frequency and networking information table.

[0066] In this embodiment, the networking system further includes a second sending module 4 and a cloud server 5:

[0067] The second sending module 4 is used to send the networking information table to the cloud server 5;

[0068] The cloud server 5 is used to allocate a corresponding communication frequency to each LoRa device group 1 according to all networking information tables.

[0069] In this embodiment, after the networking information table is generated, a communication frequency point different from that of the adjacent device group is automatically allocated according to the address information in the information table (see Figure 1 , the adjacent group is FQ1, then the current group is assigned to FQ2), and at the same time, the mac information of the same device group is sent to the LoRa base station 101 of the corresponding group through communication methods such as 4G. Specifically, the networking system also includes a first sending module 6;

[0070] The first sending module 6 is used to send the target communication frequency and the networking information table to the target LoRa base station in the corresponding target LoRa device group;

[0071] Each target LoRa terminal in the target LoRa device group is used to perform networking communication with the target LoRa base station based on the target communication frequency.

[0072] Among them, the LoRa terminal is in an unregistered state by default when it leaves the factory. It automatically enters the registration mode after being powered on after on-site installation. According to the N communication frequencies designed in the above steps, different communication frequencies are switched in turn at a certain time interval (such as 10s), and registration information is actively sent to the LoRa base station. The mac information of the LoRa terminal is included in the registration information. When the LoRa terminal switches to the same communication frequency as the LoRa base station, the LoRa base station receives the registration information of the LoRa terminal, parses the mac information in the registration information, and then compares it with the device information in the registration information table. If it is included, the LoRa base station sends a response message to the corresponding LoRa terminal, and the response information includes the mac information of the LoRa base station. After receiving the response information of the LoRa base station, the LoRa terminal saves the current communication frequency FQn and the LoRa base station mac in the response information and exits the registration mode, and can communicate with the LoRa base station normally.

[0073] Specifically, any LoRa terminal is used to broadcast registration information based on different communication frequencies in sequence until the communication frequency of any LoRa terminal is consistent with the target communication frequency, so that the target LoRa base station receives the registration information; the registration information includes device information of any LoRa terminal;

[0074] The target LoRa base station is used to detect whether the device information of any LoRa terminal is consistent with the networking information table stored in the target LoRa base station. If so, the target LoRa base station sends a response message to the target LoRa terminal, and then establishes a communication connection between the target LoRa base station and any LoRa terminal.

[0075] In this embodiment, LoRa devices do not need to be produced in a specialized manner before leaving the factory. After standardized production, different communication frequencies are set for different LoRa device groups according to specific location information, and LoRa self-organizing networks are implemented based on their respective communication frequencies to avoid co-frequency interference between different groups, making production and installation easy. In addition, when a device group is subsequently replaced or a new terminal is added, the LoRa terminal registers with the LoRa base station using a frequency switching method, which will not affect the business communications of the device group.

[0076] Example 3

[0077] A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the LoRa device networking method described in Example 1 are implemented.

[0078] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0079] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of the LoRa device networking method described in Example 1.

[0080] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.

[0081] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A networking method for a LoRa device, the networking method being applied to at least two LoRa device groups, each LoRa device group comprising one LoRa base station and multiple LoRa terminals, characterized in that, The networking method comprises: Obtain the device information and address information of the LoRa base station and LoRa terminal in the same LoRa device group within the preset area to generate a networking information table corresponding to each LoRa device group; Assign corresponding communication frequency points to each LoRa device group according to all networking information tables; The LoRa base stations and LoRa terminals in each LoRa device group communicate in a network based on the corresponding communication frequency and networking information table, including: Send the target communication frequency and the networking information table to the target LoRa base station in the corresponding target LoRa device group; Any LoRa terminal broadcasts registration information based on different communication frequencies in turn until the communication frequency of any LoRa terminal is consistent with the target communication frequency, so that the target LoRa base station receives the registration information; the registration information includes device information of any LoRa terminal; The target LoRa base station detects whether the device information of any LoRa terminal is consistent with the networking information table stored in the target LoRa base station. If so, a communication connection between the target LoRa base station and any LoRa terminal is established.

2. The networking method of the LoRa device as claimed in claim 1, characterized in that, The step of allocating corresponding communication frequencies to each LoRa device group according to all networking information tables specifically includes: Different communication frequencies are allocated to any LoRa device group and a LoRa device group within a preset distance range from any LoRa device group according to the address information.

3. The networking method of the LoRa device as claimed in claim 1, characterized in that, After the step of obtaining the device information and address information of the LoRa base station and the LoRa terminal in the same LoRa device group within the preset area to generate a networking information table corresponding to each LoRa device group, the networking method further includes: Sending the networking information table to a cloud server; The step of allocating corresponding communication frequencies to each LoRa device group according to all networking information tables specifically includes: The cloud server allocates corresponding communication frequencies to each LoRa device group according to all networking information tables.

4. A networking system of LoRa devices, the networking system comprising at least two LoRa device groups, each LoRa device group comprising one LoRa base station and multiple LoRa terminals, characterized in that: The networking system comprises: A networking information table generation module is used to obtain the device information and address information of the LoRa base station and the LoRa terminal in the same LoRa device group within a preset area to generate a networking information table corresponding to each LoRa device group; The communication frequency allocation module is used to allocate the corresponding communication frequency to each LoRa device group according to all networking information tables; The LoRa base station and LoRa terminal in each LoRa device group are used for networking communication based on the corresponding communication frequency and networking information table; The networking system also includes a first sending module; The first sending module is used to send the target communication frequency and the networking information table to the target LoRa base station in the corresponding target LoRa device group; Each target LoRa terminal in the target LoRa device group is used to perform networking communication with the target LoRa base station based on the target communication frequency; Any LoRa terminal is used to broadcast registration information based on different communication frequencies in sequence until the communication frequency of any LoRa terminal is consistent with the target communication frequency, so that the target LoRa base station receives the registration information; the registration information includes device information of any LoRa terminal; The target LoRa base station is used to detect whether the device information of any LoRa terminal is consistent with the networking information table stored in the target LoRa base station. If so, a communication connection between the target LoRa base station and any LoRa terminal is established.

5. The networking system of the LoRa device as claimed in claim 4, characterized in that: The communication frequency allocation module is used to allocate different communication frequencies to any LoRa device group and a LoRa device group within a preset distance range from any LoRa device group according to the address information.

6. The networking system of the LoRa device as claimed in claim 4, characterized in that: The networking system further includes a second sending module and a cloud server: The second sending module is used to send the networking information table to the cloud server; The cloud server is used to allocate corresponding communication frequencies to each LoRa device group according to all networking information tables.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the LoRa device networking method described in any one of claims 1 to 3 are implemented.