Method for reducing air frequency collision of lora ammeter

Through the SN number delay calculation and offline detection mechanism of LoRa meter, adaptive upload time adjustment of large batches of terminal data is realized, solving the problem of LoRa meter data collision, significantly reducing the probability of packet collision and reducing gateway load.

CN118972972AInactive Publication Date: 2024-11-15JIAXING EASTRON ELECTRONICS INSTR

Patent Information

Application Number
CN202410944586.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When LoRa meter is powered on at the same time at large batch terminals, the probability of data loss is high due to data collision problems. The existing methods increase the uplink frequency to reduce the probability of collision but have limited effect.

Method used

Through the SN number delay calculation and offline detection mechanism of the meter, data is automatically uploaded in batches, and the upload time is adaptively adjusted during collision, ensuring that the terminal uploads data during idle time and reducing the probability of data collision. The specific steps include: reading the SN number of the power meter for delay calculation, randomly obtaining the frequency points when entering the network, repeated attempts when failing, offline detection and time delay adjustment when data is uploaded.

Benefits of technology

It effectively reduces the probability of data collision in large-capacity terminals, reduces labor costs and gateway load, and reduces the impact on the gateway at the same time, and reduces the probability of packet collision from 10% to 2%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972972A_ABST
    Figure CN118972972A_ABST
Patent Text Reader

Abstract

The invention discloses a method for reducing the air frequency collision of a lora ammeter, and the method comprises the steps: S1, starting an ammeter, reading lora parameters and corresponding SN numbers in sequence, and carrying out the delay calculation of the ammeter, thereby enabling the ammeter to start to access a network after the corresponding delay time, and completing the SN adjustment of the ammeter; and S2, when the electricity meter needs to access the network, adjusting by sending a network access frame and randomly obtaining a network access frequency point, and when the network access is successful, uploading data by the electricity meter. According to the method for reducing the air frequency collision of the lora ammeters, when a large number of terminal ammeters are powered on simultaneously, data can be automatically uploaded in batches, if data collision occurs, uploading time can be adaptively adjusted through a process algorithm, all terminals can find idle time to upload data regularly, and the efficiency of data uploading is improved. And the data collision probability under the condition of a large-capacity terminal is reduced as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electric power metering, and in particular relates to a method for reducing air frequency collision of a Lora electric meter. Background Art

[0002] LoRa WAN is a MAC layer protocol developed by the LoRa Alliance based on LoRa. The purpose is to use LoRa modulation technology to form a high-capacity, long-distance, low-power star network. Due to this feature, the transmission speed of LoRa is much lower than other wireless transmissions. The data rate range of LoRaWAN can be 0.3~50kb / s. The reduction in speed will cause collisions in the air data.

[0003] The advantage of Lora is that it has a large capacity and can work with thousands of terminals at the same time. However, a Lora meter often encounters the problem that a region loses power and then is re-powered. When the power is restored, all terminal devices will be powered on and upload data at the same time. For the gateway, it is impossible to receive so much information at the same time. Data packets collide with each other in the air, and the gateway cannot parse the correct data, resulting in a very high probability of data frame loss. At this stage, the uplink frequency will be increased to reduce the probability. Each time it goes uplink, the terminal will randomly select a frequency from the uplink frequency to use. Different frequencies will prevent data collisions, but in a scenario with many Lora terminals, the probability of data collisions is still very high.

[0004] Therefore, further improvements are made to the above problems. Summary of the invention

[0005] The main purpose of the present invention is to provide a method for reducing the frequency collision of LoRa meters in the air. When a large number of terminal meters are powered on at the same time, data can be automatically uploaded in batches. If data collision occurs, the upload time can be adaptively adjusted through the process algorithm, so that all terminals can find an idle time to upload data regularly, thereby reducing the probability of data collision in the case of large-capacity terminals as much as possible.

[0006] To achieve the above objectives, the present invention provides a method for reducing the frequency collision of a lora meter in the air, comprising the following steps:

[0007] Step S1: The meter is turned on and reads the lora parameters and the corresponding SN number in sequence, and a delay calculation is performed on the meter, so that the meter starts to access the network after the corresponding delay time, so as to complete the SN adjustment of the meter;

