Method for detecting multi-channel receiving false alarm of LoRaWAN gateway based on software

By introducing the CRC-16 error detection program in the LoRaWAN network, using CRC checksum cycle or operation, the problem of receiving false alarms in multiple channels of LoRaWAN gateway is solved, which improves data accuracy and channel frequency accuracy and reduces false alarms. Condition.

CN119071827APending Publication Date: 2024-12-03TAHENG WULIAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411355576.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

LoRaWAN gateways are prone to false alarm problems during multi-channel reception, resulting in data error reporting, and the prior art is difficult to effectively distinguish channel frequency, resulting in frequent false alarms.

Method used

Introduce the CRC-16 error detection program in the LoRaWAN network. By adding the program to the LoRa terminal and gateway application, using CRC checksum cycles or operations, distinguishing and verifying whether the received data corresponds to the specified channel frequency, and judging Whether there is a false alarm.

Benefits of technology

It effectively reduces the false alarms reported by LoRaWAN gateway, improves data accuracy, ensures that the data is not affected by harmonic effects during transmission, and enhances the correctness of channel frequency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071827A_ABST
    Figure CN119071827A_ABST
Patent Text Reader

Abstract

The invention discloses a method for detecting LoRaWAN gateway multichannel receiving misinformation based on software, which comprises a wireless receiver, a LoRaWAN gateway, a LoRa modem and a CRC-16 error detection program, and the method for detecting the receiving misinformation comprises the following steps: A, firstly adding the CRC-16 error detection program in a LoRa terminal and a LoRaWAN gateway application program in a LoRaWAN network; and B, after the LoRaWAN gateway receives the wireless signal, the signal is converted to a corresponding intermediate frequency, after the LoRa signal is received by the gateway, the signal is converted to one intermediate frequency, and a corresponding intermediate frequency signal is output to a LoRa baseband. According to the method provided by the invention, specific software-based processing can be added in the LoRa terminal and the LoRaWAN gateway application program in the LoRaWAN network, the data reported by the LoRaWAN gateway can be effectively distinguished, the program at the gateway side is helped to automatically detect whether the received data corresponds to the specified channel frequency, and the reliability of the LoRaWAN gateway is improved. Therefore, whether false alarms are received on other channel frequencies due to the harmonic effect or not can be judged, and the occurrence of false alarms can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of LoRaWAN gateway multi-channel reception false alarm, and in particular to a method for detecting LoRaWAN gateway multi-channel reception false alarm based on software. Background Art

[0002] LoRaWAN is a common low-power wide area network technology. The LoRaWAN network uses LoRa as a wireless communication method, which has the characteristics of long communication distance and strong anti-interference. Different from the general point-to-point communication method, the LoRaWAN gateway chip, such as SX1301, adopts a multi-channel receiving method, allowing multiple LoRa terminal devices to send information to the LoRaWAN gateway at the same time, thereby increasing the throughput of the LoRaWAN network;

[0003] A LoRaWAN gateway allows 8 LoRa terminals to send to the gateway at the same time. The terminals can choose different channel frequencies or different LoRa spreading factors. If multiple LoRaWAN gateways are used to work together, the number of channels for parallel communication can be further increased. This design method overcomes the problem of low communication rate of LoRa devices by increasing the concurrency. The communication rate range of a LoRa terminal is 0.018kbps-37.5kbps. The longer the communication distance, the lower the applicable rate, and the longer the air occupancy time of each communication. If multiple LoRa terminals need to send information to the gateway at the same time, a gateway that supports multi-channel parallel reception is a suitable solution;

[0004] However, in some cases, wireless communications may interfere with each other. A LoRaWAN gateway is set with a total of 8 wireless receiving channel frequencies from F1 to F8. When a LoRa terminal in a LoRaWAN network sends data to the gateway on the F1 channel frequency, the gateway may report received data on both the F1 and F2 channel frequencies at the same time, and the data is exactly the same. This is mainly because when the LoRaWAN gateway is running multi-channel reception, it will use bandpass filters and other technologies to divide different channels. If the intensity of the received signal is relatively large and relatively strong harmonics are generated, the filters of adjacent channels will be processed as valid signals. The closer the distance between the terminal and the gateway, the greater the occurrence. Designing the filter will result in higher costs and may not completely shield the effects of harmonics.

[0005] Therefore, a method for detecting multi-channel reception false alarms of LoRaWAN gateways based on software is provided. Summary of the invention

