UWB-assisted BLE positioning calibration method, device, equipment and storage medium
Through the UWB-assisted BLE positioning method, the UWB ranging module and the ranging value of the anchor point are used for automatic calibration, which solves the problems of low BLE positioning accuracy and complicated calibration process, and achieves efficient and intuitive positioning results.
Patent Information
- Application Number
- CN202410815299.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-24
AI Technical Summary
The BLE positioning process is cumbersome and greatly affected by environmental and hardware factors, resulting in low positioning accuracy and complicated calibration process.
The UWB-assisted BLE positioning method is used to obtain the ranging values of the UWB ranging module and the anchor point, calculate the coordinates and determine the distance and signal strength calibration values, and combine the preset area division model to automatically perform Bluetooth signal strength calibration and positioning area division. , improve positioning accuracy and efficiency.
It achieves accurate calibration of BLE positioning, saves manpower, improves positioning efficiency and intuitiveness, and reduces the tediousness of the BLE positioning process.
Smart Images

Figure CN118382138B
Abstract
Description
Technical Field
[0001] The present application relates to the field of positioning technology, and specifically to a method, device, equipment and storage medium for UWB-assisted BLE positioning calibration. Background Art
[0002] Ultra-wideband wireless communication technology (UWB) is a carrier-free communication technology. It measures distance by calculating the flight time of pulses with extremely short time intervals (less than 1ns), and the positioning accuracy can reach the centimeter level. Nowadays, Bluetooth (BLE) function is a standard feature of smartphones. BLE positioning, which uses the correlation between BLE RSSI signal attenuation and distance to calculate the location of BLE terminals, has also been widely used. Compared with UWB positioning, BLE positioning accuracy is relatively low, generally 2 to 5 meters, but it is easy to deploy and has the advantages of low price. In the current positioning market, it is still the most cost-effective positioning method.
[0003] In the actual application of BLE positioning, RSSI will be affected by environmental and hardware factors, such as the presence of obstructions in the BLE node deployment location, BLE antenna design and RF tuning parameters of different BLE device manufacturers, etc. These factors will cause RSSI to fluctuate greatly, and show different trends and ranges for different scenarios and different devices.
[0004] During actual BLE distance calibration, it is necessary to measure the actual distance of each calibration point. During fixed position calibration, if the interval is large, the calibration will be inaccurate, and if the interval is small, the workload will be too large. During mobile position calibration, it is necessary to measure the distance of each position and number and sort the moving points to make the BLE RSSI value correspond to the actual distance one by one. The calibration process is very cumbersome. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a method, device, equipment and storage medium for UWB-assisted BLE positioning calibration, which can solve the problem of cumbersome Bluetooth positioning process in the prior art.
[0006] In order to achieve the above purpose, this application adopts the following technical solutions:
[0007] The UWB-assisted BLE positioning calibration method of the present application includes the following steps:
[0008] Obtaining UWB ranging values between the ranging module and all UWB anchor points, wherein the number of the UWB anchor points is at least two, the positions of the UWB anchor points and the Bluetooth anchor points are relatively fixed, and the ranging module includes a Bluetooth unit;
[0009] Calculating the coordinates of the ranging module based on a plurality of UWB ranging values;
[0010] Determine the distance between the ranging module and the Bluetooth anchor point based on the coordinates of the ranging module; and determine a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point;
[0011] Determine a UWB positioning area of the ranging module based on the coordinates of the ranging module; and determine a second calibration value of the Bluetooth signal strength of the UWB positioning area of the ranging module;
[0012] Determine the Bluetooth ranging value corresponding to the first calibration value, and determine the Bluetooth positioning range corresponding to the second calibration value; and compare the Bluetooth ranging value with the UWB ranging value, and compare the UWB positioning area with the Bluetooth positioning range to calibrate the Bluetooth positioning.
[0013] In an embodiment of the present application, determining a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point includes:
[0014] Keeping the distance between the ranging module and the Bluetooth anchor point fixed, and obtaining a first Bluetooth signal strength value between the ranging module and the Bluetooth anchor point multiple times;
[0015] Calculate the mean of multiple first Bluetooth signal strength values to obtain a first mean value; and calculate the deviation value between the multiple first Bluetooth signal strength values and the first mean value, and filter out the first Bluetooth signal strength values whose deviation value exceeds a first preset threshold value to obtain a first Bluetooth signal strength value set;
[0016] A first target interval is set so that the first Bluetooth signal strength value in the first Bluetooth signal strength value set that exceeds the first preset ratio threshold falls within the first target interval, and the first target interval is used as a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point.
[0017] In one embodiment of the present application, determining the UWB positioning area of the ranging module based on the coordinates of the ranging module includes:
[0018] Maintaining the coordinates of the ranging module and obtaining a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point;
[0019] The UWB positioning area of the ranging module is determined based on a pre-built area division model and a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point, wherein the area division model includes multiple areas surrounding the Bluetooth anchor point, and the UWB positioning area is one of the multiple areas surrounding the Bluetooth anchor point.
[0020] In one embodiment of the present application, the number of the Bluetooth anchor points is 4, and the 4 Bluetooth anchor points are respectively located at the center points of the four sides of the rectangle, and the area division model includes an inner area surrounding the rectangle, a buffer area surrounding the inner area, and an outer area surrounding the buffer area;
[0021] The inner area includes four first sub-areas located outside four sides of the rectangle and four second sub-areas located outside four vertices of the rectangle.
[0022] In one embodiment of the present application, determining the UWB positioning area of the ranging module based on a pre-built area division model and a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point includes:
[0023] The UWB positioning area of the ranging module is determined based on the following conditions:
[0024] (1) when the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are all less than a first threshold, the outer area is used as the UWB positioning area of the ranging module;
[0025] (2) when the Bluetooth signal strength between the ranging module and two adjacent Bluetooth anchor points is greater than a second threshold, and the difference between the Bluetooth signal strength between the ranging module and the two adjacent Bluetooth anchor points is less than or equal to a third threshold, a second sub-area away from the two adjacent Bluetooth anchor points is used as the UWB positioning area of the ranging module;
[0026] (3) When the differences between the Bluetooth signal strengths of the ranging module and any two adjacent Bluetooth anchor points are greater than a third threshold, and one or more of the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are greater than or equal to the first threshold, the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are sorted to obtain the Bluetooth anchor point corresponding to the maximum value, and the first sub-area closest to the Bluetooth anchor point corresponding to the maximum value is used as the UWB positioning area of the ranging module;
[0027] (4) When the area division model is pre-constructed and the Bluetooth signal strength value between the ranging module and the Bluetooth anchor point does not meet conditions (1), (2) and (3), the buffer area is used as the UWB positioning area of the ranging module.
[0028] In one embodiment of the present application, determining a second calibration value of the Bluetooth signal strength in the UWB positioning area of the ranging module includes:
[0029] Acquire a second Bluetooth signal strength value of the UWB positioning area of the ranging module multiple times;
[0030] Calculate the mean of multiple second Bluetooth signal strength values to obtain a second mean value; and calculate the deviation value between the multiple second Bluetooth signal strength values and the second mean value, and filter out the second Bluetooth signal strength values whose deviation value exceeds a second preset threshold value to obtain a second Bluetooth signal strength value set;
[0031] A second target interval is set so that the second Bluetooth signal strength value exceeding the second preset ratio threshold in the second Bluetooth signal strength value set falls within the second target interval, and the second target interval is used as a second calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point.
[0032] In an embodiment of the present application, determining a Bluetooth ranging value corresponding to the first calibration value, and determining a Bluetooth positioning range corresponding to the second calibration value, includes:
[0033] The first calibration value is input into a preset Bluetooth positioning system to obtain a Bluetooth ranging value; and the second calibration value is input into a preset Bluetooth positioning system to obtain a Bluetooth positioning range.
[0034] The present application also provides a UWB-assisted BLE positioning and calibration device, including:
[0035] An acquisition module, used to acquire UWB ranging values between the ranging module and all UWB anchor points, wherein the number of the UWB anchor points is at least two, the positions of the UWB anchor points and the Bluetooth anchor points are relatively fixed, and the ranging module includes a Bluetooth unit;
[0036] A positioning module, used for calculating the coordinates of the ranging module based on a plurality of UWB ranging values;
[0037] A first calibration module, configured to determine the distance between the ranging module and the Bluetooth anchor point based on the coordinates of the ranging module; and determine a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point;
[0038] A second calibration module, used to determine the UWB positioning area of the ranging module based on the coordinates of the ranging module; and determine a second calibration value of the Bluetooth signal strength of the UWB positioning area of the ranging module;
[0039] The third calibration module is used to determine the Bluetooth ranging value corresponding to the first calibration value, and determine the Bluetooth positioning range corresponding to the second calibration value; and compare the Bluetooth ranging value with the UWB ranging value, and compare the UWB positioning area with the Bluetooth positioning range to calibrate the Bluetooth positioning.
[0040] The present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned method when executed by a processor.
[0041] The present application also provides an electronic terminal, comprising: a processor and a memory;
[0042] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the method as described above.
[0043] The beneficial effects of the present application are as follows: the method, device, equipment and storage medium of UWB-assisted BLE positioning calibration of the present application use UWB technology to accurately locate the ranging module, thereby obtaining the relative position between the ranging module and the UWB anchor point. Since the positions of the UWB anchor point and the Bluetooth anchor point are relatively fixed, the distance and positioning area between the ranging module and the Bluetooth anchor point are obtained, and then the distance and positioning area are signal calibrated to obtain the signal strength calibration value corresponding to the distance and positioning area. The signal calibration value is input into the Bluetooth positioning system to obtain the ranging value and positioning area of the Bluetooth positioning system. Finally, the UWB ranging value is compared with the Bluetooth ranging value, and the UWB positioning area is compared with the Bluetooth positioning range, so as to calibrate the result of Bluetooth positioning. The present application adopts a digital method for calibration, which is more intuitive and saves manpower. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative work:
[0045] Figure 1 This is an application scenario diagram of the UWB-assisted BLE positioning and calibration method in this application;
[0046] Figure 2 This is a flow chart of a method for UWB-assisted BLE positioning and calibration in an embodiment of the present application;
[0047] Figure 3 This is a schematic diagram of the regional division model in this application;
[0048] Figure 4 This is a structural diagram of a device for UWB-assisted BLE positioning and calibration in one embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0050] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0051] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0052] Figure 1 This is an application scenario diagram of the UWB-assisted BLE positioning and calibration method in this application, such as Figure 1 As shown, this application relies on UWB positioning, so the mobile phone needs to include a UWB module or add a UWB peripheral module (tag). The UWB positioning system takes a four-anchor system set on a vehicle as an example (one anchor point at each of the four corners of the vehicle, A1, A2, A3, A4).
[0053] The UWB positioning system is not limited to a four-anchor system. It only needs to calculate the coordinates of the phone or tag based on the distance reported by the anchor points.
[0054] If the performance of the anchor point cannot support the overhead of UWB positioning calculation, an additional module (main module) can be added as the control unit of the UWB positioning system.
[0055] Before calibration, you need to select or import the distance model, including:
[0056] (1) Get whether the mobile phone contains a UWB module. Get whether the mobile phone contains a UWB module by communicating with the mobile phone or manually setting it. If not, you need to add a UWB peripheral module (tag) to the mobile phone.
[0057] (2) Set up the UWB positioning system model. Determine the UWB positioning system to provide a basis for the subsequent calculation of the UWB coordinates of the mobile phone or tag. Figure 1 As shown, the UWB positioning system model in the present application includes four UWB anchor points distributed at four vertices of a rectangle.
[0058] (3) Set the Bluetooth distance model. Since the accuracy of BLE (Bluetooth) is at the meter level, the BLE distance model usually takes the anchor point as the center and draws a circle with a meter-level radius. Take a single BLE anchor point as an example. Figure 1 shown.
[0059] This application actually uses a Bluetooth ranging system with four Bluetooth anchor points, and the four Bluetooth anchor points are respectively set at the center points of the four sides of the rectangle. After configuring the above system, you can start automatic calibration, and the detailed process is as follows.
[0060] like Figure 2 As shown: The UWB-assisted BLE positioning calibration method of this embodiment includes the steps of:
[0061] S210, obtaining UWB ranging values between the ranging module and all UWB anchor points, wherein the number of the UWB anchor points is at least two, the positions of the UWB anchor points and the Bluetooth anchor points are relatively fixed, and the ranging module includes a Bluetooth unit;
[0062] The distance measurement module is the mobile phone mentioned above, and the UWB distance measurement value of the UWB anchor point is the precise distance value.
[0063] S220, calculating the coordinates of the ranging module based on a plurality of UWB ranging values;
[0064] In this application, the multi-point positioning method is used to calculate the accurate coordinates of the ranging module. Generally, two-point positioning is used. When the tag is on the outside, the intersection point is calculated by considering the outside; when the tag is on the inside, the intersection point is calculated by considering the inside (you need to judge the inside and outside by yourself). During the calibration process, the tag is generally considered to be on the outside.
[0065] S230, determining the distance between the ranging module and the Bluetooth anchor point based on the coordinates of the ranging module; and determining a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point;
[0066] Since the positions of the Bluetooth anchor point and the UWB anchor point are known, this application can calculate the distance between the mobile phone BLE and the BLE anchor point based on the UWB coordinates. The distance does not need to be an accurate distance value, that is, 2m, 3m, and 5m in the above BLE distance model. After repeated calculations, multiple distance values are obtained, and finally the BLE anchor point RSSI data of a certain distance (BLE distance) is selected, and the distance model is statistically fitted to obtain the first calibration value.
[0067] The specific process includes:
[0068] S231, keeping the distance between the ranging module and the Bluetooth anchor point fixed, and obtaining a first Bluetooth signal strength value between the ranging module and the Bluetooth anchor point multiple times;
[0069] When the BLE RSSI data of a certain BLE distance is selected, the test is repeated multiple times to obtain multiple first Bluetooth signal strength values.
[0070] S232, calculating the mean of multiple first Bluetooth signal strength values to obtain a first mean; and calculating the deviation between the multiple first Bluetooth signal strength values and the first mean, and filtering out the first Bluetooth signal strength values whose deviations exceed a first preset threshold, to obtain a first Bluetooth signal strength value set;
[0071] Among them, this step is mainly used to filter out points with larger deviation sample mean, and the first preset threshold can be set to a deviation of 25dbm.
[0072] S233: Set a first target interval so that the first Bluetooth signal strength value in the first Bluetooth signal strength value set that exceeds a first preset ratio threshold falls within the first target interval, and use the first target interval as a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point.
[0073] The first preset ratio threshold may be 95%, that is, an interval satisfying that 95% of the samples are in the area is selected, and the interval is the calibration parameter of the current RSSI calibration distance.
[0074] The above method is only a reference example. There is no restriction on the fitting distance model method, as long as the majority of sample points can be judged to the correct distance after calibration (the BLE distance calculated by UWB coordinates is consistent with the distance judged by BLE RSSI). This application does not impose any restrictions on the position and distance model of the BLE anchor point, as long as the position coordinates of the BLE anchor point in the rectangular coordinate system can be obtained. When there is only one UWB anchor point, we cannot obtain the UWB coordinates. At this time, the measured distance of the UWB is the distance from the mobile phone to the BLE anchor point. The advantage of multiple UWB anchor points is that the distance from the mobile phone to the BLE anchor point is more accurate.
[0075] S240, determining a UWB positioning area of the ranging module based on the coordinates of the ranging module; and determining a second calibration value of the Bluetooth signal strength of the UWB positioning area of the ranging module;
[0076] The UWB positioning area is the calibration area of the Bluetooth positioning area. Different numbers of Bluetooth anchor points correspond to different area determination algorithm models and area division models.
[0077] Therefore, before performing positioning area calibration, select the area determination algorithm model, the default algorithm model / custom algorithm model (custom file needs to be loaded). Determine whether the algorithm model matches the area division model. If they match, proceed with the area determination process, otherwise terminate the area determination calibration.
[0078] The number of Bluetooth anchor points in this application is 4. Figure 3 This is a schematic diagram of the regional division model in this application, such as Figure 3 As shown, B1, B2, B3, and B4 are Bluetooth anchor points. The four Bluetooth anchor points are located at the center points of the four sides of the rectangle, respectively. The area division model includes an inner area surrounding the rectangle, a buffer area surrounding the inner area, and an outer area Z9 surrounding the buffer area;
[0079] The inner area includes four first sub-areas located outside four sides of the rectangle and four second sub-areas located outside four vertices of the rectangle.
[0080] The four first sub-areas are Z1, Z3, Z5, and Z7; the four second sub-areas are Z2, Z4, Z6, and Z8;
[0081] In one embodiment of the present application, determining the UWB positioning area of the ranging module based on the coordinates of the ranging module includes:
[0082] S2401, maintaining the coordinates of the ranging module and obtaining a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point;
[0083] S2402, determining a UWB positioning area of the ranging module based on a pre-constructed area division model and a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point, wherein the area division model includes multiple areas surrounding the Bluetooth anchor point, and the UWB positioning area is one of the multiple areas surrounding the Bluetooth anchor point.
[0084] The specific determination conditions include:
[0085] (1) when the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are all less than a first threshold, the outer area is used as the UWB positioning area of the ranging module;
[0086] That is, determine whether the RSSI values of each anchor point are all less than V1. If so, proceed to Z9. If not, proceed to condition (2).
[0087] (2) when the Bluetooth signal strength between the ranging module and two adjacent Bluetooth anchor points is greater than a second threshold, and the difference between the Bluetooth signal strength between the ranging module and the two adjacent Bluetooth anchor points is less than or equal to a third threshold, a second sub-area away from the two adjacent Bluetooth anchor points is used as the UWB positioning area of the ranging module;
[0088] That is, if the RSSI values of B1 and B3 are less than V2 and the difference does not exceed V3, then it is Z2; if the RSSI values of B1 and B4 are less than V2 and the difference does not exceed V3, then it is Z8; if the RSSI values of B2 and B3 are less than V2 and the difference does not exceed V3, then it is Z4; if the RSSI values of B2 and B4 are less than V2 and the difference does not exceed V3, then it is Z6. If condition (2) is not met, enter the judgment of condition (3).
[0089] (3) When the differences between the Bluetooth signal strengths of the ranging module and any two adjacent Bluetooth anchor points are greater than a third threshold, and one or more of the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are greater than or equal to the first threshold, the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are sorted to obtain the Bluetooth anchor point corresponding to the maximum value, and the first sub-area closest to the Bluetooth anchor point corresponding to the maximum value is used as the UWB positioning area of the ranging module;
[0090] That is, sort the RSSI of each BLE anchor point. If B1 is the largest, then Z1; if B2 is the largest, then Z5; if B3 is the largest, then Z3; if B4 is the largest, then Z7. If condition (3) is not met, enter condition (4) for judgment.
[0091] (4) When the area division model is pre-constructed and the Bluetooth signal strength value between the ranging module and the Bluetooth anchor point does not meet conditions (1), (2) and (3), the buffer area is used as the UWB positioning area of the ranging module.
[0092] After determining the UWB positioning area, the Bluetooth calibration area is obtained, and then the signal strength calibration value corresponding to the Bluetooth calibration area is obtained, that is, the second calibration value. The determination process of the second calibration value is similar to the first calibration value, including:
[0093] S2411, obtaining a second Bluetooth signal strength value of the UWB positioning area of the ranging module multiple times;
[0094] S2412, calculating the mean of the plurality of second Bluetooth signal strength values to obtain a second mean; and calculating the deviation between the plurality of second Bluetooth signal strength values and the second mean, and filtering out the second Bluetooth signal strength values whose deviation exceeds a second preset threshold, to obtain a second Bluetooth signal strength value set;
[0095] The second preset threshold is 25dbm.
[0096] S2413, setting a second target interval so that the second Bluetooth signal strength value exceeding the second preset ratio threshold in the second Bluetooth signal strength value set falls within the second target interval, and using the second target interval as a second calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point.
[0097] Among them, the second preset ratio threshold is 90%.
[0098] S250, determine the Bluetooth ranging value corresponding to the first calibration value, and determine the Bluetooth positioning range corresponding to the second calibration value; and compare the Bluetooth ranging value with the UWB ranging value, and compare the UWB positioning area with the Bluetooth positioning range to calibrate the Bluetooth positioning.
[0099] Finally, digital calibration is performed, firstly the first calibration value is input into a preset Bluetooth positioning system to obtain a Bluetooth ranging value; and the second calibration value is input into a preset Bluetooth positioning system to obtain a Bluetooth positioning range.
[0100] The calibration can be completed by comparing the Bluetooth ranging value with the UWB ranging value and the Bluetooth ranging value, and comparing the UWB positioning area with the Bluetooth positioning range.
[0101] This application uses UWB's automated BLE device calibration and BLE positioning accuracy judgment tools to save manpower consumption caused by data statistical analysis and calibration. It improves the efficiency of BLE data calibration and brings convenience to development and debugging and system testing for testers and developers. It avoids the shortcomings of traditional BLE calibration, which requires limiting the location of the mobile phone or can only specify the location calibration test.
[0102] The UWB-assisted BLE positioning and calibration method of the present application uses UWB technology to accurately locate the ranging module, thereby obtaining the relative position between the ranging module and the UWB anchor point. Since the positions of the UWB anchor point and the Bluetooth anchor point are relatively fixed, the distance and positioning area between the ranging module and the Bluetooth anchor point are obtained, and then the distance and positioning area are calibrated to obtain the signal strength calibration value corresponding to the distance and positioning area. The signal calibration value is input into the Bluetooth positioning system to obtain the ranging value and positioning area of the Bluetooth positioning system. Finally, the UWB ranging value is compared with the Bluetooth ranging value, and the UWB positioning area is compared with the Bluetooth positioning range, and the Bluetooth positioning result can be calibrated. The present application adopts a digital method for calibration, which is more intuitive and saves manpower.
[0103] The present application also provides a UWB-assisted BLE positioning and calibration device, including:
[0104] An acquisition module, used to acquire UWB ranging values between the ranging module and all UWB anchor points, wherein the number of the UWB anchor points is at least two, the positions of the UWB anchor points and the Bluetooth anchor points are relatively fixed, and the ranging module includes a Bluetooth unit;
[0105] A positioning module, used for calculating the coordinates of the ranging module based on a plurality of UWB ranging values;
[0106] A first calibration module, configured to determine the distance between the ranging module and the Bluetooth anchor point based on the coordinates of the ranging module; and determine a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point;
[0107] A second calibration module, used to determine the UWB positioning area of the ranging module based on the coordinates of the ranging module; and determine a second calibration value of the Bluetooth signal strength of the UWB positioning area of the ranging module;
[0108] The third calibration module is used to determine the Bluetooth ranging value corresponding to the first calibration value, and determine the Bluetooth positioning range corresponding to the second calibration value; and compare the Bluetooth ranging value with the UWB ranging value, and compare the UWB positioning area with the Bluetooth positioning range to calibrate the Bluetooth positioning.
[0109] The UWB-assisted BLE positioning and calibration device of the present application uses UWB technology to accurately locate the ranging module, thereby obtaining the relative position between the ranging module and the UWB anchor point. Since the positions of the UWB anchor point and the Bluetooth anchor point are relatively fixed, the distance and positioning area between the ranging module and the Bluetooth anchor point are obtained, and then the distance and positioning area are calibrated to obtain the signal strength calibration value corresponding to the distance and positioning area. The signal calibration value is input into the Bluetooth positioning system to obtain the ranging value and positioning area of the Bluetooth positioning system. Finally, the UWB ranging value is compared with the Bluetooth ranging value, and the UWB positioning area is compared with the Bluetooth positioning range, and the Bluetooth positioning result can be calibrated. The present application adopts a digital method for calibration, which is more intuitive and saves manpower.
[0110] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in this embodiment is implemented, wherein the method is the execution logic of this device.
[0111] This embodiment also provides an electronic terminal, including: a processor and a memory;
[0112] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any one of the methods in this embodiment.
[0113] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0114] The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run computer programs so that the electronic terminal executes each step of the above method.
[0115] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0116] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0117] In the above-mentioned embodiments, although the present application has been described in conjunction with the specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those of ordinary skill in the art according to the foregoing description. The embodiments of the present application are intended to cover all such replacements, modifications and variations falling within the broad scope of the appended claims.
[0118] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. The method of UWB-assisted BLE positioning calibration is characterized by: Includes steps: Obtaining UWB ranging values between the ranging module and all UWB anchor points, wherein the number of the UWB anchor points is at least two, the positions of the UWB anchor points and the Bluetooth anchor points are relatively fixed, and the ranging module includes a Bluetooth unit; Calculating the coordinates of the ranging module based on a plurality of UWB ranging values; Determine the distance between the ranging module and the Bluetooth anchor point based on the coordinates of the ranging module; and determine a first calibration value of the Bluetooth signal strength corresponding to the ranging module and the Bluetooth anchor point at a certain distance; Determine a UWB positioning area of the ranging module based on the coordinates of the ranging module; and determine a second calibration value of the Bluetooth signal strength of the UWB positioning area of the ranging module; Determine a Bluetooth ranging value corresponding to the first calibration value, and determine a Bluetooth positioning range corresponding to the second calibration value; and compare the Bluetooth ranging value with the UWB ranging value, and compare the UWB positioning area with the Bluetooth positioning range to calibrate the Bluetooth positioning; Wherein, determining the UWB positioning area of the ranging module based on the coordinates of the ranging module includes: Maintaining the coordinates of the ranging module and obtaining a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point; The UWB positioning area of the ranging module is determined based on a pre-built area division model and a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point, wherein the area division model includes multiple areas surrounding the Bluetooth anchor point, and the UWB positioning area is one of the multiple areas surrounding the Bluetooth anchor point.
2. The method for UWB-assisted BLE positioning calibration according to claim 1, characterized in that: Determining a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point includes: Keeping the distance between the ranging module and the Bluetooth anchor point fixed, and obtaining a first Bluetooth signal strength value between the ranging module and the Bluetooth anchor point multiple times; Calculate the mean of multiple first Bluetooth signal strength values to obtain a first mean value; and calculate the deviation value between the multiple first Bluetooth signal strength values and the first mean value, and filter out the first Bluetooth signal strength values whose deviation value exceeds a first preset threshold value to obtain a first Bluetooth signal strength value set; A first target interval is set so that the first Bluetooth signal strength value in the first Bluetooth signal strength value set that exceeds the first preset ratio threshold falls within the first target interval, and the first target interval is used as a first calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point.
3. The method for UWB-assisted BLE positioning calibration according to claim 1, characterized in that: The number of the Bluetooth anchor points is 4, and the 4 Bluetooth anchor points are respectively located at the center points of the four sides of the rectangle, and the area division model includes an inner area surrounding the rectangle, a buffer area surrounding the inner area, and an outer area surrounding the buffer area; The inner area includes four first sub-areas located outside four sides of the rectangle and four second sub-areas located outside four vertices of the rectangle.
4. The method for UWB-assisted BLE positioning calibration according to claim 3, characterized in that: Determining the UWB positioning area of the ranging module based on a pre-built area division model and a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point includes: The UWB positioning area of the ranging module is determined based on the following conditions: (1) when the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are all less than a first threshold, the outer area is used as the UWB positioning area of the ranging module; (2) when the Bluetooth signal strength between the ranging module and two adjacent Bluetooth anchor points is greater than a second threshold, and the difference between the Bluetooth signal strength between the ranging module and the two adjacent Bluetooth anchor points is less than or equal to a third threshold, a second sub-area away from the two adjacent Bluetooth anchor points is used as the UWB positioning area of the ranging module; (3) When the differences between the Bluetooth signal strengths of the ranging module and any two adjacent Bluetooth anchor points are greater than a third threshold, and one or more of the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are greater than or equal to the first threshold, the Bluetooth signal strengths of the ranging module and the four Bluetooth anchor points are sorted to obtain the Bluetooth anchor point corresponding to the maximum value, and the first sub-area closest to the Bluetooth anchor point corresponding to the maximum value is used as the UWB positioning area of the ranging module; (4) When the area division model is pre-constructed and the Bluetooth signal strength value between the ranging module and the Bluetooth anchor point does not meet conditions (1), (2) and (3), the buffer area is used as the UWB positioning area of the ranging module.
5. The method for UWB-assisted BLE positioning calibration according to claim 1, characterized in that: Determining a second calibration value of the Bluetooth signal strength in the UWB positioning area of the ranging module includes: Acquire a second Bluetooth signal strength value of the UWB positioning area of the ranging module multiple times; Calculate the mean of multiple second Bluetooth signal strength values to obtain a second mean value; and calculate the deviation value between the multiple second Bluetooth signal strength values and the second mean value, and filter out the second Bluetooth signal strength values whose deviation value exceeds a second preset threshold value to obtain a second Bluetooth signal strength value set; A second target interval is set so that the second Bluetooth signal strength value exceeding the second preset ratio threshold in the second Bluetooth signal strength value set falls within the second target interval, and the second target interval is used as a second calibration value of the Bluetooth signal strength corresponding to the distance between the ranging module and the Bluetooth anchor point.
6. The method for UWB-assisted BLE positioning calibration according to claim 1, characterized in that: Determining a Bluetooth ranging value corresponding to the first calibration value, and determining a Bluetooth positioning range corresponding to the second calibration value, includes: The first calibration value is input into a preset Bluetooth positioning system to obtain a Bluetooth ranging value; and the second calibration value is input into a preset Bluetooth positioning system to obtain a Bluetooth positioning range.
7. The device for UWB-assisted BLE positioning calibration is characterized in that: include: An acquisition module, used to acquire UWB ranging values between the ranging module and all UWB anchor points, wherein the number of the UWB anchor points is at least two, the positions of the UWB anchor points and the Bluetooth anchor points are relatively fixed, and the ranging module includes a Bluetooth unit; A positioning module, used for calculating the coordinates of the ranging module based on a plurality of UWB ranging values; A first calibration module, configured to determine the distance between the ranging module and the Bluetooth anchor point based on the coordinates of the ranging module; and determine a first calibration value of the Bluetooth signal strength corresponding to the ranging module and the Bluetooth anchor point at a certain distance; A second calibration module, used to determine the UWB positioning area of the ranging module based on the coordinates of the ranging module; and determine a second calibration value of the Bluetooth signal strength of the UWB positioning area of the ranging module; A third calibration module is used to determine the Bluetooth ranging value corresponding to the first calibration value, and determine the Bluetooth positioning range corresponding to the second calibration value; and compare the Bluetooth ranging value with the UWB ranging value, and compare the UWB positioning area with the Bluetooth positioning range to calibrate the Bluetooth positioning; Wherein, when the second calibration module is used to determine the UWB positioning area of the ranging module based on the coordinates of the ranging module, it is specifically used to: Maintaining the coordinates of the ranging module and obtaining a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point; The UWB positioning area of the ranging module is determined based on a pre-built area division model and a Bluetooth signal strength value between the ranging module and the Bluetooth anchor point, wherein the area division model includes multiple areas surrounding the Bluetooth anchor point, and the UWB positioning area is one of the multiple areas surrounding the Bluetooth anchor point.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. An electronic terminal, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the method according to any one of claims 1 to 6.
