Delay compensation parameter calibration method and device and computer equipment
Through iterative ranging and Bluetooth connection of two UWB ranging devices, efficient calibration of ANTENNA_DELAY parameters is achieved, solving the problem of high cost of third-party calibration instruments and improving calibration efficiency and accuracy.
Patent Information
- Application Number
- CN202411149254.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, third-party calibration instruments are expensive, resulting in high cost and low efficiency in calibrating the ANTENNA_DELAY parameter in the UWB ranging system, which cannot meet the needs of mass production.
Through the iterative ranging process of two ranging devices, the calibrated delay compensation parameters are used to calibrate the delay compensation parameters in another ranging device, reducing dependence on third-party calibration instruments. A Bluetooth chip is used to establish a connection channel, and the distance measurement is carried out through The time stamp of the data is used to calculate the measurement interval distance, and the delay compensation parameters are iteratively adjusted until the deviation is below the threshold.
It reduces the cost of parameter calibration, improves calibration timeliness and accuracy, reduces repetitive adjustments, improves calibration efficiency, and avoids the use of a large number of expensive equipment.
Smart Images

Figure CN118655552A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence and data scheduling technology, and in particular to a method, device and computer equipment for calibrating delay compensation parameters. Background Art
[0002] Ultra Wide Band (UWB) technology is a wireless carrier communication technology. When receiving UWB ranging signals, there will be a certain antenna reception delay due to device circuit reasons. The ANTENNA_DELAY parameter is used to compensate for this delay to make ranging more accurate. Therefore, the calibration of the ANTENNA_DELAY parameter is the focus of research on the delay compensation accuracy of ranging signal reception.
[0003] The traditional technology is to calibrate the ANTENNA_DELAY parameter through a third-party calibration instrument. However, since the third-party calibration instrument equipment is very expensive and a large number of expensive equipment are required in mass production, the cost of calibrating the ANTENNA_DELAY parameter is high and the timeliness is slow, resulting in low efficiency of parameter calibration. Summary of the invention
[0004] The main purpose of the present invention is to provide a method, device and computer equipment for calibrating delay compensation parameters, aiming to solve the problem in the prior art that the calibration instruments and equipment of third parties are very expensive, and a large number of expensive equipment are required in mass production, so the calibration cost of ANTENNA_DELAY parameters is high and the timeliness is slow.
[0005] To achieve the above object, the present invention provides a delay compensation parameter calibration method, which is applied to a UWB ranging system, and the method comprises: Acquire location information of a first ranging device and location information of a second ranging device, and synchronize agreed parameters between the first ranging device and the second ranging device to obtain a target first ranging device and a target second ranging device; Based on the position information of the target first ranging device and the position information of the target second ranging device, calculate the actual interval distance between the target first ranging device and the target second ranging device, and identify the measured interval distance measured by the target first ranging device and the target second ranging device; Based on the actual interval distance and the distance deviation value between the measured interval distance, a parameter range of the delay compensation parameter is calculated, and based on the parameter range, the delay compensation parameter is calibrated to obtain a target delay compensation parameter.
[0006] Optionally, before synchronizing the agreed parameters in the first ranging device and the second ranging device to obtain the target first ranging device and the target second ranging device, the method further includes: Get device connection data; Based on the Bluetooth chip of the first ranging device and the Bluetooth chip of the second ranging device, a connection channel between the first ranging device and the second ranging device is established.
[0007] Optionally, synchronizing the agreed parameters of the first ranging device and the second ranging device to obtain a target first ranging device and a target second ranging device includes: Identify the parameter type of each agreed parameter, and obtain the agreed parameter value of each parameter type of the second ranging device through the connection channel; The agreed parameter values of each parameter type are replaced by the agreed parameter values of each parameter type in the first ranging device to obtain a target first ranging device, and when the target first ranging device completes the replacement task, the second ranging device is marked as a target second ranging device.
[0008] Optionally, the identifying a measurement interval distance measured by the target first ranging device and the target second ranging device includes: Based on the position information of the target first ranging device and the position information of the target second ranging device, identifying the ranging direction of the target second ranging device; Based on the ranging direction of the target second ranging device, a ranging task for the target second ranging device and the target first ranging device is generated, and based on the target second ranging device and the target first ranging device, the ranging task is performed to obtain a measurement interval distance measured by the target first ranging device and the target second ranging device.
[0009] Optionally, the performing the ranging task based on the target second ranging device and the target first ranging device to obtain the measurement interval distance measured by the target first ranging device and the target second ranging device includes: Based on the ranging direction, sending ranging data to the target first ranging device through the target second ranging device, and recording a first timestamp of a moment when the target second ranging device sends the ranging data and a second timestamp of a moment when the target first ranging device receives the ranging data; After the delay compensation time length corresponding to the delay compensation parameter is satisfied, based on the direction in which the target first ranging device receives the ranging data, the ranging data is sent to the target second ranging device through the target first ranging device, and a third timestamp of the moment when the target first ranging device sends the ranging data and a fourth timestamp of the moment when the target second ranging device receives the ranging data are recorded; Calculate a first time difference of the target second ranging device based on the first timestamp and the second timestamp, and calculate a second time difference of the target first device based on the third timestamp and the fourth timestamp; Based on the first time difference and the second time difference, a measurement interval distance measured by the target first ranging device and the target second ranging device is calculated by an interval distance algorithm.
[0010] Optionally, the calculating a parameter range of a delay compensation parameter based on a distance deviation value between the actual interval distance and the measured interval distance includes: Based on the distance deviation value, calculating a first parameter value of the delay compensation parameter corresponding to the measurement interval distance through a compensation parameter algorithm, and updating the delay compensation parameter based on the first parameter value; Returning to the step of executing the ranging task based on the target second ranging device and the target first ranging device to obtain the measurement interval distance measured by the target first ranging device and the target second ranging device, until the distance deviation value is lower than the deviation threshold, the iterative operation is stopped; The delay compensation parameter obtained in the last iteration is used as the target delay compensation parameter, and the delay compensation parameters of each iteration are arranged in order from small to large to obtain a delay compensation parameter sequence; The delay compensation parameter sequence and the target delay compensation parameter are used as the parameter range of the delay compensation parameter.
[0011] In addition, to achieve the above-mentioned purpose, the present invention also provides a delay compensation parameter calibration device, the delay compensation parameter calibration device is applied to a UWB ranging system, and the device comprises: An acquisition module, used to acquire the location information of the first ranging device and the location information of the second ranging device, and synchronize the agreed parameters between the first ranging device and the second ranging device to obtain the target first ranging device and the target second ranging device; a distance measuring module, configured to calculate an actual interval distance between the first distance measuring device and the second distance measuring device based on the position information of the first distance measuring device and the position information of the second distance measuring device, and identify a measured interval distance measured by the first distance measuring device and the second distance measuring device; The calibration module is used to calculate the parameter range of the delay compensation parameter based on the actual interval distance and the distance deviation value between the measured interval distance, and calibrate the delay compensation parameter based on the parameter range to obtain the target delay compensation parameter.
[0012] Optionally, the device further comprises: A data acquisition module, used to acquire device connection data; An establishing module is used to establish a connection channel between the first ranging device and the second ranging device based on the Bluetooth chip of the first ranging device and the Bluetooth chip of the second ranging device.
[0013] Optionally, the acquisition module is specifically used to: Identify the parameter type of each agreed parameter, and obtain the agreed parameter value of each parameter type of the second ranging device through the connection channel; The agreed parameter values of each parameter type are replaced by the agreed parameter values of each parameter type in the first ranging device to obtain a target first ranging device, and when the target first ranging device completes the replacement task, the second ranging device is marked as a target second ranging device.
[0014] Optionally, the ranging module is specifically used for: Based on the position information of the target first ranging device and the position information of the target second ranging device, identifying the ranging direction of the target second ranging device; Based on the ranging direction of the target second ranging device, a ranging task for the target second ranging device and the target first ranging device is generated, and based on the target second ranging device and the target first ranging device, the ranging task is performed to obtain a measurement interval distance measured by the target first ranging device and the target second ranging device.
[0015] Optionally, the ranging module is specifically used for: Based on the ranging direction, sending ranging data to the target first ranging device through the target second ranging device, and recording a first timestamp of a moment when the target second ranging device sends the ranging data and a second timestamp of a moment when the target first ranging device receives the ranging data; After the delay compensation time length corresponding to the delay compensation parameter is satisfied, based on the direction in which the target first ranging device receives the ranging data, the ranging data is sent to the target second ranging device through the target first ranging device, and a third timestamp of the moment when the target first ranging device sends the ranging data and a fourth timestamp of the moment when the target second ranging device receives the ranging data are recorded; Calculate a first time difference of the target second ranging device based on the first timestamp and the second timestamp, and calculate a second time difference of the target first device based on the third timestamp and the fourth timestamp; Based on the first time difference and the second time difference, a measurement interval distance measured by the target first ranging device and the target second ranging device is calculated by an interval distance algorithm.
[0016] Optionally, the calibration module is specifically used to: Based on the distance deviation value, calculating a first parameter value of the delay compensation parameter corresponding to the measurement interval distance through a compensation parameter algorithm, and updating the delay compensation parameter based on the first parameter value; Returning to the step of executing the ranging task based on the target second ranging device and the target first ranging device to obtain the measurement interval distance measured by the target first ranging device and the target second ranging device, until the distance deviation value is lower than the deviation threshold, the iterative operation is stopped; The delay compensation parameter obtained in the last iteration is used as the target delay compensation parameter, and the delay compensation parameters of each iteration are arranged in order from small to large to obtain a delay compensation parameter sequence; The delay compensation parameter sequence and the target delay compensation parameter are used as the parameter range of the delay compensation parameter.
[0017] In a third aspect, the present application provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.
[0018] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0019] In a fifth aspect, the present application provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0020] The present invention provides a method, device and computer equipment for calibrating a delay compensation parameter. The method is applied to a UWB ranging system. The method comprises: acquiring position information of a first ranging device and position information of a second ranging device, and synchronizing the agreed parameters of the first ranging device and the second ranging device to obtain a target first ranging device and a target second ranging device; calculating an actual interval distance between the target first ranging device and the target second ranging device based on the position information of the target first ranging device and the position information of the target second ranging device, and identifying a measured interval distance measured by the target first ranging device and the target second ranging device; calculating a parameter range of a delay compensation parameter based on a distance deviation value between the actual interval distance and the measured interval distance, and calibrating the delay compensation parameter based on the parameter range to obtain a target delay compensation parameter. This scheme uses an iterative ranging process of two ranging devices, aiming to calibrate the delay compensation parameters in another ranging device through the calibrated delay compensation parameters in one ranging device. First, the problem of parameter calibration through third-party calibration instruments is avoided, reducing the cost of parameter calibration. Then, this scheme identifies the parameter range of the delay compensation parameters through the ranging process between the two ranging devices and then performs the calibration process of the delay compensation parameters, which can greatly reduce the number of calibration instruments required in production. While reducing the cost of parameter calibration, it improves the timeliness of parameter calibration. Finally, parameter calibration based on synchronized measuring equipment can reduce the low-precision problem of repeatedly adjusting the time difference during measurement, which not only improves the accuracy of parameter calibration, but also synchronizes data calibration, avoiding a large amount of repetitive adjustment work, thereby comprehensively improving the efficiency of parameter calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 is a flow chart of a method for calibrating delay compensation parameters provided by an embodiment of the present invention; Figure 2 is a schematic structural diagram of a delay compensation parameter calibration device provided by an embodiment of the present invention; Figure 3 An internal structure diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The calibration method of the delay compensation parameters provided by the embodiment of the present invention is applied to the calibration system of the delay compensation parameters. Unless otherwise defined, all technical and scientific terms used in this document have the same meaning as those generally understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0024] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0026] The calibration method of the delay compensation parameter provided in the embodiment of the present application can be applied to the application environment of the UWB ranging system. The method can be applied to a terminal, a server, or a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. Among them, the terminal aims to calibrate the delay compensation parameters in another ranging device through the calibrated delay compensation parameters in one ranging device through the iterative ranging process of two ranging devices, first avoiding the problem of parameter calibration through a third-party calibration instrument, reducing the parameter calibration cost, and then this scheme identifies the parameter range of the delay compensation parameter through the ranging process between the two ranging devices and then performs the calibration process of the delay compensation parameter, which can greatly reduce the number of calibration instruments required in production, while reducing the parameter calibration cost, and improving the timeliness of parameter calibration. Finally, parameter calibration based on synchronized measurement equipment can reduce the low-precision problem of repeatedly adjusting the time difference during measurement, which not only improves the accuracy of parameter calibration, but also synchronizes data calibration, avoiding a large amount of repetitive adjustment work, thereby comprehensively improving the efficiency of parameter calibration.
[0027] In one embodiment, Figure 1As shown, a method for calibrating a delay compensation parameter is provided, which is described by taking the method applied to a terminal as an example, and includes the following steps: Step S101, obtaining the location information of the first ranging device and the location information of the second ranging device, and synchronizing the agreed parameters between the first ranging device and the second ranging device to obtain the target first ranging device and the target second ranging device.
[0028] In this embodiment, the terminal collects the location information of the first ranging device and the location information of the second ranging device through the positioning device set in the first ranging device and the second ranging device. The location information can be two-dimensional location information or three-dimensional location information, and the two-dimensional location information and the three-dimensional location information are established in the geodetic coordinate system. Then, the terminal synchronizes the agreed parameters in the first ranging device and the second ranging device to obtain the target first ranging device and the target second ranging device. The agreed parameters are used to align the functions of the two ranging devices to ensure that no matter which ranging device initiates a ranging request to another ranging device, the measured interval distance obtained is not interfered by the hardware factors of the device itself. The agreed parameters include multiple parameters, such as UWB Session ID, Selected_UWB_Channel, Selected PulseShape Combo, Session_RAN, Number_Chaps_per_Slot, Number_Slots_per_Round, SYNC_Code_Index, and Number_Responders_Nodes. The specific synchronization process will be described in detail later. Among them, the first ranging device and the second ranging device both include low-power Bluetooth chips and delay compensation parameters, and the delay compensation parameters in the first ranging device are delay compensation parameters that have been accurately calibrated by a third-party calibration device, and the delay compensation parameters in the second ranging device are delay compensation parameters that have not been accurately calibrated by a third-party calibration device. The parameter value of the delay compensation parameters in the second ranging device can be 0.
[0029] Step S102, based on the position information of the first target ranging device and the position information of the second target ranging device, calculate the actual interval distance between the first target ranging device and the second target ranging device, and identify the measured interval distance measured by the first target ranging device and the second target ranging device.
[0030] In this embodiment, the terminal calculates the actual interval distance between the target first ranging device and the target second ranging device based on the location information of the target first ranging device and the location information of the target second ranging device, and identifies the measured interval distance measured by the target first ranging device and the target second ranging device. Wherein, the actual interval distance is the spatial straight-line distance between the two ranging devices. The specific process of identifying the measured interval distance will be described in detail later.
[0031] Step S103, calculating a parameter range of a delay compensation parameter based on the actual interval distance and the distance deviation value between the actual interval distance and the measured interval distance, and calibrating the delay compensation parameter based on the parameter range to obtain a target delay compensation parameter.
[0032] In this embodiment, the terminal calculates the parameter range of the delay compensation parameter based on the actual interval distance and the distance deviation value between the measured interval distance, and calibrates the delay compensation parameter based on the parameter range to obtain the target delay compensation parameter, wherein the delay compensation parameter is the ANTENNA_DELAY parameter.
[0033] Based on the above scheme, through the iterative ranging process of two ranging devices, the delay compensation parameters in one ranging device are calibrated through the calibrated delay compensation parameters in the other ranging device. First, the problem of parameter calibration through a third-party calibration instrument is avoided, and the cost of parameter calibration is reduced. Then, this scheme identifies the parameter range of the delay compensation parameter through the ranging process between the two ranging devices and then performs the calibration process of the delay compensation parameter. It can greatly reduce the number of calibration instruments required in production, and improve the timeliness of parameter calibration while reducing the cost of parameter calibration. Finally, parameter calibration based on synchronized measuring equipment can reduce the low-precision problem of repeatedly adjusting the time difference during measurement, which not only improves the accuracy of parameter calibration, but also synchronizes data calibration, avoids a large amount of repetitive adjustment work, thereby comprehensively improving the efficiency of parameter calibration.
[0034] Optionally, before synchronizing the agreed parameters in the first ranging device and the second ranging device to obtain the target first ranging device and the target second ranging device, it also includes: acquiring device connection data; and establishing a connection channel between the first ranging device and the second ranging device based on the Bluetooth chip of the first ranging device and the Bluetooth chip of the second ranging device.
[0035] In this embodiment, the terminal obtains device connection data. The connection data is synchronization agreement data preset by the staff in the two devices, such as Bluetooth matching data. The terminal establishes a connection channel between the first ranging device and the second ranging device based on the Bluetooth chip of the first ranging device and the Bluetooth chip of the second ranging device. The Bluetooth chip is a BLE low-power Bluetooth chip. The connection channel is essentially a Bluetooth connection channel.
[0036] Based on the above solution, two ranging devices are linked through Bluetooth matching to avoid other communication signals interfering with the transmission accuracy of the ranging signal, thereby improving the impact of external environmental interference during the calibration process.
[0037] Optionally, synchronizing the agreed parameters in the first ranging device and the second ranging device to obtain a target first ranging device and a target second ranging device includes: identifying a parameter type of each agreed parameter, and obtaining, through a connection channel, agreed parameter values of each parameter type of the second ranging device; replacing the agreed parameter values of each parameter type in the first ranging device with the agreed parameter values of each parameter type to obtain the target first ranging device, and when the target first ranging device completes the replacement task, marking the second ranging device as the target second ranging device.
[0038] In this embodiment, the terminal identifies the parameter type of each agreed parameter, and obtains the agreed parameter value of each parameter type of the second ranging device through the connection channel. Then, the terminal replaces the agreed parameter value of each parameter type in the first ranging device with the agreed parameter value of each parameter type, obtains the target first ranging device, and marks the second ranging device as the target second ranging device when the target first ranging device completes the replacement task. Among them, different parameters belong to different parameter types, and the parameter type is used to distinguish different parameters. The parameter type can be any parameter type in the ranging device that affects the ranging control.
[0039] Based on the above solution, by synchronizing the agreed parameter values of different parameter types, the problem of synchronization exception is avoided and the synchronization efficiency is improved.
[0040] Optionally, identifying the measurement interval distance measured by the target first ranging device and the target second ranging device includes: identifying the ranging direction of the target second ranging device based on the position information of the target first ranging device and the position information of the target second ranging device; generating a ranging task for the target second ranging device and the target first ranging device based on the ranging direction of the target second ranging device, and executing the ranging task based on the target second ranging device and the target first ranging device to obtain the measurement interval distance measured by the target first ranging device and the target second ranging device.
[0041] In this embodiment, the terminal identifies the ranging direction of the target second ranging device based on the location information of the target first ranging device and the location information of the target second ranging device. The ranging direction is the direction to which the ranging data transmission point of the target second ranging device is facing, and the direction is the direction where the target first ranging device is located. The terminal generates the ranging task of the target second ranging device and the target first ranging device based on the ranging direction of the target second ranging device, and performs the ranging task based on the target second ranging device and the target first ranging device to obtain the measured interval distance measured by the target first ranging device and the target second ranging device. The ranging is considered to be a ranging task corresponding to the technical principle of UWB ranging, and the specific ranging task execution process will be described in detail later.
[0042] Based on the above scheme, by determining the ranging direction before performing the ranging operation, the influence of signal refraction, reflection, etc. emitted by the ranging data on the ranging accuracy is avoided, thereby improving the ranging accuracy.
[0043] Optionally, based on the target second ranging device and the target first ranging device, a ranging task is performed to obtain a measured interval distance measured by the target first ranging device and the target second ranging device, including: based on the ranging direction, sending ranging data to the target first ranging device through the target second ranging device, and recording a first timestamp of the moment when the target second ranging device sends the ranging data, and a second timestamp of the moment when the target first ranging device receives the ranging data; after satisfying the delay compensation duration corresponding to the delay compensation parameter, based on the direction in which the target first ranging device receives the ranging data, sending ranging data to the target second ranging device through the target first ranging device, and recording a third timestamp of the moment when the target first ranging device sends the ranging data, and a fourth timestamp of the moment when the target second ranging device receives the ranging data; calculating a first time difference of the target second ranging device based on the first timestamp and the second timestamp, and calculating a second time difference of the target first device based on the third timestamp and the fourth timestamp; and calculating the measured interval distance measured by the target first ranging device and the target second ranging device based on the first time difference and the second time difference through an interval distance algorithm.
[0044] In this embodiment, the terminal sends ranging data to the target first ranging device through the target second ranging device based on the ranging direction, and records the first timestamp of the moment when the target second ranging device sends the ranging data, and the second timestamp of the moment when the target first ranging device receives the ranging data. Then, after satisfying the delay compensation duration corresponding to the delay compensation parameter, the terminal sends ranging data to the target second ranging device through the target first ranging device based on the direction in which the target first ranging device receives the ranging data, and records the third timestamp of the moment when the target first ranging device sends the ranging data, and the fourth timestamp of the moment when the target second ranging device receives the ranging data. After that, the terminal calculates the first time difference of the target second ranging device based on the first timestamp and the second timestamp, and calculates the second time difference of the target first device based on the third timestamp and the fourth timestamp. Finally, the terminal calculates the measured interval distance measured by the target first ranging device and the target second ranging device through the interval distance algorithm based on the first time difference and the second time difference. Among them, the interval distance algorithm includes a flight time algorithm and a time distance conversion algorithm.
[0045] Specifically, UWB is a wireless carrier communication technology that uses nanosecond non-sinusoidal narrow pulses to transmit data. The operating frequency band is 3.25GHZ~6.75GHZ, and the typical bandwidth is 500MHZ or 1GHZ, so it can obtain sub-nanometer precise time (1ns is approximately equal to 30cm).
[0046] Ranging process: The target second ranging device actively sends (UWB_TX) data and records the sending timestamp. The target first ranging device records the receiving timestamp after receiving the data. Then, after the delay interval is met, the target first ranging device sends the data and records the sending timestamp. The target second ranging device receives the data and records the receiving timestamp.
[0047] So we can get two time difference data, the time difference Tround of the second device and the time difference Treply of the first device, and finally get the flight time Tprop of the wireless signal as follows. The flight time algorithm of this flight time is as follows: Tprop = (Tround - Treply) / 2, Tprop can be converted into a distance value in centimeters (the time-to-distance conversion algorithm is a conventional conversion algorithm for UWB technology and is not expanded in this solution), and the distance value between the two ranging devices (i.e., the measurement interval distance) is obtained.
[0048] Based on the above solution, the ranging process is carried out through UWB ranging technology, which improves the ranging accuracy.
[0049] Optionally, based on the actual interval distance and the distance deviation value between the measured interval distance, a parameter range of the delay compensation parameter is calculated, including: based on the distance deviation value, by using a compensation parameter algorithm, a first parameter value of the delay compensation parameter corresponding to the measured interval distance is calculated, and based on the first parameter value, the delay compensation parameter is updated; returning to execute the ranging task based on the target second ranging device and the target first ranging device, to obtain the step of measuring the measured interval distance measured by the target first ranging device and the target second ranging device, until the distance deviation value is lower than the deviation threshold, the iterative operation is stopped; the delay compensation parameter obtained in the last iteration is used as the target delay compensation parameter, and the delay compensation parameters of each iteration are arranged in order of the delay compensation parameters from small to large to obtain a delay compensation parameter sequence; the delay compensation parameter sequence and the target delay compensation parameter are used as the parameter range of the delay compensation parameter.
[0050] In this embodiment, the terminal calculates the first parameter value of the delay compensation parameter corresponding to the measurement interval distance based on the distance deviation value through the compensation parameter algorithm, and updates the delay compensation parameter based on the first parameter value. Then, the terminal returns to execute the ranging task based on the target second ranging device and the target first ranging device, and obtains the measurement interval distance measured by the target first ranging device and the target second ranging device, until the distance deviation value is lower than the deviation threshold, and stops the iterative operation. Then, the terminal uses the delay compensation parameter obtained in the last iteration as the target delay compensation parameter, and arranges the delay compensation parameters of each iteration in the order of the delay compensation parameters from small to large to obtain a delay compensation parameter sequence. Finally, the terminal uses the delay compensation parameter sequence and the target delay compensation parameter as the parameter range of the delay compensation parameter.
[0051] For example, the resolution of the ANTENNA_DELAY parameter is 15.65ps (picoseconds). When measuring the distance for the first time, the ANTENNA_DELAY parameter of the second device is 0 by default. At this time, the physical distance between the two devices is 50cm, and the distance value obtained by the device is 70cm, that is, the deviation is 20cm larger. It is known that the speed of light is 1000ps (picoseconds), and the distance is about 30cm. Then the error time X (picoseconds) = 20cm* 1000ps / 30cm, X=666.7ps, converted into ANTENNA_DELAY parameter Y, then Y=666.7ps / 15.65ps, Y=42, and then this parameter is sent to the second device via BLE, and the second device writes it into the UWB chip; after the second device updates the parameter, it starts ranging again, and then repeats the above ranging operation. At this time, a ranging value that is closer to the actual distance than the first result will be obtained. At this time, the ANTENNA_DELAY parameter can be fine-tuned according to the actual value. Generally, after this fine-tuning, a suitable ANTENNA_DELAY parameter will be obtained, so that the entire ranging result is close to the actual distance between the two devices. When the deviation between the ranging result and the actual distance is less than 5cm, the entire calibration process is completed.
[0052] Based on the above scheme, by iterative ranging and iterative adjustment of the delay compensation parameters, the measurement interval distance of the iterative process converges to obtain the target delay compensation parameters, thereby eliminating the need for expensive dedicated calibration instruments and equipment. The entire process is automatically controlled by the program and does not require additional manpower for calculation, which not only reduces the ranging cost but also improves the efficiency of parameter adjustment.
[0053] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0054] Based on the same inventive concept, the embodiment of the present application also provides a delay compensation parameter calibration device for implementing the delay compensation parameter calibration method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the calibration device for one or more delay compensation parameters provided below can refer to the limitations of the delay compensation parameter calibration method above, and will not be repeated here.
[0055] Further references Figure 2 , as a response to the above Figure 1 In order to realize the method shown in the figure, the present application provides an embodiment of a calibration device 200 for delay compensation parameters, which is applied to a mine dispatching system. The device includes an acquisition module 210, a distance measurement module 220 and a calibration module 230, wherein: The acquisition module 210 is used to acquire the location information of the first ranging device and the location information of the second ranging device, and synchronize the agreed parameters between the first ranging device and the second ranging device to obtain the target first ranging device and the target second ranging device; The ranging module 220 is used to calculate the actual interval distance between the target first ranging device and the target second ranging device based on the position information of the target first ranging device and the position information of the target second ranging device, and identify the measured interval distance measured by the target first ranging device and the target second ranging device; The calibration module 230 is used to calculate a parameter range of a delay compensation parameter based on the actual interval distance and a distance deviation value between the measured interval distance, and to calibrate the delay compensation parameter based on the parameter range to obtain a target delay compensation parameter.
[0056] Optionally, the device further comprises: A data acquisition module, used to acquire device connection data; An establishing module is used to establish a connection channel between the first ranging device and the second ranging device based on the Bluetooth chip of the first ranging device and the Bluetooth chip of the second ranging device.
[0057] Optionally, the acquisition module 210 is specifically configured to: Identify the parameter type of each agreed parameter, and obtain the agreed parameter value of each parameter type of the second ranging device through the connection channel; The agreed parameter values of each parameter type are replaced by the agreed parameter values of each parameter type in the first ranging device to obtain a target first ranging device, and when the target first ranging device completes the replacement task, the second ranging device is marked as a target second ranging device.
[0058] Optionally, the distance measurement module 220 is specifically used for: Based on the position information of the target first ranging device and the position information of the target second ranging device, identifying the ranging direction of the target second ranging device; Based on the ranging direction of the target second ranging device, a ranging task for the target second ranging device and the target first ranging device is generated, and based on the target second ranging device and the target first ranging device, the ranging task is performed to obtain a measurement interval distance measured by the target first ranging device and the target second ranging device.
[0059] Optionally, the distance measurement module 220 is specifically used for: Based on the ranging direction, sending ranging data to the target first ranging device through the target second ranging device, and recording a first timestamp of a moment when the target second ranging device sends the ranging data and a second timestamp of a moment when the target first ranging device receives the ranging data; After the delay compensation time length corresponding to the delay compensation parameter is satisfied, based on the direction in which the target first ranging device receives the ranging data, the ranging data is sent to the target second ranging device through the target first ranging device, and a third timestamp of the moment when the target first ranging device sends the ranging data and a fourth timestamp of the moment when the target second ranging device receives the ranging data are recorded; Calculate a first time difference of the target second ranging device based on the first timestamp and the second timestamp, and calculate a second time difference of the target first device based on the third timestamp and the fourth timestamp; Based on the first time difference and the second time difference, a measurement interval distance measured by the target first ranging device and the target second ranging device is calculated by an interval distance algorithm.
[0060] Optionally, the calibration module 230 is specifically used to: Based on the distance deviation value, calculating a first parameter value of the delay compensation parameter corresponding to the measurement interval distance through a compensation parameter algorithm, and updating the delay compensation parameter based on the first parameter value; Returning to the step of executing the ranging task based on the target second ranging device and the target first ranging device to obtain the measurement interval distance measured by the target first ranging device and the target second ranging device, until the distance deviation value is lower than the deviation threshold, the iterative operation is stopped; The delay compensation parameter obtained in the last iteration is used as the target delay compensation parameter, and the delay compensation parameters of each iteration are arranged in order from small to large to obtain a delay compensation parameter sequence; The delay compensation parameter sequence and the target delay compensation parameter are used as the parameter range of the delay compensation parameter.
[0061] Each module in the above-mentioned delay compensation parameter calibration device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0062] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for calibrating a delay compensation parameter is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0063] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0064] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.
[0065] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0066] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods in the first aspect.
[0067] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0068] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0069] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0070] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for calibrating delay compensation parameters, applied to a UWB ranging system, characterized in that: The method comprises: Acquire location information of a first ranging device and location information of a second ranging device, and synchronize agreed parameters between the first ranging device and the second ranging device to obtain a target first ranging device and a target second ranging device; Based on the position information of the target first ranging device and the position information of the target second ranging device, calculate the actual interval distance between the target first ranging device and the target second ranging device, and identify the measured interval distance measured by the target first ranging device and the target second ranging device; Based on the actual interval distance and the distance deviation value between the measured interval distance, a parameter range of the delay compensation parameter is calculated, and based on the parameter range, the delay compensation parameter is calibrated to obtain a target delay compensation parameter.
2. The method according to claim 1, characterized in that Before synchronizing the agreed parameters of the first ranging device and the second ranging device to obtain the target first ranging device and the target second ranging device, the method further includes: Get device connection data; Based on the Bluetooth chip of the first ranging device and the Bluetooth chip of the second ranging device, a connection channel between the first ranging device and the second ranging device is established.
3. The method according to claim 2, characterized in that The step of synchronizing the agreed parameters of the first ranging device and the second ranging device to obtain a target first ranging device and a target second ranging device includes: Identify the parameter type of each agreed parameter, and obtain the agreed parameter value of each parameter type of the second ranging device through the connection channel; The agreed parameter values of each parameter type are replaced by the agreed parameter values of each parameter type in the first ranging device to obtain a target first ranging device, and when the target first ranging device completes the replacement task, the second ranging device is marked as a target second ranging device.
4. The method according to claim 2, characterized in that: The identifying the measurement interval distance measured by the target first ranging device and the target second ranging device includes: Based on the position information of the target first ranging device and the position information of the target second ranging device, identifying the ranging direction of the target second ranging device; Based on the ranging direction of the target second ranging device, a ranging task for the target second ranging device and the target first ranging device is generated, and based on the target second ranging device and the target first ranging device, the ranging task is performed to obtain a measurement interval distance measured by the target first ranging device and the target second ranging device.
5. The method according to claim 4, characterized in that The performing the ranging task based on the target second ranging device and the target first ranging device to obtain the measurement interval distance measured by the target first ranging device and the target second ranging device includes: Based on the ranging direction, sending ranging data to the target first ranging device through the target second ranging device, and recording a first timestamp of a moment when the target second ranging device sends the ranging data and a second timestamp of a moment when the target first ranging device receives the ranging data; After the delay compensation time length corresponding to the delay compensation parameter is satisfied, based on the direction in which the target first ranging device receives the ranging data, the ranging data is sent to the target second ranging device through the target first ranging device, and a third timestamp of the moment when the target first ranging device sends the ranging data and a fourth timestamp of the moment when the target second ranging device receives the ranging data are recorded; Calculate a first time difference of the target second ranging device based on the first timestamp and the second timestamp, and calculate a second time difference of the target first device based on the third timestamp and the fourth timestamp; Based on the first time difference and the second time difference, a measurement interval distance measured by the target first ranging device and the target second ranging device is calculated by an interval distance algorithm.
6. The method according to claim 5, characterized in that The calculating of the parameter range of the delay compensation parameter based on the distance deviation value between the actual interval distance and the measured interval distance includes: Based on the distance deviation value, calculating a first parameter value of the delay compensation parameter corresponding to the measurement interval distance through a compensation parameter algorithm, and updating the delay compensation parameter based on the first parameter value; Returning to the step of executing the ranging task based on the target second ranging device and the target first ranging device to obtain the measurement interval distance measured by the target first ranging device and the target second ranging device, until the distance deviation value is lower than the deviation threshold, the iterative operation is stopped; The delay compensation parameter obtained in the last iteration is used as the target delay compensation parameter, and the delay compensation parameters of each iteration are arranged in order from small to large to obtain a delay compensation parameter sequence; The delay compensation parameter sequence and the target delay compensation parameter are used as the parameter range of the delay compensation parameter.
7. A delay compensation parameter calibration device, applied to a UWB ranging system, characterized in that: The device comprises: An acquisition module, used to acquire the location information of the first ranging device and the location information of the second ranging device, and synchronize the agreed parameters between the first ranging device and the second ranging device to obtain the target first ranging device and the target second ranging device; a distance measuring module, configured to calculate an actual interval distance between the first distance measuring device and the second distance measuring device based on the position information of the first distance measuring device and the position information of the second distance measuring device, and identify a measured interval distance measured by the first distance measuring device and the second distance measuring device; The calibration module is used to calculate the parameter range of the delay compensation parameter based on the actual interval distance and the distance deviation value between the measured interval distance, and calibrate the delay compensation parameter based on the parameter range to obtain the target delay compensation parameter.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Antenna delay calibration method based on UWB high-precision ranging positioning system
CN108761388A
Measurement distance correction method and device, medium and electronic equipment
CN112946569A
Antenna delay calibration method and system for improving ultra-wideband ranging precision
CN113759180A
Antenna delay calibration method and device, system, equipment and storage medium
CN114513265A
Card reader, card end equipment, card swiping method and control unit
CN115130485A