[0006] The purpose of the present invention is to provide a method for detecting multi-channel reception false alarms of LoRaWAN gateways based on software, which has the advantage of being able to effectively distinguish data reported by the LoRaWAN gateway and solves the problem that false alarms are prone to occur in data reported by the LoRaWAN gateway.

[0007] To achieve the above object, the present invention provides the following technical solutions: a method for detecting multi-channel reception false alarms of a LoRaWAN gateway based on software, comprising a wireless receiver, a LoRaWAN gateway, a LoRa modem and a CRC-16 error detection program;

[0008] Its method for detecting false positives includes:

[0009] A. First, add a CRC-16 error detection program to the LoRa terminal and LoRaWAN gateway applications in the LoRaWAN network to distinguish the data reported by the LoRaWAN gateway;

[0010] B. When the LoRaWAN gateway receives the wireless signal, it converts the signal to the corresponding intermediate frequency. After the LoRa signal is received by the gateway, it is transferred to an intermediate frequency. The corresponding intermediate frequency signal is output to the LoRa baseband for demodulation, and the final result is reported to the upper layer program;

[0011] C. The data that the LoRaWAN terminal needs to send is 0x12, 0x34. CRC-16 is used to calculate the data. The check code is 0xc7, 0x0. The original data is 0x12, 0x34, 0xc7, 0x0c. The specified transmission channel frequency is 470300000Hz. The corresponding hexadecimal numbers are 0x1c, 0x08, 0x35, 0x60. The original data and the channel frequency converted to hexadecimal are ORed to obtain the data 0x0e, 0x3c, 0xf2, 0x6c.

[0012] D. On the LoRaWAN gateway, after the data is successfully demodulated and reported by the LoRa demodulation module, the hexadecimal form of the receiving frequency must be converted first. 470300000Hz will be converted to 0x1c, 0x08, 0x35, 0x60, and 470500000Hz will be converted to 0x1c, 0x0b, 0x42, 0xa0. The data demodulated by LoRa and the hexadecimal form of the receiving frequency are either ORed. The result obtained by the operation of 470300000Hz is 0x12, 0x34, 0xc7, 0x0c, and the result obtained by the operation of 470500000Hz is 0x12, 0x37, 0xb0, 0xcc. The CRC check calculation is performed on the result to draw a conclusion.

[0013] E. On the LoRaWAN terminal side, obtain the original data to be sent, perform CRC check on the data, generate a 2-byte CRC check value, append it to the end of the original data, convert the transmission channel frequency to be sent, convert it into hexadecimal format, loop or operate the original data and the calculated CRC check value and the converted hexadecimal number of the transmission channel frequency, and send the result of the loop or operation on the transmission channel frequency;

[0014] F. The working process on the LoRaWAN gateway side is to obtain the data reported by the LoRa demodulation module, convert the receiving channel frequency into hexadecimal form, perform a loop or operation on the data reported by the LoRa demodulation module and the receiving channel frequency converted into hexadecimal form, and perform a CRC check operation on the result of the loop or operation, except for the CRC value of the last 2 bytes. If the result of the CRC check operation matches the CRC value of the last 2 bytes of the data, the reception is successful and reported to the superior program.

[0015] Preferably, the wireless receiver chip adopts SX1276, and the LoRa modem chip adopts SX1301.

[0016] Preferably, an 8-channel LoRaWAN gateway is used in step B, and there are 8 intermediate frequency settings.

[0017] Preferably, in step C, the hexadecimal data converted by the channel frequency and the original transmission data are circulated, and the converted data will be sent in the LoRaWAN network using LoRa communication, and the transmission frequency is 470300000 Hz.

[0018] Preferably, the data received at the channel frequency of 470500000 Hz in step D cannot pass the verification, the data is damaged during the transmission process and the communication channel frequency is not 470500000 Hz.

[0019] Preferably, the data received at the channel frequency of 470500000 Hz in step D cannot pass the verification, the data is damaged during the transmission process and the communication channel frequency is not 470500000 Hz.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] Through the method, the present invention can add specific software-based processing in the LoRa terminal and LoRaWAN gateway application in the LoRaWAN network, can effectively distinguish the data reported by the LoRaWAN gateway, and help the program on the gateway side to automatically detect whether the received data corresponds to the specified channel frequency, so as to determine whether the false alarm is received on other channel frequencies due to the harmonic effect, thereby reducing the occurrence of false alarms. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a schematic diagram of the LoRaWAN gateway receiving process of the present invention;

