A high-altitude distance measuring alarm method, system, terminal and storage medium
Patent Information
- Application Number
- CN202610959962.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-10-27
AI Technical Summary
[0005]本发明的主要目的在于提供一种降落伞组网测距报警方法、系统、终端及计算机可读存储介质,旨在解决现有通过双眼以及个人经验判断高空中不同跳伞员之间的距离容易受到光线与可见度等环境因素的影响,同时不同跳伞员个人经验存在差别,因此无法准确进行距离判断,从而会导致跳伞员之间碰撞,影响跳伞安全的问题
[0016]本发明中,控制当前设备进行自检,获取所述当前设备的所有新设备并更新新设备列表,当自检完成后,根据新设备列表,得到测距列表;根据所述测距列表,获取所述当前设备与每组设备的测距值;根据每个所述测距值判断对应设备与所述当前设备之间的距离状态;当所述距离状态为预警状态或报警状态时,根据所述距离状态对应进行报警。本发明通过控制对应设备进行自检获取测距列表,基于测距列表对应测量得到每个设备与当前设备的距离,从而判断这些设备是否与当前设备距离太近,当距离太近时则对应进行报警,从而提示用户对应的情况,让用户可以提前进行相应的操作避免产生碰撞,进而保证跳伞安全。
Smart Images