[0008] Step S2: When the electric meter needs to access the network, it adjusts by sending (join) network access frames and randomly obtains the network access frequency. When the network access is successful, the electric meter uploads data; when the network access fails, the electric meter repeatedly joins the gateway at the first time interval and records the number of failed network accesses of the electric meter. When the preset number of network accesses fails, the electric meter resets the network access time and continues to try to join the lora network until it succeeds, so as to complete the network access adjustment of the electric meter;

[0009] Step S3: When uploading meter data, the meter first sends a frame of offline detection to the gateway to determine whether the gateway has received a reply. If a reply is received, the meter uploads the data. If no reply is received, the data upload time of the meter is delayed by a second time as a whole to complete the data upload adjustment of the meter based on the offline time timing.

[0010] As a further preferred technical solution of the above technical solution, for the delay calculation of step S1, the SN number of each meter is different and the SN number of each batch of meters is continuous, so the SN number of the meter is modulo 256, and the remainder is offset by 2s, so that the network access time of all meters is first discretely distributed within 0 to 512 seconds according to the serial number.

[0011] As a further preferred technical solution of the above technical solution, the offline detection in step S3 is implemented through a confirm frame in loRaWAN communication.

[0012] As a further preferred technical solution of the above technical solution, the first time is 10 seconds and the preset number of times is 30 times.

[0013] As a further preferred technical solution of the above technical solution, the second time is 2 seconds. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a flow chart of SN adjustment of a method for reducing air frequency collision of a lora meter according to the present invention.

[0015] Figure 2 It is a flow chart of network access regulation of a method for reducing air frequency collision of LoRa meters of the present invention.

[0016] Figure 3 The invention discloses a flow chart of offline time timing adjustment of a method for reducing air frequency collision of a lora electric meter. DETAILED DESCRIPTION

[0017] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.

[0018] In the preferred embodiments of the present invention, those skilled in the art should note that the electric meter and the like involved in the present invention may be regarded as prior art.

[0019] Preferred embodiments.

[0020] like Figure 1-3 As shown, the present invention discloses a method for reducing the frequency collision of lora electric meter in the air, comprising the following steps:

[0021] Step S1: The meter is turned on and reads the lora parameters and the corresponding SN number in sequence, and a delay calculation is performed on the meter, so that the meter starts to access the network after the corresponding delay time, so as to complete the SN adjustment of the meter;

[0022] Step S2: When the electric meter needs to access the network, it adjusts by sending (join) network access frames and randomly obtains the network access frequency. When the network access is successful, the electric meter uploads data; when the network access fails, the electric meter repeatedly joins the gateway at the first time interval and records the number of failed network accesses of the electric meter. When the preset number of network accesses fails, the electric meter resets the network access time and continues to try to join the lora network until it succeeds, so as to complete the network access adjustment of the electric meter;

[0023] Step S3: When uploading meter data, the meter first sends a frame of offline detection to the gateway to determine whether the gateway has received a reply. If a reply is received, the meter uploads the data. If no reply is received, the data upload time of the meter is delayed by a second time as a whole to complete the data upload adjustment of the meter based on the offline time timing.

[0024] Specifically, for the delay calculation in step S1, the SN number of each meter is different and the SN number of each batch of meters is continuous, so the SN number of the meter is modulo 256, and the remainder is offset by 2s, so that the network access time of all meters is first discretely distributed within 0 to 512 seconds according to the serial number.

[0025] More specifically, the offline detection in step S3 is implemented through the confirm frame in the loRaWAN communication.

[0026] Furthermore, the first time is 10 seconds and the preset number of times is 30 times.

[0027] Furthermore, the second time is 2 seconds.

[0028] For the present invention:

[0029] The present invention includes two parts of rough adjustment and adaptive fine adjustment for the data upload of the electric meter terminal, wherein:

[0030] The coarse adjustment is mainly carried out through the SN generated by the meter and the grid access.

[0031] SN adjustment:

[0032] The SN number of each meter is different, and the SN number of each batch of meters is continuous. We use this feature to take the SN number of the meter modulo 256, and offset the remainder by 2s (Delay time = SN% 256*2). First, the network access time of all meters is discretely distributed according to the serial number within 0 to 512 seconds.

[0033] Network access adjustment:

[0034] When the meter needs to access the network, it will send a join frame to adjust. When the network access fails, the meter will repeatedly join the gateway at intervals of 10 seconds. When 30 network access attempts fail, the meter will reset the network access time and continue to try to join the Lora network until it succeeds. This adjustment can effectively extend the network access time of batch devices powered on at the same time.