[0023] Figure 2 A schematic diagram of the process of detecting channel information by software of the present invention;

[0024] Figure 3 This is a schematic diagram of the LoRaWAN terminal processing flow of the present invention;

[0025] Figure 4 It is a schematic diagram of the working process of the LoRaWAN gateway side of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] The present invention provides a technical solution, a method for detecting multi-channel reception false alarms of a LoRaWAN gateway based on software, comprising a wireless receiver, a LoRaWAN gateway, a LoRa modem and a CRC-16 error detection program;

[0028] Its method for detecting false positives includes:

[0029] A. First, add a CRC-16 error detection program to the LoRa terminal and LoRaWAN gateway applications in the LoRaWAN network to distinguish the data reported by the LoRaWAN gateway;

[0030] B. When the LoRaWAN gateway receives the wireless signal, it converts the signal to the corresponding intermediate frequency. After the LoRa signal is received by the gateway, it is transferred to an intermediate frequency. The corresponding intermediate frequency signal is output to the LoRa baseband for demodulation, and the final result is reported to the upper layer program;

[0031] C. The data that the LoRaWAN terminal needs to send is 0x12, 0x34. CRC-16 is used to calculate the data. The check code is 0xc7, 0x0. The original data is 0x12, 0x34, 0xc7, 0x0c. The specified transmission channel frequency is 470300000Hz. The corresponding hexadecimal numbers are 0x1c, 0x08, 0x35, 0x60. The original data and the channel frequency converted to hexadecimal are ORed to obtain the data 0x0e, 0x3c, 0xf2, 0x6c.

[0032] D. On the LoRaWAN gateway, after the data is successfully demodulated and reported by the LoRa demodulation module, the hexadecimal form of the receiving frequency must be converted first. 470300000Hz will be converted to 0x1c, 0x08, 0x35, 0x60, and 470500000Hz will be converted to 0x1c, 0x0b, 0x42, 0xa0. The data demodulated by LoRa and the hexadecimal form of the receiving frequency are either ORed. The result obtained by the operation of 470300000Hz is 0x12, 0x34, 0xc7, 0x0c, and the result obtained by the operation of 470500000Hz is 0x12, 0x37, 0xb0, 0xcc. The CRC check calculation is performed on the result to draw a conclusion.

[0033] E. On the LoRaWAN terminal side, obtain the original data to be sent, perform CRC check on the data, generate a 2-byte CRC check value, append it to the end of the original data, convert the transmission channel frequency to be sent, convert it into hexadecimal format, loop or operate the original data and the calculated CRC check value and the converted hexadecimal number of the transmission channel frequency, and send the result of the loop or operation on the transmission channel frequency;

[0034] F. The working process on the LoRaWAN gateway side is to obtain the data reported by the LoRa demodulation module, convert the receiving channel frequency into hexadecimal form, perform a loop or operation on the data reported by the LoRa demodulation module and the receiving channel frequency converted into hexadecimal form, and perform a CRC check operation on the result of the loop or operation, except for the CRC value of the last 2 bytes. If the result of the CRC check operation matches the CRC value of the last 2 bytes of the data, the reception is successful and reported to the superior program.

[0035] Embodiment 2:

[0036] In the first embodiment, the following process is added:

[0037] The wireless receiver chip uses SX1276 and the LoRa modem chip uses SX1301.

[0038] The method for detecting false alarms includes the following steps:

[0039] A. First, add a CRC-16 error detection program to the LoRa terminal and LoRaWAN gateway applications in the LoRaWAN network to distinguish the data reported by the LoRaWAN gateway;

[0040] B. When the LoRaWAN gateway receives the wireless signal, it converts the signal to the corresponding intermediate frequency. After the LoRa signal is received by the gateway, it is transferred to an intermediate frequency. The corresponding intermediate frequency signal is output to the LoRa baseband for demodulation, and the final result is reported to the upper layer program;

[0041] C. The data that the LoRaWAN terminal needs to send is 0x12, 0x34. CRC-16 is used to calculate the data. The check code is 0xc7, 0x0. The original data is 0x12, 0x34, 0xc7, 0x0c. The specified transmission channel frequency is 470300000Hz. The corresponding hexadecimal numbers are 0x1c, 0x08, 0x35, 0x60. The original data and the channel frequency converted to hexadecimal are ORed to obtain the data 0x0e, 0x3c, 0xf2, 0x6c.

