Intelligent positioning method and device based on Bluetooth beacons and storage medium
By monitoring the positioning error, power consumption and power status of Bluetooth beacons, and dynamically adjusting the broadcast interval, the problem of high power consumption of Bluetooth beacons is solved, and a high-precision and low-energy positioning system is realized.
Patent Information
- Application Number
- CN202510611712.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-05-13
AI Technical Summary
The existing Bluetooth beacon system does not combine power consumption factors in the positioning accuracy analysis, resulting in the problem of high power consumption of Bluetooth beacons.
Through the analysis of positioning error, power consumption and power state during the monitoring period, the broadcast interval of Bluetooth beacons is dynamically adjusted, and combined with multi-beacon collaborative positioning technology, it suppresses single-point signal interference and optimizes energy efficiency.
It improves positioning accuracy and robustness, reduces the equipment's operating energy consumption, extends the equipment's service life, and achieves high reliability and low energy consumption of the positioning system.
Smart Images

Figure CN120264422A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Bluetooth positioning, and particularly to an intelligent positioning method, device and storage medium based on Bluetooth beacons. Background Art
[0002] With the development of intelligent technologies, Bluetooth beacons are widely used in indoor positioning, asset management, intelligent retail and other fields due to their low power consumption, high precision and reliability. Traditional positioning technologies mostly rely on systems such as GPS and are difficult to work stably indoors or in complex environments. Bluetooth beacons use short-range wireless communication to calculate the distance by the signal strength between the receiving device and the beacon, achieving high-precision positioning. At the same time, with the popularization of the Internet of Things, it has become particularly important to quickly and accurately obtain location data. Therefore, constructing an intelligent positioning method, device and storage medium based on Bluetooth beacons can not only improve the positioning accuracy, but also effectively manage the energy consumption and device status, meeting the requirements of modern application scenarios, which has important practical significance.
[0003] Chinese Patent Publication No. CN109362031A discloses a Bluetooth beacon system and a Bluetooth positioning method. The Bluetooth beacon system includes a plurality of Bluetooth beacons arranged in a target area. Each Bluetooth beacon is provided with a signal transmitting module and a signal receiving module. Each Bluetooth beacon broadcasts the reference data of the Bluetooth beacon outward through the signal transmitting module, and scans the signal strength of the reference data broadcast by other Bluetooth beacons through the signal receiving module. Each Bluetooth beacon determines an inter-beacon reference strength according to the signal strength of other Bluetooth beacons scanned by its signal receiving module, and includes the inter-beacon reference strength in the reference data and broadcasts it outward through the signal transmitting module of the Bluetooth beacon. The advantages of the present invention are: through the mutual scanning between Bluetooth beacons, the random influence of environmental factors on the strength of Bluetooth signals can be eliminated, so that Bluetooth signals can be used for precise positioning. It can be seen that when analyzing the positioning accuracy, this solution does not comprehensively analyze factors such as Bluetooth power consumption, and there is a problem of high power consumption of Bluetooth beacons. Summary of the Invention
[0004] The purpose of the present invention is to provide an intelligent positioning method, device and storage medium based on Bluetooth beacons to solve at least one of the problems existing in the prior art.
[0005] To achieve the above purpose, the present invention adopts the following technical solutions:
[0006] An intelligent positioning method based on Bluetooth beacons includes:
[0007] Analyzing the positioning error state according to the analysis result of the abnormality of the positioning error within the monitoring period;
[0008] Analyze the power consumption status of the Bluetooth beacon based on the power consumption of the Bluetooth beacon collected during the monitoring period;
[0009] Analyze the power status of the Bluetooth beacon based on the transmit power of the Bluetooth beacon, the set interval of the Bluetooth beacon, and the battery capacity of the Bluetooth beacon collected during the monitoring period;
[0010] Manage the broadcast interval of the Bluetooth beacon in the next monitoring period based on the analysis results of the positioning error status, the power consumption status, and the power status of the Bluetooth beacon during the monitoring period.
[0011] Optionally, collect Bluetooth beacon data and receiving device data;
[0012] Calculate the distance between the receiving device and the Bluetooth beacon based on the transmit power of the Bluetooth beacon and the received signal strength of the Bluetooth beacon by the receiving device;
[0013] Analyze the position coordinates of the receiving device based on the analysis results of the distance between the receiving device and the Bluetooth beacon, and determine the positioning error abnormality based on the position coordinates of the receiving device and the actual position coordinates of the receiving device.
[0014] Optionally, calculate the distance Li between the receiving device and the i-th Bluetooth beacon based on the transmit power ri of the i-th Bluetooth beacon collected and the received signal strength si of the i-th Bluetooth beacon by the receiving device, sort the distances between the receiving device and the Bluetooth beacon in ascending order, and use the Bluetooth beacons corresponding to the first three distances between the receiving device and the Bluetooth beacon as target beacons, and calculate the position coordinates (xj, yj, zj) of the receiving device based on the distances between the receiving device and the target beacons;
[0015] Calculate the positioning error ws based on the analysis results of the position coordinates of the receiving device and the actual position coordinates (xs, ys, zs) of the receiving device, compare the positioning error ws with the preset error ws0, and analyze the positioning error abnormality based on the comparison result. If ws ≤ ws0, it is determined that the positioning error is normal; otherwise, it is determined that the positioning error is abnormal.
[0016] Optionally, when the ratio of the number of abnormal positioning errors cy in the monitoring period to the number of positioning times c0 of the receiving device in the monitoring period is less than or equal to the preset abnormal proportion α, it is determined that the positioning error status in the current monitoring period is in a normal state; otherwise, it is determined that the positioning error status in the current monitoring period is in an abnormal state.
[0017] Optionally, calculate the average power consumption hp of the Bluetooth beacon based on the power consumption of the Bluetooth beacon collected during the monitoring period, and calculate the fluctuation coefficient be of the Bluetooth beacon based on the power consumption of the Bluetooth beacon collected during the monitoring period; construct the power consumption coefficient gh of the Bluetooth beacon based on the average power consumption bp of the Bluetooth beacon and the fluctuation coefficient be of the Bluetooth beacon, and set gh = w1 × lg(bp / YB + 1) + w2 × (be / BD)2 ;
[0018] Compare the power consumption coefficient gh of the Bluetooth beacon with the preset power consumption coefficient threshold Hg. If gh ≤ Hg, determine that the power consumption status of the Bluetooth beacon in the current monitoring period is normal, and set the power consumption index to 0; otherwise, determine that the power consumption status of the Bluetooth beacon in the current monitoring period is abnormal, and set the power consumption index to ln[3×(gh - Hg) + 1] / ln4; where YB is the preset power consumption, BD is the preset fluctuation coefficient, w1 is the first weight, w2 is the second weight, and w1 + w2 = 1.
[0019] Optionally, judge the abnormality of the transmission power of the Bluetooth beacon according to the transmission power of the Bluetooth beacon collected within the monitoring period, and construct a power abnormality coefficient. When the transmission power fp0 of the Bluetooth beacon is less than or equal to the preset power threshold fp1, determine that the transmission power of the Bluetooth beacon in the current monitoring period is normal, and set the power abnormality coefficient to 0; otherwise, determine that the transmission power of the Bluetooth beacon in the current monitoring period is abnormal, and set the power abnormality coefficient to (fp0 - fp1) / fp1;
[0020] Judge the abnormality of the battery capacity of the Bluetooth beacon according to the collected battery capacity of the Bluetooth beacon, and construct a capacity abnormality coefficient. If the battery capacity dc of the Bluetooth beacon is less than or equal to the preset capacity dc0, determine that the battery capacity of the Bluetooth beacon is abnormal, and set the capacity abnormality coefficient to exp[3×(dc0 - dc) / dc0 - 3]; otherwise, determine that the battery capacity of the Bluetooth beacon is normal, and set the capacity abnormality coefficient to 0;
[0021] When the battery capacity of the Bluetooth beacon is abnormal, process the analysis process of the power abnormality of the Bluetooth beacon, and set the processed preset power threshold to fp1’, and set fp1’ = fp1×exp{-GY2};
[0022] Construct the power index GZ of the Bluetooth beacon according to the analysis result of the transmission power abnormality of the Bluetooth beacon and the analysis result of the battery capacity abnormality of the Bluetooth beacon, and set GZ = L1×power abnormality coefficient + L2×capacity abnormality coefficient, where L1 is the power abnormality weight, L2 is the capacity abnormality weight, and L1 + L2 = 1;
[0023] Compare the power index GZ with the preset power status threshold GZ0. If GZ ≤ GZ0, determine that the power status of the Bluetooth beacon in the current monitoring period is normal, and set the power status abnormality index to 0; otherwise, determine that the power status of the Bluetooth beacon in the current monitoring period is abnormal, and set the power status abnormality index to (GZ - GZ0).
[0024] Optionally, according to the analysis process of processing the power state of the Bluetooth beacon by setting the interval based on the Bluetooth beacons collected within the monitoring period, compare the Bluetooth beacon setting interval jg with the preset interval jg0. If jg ≤ jg0, determine that the Bluetooth beacon interval state in the current monitoring period is a small interval; if jg > jg0, determine that the Bluetooth beacon interval state in the current monitoring period is a normal interval.
[0025] When the Bluetooth beacon interval state is a small interval, set the preset power state threshold to GZ1 to process the analysis process of the power state of the Bluetooth beacon.
[0026] Optionally, when the positioning error state is normal, if w1 × power consumption index + w2 × power state abnormal index ≤ u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T1; if w1 × power consumption index + w2 × power state abnormal index > u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T2.
[0027] When the positioning error state is abnormal, if w1 × power consumption index + w2 × power state abnormal index ≤ u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T3; if w1 × power consumption index + w2 × power state abnormal index > u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T4.
[0028] Wherein, w1 is the power consumption weight, w2 is the power weight, w1 + w2 = 1, and u0 is the preset state judgment threshold.
[0029] According to another aspect of the present application, there is provided an intelligent positioning device based on Bluetooth beacons, including:
[0030] A data acquisition module that acquires Bluetooth beacon data and receiving device data;
[0031] A distance analysis module that calculates the distance between the receiving device and the Bluetooth beacon according to the transmission power of the Bluetooth beacon and the received signal strength of the Bluetooth beacon by the receiving device;
[0032] A positioning analysis module that analyzes the position coordinates of the receiving device based on the analysis result of the distance between the receiving device and the Bluetooth beacon, and determines the abnormality of the positioning error according to the position coordinates of the receiving device and the actual position coordinates of the receiving device;
[0033] An error analysis module that analyzes the positioning error state according to the analysis result of the positioning error abnormality within the monitoring period;
[0034] A power consumption analysis module that analyzes the power consumption state of the Bluetooth beacon according to the power consumption of the Bluetooth beacon collected within the monitoring period;
[0035] A power analysis module analyzes the power status of a Bluetooth beacon based on the transmission power of the Bluetooth beacon collected during a monitoring period, the set interval of the Bluetooth beacon, and the battery capacity of the Bluetooth beacon;
[0036] A management module manages the broadcast interval of the Bluetooth beacon in the next monitoring period according to the analysis results of the positioning error status, the power consumption status of the Bluetooth beacon, and the power status of the Bluetooth beacon during the monitoring period.
[0037] According to another aspect of the present application, there is provided a computer-readable storage medium storing a computer program, wherein the computer program is used to control an electronic device where the computer-readable storage medium is located to execute the intelligent positioning method based on Bluetooth beacons when running.
[0038] The beneficial effects of the present invention are as follows: By collecting and fusing multi-dimensional data of Bluetooth beacons in real time and combining intelligent algorithms to construct a position calculation model, the positioning robustness in complex environments is significantly enhanced. Using the multi-beacon cooperative positioning technology, the error diffusion caused by single-point signal interference is effectively suppressed, and the positioning accuracy is improved. An adaptive adjustment mechanism is introduced to optimize energy efficiency through power consumption anomaly detection and power status analysis, reducing the operating energy consumption of the device. The system can autonomously adjust operating parameters according to the positioning error fluctuation characteristics and the device working state, effectively extending the service life of the device while ensuring positioning reliability. A multi-dimensional anomaly monitoring framework is adopted to realize real-time evaluation of the health status of the positioning system and early warning of potential faults. This intelligent cooperative management mechanism takes into account the balance between positioning accuracy and energy efficiency, providing a highly reliable and low-energy solution for indoor positioning services. Description of the Drawings
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for description in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0040] Figure 1 It is a flowchart of the intelligent positioning method based on Bluetooth beacons in this embodiment.
[0041] Figure 2 It is a flowchart of the analysis method for positioning error abnormality in this embodiment.
[0042] Figure 3 It is a flowchart of the power status analysis method in this embodiment.
[0043] Figure 4 It is a structural schematic diagram of the intelligent positioning device based on Bluetooth beacons in this embodiment. Detailed Embodiments
[0044] To more clearly illustrate the present invention, the present invention will be further described below in conjunction with preferred embodiments and the accompanying drawings. Similar components in the drawings are denoted by the same reference numerals. Those skilled in the art should understand that the content specifically described below is illustrative rather than restrictive, and should not be used to limit the protection scope of the present invention.
[0045] It should be noted that although terms such as first, second, and third may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0046] Please refer to Figure 1 as shown, which is a flowchart of the intelligent positioning method based on Bluetooth beacons in this embodiment, including:
[0047] Step S101, collecting Bluetooth beacon data and receiving device data. The Bluetooth beacon data includes the power consumption, transmission power, signal strength value, Bluetooth beacon broadcast interval, Bluetooth beacon setting interval, and Bluetooth beacon battery capacity of the Bluetooth beacon. The receiving device data is the received signal strength of the receiving device for the Bluetooth beacon. The Bluetooth beacon setting interval is the distance between adjacent Bluetooth beacons. In this embodiment, the collection method of the Bluetooth beacon data and the receiving device data is not specifically limited, and those skilled in the art can freely set it as long as the collection requirements of the Bluetooth beacon data and the receiving device data are met. Among them, the Bluetooth beacon data and the receiving device data can be collected by the built-in intelligent sensors of the Bluetooth beacon and the receiving device, and the Bluetooth beacon broadcast interval can be collected through interaction. The receiving device in this embodiment is a device that can receive the Bluetooth beacon broadcast signal.
[0048] Please continue to refer to Figure 1 as shown, the intelligent positioning method based on Bluetooth beacons further includes:
[0049] Step S102, calculating the distance between the receiving device and the Bluetooth beacon according to the transmission power of the Bluetooth beacon and the received signal strength of the receiving device for the Bluetooth beacon.
[0050] Specifically, analyze the distance Li between the receiving device and the i-th Bluetooth beacon according to the transmission power ri of the collected i-th Bluetooth beacon and the received signal strength si of the receiving device for the i-th Bluetooth beacon, and set: Li = 10 (si-ri) / (-10n) ×m, where n is a preset loss factor, 2 ≤ n ≤ 4, and m is a distance factor.
[0051] Specifically, by calculating the distance based on the transmission power and the received signal strength, the real-time positioning of the receiving device and the beacon is achieved, and the positioning accuracy is improved.
[0052] It can be understood that in this embodiment, the value of the distance factor is 1 meter. In this embodiment, the setting of the preset loss factor is not specifically limited, and those skilled in the art can freely set it as long as the setting requirements of the preset loss factor are met. Among them, the optimal value of n is 2.4.
[0053] Please continue to refer to Figure 1 As shown, the intelligent positioning method based on Bluetooth beacon further includes:
[0054] Step S103: Analyze the position coordinates of the receiving device based on the analysis result of the distance between the receiving device and the Bluetooth beacon, and judge the positioning error abnormality according to the position coordinates of the receiving device and the actual position coordinates of the receiving device.
[0055] Specifically, in this embodiment, the position of any Bluetooth beacon is used as the coordinate origin, the horizontal axis direction of the building design drawing is used as the X-axis, the vertical axis direction of the building design drawing is used as the Y-axis, and the direction perpendicular to the X and Y planes is used as the Z-axis to establish a space rectangular coordinate system.
[0056] Please refer to Figure 2 As shown, the analysis method of the positioning error abnormality includes:
[0057] Step S201: Sort the distances between the receiving device and the Bluetooth beacons in ascending order, and use the Bluetooth beacons corresponding to the distances between the receiving device and the first three Bluetooth beacons as target beacons, and calculate the position coordinates of the receiving device according to the distances between the receiving device and the target beacons.
[0058] Specifically, let the position coordinates of the receiving device be (xj, yj, zj), the position coordinates of the first target beacon be (xb1, yb1, zb1), the position coordinates of the second target beacon be (xb2, yb2, zb2), and the position coordinates of the third target beacon be (xb3, yb3, zb3). The calculation process of the position coordinates (xj, yj, zj) of the receiving device is as follows:
[0059] (xb1 - xj) 2 +(yb1 - yj) 2 +(zb1 - yj) 2 = d1 2 ;
[0060] (xb2 - xj) 2 +(yb2 - yj) 2 +(zb2 - yj) 2 = d2 2 ;
[0061] (xb3 - xj) 2 +(yb3 - yj) 2 +(zb3 - yj) 2 =d3 2 ;
[0062] Among them, d1 is the distance between the first target beacon and the receiving device, d2 is the distance between the second target device and the receiving device, and d3 is the distance between the third target device and the receiving device.
[0063] Specifically, by using multiple beacon information for position calculation, the positioning error caused by poor signal of individual beacons is reduced, and the robustness of positioning is improved.
[0064] Please continue to refer to Figure 2 As shown, the method for analyzing the abnormality of the positioning error further includes:
[0065] Step S202, calculate the positioning error according to the analysis result of the receiving device position coordinates and the actual position coordinates of the receiving device, and analyze the abnormality of the positioning error.
[0066] Specifically, according to the analysis result of the receiving device position coordinates and the actual position coordinates (xs, ys, zs) of the receiving device, calculate the positioning error ws, and set:
[0067]
[0068] Compare the positioning error ws with the preset error ws0, and analyze the abnormality of the positioning error according to the comparison result. If ws ≤ ws0, it is determined that the positioning error is normal; otherwise, it is determined that the positioning error is abnormal.
[0069] Specifically, by performing real-time monitoring and analysis on the positioning error, the accuracy of the positioning error state analysis is improved, thereby improving the accuracy of the broadcast interval analysis in the next monitoring cycle.
[0070] It can be understood that in this embodiment, the method for obtaining the actual coordinates of the receiving device is not specifically limited, and those skilled in the art can freely set it as long as the requirements for obtaining the actual coordinates of the receiving device are met. Among them, it can be obtained by a laser rangefinder.
[0071] It can be understood that in this embodiment, the setting of the preset error is not specifically limited, and those skilled in the art can freely set it as long as the requirements for setting the preset error are met. Among them, the preset error can be set to 0.1 meter.
[0072] Please continue to refer to Figure 1 As shown, the intelligent positioning method based on Bluetooth beacon further includes:
[0073] Step S104: Analyze the positioning error status based on the analysis result of the positioning error abnormality within the monitoring period.
[0074] Specifically, when the ratio of the number of positioning error abnormalities cy within the monitoring period to the number of positioning times c0 of the receiving device within the monitoring period is less than or equal to the preset abnormal proportion α, it is determined that the positioning error status of the current monitoring period is in a normal state; otherwise, it is determined that the positioning error status of the current monitoring period is in an abnormal state.
[0075] Specifically, by setting the preset abnormal proportion, the accuracy of the positioning error status analysis is improved, thereby improving the accuracy of the Bluetooth beacon broadcast interval management in the next monitoring period, and thus reducing the power consumption of the Bluetooth beacon.
[0076] It can be understood that in this embodiment, the setting of the monitoring period is not specifically limited, and those skilled in the art can freely set it as long as the setting requirements of the preset abnormal proportion are met. Among them, the optimal value of α is 0.05.
[0077] Please continue to refer to Figure 1 As shown, the intelligent positioning method based on Bluetooth beacon further includes:
[0078] Step S105: Analyze the power consumption status of the Bluetooth beacon based on the power consumption of the Bluetooth beacon collected within the monitoring period.
[0079] Specifically, calculate the average power consumption hp of the Bluetooth beacon according to the power consumption of the Bluetooth beacon collected within the monitoring period, and set hk is the power consumption of the k-th Bluetooth beacon collected within the monitoring period, and N is the number of Bluetooth beacons;
[0080] Calculate the fluctuation coefficient be of the Bluetooth beacon according to the power consumption of the Bluetooth beacon collected within the monitoring period, and set:
[0081]
[0082] Analyze the power consumption coefficient gh of the Bluetooth beacon according to the average power consumption bp of the Bluetooth beacon and the fluctuation coefficient be of the Bluetooth beacon, and set gh = w1×lg(bp / YB + 1) + w2×(be / BD) 2 ;
[0083] Compare the power consumption coefficient gh of the Bluetooth beacon with the preset power consumption coefficient threshold Hg. If gh ≤ Hg, determine that the power consumption status of the Bluetooth beacon in the current monitoring period is normal, and set the power consumption index to 0; otherwise, determine that the power consumption status of the Bluetooth beacon in the current monitoring period is abnormal, and set the power consumption index to ln[3×(gh - Hg) + 1] / ln4; where YB is the preset power consumption, BD is the preset fluctuation coefficient, w1 is the first weight, w2 is the second weight, and w1 + w2 = 1.
[0084] Specifically, calculating the average power consumption and the fluctuation coefficient provides data support for the power consumption status of the Bluetooth beacon, thereby improving the accuracy of the analysis of the power consumption status of the Bluetooth beacon; constructing a power consumption index based on the average power consumption and the fluctuation coefficient to accurately identify abnormal beacon power consumption, while improving the intelligence level of the system, and optimizing the usage strategy of the beacon by using the power consumption status as a decision basis.
[0085] It can be understood that in this embodiment, the settings of the preset power consumption, the preset fluctuation coefficient, the preset power consumption coefficient threshold, and each weight are not specifically limited, and those skilled in the art can freely set them as long as they meet the setting requirements of the preset power consumption, the preset fluctuation coefficient, the preset power consumption coefficient threshold, and each weight. Among them, the best value of YB is 10mW, the best value of BD is 0.15, the best value of w1 is 0.7, the best value of w2 is 0.3, and the best value of Hg is 1.
[0086] Please continue to refer to Figure 1 As shown, the intelligent positioning method based on the Bluetooth beacon further includes:
[0087] Step S106, analyze the power status of the Bluetooth beacon according to the transmission power of the Bluetooth beacon, the set interval of the Bluetooth beacon, and the battery capacity of the Bluetooth beacon collected within the monitoring period.
[0088] Please refer to Figure 3 As shown, the power status analysis method includes:
[0089] Step S301, determine the abnormality of the transmission power of the Bluetooth beacon according to the transmission power of the Bluetooth beacon collected within the monitoring period, and construct a power abnormality coefficient.
[0090] Specifically, when the transmission power fp0 of the Bluetooth beacon is less than or equal to the preset power threshold fp1, determine that the transmission power of the Bluetooth beacon in the current monitoring period is normal, and set the power abnormality coefficient to 0; otherwise, determine that the transmission power of the Bluetooth beacon in the current monitoring period is abnormal, and set the power abnormality coefficient to (fp0 - fp1) / fp1.
[0091] Specifically, by monitoring the transmission power, the accuracy of the analysis of the transmission power abnormality of the Bluetooth beacon is improved, and a power abnormality coefficient is constructed to quantify the degree of power abnormality of the Bluetooth beacon.
[0092] It can be understood that in this embodiment, the setting of the preset power threshold is not specifically limited, and those skilled in the art can freely set it as long as the setting requirements of the preset power threshold are met. Among them, the optimal value of fp1 is 5 dBm.
[0093] Please continue to refer to Figure 4 As shown, the power status analysis method further includes:
[0094] Step S302, judging the abnormality of the Bluetooth beacon battery capacity according to the collected Bluetooth beacon battery capacity, and constructing a capacity abnormality coefficient.
[0095] Specifically, if the Bluetooth beacon battery capacity dc is less than or equal to the preset capacity dc0, it is determined that the Bluetooth beacon battery capacity is abnormal, and the capacity abnormality coefficient is set to exp[3×(dc0 - dc) / dc0 - 3]; otherwise, it is determined that the Bluetooth beacon battery capacity is normal, and the capacity abnormality coefficient is set to 0;
[0096] When the Bluetooth beacon battery capacity is abnormal, the analysis process of the Bluetooth beacon power abnormality is processed, and the processed preset power threshold is set to fp1’, and it is set that fp1’ = fp1×exp{-GY2};
[0097] Construct the power index GZ of the Bluetooth beacon according to the analysis result of the Bluetooth beacon transmission power abnormality and the analysis result of the Bluetooth beacon battery capacity abnormality, and set GZ = L1×power abnormality coefficient + L2×capacity abnormality coefficient, where L1 is the power abnormality weight, L2 is the capacity abnormality weight, and L1 + L2 = 1;
[0098] Compare the power index GZ with the preset power status threshold GZ0. If GZ ≤ GZ0, it is determined that the power status of the Bluetooth beacon in the current monitoring period is normal, and the power status abnormality index is set to 0; otherwise, it is determined that the power status of the Bluetooth beacon in the current monitoring period is abnormal, and the power status abnormality index is set to (GZ - GZ0).
[0099] Specifically, by constructing a capacity abnormality coefficient to quantify the degree of battery capacity abnormality, and processing the process of the power abnormality coefficient according to the degree of battery capacity abnormality, the influence of the battery capacity abnormality on the analysis of the abnormal degree of the supply power is reduced. At the same time, the power status of the Bluetooth beacon is analyzed by integrating the Bluetooth beacon battery capacity and the transmission power, improving the accuracy of the power status analysis.
[0100] It can be understood that in this embodiment, the settings of the preset capacity, the preset power state threshold, and each weight are not specifically limited, and those skilled in the art can set them freely, as long as the setting requirements of the preset capacity, the preset power state threshold, and each weight are met. Among them, the best value of dc0 is 500 mAh, the best value of GZ0 is 0.2, the best value of L1 is 0.75, and the best value of L2 is 0.25.
[0101] Please continue to refer to Figure 4 As shown, the power state analysis method further includes:
[0102] Step S303, processing the analysis process of the power state of the Bluetooth beacon according to the set interval of the Bluetooth beacon collected within the monitoring period.
[0103] Specifically, compare the Bluetooth beacon setting interval jg with the preset interval jg0. If jg ≤ jg0, determine that the Bluetooth beacon interval state in the current monitoring period is a small interval; if jg > jg0, determine that the Bluetooth beacon interval state in the current monitoring period is a normal interval.
[0104] When the Bluetooth beacon interval state is a small interval, process the analysis process of the power state of the Bluetooth beacon, and set the processed preset power state threshold as GZ1, and set GZ1 = GZ0 × ln[e + 5 × (jg0 - jg) / jg0 + 1] / ln6, where e is the natural logarithm.
[0105] Specifically, by analyzing the status of the broadcast interval of the Bluetooth beacon, the influence of the device setting interval on the power state analysis is reduced, thereby improving the accuracy of the power state analysis.
[0106] It can be understood that in this embodiment, the setting of the preset interval is not specifically limited, and those skilled in the art can set it freely, as long as the setting requirements of the preset interval are met. Among them, the best value of jg0 is 5 meters.
[0107] Please continue to refer to Figure 1 As shown, the intelligent positioning method based on Bluetooth beacon further includes:
[0108] Step S107, managing the broadcast interval of the Bluetooth beacon in the next monitoring period according to the positioning error state, the power consumption state of the Bluetooth beacon, and the analysis result of the power state of the Bluetooth beacon within the monitoring period.
[0109] Specifically, when the positioning error state is normal, if w1 × power consumption index + w2 × power state abnormal index ≤ u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T1, and set T1 = T0; if w1 × power consumption index + w2 × power state abnormal index > u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T2, and set T2 = T0 × {1 + lg[4 × (w1 × power consumption index + w2 × power state abnormal index - u0)] / lg5};
[0110] When the positioning error state is abnormal, if w1 × power consumption index + w2 × power state abnormal index ≤ u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T3, and set T3 = T0 × [1 - (cy / c0 - α)]; if w1 × power consumption index + w2 × power state abnormal index > u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T4, and set T4 = T0 × {1 + lg[4 × (w1 × power consumption index + w2 × power state abnormal index - u0)] / lg5 - (cy / c0 - α)};
[0111] Among them, T0 is the broadcast interval of the Bluetooth beacon in the current monitoring period, w1 is the power consumption weight, w2 is the power weight, w1 + w2 = 1, and u0 is the preset state judgment threshold.
[0112] Specifically, based on the comprehensive analysis of multiple states, the broadcast interval of the next monitoring period can be intelligently adjusted, improving the system's adaptability, reducing the energy consumption of the Bluetooth beacon, and increasing the service life of the Bluetooth beacon.
[0113] It can be understood that in this embodiment, the settings of each weight and the preset state judgment threshold are not specifically limited, and those skilled in the art can freely set them as long as the setting requirements of each weight and the preset state judgment threshold are met. Among them, the optimal value of w1 is 0.6, the optimal value of w2 is 0.4, and the optimal value of u0 is 0.18.
[0114] Specifically, the system described in this embodiment is applied to indoor positioning, collects signal data of beacons and receiving devices, accurately calculates the position of the receiving device, and real-time monitors and analyzes the positioning error, power consumption, and transmission power state. Through abnormal analysis and feedback mechanisms, the broadcast interval of the beacon is dynamically adjusted to ensure stable and reliable positioning services while optimizing device energy consumption.
[0115] Please refer to Figure 4 as shown, the intelligent positioning device based on Bluetooth beacon includes:
[0116] A data acquisition module that acquires Bluetooth beacon data and receiving device data;
[0117] A distance analysis module calculates the distance between the receiving device and the Bluetooth beacon based on the transmission power of the Bluetooth beacon and the received signal strength of the Bluetooth beacon by the receiving device;
[0118] A positioning analysis module analyzes the position coordinates of the receiving device based on the analysis result of the distance between the receiving device and the Bluetooth beacon, and determines the positioning error abnormality according to the position coordinates of the receiving device and the actual position coordinates of the receiving device;
[0119] An error analysis module analyzes the positioning error state according to the analysis result of the positioning error abnormality within the monitoring period;
[0120] A power consumption analysis module analyzes the power consumption state of the Bluetooth beacon according to the power consumption of the Bluetooth beacon collected within the monitoring period;
[0121] A power analysis module analyzes the power state of the Bluetooth beacon according to the transmission power of the Bluetooth beacon, the set interval of the Bluetooth beacon, and the battery capacity of the Bluetooth beacon collected within the monitoring period;
[0122] A management module manages the broadcast interval of the Bluetooth beacon in the next monitoring period according to the analysis results of the positioning error state, the power consumption state of the Bluetooth beacon, and the power state of the Bluetooth beacon within the monitoring period.
[0123] The intelligent positioning device based on Bluetooth beacon described in the embodiments of the present application can execute the intelligent positioning method based on Bluetooth beacon provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects for executing the method.
[0124] The present application also provides a computer-readable storage medium, which is a tangible physical storage medium and can store the above computer program and various types of data used in the program; this physical storage medium includes, but is not limited to, existing physical storage media or combinations of media such as random access memory, read-only memory, optical discs, hard disks, etc.
[0125] Those of ordinary skill in the art will understand that all or some of the steps and systems disclosed in the above methods can be implemented as software, firmware, hardware, and their appropriate combinations. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or can be implemented as hardware, or can be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable programs, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically contain computer-readable programs, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.
[0126] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, rather than limitations on the implementation manners of the present invention. For those of ordinary skill in the art, based on the above description, other different forms of changes or variations can be made. It is impossible to list all the implementation manners here. Any obvious changes or variations derived from the technical solutions of the present invention still fall within the protection scope of the present invention.
Claims
1. An intelligent positioning method based on Bluetooth beacons, characterized in that, Including: Analyze the positioning error status according to the analysis result of the positioning error abnormality within the monitoring period; Analyze the power consumption status of the Bluetooth beacon according to the power consumption of the Bluetooth beacon collected within the monitoring period; Analyze the power status of the Bluetooth beacon according to the transmit power of the Bluetooth beacon, the set interval of the Bluetooth beacon, and the battery capacity of the Bluetooth beacon collected within the monitoring period; Manage the broadcast interval of the Bluetooth beacon in the next monitoring period according to the analysis results of the positioning error status, the power consumption status of the Bluetooth beacon, and the power status of the Bluetooth beacon within the monitoring period.
2. The intelligent positioning method based on a Bluetooth beacon according to claim 1, characterized in that, Collect Bluetooth beacon data and receiving device data; Calculate the distance between the receiving device and the Bluetooth beacon according to the transmit power of the Bluetooth beacon and the received signal strength of the Bluetooth beacon by the receiving device; Analyze the position coordinates of the receiving device based on the analysis result of the distance between the receiving device and the Bluetooth beacon, and judge the positioning error abnormality according to the position coordinates of the receiving device and the actual position coordinates of the receiving device.
3. The intelligent positioning method based on Bluetooth beacons according to claim 2, wherein Calculate the distance Li between the receiving device and the i-th Bluetooth beacon according to the transmit power ri of the i-th Bluetooth beacon collected and the received signal strength si of the i-th Bluetooth beacon by the receiving device, sort the distances between the receiving device and the Bluetooth beacon in ascending order, and use the Bluetooth beacons corresponding to the first three distances between the receiving device and the Bluetooth beacon as target beacons, and calculate the position coordinates (xj, yj, zj) of the receiving device according to the distances between the receiving device and the target beacons; Calculate the positioning error ws according to the analysis result of the receiving device position coordinates and the actual position coordinates (xs, ys, zs) of the receiving device, compare the positioning error ws with the preset error ws0, and analyze the positioning error abnormality according to the comparison result. If ws ≤ ws0, it is determined that the positioning error is normal, otherwise, it is determined that the positioning error is abnormal.
4. The intelligent positioning method based on Bluetooth beacons according to claim 3, wherein, When the ratio of the number cy of positioning error abnormalities within the monitoring period to the number c0 of receiving device positioning within the monitoring period is less than or equal to the preset abnormal proportion α, it is determined that the positioning error status in the current monitoring period is normal, otherwise, it is determined that the positioning error status in the current monitoring period is abnormal.
5. The intelligent positioning method based on Bluetooth beacons according to claim 4, wherein Calculate the average power consumption hp of the Bluetooth beacon based on the power consumption of the Bluetooth beacon collected during the monitoring period, and calculate the fluctuation coefficient be of the Bluetooth beacon based on the power consumption of the Bluetooth beacon collected during the monitoring period; construct the power consumption coefficient gh of the Bluetooth beacon according to the average power consumption bp of the Bluetooth beacon and the fluctuation coefficient be of the Bluetooth beacon, and set gh = w1×lg(bp / YB + 1) + w2×(be / BD) 2 ; Compare the power consumption coefficient gh of the Bluetooth beacon with the preset power consumption coefficient threshold Hg. If gh ≤ Hg, it is determined that the power consumption status of the Bluetooth beacon in the current monitoring period is normal, and the power consumption index is set to 0; otherwise, it is determined that the power consumption status of the Bluetooth beacon in the current monitoring period is abnormal, and the power consumption index is set to ln[3×(gh - Hg)+1] / ln4; where, YB is the preset power consumption, BD is the preset fluctuation coefficient, w1 is the first weight, w2 is the second weight, and w1 + w2 = 1.
6. The intelligent positioning method based on a Bluetooth beacon according to claim 5, wherein Judge the abnormality of the transmit power of the Bluetooth beacon according to the transmit power of the Bluetooth beacon collected within the monitoring period, and construct a power abnormality coefficient. When the transmit power fp0 of the Bluetooth beacon is less than or equal to the preset power threshold fp1, it is determined that the transmit power of the Bluetooth beacon in the current monitoring period is normal, and the power abnormality coefficient is set to 0; otherwise, it is determined that the transmit power of the Bluetooth beacon in the current monitoring period is abnormal, and the power abnormality coefficient is set to (fp0 - fp1) / fp1; Judge the abnormality of the Bluetooth beacon battery capacity according to the collected Bluetooth beacon battery capacity, and construct a capacity abnormality coefficient. If the Bluetooth beacon battery capacity dc is less than or equal to the preset capacity dc0, it is determined that the Bluetooth beacon battery capacity is abnormal, and the capacity abnormality coefficient is set to exp[3×(dc0 - dc) / dc0 - 3]; otherwise, it is determined that the Bluetooth beacon battery capacity is normal, and the capacity abnormality coefficient is set to 0; Process the analysis process of the Bluetooth beacon power abnormality when the Bluetooth beacon battery capacity is abnormal, and set the preset power threshold after processing to fp1’, and set fp1’ = fp1×exp{-GY2}; Construct the power index GZ of the Bluetooth beacon according to the analysis results of the Bluetooth beacon transmission power abnormality and the analysis results of the Bluetooth beacon battery capacity abnormality, and set GZ = L1×capacity abnormality coefficient + L2×power abnormality coefficient, where L1 is the power abnormality weight, L2 is the capacity abnormality weight, and L1 + L2 = 1; Compare the power index GZ with the preset power state threshold GZ0. If GZ ≤ GZ0, it is determined that the power state of the Bluetooth beacon in the current monitoring period is normal, and the power state abnormality index is set to 0; otherwise, it is determined that the power state of the Bluetooth beacon in the current monitoring period is abnormal, and the power state abnormality index is set to (GZ - GZ0).
7. The intelligent positioning method based on Bluetooth beacons according to claim 6, wherein Process the analysis process of the Bluetooth beacon power state according to the Bluetooth beacon setting interval collected during the monitoring period, and compare the Bluetooth beacon setting interval jg with the preset interval jg0. If jg ≤ jg0, it is determined that the Bluetooth beacon interval state in the current monitoring period is a small interval; if jg > jg0, it is determined that the Bluetooth beacon interval state in the current monitoring period is a normal interval; When the Bluetooth beacon interval state is a small interval, set the preset power state threshold to GZ1 to process the analysis process of the Bluetooth beacon power state.
8. The intelligent positioning method based on a Bluetooth beacon according to claim 7, wherein, When the positioning error state is normal, if w1×power consumption index + w2×power state abnormality index ≤ u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T1; if w1×power consumption index + w2×power state abnormality index > u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T2; When the positioning error state is abnormal, if w1×power consumption index + w2×power state abnormality index ≤ u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T3; if w1×power consumption index + w2×power state abnormality index > u0, set the broadcast interval of the Bluetooth beacon in the next monitoring period to T4; Where, w1 is the power consumption weight, w2 is the power weight, w1 + w2 = 1, and u0 is the preset state judgment threshold.
9. An intelligent positioning device based on a Bluetooth beacon, characterized in that, Including: A data acquisition module that acquires Bluetooth beacon data and receiving device data; A distance analysis module that calculates the distance between the receiving device and the Bluetooth beacon according to the transmission power of the Bluetooth beacon and the received signal strength of the Bluetooth beacon by the receiving device; A positioning analysis module that analyzes the position coordinates of the receiving device based on the analysis results of the distance between the receiving device and the Bluetooth beacon, and judges the abnormality of the positioning error according to the position coordinates of the receiving device and the actual position coordinates of the receiving device; An error analysis module analyzes the positioning error status according to the analysis result of the positioning error abnormality within the monitoring period; A power consumption analysis module analyzes the power consumption status of the Bluetooth beacon according to the power consumption of the Bluetooth beacon collected within the monitoring period; A power analysis module analyzes the power status of the Bluetooth beacon according to the transmission power of the Bluetooth beacon, the set interval of the Bluetooth beacon, and the battery capacity of the Bluetooth beacon collected within the monitoring period; A management module manages the broadcast interval of the Bluetooth beacon in the next monitoring period according to the analysis results of the positioning error status, the power consumption status of the Bluetooth beacon, and the power status of the Bluetooth beacon within the monitoring period.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is used to control the electronic device where the computer-readable storage medium is located to execute the Bluetooth beacon-based intelligent positioning method according to any one of claims 1-8 during operation.
Citation Information
Patent Citations
Bluetooth beacon system and Bluetooth positioning method
CN109362031A
Bluetooth device and broadcast period adjustment method thereof, and computer storage medium
CN108289295A
Indoor positioning method and device, equipment and storage medium
CN113573240A
Wharf personnel three-dimensional visual monitoring system
CN113891241A
Low-power-consumption control method and system for Bluetooth beacon
CN116980834A