CN-122002530-A - LoRa technology-based equipment searching method, scanning equipment and terminal equipment
Abstract
The disclosure provides a device searching method, scanning device and terminal device based on LoRa technology. The equipment searching method comprises the steps of starting a Sub-GHz LoRa mode to perform scanning operation to obtain RSSI correction values corresponding to all terminal equipment, matching target terminal equipment and the target RSSI correction values of the target terminal equipment from a plurality of terminal equipment based on target equipment IDs of the target terminal equipment, and switching to a 2.4GHz LoRa mode to search the target terminal equipment if the target RSSI correction values are larger than or equal to a preset RSSI threshold and the current distance is larger than or equal to a first preset distance threshold under the condition that the scanning equipment moves forwards along the current direction. According to the object searching method, object searching problems in different distance ranges are solved through double-frequency cooperative work of Sub-GHz LoRa and 2.4GHz LoRa, object searching automation degree is high, and object searching efficiency is remarkably improved.
Inventors
- JIANG HUJUN
Assignees
- 上海杉诺信息技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260127
Claims (10)
- 1. The equipment searching method based on the LoRa technology is characterized by being applied to scanning equipment, and comprises the following steps: starting a Sub-GHz LoRa mode to perform scanning operation so as to receive broadcast packets sent by a plurality of terminal devices based on the Sub-GHz LoRa mode; wherein the broadcast packet contains a device ID of the terminal device; acquiring RSSI correction values corresponding to the terminal devices after preprocessing the RSSI original values corresponding to the terminal devices; Based on a target equipment ID of target terminal equipment, matching the target terminal equipment and a target RSSI correction value of the target terminal equipment from the plurality of terminal equipment; Determining the current orientation and the current distance of the target terminal equipment relative to the scanning equipment according to the target RSSI correction value; And under the condition that the scanning equipment moves forwards along the current direction, if the target RSSI correction value is greater than or equal to a preset RSSI threshold value and the current distance is greater than or equal to a first preset distance threshold value, switching to a 2.4GHz LoRa mode to search for the target terminal equipment.
- 2. The device searching method according to claim 1, wherein the step of switching to the 2.4GHz LoRa mode to search for the target terminal device if the target RSSI correction value is greater than or equal to a preset RSSI threshold and the current distance is greater than or equal to a first preset distance threshold in the case where the scanning device moves forward in the current direction comprises: If the target RSSI correction value is greater than or equal to a preset RSSI threshold and the current distance is greater than or equal to a first preset distance threshold under the condition that the scanning equipment moves forwards along the current direction, periodically sending a mode switching instruction to the target terminal equipment; the mode switching instruction is used for indicating the target terminal equipment to switch from the Sub-GHz LoRa mode to the 2.4GHz LoRa mode; Receiving the ACK sent by the target terminal equipment, and switching to the 2.4GHz LoRa mode; carrying out handshake operation with the target terminal equipment based on a preset handshake mode, and synchronizing a time stamp after the handshake operation is successful; And under the condition that the scanning equipment continues to move forwards along the current direction, acquiring the current distance between the target terminal equipment and the scanning equipment by adopting a TOF technology until the current distance is reduced to a second preset distance threshold value so as to find the target terminal equipment.
- 3. The device searching method according to claim 1, wherein the broadcast packet further includes device posture data of the terminal device, and the step of obtaining RSSI correction values corresponding to the terminal devices after preprocessing the RSSI original values corresponding to the terminal devices includes: Acquiring an RSSI original value corresponding to each terminal device; selecting RSSI error values corresponding to the equipment posture data from a preset error table; the preset error table is used for representing the corresponding relation between the RSSI original value and the RSSI error value; And correcting the corresponding RSSI original value based on the RSSI error value corresponding to each terminal device to obtain the RSSI corrected value corresponding to each terminal device.
- 4. The device searching method of claim 3, wherein the step of correcting the corresponding RSSI original value based on the RSSI error value corresponding to each terminal device to obtain the RSSI correction value corresponding to each terminal device comprises: Performing filtering operation on the RSSI original values corresponding to the terminal devices by adopting a preset filtering algorithm to obtain RSSI filtering values corresponding to the terminal devices; And correcting the corresponding RSSI filtering value based on the RSSI error value corresponding to each terminal device to obtain the RSSI correction value corresponding to each terminal device.
- 5. The device finding method according to claim 1, wherein the step of determining the current orientation and the current distance of the target terminal device with respect to the scanning device based on the target RSSI correction value comprises: under the condition that the scanning equipment moves forwards along a preset direction, if the target RSSI correction value is gradually increased, determining the preset direction as the current direction corresponding to the target terminal equipment; calculating the current distance of the target terminal equipment relative to the scanning equipment based on the target RSSI correction value and a preset ranging algorithm; And/or, the device finding method further comprises: And sending a communication parameter modification instruction to the target terminal equipment, so that the target terminal equipment sends the broadcast packet based on the communication parameter corresponding to the communication parameter modification instruction.
- 6. The device searching method of claim 3, wherein the scanning device is configured with a directional antenna, and the step of obtaining the RSSI original values corresponding to the terminal devices comprises: acquiring RSSI signals by adopting the directional antenna; and processing the RSSI signals to obtain the RSSI original values corresponding to the terminal equipment.
- 7. The equipment searching method based on the LoRa technology is characterized by being applied to terminal equipment, and comprises the following steps: Starting a Sub-GHz LoRa mode to perform broadcasting operation so as to send a broadcasting packet; wherein the broadcast packet contains a device ID of the terminal device; And receiving a mode switching instruction periodically sent by the scanning equipment, switching to a 2.4GHz LoRa mode, and sending ACK to the scanning equipment.
- 8. The device finding method of claim 7, wherein the device finding method comprises: Receiving a communication parameter modification instruction sent by the scanning equipment; And sending the broadcast packet based on the communication parameters corresponding to the communication parameter modification instruction.
- 9. A scanning device comprising a memory, a processor and a computer program stored on the memory for running on the processor, characterized in that the processor implements a device finding method based on the LoRa technology as claimed in any one of claims 1-6 when executing the computer program.
- 10. A terminal device comprising a memory, a processor and a computer program stored on the memory for running on the processor, characterized in that the processor implements the device finding method based on the LoRa technology as claimed in claim 7 or 8 when executing the computer program.
Description
LoRa technology-based equipment searching method, scanning equipment and terminal equipment Technical Field The present disclosure relates to the field of LoRa (Long Range/Long Range radio) technology, and in particular, to a device searching method, a scanning device, and a terminal device based on LoRa technology. Background At the current rapid development of internet of things, the demands for positioning and tracking devices (or articles) are increasing. Traditional device finding technologies, such as Bluetooth Low Energy (BLE) technology, are generally only suitable for short-range communication in the range of 10-100 meters due to limited signal transmission distance, and are difficult to meet the requirement of finding long-range devices. Other high-precision positioning technologies often need to be equipped with expensive hardware, such as antenna arrays, and the like, which results in high system cost and complex hardware deployment. Therefore, how to use the technical means with controllable cost and simple hardware to realize efficient and accurate equipment positioning and tracking becomes a problem to be solved. Disclosure of Invention The technical problem to be solved by the method is to overcome the defect that the technology means with controllable cost and simple hardware cannot be utilized in the prior art to realize efficient and accurate equipment positioning and tracking, and provide an equipment searching method, scanning equipment and terminal equipment based on LoRa technology. The technical problems are solved by the following technical scheme: In a first aspect, an apparatus searching method based on LoRa technology is provided, and is applied to a scanning apparatus, where the apparatus searching method includes: starting a Sub-GHz LoRa (one frequency band in LoRa technology) mode to carry out scanning operation so as to receive broadcast packets sent by a plurality of terminal devices based on the Sub-GHz LoRa mode; wherein, the broadcast packet contains the equipment ID (Identification) of the terminal equipment; Acquiring RSSI correction values corresponding to the terminal devices after preprocessing the original values of RSSIs (RECEIVED SIGNAL STRENGTH indicators) corresponding to the terminal devices; Based on a target equipment ID of target terminal equipment, matching the target terminal equipment and a target RSSI correction value of the target terminal equipment from the plurality of terminal equipment; Determining the current orientation and the current distance of the target terminal equipment relative to the scanning equipment according to the target RSSI correction value; And under the condition that the scanning equipment moves forwards along the current direction, if the target RSSI correction value is greater than or equal to a preset RSSI threshold value and the current distance is greater than or equal to a first preset distance threshold value, switching to a 2.4GHz LoRa (one frequency band in LoRa technology) mode to search for the target terminal equipment. Optionally, when the scanning device moves forward along the current direction, if the target RSSI correction value is greater than or equal to a preset RSSI threshold and the current distance is greater than or equal to a first preset distance threshold, the step of switching to the 2.4GHz LoRa mode to find the target terminal device includes: If the target RSSI correction value is greater than or equal to a preset RSSI threshold and the current distance is greater than or equal to a first preset distance threshold under the condition that the scanning equipment moves forwards along the current direction, periodically sending a mode switching instruction to the target terminal equipment; the mode switching instruction is used for indicating the target terminal equipment to switch from the Sub-GHz LoRa mode to the 2.4GHz LoRa mode; Receiving ACK (acknowledgement) sent by the target terminal equipment, and switching to the 2.4GHz LoRa mode; carrying out handshake operation with the target terminal equipment based on a preset handshake mode, and synchronizing a time stamp after the handshake operation is successful; and under the condition that the scanning equipment continues to move forwards along the current direction, acquiring the current distance between the target terminal equipment and the scanning equipment by adopting a TOF (Time of Flight) technology until the current distance is reduced to a second preset distance threshold value so as to find the target terminal equipment. Optionally, the broadcast packet further includes equipment posture data of the terminal equipment, and the step of obtaining RSSI correction values corresponding to the terminal equipment after preprocessing the RSSI original values corresponding to the terminal equipment includes: Acquiring an RSSI original value corresponding to each terminal device; selecting RSSI error values corresponding to the equipment posture da