UWB-based distance measuring device and method
Through the four-point cross ranging method and filtering algorithm based on UWB, the problem of difficulty in accurate ranging through walls in the existing technology is solved, and the function of indoor accurate ranging and obstacle penetration without calibration base station is realized.
Patent Information
- Application Number
- CN202410825514.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-17
AI Technical Summary
Existing ranging methods are difficult to perform accurate ranging through obstacles such as walls, especially in indoor environments. The finished device of UWB technology cannot achieve non-line-of-sight ranging without prior calibration of the base station location.
A UWB-based ranging device is designed, which uses a four-point cross ranging method to receive and send communication data through the UWB modules on the horizontal and vertical rulers. It combines Kalman filtering and artificial intelligence algorithms to calculate the distance to be measured. And penetrate the reinforced concrete wall within a certain range for distance measurement.
It realizes non-line-of-sight ranging without pre-calibrating the base station position, can accurately measure vertical distance indoors, penetrates multi-layer walls, and ensures a certain ranging accuracy, and is suitable for non-line-of-sight or long-distance situations.
Smart Images

Figure CN118655550A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distance measurement, and in particular to a distance measurement device and method based on UWB. Background Art
[0002] Common distance measurement methods include mechanical (such as tape measures, vernier calipers, etc.), photoelectric (such as infrared distance measurement, laser distance measurement, monocular or binocular optical image distance measurement, etc.), acoustic wave (mainly ultrasonic distance measurement) and radio (such as GPS, Bluetooth, WiFi, RFID, UWB, etc.). Among them, mechanical, photoelectric and acoustic wave methods have higher accuracy and are more commonly used. However, their current technologies either directly measure physical objects or rely on reflected signals for measurement. Both cannot effectively measure distance through obstacles such as walls.
[0003] Among existing ranging methods, some radio ranging methods have a certain ability to penetrate obstacles, but not all are suitable for indoor use. For example, satellite signals such as GPS and Beidou are mainly used for outdoor ranging and positioning and cannot effectively penetrate indoors. Ranging / positioning methods such as WiFi, LoRa, or Bluetooth are too inaccurate, with most errors reaching around 3 to 5 meters (some indoor rooms are less than 5 meters wide), which cannot meet ranging requirements. RFID uses passive tags for a shorter operating distance, while using active tags for a wider coverage area. Although the individual cost is lower, large-scale atmospheric positioning still requires the deployment of more base stations (readers), which reduces its cost advantage. Its mainstream positioning models (such as LANDMARC and its extensions) are non-ranging models and are not suitable for distance measurement. Mobile phone signal positioning has very poor accuracy, sometimes even locating another building or street, making it completely unsuitable for high-precision ranging.
[0004] Ultra-wideband (UWB) technology offers advantages such as short latency, high accuracy, and strong penetration. However, the available devices are limited to a few detectors that can detect steel bars or wires within walls, with a detection depth of only a dozen centimeters. UWB-based devices include standalone modules or positioning kits, but these require the installation of multiple base stations and manual calibration before tags can be measured or located, making them unsuitable for on-the-go, measurement-as-you-go scenarios. Therefore, a non-line-of-sight (NLOS) ranging device based on UWB technology is urgently needed that can be used and measured on-the-go without requiring prior calibration of base station locations. Summary of the Invention
[0005] The purpose of the present invention is to provide a UWB-based ranging device and method, which can improve the efficiency of through-wall ranging.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] A UWB-based distance measuring device, comprising: a UWB module, a controller, a horizontal ruler, and a vertical ruler;
[0008] The level ruler is used to be placed horizontally on the starting point of the distance to be measured; the vertical ruler is used to be placed vertically on the end point of the distance to be measured;
[0009] The UWB modules are respectively arranged on the horizontal ruler and the vertical ruler; the UWB modules are used to receive and send communication data;
[0010] The controller is connected to the UWB module; the controller is used to obtain communication data from the UWB module, and calculate the distances between the two ends of the horizontal ruler and the two ends of the vertical ruler based on the communication data to obtain the distances between the four endpoints, and calculate the vertical distance between the horizontal ruler and the vertical ruler based on the distances between the four endpoints, the length of the horizontal ruler, and the length of the vertical ruler to obtain the distance to be measured.
[0011] Optionally, the UWB module includes a first transceiver device, a second transceiver device, a third transceiver device and a fourth transceiver device;
[0012] The first transceiver is arranged at one end of the horizontal ruler; the second transceiver is arranged at the other end of the horizontal ruler; the third transceiver is arranged at one end of the vertical ruler; and the fourth transceiver is arranged at the other end of the vertical ruler.
[0013] Optionally, the distance measuring device further includes a display screen; the display screen is connected to the controller; and the display screen is used to display the distance to be measured.
[0014] A UWB-based ranging method, applied to the above-mentioned UWB-based ranging device, the ranging method comprising:
[0015] Get the communication data of the UWB module;
[0016] Calculating the distances between the two ends of the horizontal ruler and the two ends of the vertical ruler according to the communication data to obtain endpoint distances;
[0017] The vertical distance between the horizontal ruler and the vertical ruler is calculated according to the endpoint distance, the length of the horizontal ruler, and the length of the vertical ruler to obtain the distance to be measured.
[0018] Optionally, the ranging method further includes:
[0019] The communication data is filtered.
[0020] Optionally, combined filtering is applied to filter the communication data; the combined filtering includes a Kalman filtering algorithm and a lower edge data extraction algorithm.
[0021] Optionally, the ranging method further includes:
[0022] Determining the distance environment to be measured according to the communication data; the distance environment to be measured includes a line-of-sight environment and a non-line-of-sight environment;
[0023] The distance to be measured is corrected according to the distance environment to be measured.
[0024] Optionally, determining the distance environment to be measured according to the communication data specifically includes:
[0025] calculating kurtosis based on the communication data;
[0026] Applying a probability density function to calculate a probability value of the kurtosis;
[0027] The distance environment to be measured is determined according to the probability value of the kurtosis.
[0028] Optionally, correcting the distance to be measured according to the distance environment to be measured specifically includes:
[0029] When the distance to be measured is a line-of-sight environment, a polynomial fitting function is applied to the distance to be measured to obtain a corrected distance to be measured; the polynomial fitting function is obtained by performing polynomial fitting on historical measured values and historical true values;
[0030] When the distance environment to be measured is a non-line-of-sight environment, an artificial intelligence algorithm is applied to perform correction to obtain a corrected distance to be measured.
[0031] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0032] 1. This invention designs a four-point cross distance measurement method, which does not require any UWB base station or tag to be calibrated in advance. Distance measurement can be achieved by simply placing two rulers on both sides of the object to be measured and perpendicular to each other (one horizontal and one vertical).
[0033] 2. It can be used to measure the vertical distance between two parallel measuring surfaces. The two rulers do not need to be kept at the same height or deliberately aligned, making it convenient for use in non-line-of-sight or long-distance line-of-sight situations.
[0034] 3. It can penetrate several reinforced concrete walls (depending on the specific UWB module performance) within a certain range for ranging.
[0035] 4. Using self-developed ranging and calibration algorithms, a certain ranging accuracy can be guaranteed within the measurement range. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 This is a schematic diagram of the derivation of the four-point cross distance measurement theory;
[0038] Figure 2 This is a schematic diagram of a relatively flat lower edge of the signal wave;
[0039] Figure 3 Schematic diagram of comparison between filtered signal and original signal;
[0040] Figure 4 Schematic diagram of the comparison between the signal after filtering and correcting the system error and the original signal;
[0041] Figure 5 This is a schematic diagram of the circuit connections at the left and right ends of the level;
[0042] Figure 6 This is a schematic diagram of the three-dimensional rendering of the bracket, connecting rod, etc. DETAILED DESCRIPTION
[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0044] The purpose of the present invention is to provide a UWB-based ranging device and method, which can improve the efficiency of through-wall ranging.
[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0046] Example 1
[0047] like Figure 5 As shown, a UWB-based distance measuring device in this embodiment includes: a UWB module, a controller, a horizontal ruler and a vertical ruler.
[0048] The level ruler is used to be placed horizontally on the starting point of the distance to be measured; the vertical ruler is used to be placed vertically on the end point of the distance to be measured.
[0049] The UWB modules are respectively arranged on the horizontal ruler and the vertical ruler; the UWB modules are used for receiving and sending communication data.
[0050] The controller is connected to the UWB module; the controller is used to obtain communication data from the UWB module, and calculate the distances between the two ends of the horizontal ruler and the two ends of the vertical ruler based on the communication data to obtain the distances between the four endpoints, and calculate the vertical distance between the horizontal ruler and the vertical ruler based on the distances between the four endpoints, the length of the horizontal ruler, and the length of the vertical ruler to obtain the distance to be measured.
[0051] Specifically, the UWB module includes a first transceiver device, a second transceiver device, a third transceiver device and a fourth transceiver device.
[0052] The first transceiver is arranged at one end of the horizontal ruler; the second transceiver is arranged at the other end of the horizontal ruler; the third transceiver is arranged at one end of the vertical ruler; and the fourth transceiver is arranged at the other end of the vertical ruler.
[0053] As a specific implementation, the distance measuring device further includes a display screen; the display screen is connected to the controller; and the display screen is used to display the distance to be measured.
[0054] In practical applications, the UWB-based ranging device includes: main control, UWB ranging module, display screen, lithium battery, voltage regulator module, etc. The connection method is as follows Figure 5 shown.
[0055] The main controller (i.e., controller) in the present invention is an Arduino Nano 33. If the computing power needs to be improved later, a faster main controller may be replaced, but the power consumption must be kept low. The main controller can be one or more, as long as the algorithm can be completed within the required time. Most UWB ranging modules on the market are DWM1000 and its extensions. To save development time, the present invention selects an extension module that can directly output ranging values. The display part uses a low-power display (such as OLED) and is connected to the main controller via a serial interface (such as I2C interface). The power supply is powered by a lithium battery (18650 or 21700). A single battery can be used for a long time, and multiple batteries can be connected in parallel to increase the battery pack capacity. The battery pack is equipped with a charging board and a voltage stabilizing module is required for the main controller, UWB module, and display according to their respective operating voltages.
[0056] The vertical ruler only needs to power the UWB module, so the circuit is relatively simple. However, the level ruler needs to calculate and display the results, so the circuit is relatively complex. The specific circuit logic connection is as follows: Figure 5 shown.
[0057] In addition, the present invention is provided with a handle and a bracket for easy carrying and deployment, which meets the requirements of convenience and speed when used on site, such as Figure 6 shown.
[0058] The present invention has the following effects:
[0059] 1. This invention uses a self-developed four-point cross distance measurement method. It does not require any UWB base station or tag to be calibrated in advance. It can be measured by simply placing two rulers on both sides of the object and perpendicular to each other (one horizontal and one vertical).
[0060] 2. It can be used to measure the vertical distance between two parallel measuring surfaces. The two rulers do not need to be kept at the same height or deliberately aligned, making it convenient for use in non-line-of-sight or long-distance line-of-sight situations.
[0061] 3. It can penetrate several reinforced concrete walls (depending on the specific UWB module performance) within a certain range for ranging.
[0062] 4. Using self-developed ranging and calibration algorithms, a certain ranging accuracy can be guaranteed within the measurement range.
[0063] 5. The designed device comes with its own battery and display device, and does not need to be connected to a mobile phone for data reading.
[0064] 6. It is equipped with a handle and bracket for easy carrying and deployment, meeting the requirements of convenience and speed for on-site use.
[0065] Example 2
[0066] The present invention provides a UWB-based ranging method, which is applied to the UWB-based ranging device described in Example 1. The ranging method includes:
[0067] Step S1: Acquire the communication data of the UWB module.
[0068] Step S2: Calculate the distances between the two ends of the horizontal ruler and the two ends of the vertical ruler based on the communication data to obtain the distances between the four endpoints.
[0069] Step S3: Calculate the vertical distance between the horizontal ruler and the vertical ruler according to the endpoint distance, the length of the horizontal ruler, and the length of the vertical ruler to obtain the distance to be measured.
[0070] As a specific implementation, the ranging method further includes:
[0071] The communication data is filtered.
[0072] Furthermore, combined filtering is applied to filter the communication data; the combined filtering includes a Kalman filtering algorithm and a lower edge data extraction algorithm.
[0073] As a specific implementation, the ranging method further includes:
[0074] The distance environment to be measured is determined according to the communication data; the distance environment to be measured includes a line-of-sight environment and a non-line-of-sight environment.
[0075] The distance to be measured is corrected according to the distance environment to be measured.
[0076] Further, determining the distance environment to be measured according to the communication data specifically includes:
[0077] Kurtosis is calculated based on the communication data.
[0078] Applying the probability density function, the probability value of the kurtosis is calculated.
[0079] The distance environment to be measured is determined according to the probability value of the kurtosis.
[0080] Furthermore, the distance to be measured is corrected according to the distance environment to be measured, specifically including:
[0081] When the distance to be measured is a line-of-sight environment, the distance to be measured is used as input and a polynomial fitting function is applied to obtain a corrected distance to be measured; the polynomial fitting function is obtained by performing polynomial fitting on historical measured values and historical true values.
[0082] When the distance environment to be measured is a non-line-of-sight environment, an artificial intelligence algorithm is applied to perform correction to obtain a corrected distance to be measured.
[0083] In practical applications, the specific implementation process of the UWB-based ranging method is as follows:
[0084] 1. Place one ruler horizontally and the other vertically, one at each end of the object to be measured. The object may block the two rulers.
[0085] 2. A wireless signal is acquired through wireless signal transceivers (such as UWB modules) deployed at each endpoint on different scales, and a controller (such as a single-chip microcomputer) on one of the scales analyzes the current line-of-sight (LOS) or non-line-of-sight (NLOS) environment based on relevant algorithms.
[0086] 3. Since the original output signal of the UWB module fluctuates greatly, the original signal filtering algorithm is used to reduce noise and stabilize the output value.
[0087] 4. The controller then corrects the measured distance based on the current environment and preset correction algorithms corresponding to different situations.
[0088] 5. Since the distance between the two endpoints on the same ruler is known, plus the distance between the endpoints of different rulers obtained in the previous step (correction value), the controller can calculate the distance h to be measured based on the four-point cross distance measurement theory.
[0089] Specifically, 1. The derivation process of the four-point cross distance measurement theory is as follows:
[0090] like Figure 1 As shown, the lengths of the T1T3 segment and the A0A1 segment are fixed values l1 and l2 respectively, and the distance from T1 to points A1 and A0 is r 11 、r 10 It can be read from UWB node T1. Similarly, the distance r from T3 to points A1 and A0 is 31 、r 30 Can also be read from T3.
[0091] Because line segment A0A1 lies on plane P (e.g., a wall) and is perpendicular to the horizontal plane (e.g., the ground), and line segment T1T3 lies on plane Q (e.g., another wall parallel to P) and is parallel to the horizontal plane (e.g., the ground), T1 is not collinear with points A1 and A0, and neither is T3. This means that △T1A1A0 and △T3A1A0 must exist.
[0092] Since the three sides of △T1A1A0 are known, according to the cosine theorem, we can get:
[0093]
[0094] Similarly, we can get ∠T3A1A0
[0095] like Then the foot of the perpendicular H coincides with A1, and the height from T1 to A1A0 is:
[0096] h1=T1A1=r 11 (2)
[0097] Similarly, we can get:
[0098] h2=T3A1=r 31 (3)
[0099] like Then T1T3 is outside (below) A1, the foot of the perpendicular H is on the extended line of the outside of A1, and the height from T1 to A1A0 is:
[0100] h1=sin(π-∠T1A1A0)·r 11 (4)
[0101] Similarly, we can get:
[0102] h2=sin(π-∠T3A1A0)·r 31(5)
[0103] like Then T1T3 is on the inside of A1 (above, possibly inside A0, or outside A0), and the foot of the perpendicular H is on A1A0, or coincides with A0, or on the outer extension line of A0. In either case, the height from T1 to A1A0 can be calculated using the following formula:
[0104] h1=sin(∠T1A1A0)·r 11 (6)
[0105] Similarly, we can get:
[0106] h2=sin(∠T3A1A0)·r 31 (7)
[0107] Since ∠T1A1A0 and ∠T3A1A0 are between 0 and π, the values of sin(π-∠T1A1A0) and sin(∠T1A1A0) are the same, and the values of sin(π-∠T3A1A0) and sin(∠T3A1A0) are the same. That is, the above formulas (4) and (6), as well as (5) and (7) can be combined. Given the three sides of △HT1T3, according to the cosine theorem, we can obtain:
[0108]
[0109] like The final distance between the two line segments A0A1 and T1T3 is:
[0110] h=sin(∠HT1T3)·h1 (9)
[0111] like but:
[0112] h=sin(π-∠HT1T3)·h1 (10)
[0113] Similarly, formulas (9) and (10) can also be combined.
[0114] When the lengths of all the side lines are known, the distance h that needs to be measured can be obtained by adding the condition that the two line segments are perpendicular to each other.
[0115] 2. Line-of-sight (LOS) and non-line-of-sight (NLOS) environment judgment:
[0116] In actual usage scenarios, measurements may be taken across a wall, within a relatively large space (such as a gymnasium), or even in a space with a low concrete wall in the lower half and a plywood (or cardboard) partition in the upper half. In this case, the upper and lower parts of the vertical ruler and the horizontal ruler may be in different environments. Because field measurements have found that the same actual distance in different environments has different errors in the values measured using UWB, the device needs to be able to automatically distinguish whether the distance value it obtains is measured in a line-of-sight or non-line-of-sight environment. If it is a line-of-sight environment, the error correction function for the line-of-sight environment is used; otherwise, the error correction method for the non-line-of-sight environment is used.
[0117] In the LOS environment, due to the strong channel impulse response, the signal fluctuation is large, while in the NLOS environment, the signal fluctuation will be reduced. The slope of the line connecting the two signal quantities before and after is calculated, and the mean of the absolute value of the slope is counted after a certain number of samples. However, it is found that if the number of samples is small, it will continue to jump, and if the number of samples is large, it will not jump very much, but the refresh rate will be very slow; and although the general rule is that the value is larger in the LOS environment and smaller in the NLOS environment, this is a relative value. The dividing line is not consistent in different environments or in the same environment at different distances. Therefore, this statistic cannot be directly used as a judgment condition. The present invention distinguishes by calculating the kurtosis of the data signal, that is, because the LOS channel impulse pulse directly reaches a single path, the data changes relatively violently, which is manifested as a large signal fluctuation; and the NLOS channel has more multipath components, so the data fluctuation is smaller than the LOS case. According to the kurtosis calculation formula:
[0118]
[0119] where r i is the current sampling value (the result after the UWB module has processed the multipath component), μ is the mean value. The latest i sampling data are averaged μ, and the last value r is used i After calculating the kurtosis, we found that the changes in the slope statistic are still similar to those in the previous figure, but the amplitude is not as large. Because there is no clear dividing line, it is still impossible to directly determine whether it is an NLOS environment. The kurtosis itself will vary within a certain range, and the change in the kurtosis itself can be fitted with a probability density function:
[0120]
[0121] Among them Ku jis the most recent kurtosis value calculated by equation (11), μ is the mean of the latest j Ku values, and σ is the standard deviation of these Ku values. PDF is the probability value of the kurtosis, but two points are determined experimentally: one is that the σ in the denominator is outside the square root; the other is the range and cutoff point of the PDF value, with a PDF value of 0.22 as the critical point. If it is greater than this value, it is an NLOS environment; otherwise, it is considered more likely to be a LOS environment.
[0122] In addition, in order to adapt to the situation where the measurement points can be changed at any time, the number of samples used to obtain the average value is about 10 to 20. Otherwise, the Arduino Nano 33 will have too much computing power, which will cause a large delay.
[0123] 3. Original signal filtering algorithm (combined filtering algorithm):
[0124] from Figure 3 It can be seen that the original output signal of the UWB module fluctuates greatly. Although the fluctuation is slightly reduced in the NLOS environment, the overall value is still higher. Therefore, it is necessary to use a filtering algorithm to reduce noise and stabilize the output value. By analyzing a large number of signal waveforms, it can be seen that the lower edge of the signal waveform is relatively straight (such as Figure 2 The blue line in the middle is shown, and it is closest to the true value (although still a bit high), so it is filtered by the filtering algorithm first and then the lower edge data of the signal wave is obtained. Figures 2 to 4 In the figure, the horizontal axis is the UWB data sample number, which increases with time; the vertical axis is the original distance value measured by UWB, in mm.
[0125] Algorithm 1: One-dimensional Kalman filter algorithm (KF algorithm).
[0126] 1. From the original covariance P old Calculate the new covariance P new =P old +Q, where Q is the system process noise covariance.
[0127] 2. By the new covariance P new and the measurement noise covariance R to calculate the Kalman gain
[0128] 3. Kalman gain K g 、The last output result Kf i-1 And the current measured value X i , calculate the new output result Kf i =Kf i-1 +K g ·(X i -Kf i-1 ).
[0129] 4. By the new covariance P new Update P old =(1-K g )·P new Used for the next calculation.
[0130] Here, P can be initialized to any value other than 0. After multiple tests, the initial values of Q and R have been found to be faster when Q is higher, meaning the filtered signal follows the original signal better. However, higher R values can slow convergence, so Q and R need to be adjusted to suit the signal filtering of the current system. After multiple field measurements, the initial values of P = 0.02, Q = 0.0007, and R = 0.543 have been determined to ensure a relatively stable signal while converging and outputting the result within an acceptable timeframe. These values can also be adjusted based on actual conditions.
[0131] Although this filtering algorithm can output data relatively smoothly, the Kalman filter is regressive, so the output result is between the upper and lower extremes. What needs to be extracted is the value at the bottom edge of the signal waveform, so an extended algorithm is added:
[0132] Algorithm 2: Algorithm for extracting lower edge data using one-dimensional Kalman filtering (LSF algorithm).
[0133] 1. Compare the current sample value x i with the stored minimum value x min , if x min >x i And x i >0, skip to step 3, otherwise skip to step 2.
[0134] 2. Compare the current sampling value x i with the stored minimum value x min , if x min <x i And x i <Kf i , where Kf i If it is the value obtained by Kalman filtering, jump to step 3, otherwise end.
[0135] 3. Update the minimum value: x min =x i .
[0136] The combined filter composed of Algorithm 1 and Algorithm 2 is suitable for filtering the original output signal of the UWB module. At the same time, it was found that the lower edge envelope value of the original signal obtained by only one round of filtering still has certain fluctuations, so we tried to apply the combined filter again to the first round result. Finally, through multiple experiments, we found that after three rounds of filtering, a relatively stable output can be obtained, and a certain real-time performance can still be maintained. If the number of filtering rounds is increased, the filtering performance can no longer be significantly improved, but the real-time performance will be reduced. Figure 3 As shown by the middle blue line, there will be basically no large fluctuations after convergence.
[0137] 4.LOS environmental error correction:
[0138] Through the output value after filtering, it can be found that there is a certain systematic error between the measured value and the true value, even in the case of good line-of-sight in the electromagnetic environment, so the error needs to be corrected in some way. The present invention collects a set of true values and measured values, finds the relationship between them and establishes a certain functional relationship. After that, this function can be inserted into the new value after the measurement, and the true value is calculated to correct the error. The LOS environment measurement value and the true value are collected to obtain a corresponding table of LOS environment measurement value and true value. After entering the data into Excel, a chart is created and fitted using a quadratic polynomial to obtain the following corresponding functional relationship:
[0139] y=-8×10 -7 ·x 2 +0.9956·x-342.32 (13)
[0140] When using, just substitute the measured value into x in formula (13), and the calculated y will be a measured value very close to the actual distance, such as Figure 4 As shown by the orange line in the figure.
[0141] 5. Error correction through NLOS environment correction algorithm:
[0142] For NLOS environments, artificial intelligence algorithms (such as recurrent neural networks) are trained by collecting a large amount of measured UWB signal data from different obstructions. When used, they can automatically determine and correct the distance between endpoints based on the signal value output by the UWB module, and then calculate the distance to be measured using the aforementioned four-point cross ranging algorithm.
[0143] As a specific implementation method, when training the artificial intelligence algorithm, different LOS environment signals and NLOS environment different obstruction signals are collected, and their corresponding actual distances are marked as labels; 2. The signal samples and their labels are sent to the self-developed neural network for parameter training; 3. The trained neural network is written into this device for automatic correction.
[0144] The technical features of the above embodiments can 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.
[0145] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only intended to help understand the method and core concept of the present invention. At the same time, those skilled in the art will find that the specific implementation methods and application scopes may vary based on the concept of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims
1. A UWB-based ranging device, characterized in that: The distance measuring device comprises: a UWB module, a controller, a horizontal ruler and a vertical ruler; The horizontal ruler is used to be placed horizontally on the starting point of the distance to be measured; the vertical ruler is used to be placed vertically on the end point of the distance to be measured; The UWB modules are respectively arranged on the horizontal ruler and the vertical ruler; the UWB modules are used to receive and send communication data; The controller is connected to the UWB module; the controller is used to obtain communication data of the UWB module, and calculate the distances between the two ends of the horizontal ruler and the two ends of the vertical ruler according to the communication data to obtain the distances between the four end points, and calculate the vertical distance between the horizontal ruler and the vertical ruler according to the distances between the four end points, the length of the horizontal ruler and the length of the vertical ruler to obtain the distance to be measured.
2. The UWB-based ranging device according to claim 1, characterized in that: The UWB module includes a first transceiver device, a second transceiver device, a third transceiver device and a fourth transceiver device; The first transceiver is arranged at one end of the horizontal ruler; the second transceiver is arranged at the other end of the horizontal ruler; the third transceiver is arranged at one end of the vertical ruler; and the fourth transceiver is arranged at the other end of the vertical ruler.
3. The UWB-based ranging device according to claim 1, characterized in that: The distance measuring device also includes a display screen; the display screen is connected to the controller; the display screen is used to display the distance to be measured.
4. A UWB-based ranging method, applied to the UWB-based ranging device according to any one of claims 1 to 3, characterized in that: The ranging method comprises: Get the communication data of UWB module; According to the communication data, the distances between the two ends of the horizontal ruler and the two ends of the vertical ruler are calculated to obtain the endpoint distances; The vertical distance between the horizontal ruler and the vertical ruler is calculated according to the endpoint distance, the length of the horizontal ruler and the length of the vertical ruler to obtain the distance to be measured.
5. The UWB-based ranging method according to claim 4, characterized in that: The ranging method further includes: The communication data is filtered.
6. The UWB-based ranging method according to claim 5, characterized in that: The communication data is filtered by applying a combined filter; the combined filter comprises a Kalman filter algorithm and a lower edge data extraction algorithm.
7. The UWB-based ranging method according to claim 4, characterized in that: The ranging method further includes: Determine the distance environment to be measured according to the communication data; the distance environment to be measured includes a line-of-sight environment and a non-line-of-sight environment; The distance to be measured is corrected according to the distance environment to be measured.
8. The UWB-based ranging method according to claim 7, characterized in that: Determining the distance environment to be measured according to the communication data specifically includes: Calculating kurtosis according to the communication data; Applying a probability density function to calculate a probability value of the kurtosis; The distance environment to be measured is determined according to the probability value of the kurtosis.
9. The UWB-based ranging method according to claim 7, characterized in that: Correcting the distance to be measured according to the distance environment to be measured specifically includes: When the distance to be measured is a line-of-sight environment, the distance to be measured is used as input, and a polynomial fitting function is applied to obtain a corrected distance to be measured; the polynomial fitting function is obtained by performing polynomial fitting on historical measured values and historical true values; When the distance to be measured is a non-line-of-sight environment, an artificial intelligence algorithm is applied to perform correction to obtain a corrected distance to be measured.