[0042] D. On the LoRaWAN gateway, after the data is successfully demodulated and reported by the LoRa demodulation module, the hexadecimal form of the receiving frequency must be converted first. 470300000Hz will be converted to 0x1c, 0x08, 0x35, 0x60, and 470500000Hz will be converted to 0x1c, 0x0b, 0x42, 0xa0. The data demodulated by LoRa and the hexadecimal form of the receiving frequency are either ORed. The result obtained by the operation of 470300000Hz is 0x12, 0x34, 0xc7, 0x0c, and the result obtained by the operation of 470500000Hz is 0x12, 0x37, 0xb0, 0xcc. The CRC check calculation is performed on the result to draw a conclusion.

[0043] E. On the LoRaWAN terminal side, obtain the original data to be sent, perform CRC check on the data, generate a 2-byte CRC check value, append it to the end of the original data, convert the transmission channel frequency to be sent, convert it into hexadecimal format, loop or operate the original data and the calculated CRC check value and the converted hexadecimal number of the transmission channel frequency, and send the result of the loop or operation on the transmission channel frequency;

[0044] F. The working process on the LoRaWAN gateway side is to obtain the data reported by the LoRa demodulation module, convert the receiving channel frequency into hexadecimal form, perform a loop or operation on the data reported by the LoRa demodulation module and the receiving channel frequency converted into hexadecimal form, and perform a CRC check operation on the result of the loop or operation, except for the CRC value of the last 2 bytes. If the result of the CRC check operation matches the CRC value of the last 2 bytes of the data, the reception is successful and reported to the superior program.

[0045] Embodiment three:

[0046] In the second embodiment, the following process is added:

[0047] In step B, an 8-channel LoRaWAN gateway is used with 8 intermediate frequency settings.

[0048] The method for detecting false alarms includes the following steps:

[0049] A. First, add a CRC-16 error detection program to the LoRa terminal and LoRaWAN gateway applications in the LoRaWAN network to distinguish the data reported by the LoRaWAN gateway;

[0050] B. When the LoRaWAN gateway receives the wireless signal, it converts the signal to the corresponding intermediate frequency. After the LoRa signal is received by the gateway, it is transferred to an intermediate frequency. The corresponding intermediate frequency signal is output to the LoRa baseband for demodulation, and the final result is reported to the upper layer program;

[0051] C. The data that the LoRaWAN terminal needs to send is 0x12, 0x34. CRC-16 is used to calculate the data. The check code is 0xc7, 0x0. The original data is 0x12, 0x34, 0xc7, 0x0c. The specified transmission channel frequency is 470300000Hz. The corresponding hexadecimal numbers are 0x1c, 0x08, 0x35, 0x60. The original data and the channel frequency converted to hexadecimal are ORed to obtain the data 0x0e, 0x3c, 0xf2, 0x6c.

[0052] D. On the LoRaWAN gateway, after the data is successfully demodulated and reported by the LoRa demodulation module, the hexadecimal form of the receiving frequency must be converted first. 470300000Hz will be converted to 0x1c, 0x08, 0x35, 0x60, and 470500000Hz will be converted to 0x1c, 0x0b, 0x42, 0xa0. The data demodulated by LoRa and the hexadecimal form of the receiving frequency are either ORed. The result obtained by the operation of 470300000Hz is 0x12, 0x34, 0xc7, 0x0c, and the result obtained by the operation of 470500000Hz is 0x12, 0x37, 0xb0, 0xcc. The CRC check calculation is performed on the result to draw a conclusion.

[0053] E. On the LoRaWAN terminal side, obtain the original data to be sent, perform CRC check on the data, generate a 2-byte CRC check value, append it to the end of the original data, convert the transmission channel frequency to be sent, convert it into hexadecimal format, loop or operate the original data and the calculated CRC check value and the converted hexadecimal number of the transmission channel frequency, and send the result of the loop or operation on the transmission channel frequency;

[0054] F. The working process on the LoRaWAN gateway side is to obtain the data reported by the LoRa demodulation module, convert the receiving channel frequency into hexadecimal form, perform a loop or operation on the data reported by the LoRa demodulation module and the receiving channel frequency converted into hexadecimal form, and perform a CRC check operation on the result of the loop or operation, except for the CRC value of the last 2 bytes. If the result of the CRC check operation matches the CRC value of the last 2 bytes of the data, the reception is successful and reported to the superior program.