[0035] Fine-tune the timing via offline time:

[0036] Fine-tuning is mainly achieved through the confirm frame in loRaWAN communication. LoRaWAN normal communication uses unconfirm frames. This communication method cannot determine whether the gateway has received data normally. When the data of the same frequency conflicts in the air, it cannot be identified. When there is a confirm frame, it can be determined whether the gateway has received the data normally. We call it offline detection. The time of offline detection can be set. When the offline detection time is reached, the meter will send a frame of offline detection to the gateway. When no reply is received from the gateway, the reporting time of this terminal will be shifted back by 2s as a whole until the data is replied.

[0037] The present invention mainly adopts self-adjustment of upload time, so that terminal devices powered on at the same time are automatically distributed on the time axis, greatly reducing the probability of collision with the same frequency. In addition to distribution in time, the present invention also distributes on the vertical axis of frequency during uploading. Each time data is uploaded, data will be uploaded at any frequency on the upload frequency point. This greatly reduces the risk of data collision.

[0038] The beneficial effects of the present invention are:

[0039] 1. The probability of packet collision in the air is reduced. 100 terminal devices report data every 5 minutes, and the probability of packet collision is reduced from the original 10% to 2%.

[0040] 2. Reduced labor costs. When a large-scale power outage occurs, the terminal can adjust the reporting time by itself without the need for manual adjustment.

[0041] 3. Reduce the load on the gateway, spread the terminal upload time across all timelines, and reduce the impact on the gateway at the same time.

[0042] It is worth mentioning that the technical features such as the electric meter involved in the patent application of this invention should be regarded as the prior art. The specific structure, working principle and possible control method and spatial layout method of these technical features can be selected by conventional methods in the field, and should not be regarded as the inventive point of the patent of this invention. The patent of this invention will not be further elaborated.

[0043] For those skilled in the art, it is still possible to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for reducing the frequency collision of lora meters in the air, characterized in that: The following steps are involved: Step S1: The meter is turned on and reads the lora parameters and the corresponding SN number in sequence, and a delay calculation is performed on the meter, so that the meter starts to access the network after the corresponding delay time, so as to complete the SN adjustment of the meter; Step S2: When the electric meter needs to access the network, it adjusts by sending a network access frame and randomly obtains the network access frequency. When the network access is successful, the electric meter uploads data; when the network access fails, the electric meter repeatedly joins the gateway at the first time interval and records the number of failed network accesses of the electric meter. When the preset number of network accesses fails, the electric meter resets the network access time and continues to try to join the lora network until it succeeds, so as to complete the network access adjustment of the electric meter; Step S3: When uploading meter data, the meter first sends a frame of offline detection to the gateway to determine whether the gateway has received a reply. If a reply is received, the meter uploads the data. If no reply is received, the data upload time of the meter is delayed by a second time as a whole to complete the data upload adjustment of the meter based on the offline time timing.

2. A method for reducing the frequency collision of lora meters in the air according to claim 1, characterized in that: For the delay calculation in step S1, the SN number of each meter is different and the SN number of each batch of meters is continuous, so the SN number of the meter is modulo 256, and the remainder is offset by 2s, so that the network access time of all meters is first discretely distributed within 0 to 512 seconds according to the serial number.

3. A method for reducing the frequency collision of lora meters in the air according to claim 2, characterized in that: The offline detection in step S3 is implemented through the confirm frame in loRaWAN communication.

4. A method for reducing the frequency collision of lora meters in the air according to claim 3, characterized in that: The first time is 10 seconds and the preset number of times is 30 times.

5. A method for reducing the frequency collision of lora meters in the air according to claim 4, characterized in that: The second time is 2 seconds.

Citation Information

Patent Citations

  • A network access method and a LoRaWAN terminal

    CN109743772A

  • LoRaWAN system capable of realizing quick confirmation and implementation method thereof

    CN110492978A

  • Communication method and system based on LoRa networking

    CN111278141A

  • LoRa-based network anti-blocking method and device

    CN111669782A

Cited By

  • LoRa frequency band allocation method and system based on communication area overlapping relationship of transformer area

    CN122783915A

  • LoRa frequency band allocation method and system based on communication area overlapping relationship of transformer area

    CN122783915B