Figure CN122990870A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of high-altitude ranging alarm technology, and in particular to a parachute network ranging alarm method, system, terminal and storage medium. Background Technology
[0002] As skydiving and high-altitude sports become increasingly popular, ensuring the safety of individuals is crucial. In specific skydiving scenarios, to guarantee the safety of different skydivers, jump times and safe distances are typically controlled to prevent collisions or parachute entanglement in the air.
[0003] Currently, during skydiving, skydivers typically rely on their eyes and personal experience to judge the distance between themselves and other skydivers when they are high in the air after leaving the aircraft, thus ensuring safety. However, judging the distance between different skydivers at high altitudes by relying on their eyes and personal experience is easily affected by environmental factors such as light and visibility. In addition, different skydivers have different personal experiences, so it is impossible to make accurate distance judgments, which may lead to collisions between skydivers and affect skydiving safety.
[0004] Therefore, existing technologies still need to be improved and developed. Summary of the Invention
[0005] The main objective of this invention is to provide a parachute network distance measurement alarm method, system, terminal, and computer-readable storage medium. This invention aims to solve the problem that existing methods of judging the distance between different parachutists at high altitudes by relying on visual observation and personal experience are easily affected by environmental factors such as light and visibility. Furthermore, the differences in personal experience among different parachutists make it impossible to accurately judge distances, which can lead to collisions between parachutists and affect parachuting safety.
[0006] To achieve the above objectives, the present invention provides a high-altitude ranging alarm method, which includes the following steps: Control the current device to perform a self-test, obtain all new devices of the current device and update the new device list. After the self-test is completed, obtain the ranging list based on the new device list. Based on the ranging list, obtain the ranging value between the current device and each group of devices; Determine the distance status between the corresponding device and the current device based on each of the distance measurements; When the distance status is in a warning state or an alarm state, an alarm is triggered according to the distance status.
[0007] Optionally, the control device performs a self-test, acquires all new devices for the current device and updates the new device list. After the self-test is completed, a ranging list is obtained based on the new device list, specifically including: The current device is controlled to perform a self-test. The current device sends a broadcast packet and enters a listening state after the transmission is completed, receiving broadcast packets sent by other devices within a first duration. After extracting and deduplicating the received broadcast packets, the device ID is stored in the list of current devices, and the timeout timer of the current device is reset. When the first duration ends, the current device is controlled to repeatedly send and receive broadcast packets. When the timeout timer expires, the self-test of the current device ends. The list is sorted to generate a distance measurement list, and the distance measurement list is named.
[0008] Optionally, the step of extracting and deduplicating the received broadcast packets, storing them in the current device's list, and simultaneously resetting the current device's timeout timer specifically includes: Parse the received broadcast packet to obtain the ID of the device that sent the broadcast packet; Iterate through the list of current devices and determine whether the ID exists in the list; If the ID does not exist in the list, the ID is stored in the list of the current device, and the timeout timer is reset.
[0009] Optionally, the control of the current device to perform a self-test, acquire all new devices of the current device and update the new device list, and after the self-test is completed, obtain the ranging list based on the new device list, which also includes: Acquire all devices and assign them to all groups according to the preset number of groups; Each device is assigned a corresponding identifier according to the preset grouping mapping rules.
[0010] Optionally, obtaining the distance values between the current device and each group of devices based on the distance measurement list specifically includes: The current device sequentially sends request packets to a group of devices in the ranging list and receives response packets from each device. Upon receiving the response packet from the corresponding device, a data tail packet is sent to each device in the group; Obtain the timestamp of the data packet between the current device and each device, obtain the flight time according to the first time formula, and calculate the ranging value of the corresponding device according to the flight time; Based on the distance measurement list, obtain the distance measurement values between the current device and other groups of devices.
[0011] Optionally, determining the distance status between the corresponding device and the current device based on each ranging value specifically includes: Obtain the distance value between each device and the current device. When the distance value is greater than or equal to the safe distance threshold, the distance status between the current device and the device is normal. When the ranging value is between the safe distance threshold and the alarm distance threshold, the distance status between the current device and the device is in a warning state; When the ranging value is less than or equal to the alarm distance threshold, the distance status between the current device and the device is in an alarm state; A local status table is generated based on the distance status of each device.
[0012] Optionally, when the distance status is a warning status or an alarm status, triggering an alarm according to the corresponding distance status specifically includes: Traverse the local status table to obtain devices whose distance status is alarm status, and perform alarm processing; Once all devices in the distance status alarm state have completed alarm processing, the local status table is traversed to obtain devices in the distance status warning state and warning processing is performed.
[0013] Furthermore, to achieve the above objectives, the present invention also provides a high-altitude ranging alarm system, wherein the high-altitude ranging alarm system comprises: The self-test module is used to control the current device to perform a self-test, obtain all new devices of the current device and update the new device list. After the self-test is completed, the ranging list is obtained based on the new device list. The ranging module is used to obtain the ranging value between the current device and each group of devices according to the ranging list; The distance status determination module is used to determine the distance status between the corresponding device and the current device based on each of the distance measurements; An alarm module is used to trigger an alarm based on the distance status when the distance status is in a warning state or an alarm state.
[0014] In addition, to achieve the above objectives, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and an altitude ranging alarm program stored in the memory and executable on the processor, wherein when the altitude ranging alarm program is executed by the processor, it implements the steps of the altitude ranging alarm method as described above.
[0015] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a high-altitude ranging alarm program, and when the high-altitude ranging alarm program is executed by a processor, it implements the steps of the high-altitude ranging alarm method as described above.
[0016] In this invention, the current device is controlled to perform a self-test, acquire all new devices for the current device, and update the new device list. After the self-test is completed, a distance measurement list is obtained based on the new device list. The distance measurement value between the current device and each group of devices is obtained based on the distance measurement list. The distance status between the corresponding device and the current device is determined based on each distance measurement value. When the distance status is a warning or alarm status, an alarm is triggered accordingly. This invention acquires a distance measurement list by controlling the corresponding device to perform a self-test, and measures the distance between each device and the current device based on the distance measurement list. This allows the system to determine whether these devices are too close to the current device. If the distance is too close, an alarm is triggered, thus alerting the user to the situation and allowing the user to take appropriate actions in advance to avoid collisions, thereby ensuring parachuting safety. Attached Figure Description
[0017] Figure 1 This is a flowchart of a preferred embodiment of the high-altitude ranging alarm method of the present invention; Figure 2 This is a structural diagram of a preferred embodiment of the high-altitude ranging alarm system of the present invention; Figure 3 This is a structural diagram of a preferred embodiment of the terminal of the present invention. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0021] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0022] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0023] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can include direct contact between the first and second features, or contact between the first and second features through another feature between them. Furthermore, "above," "over," and "on top" of the second feature includes the first feature directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature includes the first feature directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.
[0024] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. The illustrative expressions of the above terms in this specification should not be construed as necessarily referring to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0025] With the increasing popularity of skydiving and high-altitude sports, ensuring the safety of individuals is crucial. In specific skydiving scenarios, to guarantee the safety of different skydivers, jump times and safe distances are typically controlled to prevent collisions or parachute entanglement in mid-air. Currently, during a skydive, skydivers, after leaving the aircraft and high in the air, usually rely on their eyes and personal experience to judge distances to other skydivers to ensure safety. However, judging distances based on eyesight and personal experience is easily affected by environmental factors such as light and visibility, and individual skydivers' experience varies, making accurate distance judgments impossible and potentially leading to collisions and compromising safety.
[0026] To address one or more of the above-mentioned issues, this application controls the current device to perform a self-test, acquire all new devices of the current device and update the new device list. After the self-test is completed, a distance measurement list is obtained based on the new device list; the distance measurement value between the current device and each group of devices is obtained based on the distance measurement list; the distance status between the corresponding device and the current device is determined based on each distance measurement value; when the distance status is a warning status or an alarm status, an alarm is triggered accordingly based on the distance status.
[0027] The high-altitude ranging alarm method described in the preferred embodiment of the present invention, such as... Figure 1 As shown, the high-altitude ranging alarm method includes the following steps: Step S10: Control the current device to perform a self-test, obtain all new devices of the current device and update the new device list. After the self-test is completed, obtain the ranging list based on the new device list.
[0028] Specifically, in this invention, for devices that need to detect and alarm distances to each other in the air, a self-test is performed in advance. Through the self-test, all devices are stored in each device, thereby ensuring that the devices can obtain information about each other and measure distances in the high air.
[0029] Furthermore, the control device performs a self-test, acquires all new devices for the current device and updates the new device list. After the self-test is completed, a ranging list is obtained based on the new device list. This process also includes: Acquire all devices and assign them to all groups according to the preset number of groups; Each device is assigned a corresponding identifier according to the preset grouping mapping rules.
[0030] In this invention, for all devices requiring high-altitude ranging, the number of groups and the number of devices in each group are pre-set, and a corresponding identifier is assigned to each device according to a preset grouping mapping rule. The grouping mapping rule assigns an identifier with progressively increasing numbers to each device based on its group and position within that group. For example, if there are 65 devices, 5 groups can be set up, with each group containing 13 devices. Starting from the first device, identifiers from 0 to 64 are assigned to each device.
[0031] After the identifiers are assigned, the self-test mode can be divided into three stages during each device self-test: broadcast sending stage, broadcast answering stage, timeout clearing stage, and list clearing stage.
[0032] Furthermore, the control device performs a self-test, acquires all new devices for the current device and updates the new device list. After the self-test is completed, a ranging list is obtained based on the new device list, specifically including: The current device is controlled to perform a self-test. The current device sends a broadcast packet and enters a listening state after the transmission is completed, receiving broadcast packets sent by other devices within a first duration. After extracting and deduplicating the received broadcast packets, the device ID is stored in the list of current devices, and the timeout timer of the current device is reset. When the first duration ends, the current device is controlled to repeatedly send and receive broadcast packets. When the timeout timer expires, the self-test of the current device ends. The list is sorted to generate a distance measurement list, and the distance measurement list is named.
[0033] Specifically, in this invention, during self-testing, a broadcast transmission phase is first performed for the current device. This involves the current device periodically sending corresponding broadcast packets, with each broadcast packet containing the sending device's ID, i.e., an identifier. The interval between broadcast packet transmissions can be preset; in one embodiment, the interval is 20ms. Immediately after each broadcast packet transmission, the device enters a listening state, i.e., a broadcast listening phase, receiving broadcast packets from other devices within a first duration. In one embodiment, this first duration is set to 500ms.
[0034] Furthermore, the step of extracting and deduplicating the received broadcast packets, storing them in the current device's list, and simultaneously resetting the current device's timeout timer specifically includes: Parse the received broadcast packet to obtain the ID of the device that sent the broadcast packet; Iterate through the list of current devices and determine whether the ID exists in the list; If the ID does not exist in the list, the ID is stored in the list of the current device, and the timeout timer is reset.
[0035] Specifically, in this invention, each device maintains a list and a timeout timer. The list stores the corresponding device ID during the self-test process, and the timeout timer is used for timeout judgment during the self-test process. The timeout timer starts counting after the self-test begins. During the self-test process, after completing the broadcast sending phase, a corresponding broadcast listening phase is performed. In the broadcast listening phase, each received broadcast packet is parsed to obtain the ID of the sending device. Based on this ID, the device list is traversed to check if it already exists in the list. If it does not exist, the corresponding ID is stored in the list, and the timeout timer is reset. If the corresponding ID already exists in the current device's list, the corresponding ID is not stored repeatedly, and the corresponding timeout timer is not reset.
[0036] During the broadcast listening phase, a corresponding timeout control phase is performed. That is, after the current device completes one broadcast transmission and broadcast listening, if the timeout timer has not expired, the broadcast transmission and broadcast listening phases are repeated until the timeout controller expires. In this invention, whenever the current device discovers a new device, the corresponding timeout timer is reset. When the timeout timer expires, it indicates that there are no new devices not yet in the list, the surrounding network environment is stable, all new devices have been discovered, and the list consolidation phase can proceed. In one embodiment of this invention, the timeout timer is set to expire after 2 minutes.
[0037] During the list organization phase, all device IDs in the list are sorted in ascending order of value to obtain the corresponding ranging list. The organized "ranging list" is then subjected to an XOR check to obtain a two-byte checksum, which is used as the name of the current corresponding list.
[0038] Step S20: Obtain the distance measurement value between the current device and each group of devices according to the distance measurement list.
[0039] Further, obtaining the distance values between the current device and each group of devices based on the distance measurement list specifically includes: The current device sequentially sends request packets to a group of devices in the ranging list and receives response packets from each device. Upon receiving the response packet from the corresponding device, a data tail packet is sent to each device in the group; Obtain the timestamp of the data packet between the current device and each device, obtain the flight time according to the first time formula, and calculate the ranging value of the corresponding device according to the flight time; Based on the distance measurement list, obtain the distance measurement values between the current device and other groups of devices.
[0040] Specifically, in this invention, after obtaining the ranging list, the current device sends a corresponding request packet to each device in the ranging list. The corresponding sending mechanism is as follows: the current device obtains its own position in the ranging list, thereby obtaining its own group, and performs ranging on each group as a unit, thus completing the ranging of all devices.
[0041] In a single ranging operation, the current device sends a request packet sequentially to each device in a group. The other devices in the group cooperate with the current device to perform bidirectional ranging, thereby obtaining the distance between the current device and multiple devices. In the actual ranging process, the current device first performs bidirectional ranging with the other devices in its group, and then performs ranging with the devices in the other groups, thereby obtaining the ranging values between the current device and all devices.
[0042] The bidirectional ranging method used in this invention is DS-TWR ranging, which employs a TWR ranging method that multiplexes request packets (Poll packets) and data final packets (Final packets), reducing the amount of data interaction. During the ranging process, the current device (sender) first sends a request packet within a group. Other devices (receivers), upon receiving the Poll packet, send back response packets (Resp packets) at 500µs intervals according to the order within the current group. After receiving response packets from different receivers, the initiator broadcasts a data final packet to each device in the group. The data final packet contains the timestamp T0 of the initiator sending the request packet, the timestamp T3 of the initiator receiving different response packets, and the timestamp T4 of sending the data final packet. For a given receiver, the timestamp of receiving the request packet is T1, and the timestamp of sending the response packet is T5. T1 and T5 are stored in the response packet.
[0043] Based on the multiple received timestamps, the flight time can be calculated using the first time formula, which is expressed as: ;in, , , , .
[0044] Then the corresponding distance value , where c represents the speed of light.
[0045] Step S30: Determine the distance status between the corresponding device and the current device based on each of the distance measurements.
[0046] Furthermore, determining the distance status between the corresponding device and the current device based on each ranging value specifically includes: Obtain the distance value between each device and the current device. When the distance value is greater than or equal to the safe distance threshold, the distance status between the current device and the device is normal. When the ranging value is between the safe distance threshold and the alarm distance threshold, the distance status between the current device and the device is in a warning state; When the ranging value is less than or equal to the alarm distance threshold, the distance status between the current device and the device is in an alarm state; A local status table is generated based on the distance status of each device.
[0047] Specifically, in this invention, a local status table is maintained, which contains the distance status between the current device and all other devices in the list. The distance status includes normal status, warning status, and alarm status.
[0048] After obtaining the distance measurement values between each device and the current device, the relationship between the distance measurement value and the safe distance threshold and the alarm distance threshold is determined. When the distance measurement value is greater than or equal to the safe distance threshold, it is in a normal state; when the alarm distance threshold is less than the distance measurement value and less than the safe distance threshold, it is in a warning state; when the distance measurement value is less than or equal to the alarm distance threshold, it is in an alarm state. The safe distance threshold and the alarm distance threshold are preset according to specific circumstances.
[0049] Step S40: When the distance status is a warning status or an alarm status, an alarm is triggered according to the distance status.
[0050] Furthermore, when the distance status is a warning status or an alarm status, triggering an alarm according to the corresponding distance status specifically includes: Traverse the local status table to obtain devices whose distance status is alarm status, and perform alarm processing; Once all devices in the distance status alarm state have completed alarm processing, the local status table is traversed to obtain devices in the distance status warning state and warning processing is performed.
[0051] Specifically, after the distance status on the local status table is updated, the local status table is first traversed to determine if there is an alarm status. If so, alarm processing is initiated. If no alarm status exists, it is determined if there is a warning status. If so, warning processing is initiated. If neither alarm nor warning status exists, safety processing is initiated. Alarm and warning processing can be communicated to the user through the device display screen, buzzer, and voice system to indicate the current situation.
[0052] This invention controls the current device to perform a self-test, acquires all new devices for the current device, and updates the new device list. After the self-test is complete, a distance measurement list is obtained based on the new device list. The distance measurement value between the current device and each group of devices is obtained based on the distance measurement list. The distance status between the corresponding device and the current device is determined based on each distance measurement value. When the distance status is a warning or alarm status, an alarm is triggered accordingly. This invention obtains the distance measurement list by controlling the corresponding device to perform a self-test, and measures the distance between each device and the current device based on the distance measurement list. This allows the system to determine if these devices are too close to the current device. If the distance is too close, an alarm is triggered, thus alerting the user to the situation and allowing the user to take appropriate actions in advance to avoid collisions, thereby ensuring parachuting safety.
[0053] Furthermore, such as Figure 2 As shown, based on the above-described high-altitude ranging alarm method, the present invention also provides a high-altitude ranging alarm system, wherein the high-altitude ranging alarm system includes: The self-test module 111 is used to control the current device to perform a self-test, obtain all new devices of the current device and update the new device list. After the self-test is completed, the ranging list is obtained based on the new device list. The ranging module 112 is used to obtain the ranging value between the current device and each group of devices according to the ranging list; The distance status determination module 113 is used to determine the distance status between the corresponding device and the current device based on each of the distance measurements; The alarm module 114 is used to trigger an alarm according to the distance status when the distance status is in a warning state or an alarm state.
[0054] Furthermore, such as Figure 3 As shown, based on the above-mentioned high-altitude ranging alarm method and system, the present invention also provides a terminal, which includes a processor 10, a memory 20 and a display 30. Figure 3 Only some of the terminal components are shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0055] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory. In other embodiments, the memory 20 may be an external storage device of the terminal, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc. Further, the memory 20 may include both internal and external storage devices. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code installed on the terminal. The memory 20 can also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 20 stores a high-altitude ranging alarm program 40, which can be executed by the processor 10 to implement the high-altitude ranging alarm method of this application.
[0056] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor, or other data processing chip, used to run program code stored in the memory 20 or process data, such as executing the high-altitude ranging alarm method.
[0057] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0058] In one embodiment, the steps in the above-described high-altitude ranging alarm method are implemented when the processor 10 executes the high-altitude ranging alarm program 40 in the memory 20.
[0059] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a high-altitude ranging alarm program, and the high-altitude ranging alarm program, when executed by a processor, implements the steps of the high-altitude ranging alarm method as described above.
[0060] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.
[0061] Of course, those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.). The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The computer-readable storage medium can be a memory, magnetic disk, optical disk, etc.
[0062] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A high-altitude ranging alarm method, characterized in that, The high-altitude ranging alarm method includes: Control the current device to perform a self-test, obtain all new devices of the current device and update the new device list. After the self-test is completed, obtain the ranging list based on the new device list. Based on the ranging list, obtain the ranging value between the current device and each group of devices; Determine the distance status between the corresponding device and the current device based on each of the distance measurements; When the distance status is in a warning state or an alarm state, an alarm is triggered according to the distance status.
2. The high-altitude ranging alarm method according to claim 1, characterized in that, The system controls the current device to perform a self-test, acquires all new devices currently in use and updates the new device list. After the self-test is complete, a ranging list is obtained based on the new device list, specifically including: The current device is controlled to perform a self-test. The current device sends a broadcast packet and enters a listening state after the transmission is completed, receiving broadcast packets sent by other devices within a first duration. After extracting and deduplicating the received broadcast packets, the device ID is stored in the list of current devices, and the timeout timer of the current device is reset. When the first duration ends, the current device is controlled to repeatedly send and receive broadcast packets. When the timeout timer expires, the self-test of the current device ends. The list is sorted to generate a distance measurement list, and the distance measurement list is named.
3. The high-altitude ranging alarm method according to claim 2, characterized in that, After extracting and deduplicating the received broadcast packets, the data is stored in the current device's list, and the current device's timeout timer is reset. Specifically, this includes: Parse the received broadcast packet to obtain the ID of the device that sent the broadcast packet; Iterate through the list of current devices and determine whether the ID exists in the list; If the ID does not exist in the list, the ID is stored in the list of the current device, and the timeout timer is reset.
4. The high-altitude ranging alarm method according to claim 1, characterized in that, The system controls the current device to perform a self-test, acquires all new devices currently in use and updates the new device list. After the self-test is complete, a ranging list is obtained based on the new device list. This process also includes: Acquire all devices and assign them to all groups according to the preset number of groups; Each device is assigned a corresponding identifier according to the preset grouping mapping rules.
5. The high-altitude ranging alarm method according to claim 1, characterized in that, The step of obtaining the distance values between the current device and each group of devices according to the distance measurement list specifically includes: The current device sequentially sends request packets to a group of devices in the ranging list and receives response packets from each device. Upon receiving the response packet from the corresponding device, a data tail packet is sent to each device in the group; Obtain the timestamp of the data packet between the current device and each device, obtain the flight time according to the first time formula, and calculate the ranging value of the corresponding device according to the flight time; Based on the distance measurement list, obtain the distance measurement values between the current device and other groups of devices.
6. The high-altitude ranging alarm method according to claim 1, characterized in that, The step of determining the distance status between the corresponding device and the current device based on each ranging value specifically includes: Obtain the distance value between each device and the current device. When the distance value is greater than or equal to the safe distance threshold, the distance status between the current device and the device is normal. When the ranging value is between the safe distance threshold and the alarm distance threshold, the distance status between the current device and the device is in a warning state; When the ranging value is less than or equal to the alarm distance threshold, the distance status between the current device and the device is in an alarm state; A local status table is generated based on the distance status of each device.
7. The high-altitude ranging alarm method according to claim 6, characterized in that, When the distance status is in a warning state or an alarm state, an alarm is triggered according to the corresponding distance status, specifically including: Traverse the local status table to obtain devices whose distance status is alarm status, and perform alarm processing; Once all devices in the distance status alarm state have completed alarm processing, the local status table is traversed to obtain devices in the distance status warning state and warning processing is performed.
8. A high-altitude ranging alarm system, characterized in that, The high-altitude ranging alarm system includes: The self-test module is used to control the current device to perform a self-test, obtain all new devices of the current device and update the new device list. After the self-test is completed, the ranging list is obtained based on the new device list. The ranging module is used to obtain the ranging value between the current device and each group of devices according to the ranging list; The distance status determination module is used to determine the distance status between the corresponding device and the current device based on each of the distance measurements; An alarm module is used to trigger an alarm based on the distance status when the distance status is in a warning state or an alarm state.
9. A terminal, characterized in that, The terminal includes: a memory, a processor, and an altitude ranging alarm program stored in the memory and executable on the processor. When the altitude ranging alarm program is executed by the processor, it implements the steps of the altitude ranging alarm method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a high-altitude ranging alarm program, which, when executed by a processor, implements the steps of the high-altitude ranging alarm method as described in any one of claims 1-7.