[0055] Embodiment 4:

[0056] In the third embodiment, the following process is added:

[0057] In step C, the hexadecimal data converted by the channel frequency and the original transmission data are circulated, and the converted data will be sent in the LoRaWAN network using LoRa communication, and the transmission frequency is 470300000 Hz.

[0058] The method for detecting false alarms includes the following steps:

[0059] A. First, add a CRC-16 error detection program to the LoRa terminal and LoRaWAN gateway applications in the LoRaWAN network to distinguish the data reported by the LoRaWAN gateway;

[0060] B. When the LoRaWAN gateway receives the wireless signal, it converts the signal to the corresponding intermediate frequency. After the LoRa signal is received by the gateway, it is transferred to an intermediate frequency. The corresponding intermediate frequency signal is output to the LoRa baseband for demodulation, and the final result is reported to the upper layer program;

[0061] C. The data that the LoRaWAN terminal needs to send is 0x12, 0x34. CRC-16 is used to calculate the data. The check code is 0xc7, 0x0. The original data is 0x12, 0x34, 0xc7, 0x0c. The specified transmission channel frequency is 470300000Hz. The corresponding hexadecimal numbers are 0x1c, 0x08, 0x35, 0x60. The original data and the channel frequency converted to hexadecimal are ORed to obtain the data 0x0e, 0x3c, 0xf2, 0x6c.

[0062] D. On the LoRaWAN gateway, after the data is successfully demodulated and reported by the LoRa demodulation module, the hexadecimal form of the receiving frequency must be converted first. 470300000Hz will be converted to 0x1c, 0x08, 0x35, 0x60, and 470500000Hz will be converted to 0x1c, 0x0b, 0x42, 0xa0. The data demodulated by LoRa and the hexadecimal form of the receiving frequency are either ORed. The result obtained by the operation of 470300000Hz is 0x12, 0x34, 0xc7, 0x0c, and the result obtained by the operation of 470500000Hz is 0x12, 0x37, 0xb0, 0xcc. The CRC check calculation is performed on the result to draw a conclusion.

[0063] E. On the LoRaWAN terminal side, obtain the original data to be sent, perform CRC check on the data, generate a 2-byte CRC check value, append it to the end of the original data, convert the transmission channel frequency to be sent, convert it into hexadecimal format, loop or operate the original data and the calculated CRC check value and the converted hexadecimal number of the transmission channel frequency, and send the result of the loop or operation on the transmission channel frequency;

[0064] F. The working process on the LoRaWAN gateway side is to obtain the data reported by the LoRa demodulation module, convert the receiving channel frequency into hexadecimal form, perform a loop or operation on the data reported by the LoRa demodulation module and the receiving channel frequency converted into hexadecimal form, and perform a CRC check operation on the result of the loop or operation, except for the CRC value of the last 2 bytes. If the result of the CRC check operation matches the CRC value of the last 2 bytes of the data, the reception is successful and reported to the superior program.

[0065] Embodiment five:

[0066] In the fourth embodiment, the following process is added:

[0067] The data received at the channel frequency of 470500000 Hz in step D cannot pass the verification. The data is damaged during the transmission process and the communication channel frequency is not 470500000 Hz.

[0068] The method for detecting false alarms includes the following steps:

[0069] A. First, add a CRC-16 error detection program to the LoRa terminal and LoRaWAN gateway applications in the LoRaWAN network to distinguish the data reported by the LoRaWAN gateway;

[0070] B. When the LoRaWAN gateway receives the wireless signal, it converts the signal to the corresponding intermediate frequency. After the LoRa signal is received by the gateway, it is transferred to an intermediate frequency. The corresponding intermediate frequency signal is output to the LoRa baseband for demodulation, and the final result is reported to the upper layer program;

[0071] C. The data that the LoRaWAN terminal needs to send is 0x12, 0x34. CRC-16 is used to calculate the data. The check code is 0xc7, 0x0. The original data is 0x12, 0x34, 0xc7, 0x0c. The specified transmission channel frequency is 470300000Hz. The corresponding hexadecimal numbers are 0x1c, 0x08, 0x35, 0x60. The original data and the channel frequency converted to hexadecimal are ORed to obtain the data 0x0e, 0x3c, 0xf2, 0x6c.

[0072] D. On the LoRaWAN gateway, after the data is successfully demodulated and reported by the LoRa demodulation module, the hexadecimal form of the receiving frequency must be converted first. 470300000Hz will be converted to 0x1c, 0x08, 0x35, 0x60, and 470500000Hz will be converted to 0x1c, 0x0b, 0x42, 0xa0. The data demodulated by LoRa and the hexadecimal form of the receiving frequency are either ORed. The result obtained by the operation of 470300000Hz is 0x12, 0x34, 0xc7, 0x0c, and the result obtained by the operation of 470500000Hz is 0x12, 0x37, 0xb0, 0xcc. The CRC check calculation is performed on the result to draw a conclusion.

[0073] E. On the LoRaWAN terminal side, obtain the original data to be sent, perform CRC check on the data, generate a 2-byte CRC check value, append it to the end of the original data, convert the transmission channel frequency to be sent, convert it into hexadecimal format, loop or operate the original data and the calculated CRC check value and the converted hexadecimal number of the transmission channel frequency, and send the result of the loop or operation on the transmission channel frequency;

[0074] F. The working process on the LoRaWAN gateway side is to obtain the data reported by the LoRa demodulation module, convert the receiving channel frequency into hexadecimal form, perform a loop or operation on the data reported by the LoRa demodulation module and the receiving channel frequency converted into hexadecimal form, and perform a CRC check operation on the result of the loop or operation, except for the CRC value of the last 2 bytes. If the result of the CRC check operation matches the CRC value of the last 2 bytes of the data, the reception is successful and reported to the superior program.

[0075] Embodiment six:

[0076] In the fifth embodiment, the following process is added:

[0077] The result of the CRC check operation in step F does not match the CRC value of the last 2 bytes of the data, a reception error occurs, the received value is damaged during wireless transmission, or the data is not transmitted on the current channel frequency, and the error is reported to the upper program.

[0078] The method for detecting false alarms includes the following steps:

[0079] A. First, add a CRC-16 error detection program to the LoRa terminal and LoRaWAN gateway applications in the LoRaWAN network to distinguish the data reported by the LoRaWAN gateway;

[0080] B. When the LoRaWAN gateway receives the wireless signal, it converts the signal to the corresponding intermediate frequency. After the LoRa signal is received by the gateway, it is transferred to an intermediate frequency. The corresponding intermediate frequency signal is output to the LoRa baseband for demodulation, and the final result is reported to the upper layer program;

[0081] C. The data that the LoRaWAN terminal needs to send is 0x12, 0x34. CRC-16 is used to calculate the data. The check code is 0xc7, 0x0. The original data is 0x12, 0x34, 0xc7, 0x0c. The specified transmission channel frequency is 470300000Hz. The corresponding hexadecimal numbers are 0x1c, 0x08, 0x35, 0x60. The original data and the channel frequency converted to hexadecimal are ORed to obtain the data 0x0e, 0x3c, 0xf2, 0x6c.

[0082] D. On the LoRaWAN gateway, after the data is successfully demodulated and reported by the LoRa demodulation module, the hexadecimal form of the receiving frequency must be converted first. 470300000Hz will be converted to 0x1c, 0x08, 0x35, 0x60, and 470500000Hz will be converted to 0x1c, 0x0b, 0x42, 0xa0. The data demodulated by LoRa and the hexadecimal form of the receiving frequency are either ORed. The result obtained by the operation of 470300000Hz is 0x12, 0x34, 0xc7, 0x0c, and the result obtained by the operation of 470500000Hz is 0x12, 0x37, 0xb0, 0xcc. The CRC check calculation is performed on the result to draw a conclusion.

[0083] E. On the LoRaWAN terminal side, obtain the original data to be sent, perform CRC check on the data, generate a 2-byte CRC check value, append it to the end of the original data, convert the transmission channel frequency to be sent, convert it into hexadecimal format, loop or operate the original data and the calculated CRC check value and the converted hexadecimal number of the transmission channel frequency, and send the result of the loop or operation on the transmission channel frequency;

[0084] F. The working process on the LoRaWAN gateway side is to obtain the data reported by the LoRa demodulation module, convert the receiving channel frequency into hexadecimal form, perform a loop or operation on the data reported by the LoRa demodulation module and the receiving channel frequency converted into hexadecimal form, and perform a CRC check operation on the result of the loop or operation, except for the CRC value of the last 2 bytes. If the result of the CRC check operation matches the CRC value of the last 2 bytes of the data, the reception is successful and reported to the superior program.

[0085] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0086] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for detecting LoRaWAN gateway multi-channel reception false alarms based on software, characterized in that: Includes wireless receiver, LoRaWAN gateway, LoRa modem and CRC-16 error detection routine; Its method for detecting false positives includes: A. First, add a CRC-16 error detection program to the LoRa terminal and LoRaWAN gateway applications in the LoRaWAN network to distinguish the data reported by the LoRaWAN gateway; B. When the LoRaWAN gateway receives the wireless signal, it converts the signal to the corresponding intermediate frequency. After the LoRa signal is received by the gateway, it is transferred to an intermediate frequency. The corresponding intermediate frequency signal is output to the LoRa baseband for demodulation, and the final result is reported to the upper layer program; C. The data that the LoRaWAN terminal needs to send is 0x12, 0x34. CRC-16 is used to calculate the data. The check code is 0xc7, 0x0. The original data is 0x12, 0x34, 0xc7, 0x0c. The specified transmission channel frequency is 470300000Hz. The corresponding hexadecimal numbers are 0x1c, 0x08, 0x35, 0x60. The original data and the channel frequency converted to hexadecimal are ORed to obtain the data 0x0e, 0x3c, 0xf2, 0x6c. D. On the LoRaWAN gateway, after the data is successfully demodulated and reported by the LoRa demodulation module, the hexadecimal form of the receiving frequency must be converted first. 470300000Hz will be converted to 0x1c, 0x08, 0x35, 0x60, and 470500000Hz will be converted to 0x1c, 0x0b, 0x42, 0xa0. The data demodulated by LoRa and the hexadecimal form of the receiving frequency are either ORed. The result obtained by the operation of 470300000Hz is 0x12, 0x34, 0xc7, 0x0c, and the result obtained by the operation of 470500000Hz is 0x12, 0x37, 0xb0, 0xcc. The CRC check calculation is performed on the result to draw a conclusion. E. On the LoRaWAN terminal side, obtain the original data to be sent, perform CRC check on the data, generate a 2-byte CRC check value, append it to the end of the original data, convert the transmission channel frequency to be sent, convert it into hexadecimal format, loop or operate the original data and the calculated CRC check value and the converted hexadecimal number of the transmission channel frequency, and send the result of the loop or operation on the transmission channel frequency; F. The working process on the LoRaWAN gateway side is to obtain the data reported by the LoRa demodulation module, convert the receiving channel frequency into hexadecimal form, perform a loop or operation on the data reported by the LoRa demodulation module and the receiving channel frequency converted into hexadecimal form, and perform a CRC check operation on the result of the loop or operation, except for the CRC value of the last 2 bytes. If the result of the CRC check operation matches the CRC value of the last 2 bytes of the data, the reception is successful and reported to the superior program.

2. A method for detecting LoRaWAN gateway multi-channel reception false alarms based on software according to claim 1, characterized in that: The wireless receiver chip adopts SX1276, and the LoRa modem chip adopts SX1301.

3. A method for detecting LoRaWAN gateway multi-channel reception false alarms based on software according to claim 1, characterized in that: In step B, an 8-channel LoRaWAN gateway is used, and there are 8 intermediate frequency settings.

4. A method for detecting LoRaWAN gateway multi-channel reception false alarms based on software according to claim 1, characterized in that: In the step C, the hexadecimal data converted by the channel frequency and the original transmission data are circulated, and the converted data will be sent in the LoRaWAN network using LoRa communication, and the transmission frequency is 470300000 Hz.

5. The method for detecting LoRaWAN gateway multi-channel reception false alarm based on software according to claim 1, characterized in that: The data received at the channel frequency of 470500000 Hz in step D cannot pass the verification, the data is damaged during the transmission process and the communication channel frequency is not 470500000 Hz.

6. A method for detecting LoRaWAN gateway multi-channel reception false alarms based on software according to claim 1, characterized in that: The result of the CRC check operation in step F does not match the CRC value of the last 2 bytes of the data, a reception error occurs, the received value is damaged during wireless transmission, or the data is not transmitted on the current channel frequency, and the error is reported to the upper program.