Bluetooth positioning method, related device, electronic device and storage medium
By sending broadcast signals in complex environments to request other electronic devices to assist in Bluetooth positioning, and combining signals from the target Bluetooth base station and other electronic devices to perform trilateral positioning, and using inertial measurement data to update position coordinates, the problem of large Bluetooth positioning errors is solved. Improved positioning accuracy.
Patent Information
- Application Number
- CN202110710072.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-25
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-06-25
AI Technical Summary
Existing Bluetooth positioning technology causes abnormal signal enhancement due to signal fading and multipath effects in complex environments, resulting in large positioning errors.
When the Bluetooth positioning conditions are not met, broadcast signals are sent to request other electronic devices to assist in positioning, and the signals sent by the target Bluetooth base station and other electronic devices are combined to perform trilateral positioning, and inertial measurement data is used to update the position coordinates to improve positioning accuracy.
It reduces the positioning error of Bluetooth positioning and improves the positioning accuracy, especially in complex environments, which effectively reduces the impact of signal fluctuations on positioning.
Smart Images

Figure CN115529549B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of Bluetooth positioning technology, and in particular to a Bluetooth positioning method, related devices, electronic equipment, and computer-readable storage medium. Background Art
[0002] With the rapid development of Bluetooth positioning technology, Bluetooth positioning technology has been widely used in electronic devices. Electronic devices can determine their own locations through Bluetooth positioning technology.
[0003] At present, the Bluetooth positioning solution used in electronic devices usually receives broadcast signals sent by multiple Bluetooth base stations, determines multiple relative distances from the Bluetooth base stations based on the received signal strength indication (RSSI) strength, and uses trilateral measurement positioning to determine its own position based on these multiple relative distances and the positions of the Bluetooth base stations.
[0004] However, in actual usage environments, such as shopping malls, railway stations, airports and hospitals, where there are many moving obstacles, the RSSI strength may be unstable due to severe signal fading or abnormal signal enhancement caused by multipath effects, resulting in large positioning errors during Bluetooth positioning. Summary of the invention
[0005] The embodiments of the present invention provide a Bluetooth positioning method, a related device, an electronic device and a computer-readable storage medium to solve the problem of relatively large positioning error in Bluetooth positioning in the prior art.
[0006] In a first aspect, an embodiment of the present invention provides a Bluetooth positioning method, which is applied to a first electronic device, and the method includes:
[0007] When the Bluetooth positioning condition is not met, sending a first broadcast signal, wherein the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device;
[0008] receiving a second broadcast signal sent by the second electronic device based on the first broadcast signal;
[0009] Bluetooth positioning is performed based on the second broadcast signal and a third broadcast signal sent by the target Bluetooth base station.
[0010] In the above solution, before sending the first broadcast signal when the Bluetooth positioning condition is not met, the method further includes:
[0011] Scanning third broadcast signals sent by M Bluetooth base stations to obtain M received signal strength indication RSSI intensity fluctuation values corresponding to the M Bluetooth base stations, the M Bluetooth base stations including the target Bluetooth base station, and M is an integer greater than 2;
[0012] When the number of target RSSI intensity fluctuation values among the M RSSI intensity fluctuation values is less than 3, determining that the first electronic device does not meet the Bluetooth positioning condition;
[0013] The target RSSI intensity fluctuation value is an RSSI intensity fluctuation value that is less than a preset threshold, and the target Bluetooth base station is a Bluetooth base station corresponding to the target RSSI intensity fluctuation value among the M Bluetooth base stations.
[0014] In the above solution, the sum of the number of the target Bluetooth base stations and the number of the second electronic devices is greater than 2, and the Bluetooth positioning based on the second broadcast signal and the third broadcast signal sent by the target Bluetooth base station includes:
[0015] Parsing the third broadcast signal to obtain a first RSSI strength value; parsing the second broadcast signal to obtain a second RSSI strength value;
[0016] Determine a first distance between the first electronic device and the target Bluetooth base station based on the first RSSI strength value; determine a second distance between the first electronic device and the second electronic device based on the second RSSI strength value;
[0017] Based on the first distance and the second distance, first position coordinates of the first electronic device are determined.
[0018] In a second aspect, an embodiment of the present invention provides a Bluetooth positioning method, which is applied to a second electronic device, and the method includes:
[0019] receiving a first broadcast signal sent by the first electronic device when a Bluetooth positioning condition is not satisfied, wherein the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device;
[0020] In response to the first broadcast signal, when the second electronic device is successfully positioned via Bluetooth, a second broadcast signal is sent, where the second broadcast signal is used by the first electronic device to perform Bluetooth positioning in combination with a third broadcast signal sent by the target Bluetooth device.
[0021] In the above solution, after the second electronic device is successfully located by Bluetooth, the method further includes:
[0022] Acquiring inertial measurement data of the second electronic device;
[0023] The inertial measurement data is sent to a positioning server, and the inertial measurement data is used to update a second position coordinate, where the second position coordinate is the Bluetooth positioning coordinate of the second electronic device in the positioning server, and the second position coordinate is used to perform Bluetooth positioning on the first electronic device in combination with the third position coordinate of the target Bluetooth device to obtain the first position coordinate of the first electronic device.
[0024] In a third aspect, an embodiment of the present invention provides a Bluetooth positioning device, applied to a first electronic device, the device comprising:
[0025] A first sending module, configured to send a first broadcast signal when a Bluetooth positioning condition is not met, wherein the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request a second electronic device to perform Bluetooth positioning on the first electronic device;
[0026] A first receiving module, configured to receive a second broadcast signal sent by the second electronic device based on the first broadcast signal;
[0027] The Bluetooth positioning module is used to perform Bluetooth positioning based on the second broadcast signal and the third broadcast signal sent by the target Bluetooth base station.
[0028] In the above solution, the device further comprises:
[0029] A scanning module, configured to scan a third broadcast signal sent by M Bluetooth base stations to obtain M received signal strength indication RSSI intensity fluctuation values corresponding to the M Bluetooth base stations, wherein the M Bluetooth base stations include the target Bluetooth base station, and M is an integer greater than 2;
[0030] a determination module, configured to determine that the first electronic device does not meet the Bluetooth positioning condition when the number of target RSSI intensity fluctuation values among the M RSSI intensity fluctuation values is less than 3;
[0031] The target RSSI intensity fluctuation value is an RSSI intensity fluctuation value that is less than a preset threshold, and the target Bluetooth base station is a Bluetooth base station corresponding to the target RSSI intensity fluctuation value among the M Bluetooth base stations.
[0032] In the above solution, the sum of the number of the target Bluetooth base stations and the number of the second electronic devices is greater than 2, and the Bluetooth positioning module is specifically used for:
[0033] Parsing the third broadcast signal to obtain a first RSSI strength value; parsing the second broadcast signal to obtain a second RSSI strength value;
[0034] Determine a first distance between the first electronic device and the target Bluetooth base station based on the first RSSI strength value; determine a second distance between the first electronic device and the second electronic device based on the second RSSI strength value;
[0035] Based on the first distance and the second distance, first position coordinates of the first electronic device are determined.
[0036] In a fourth aspect, an embodiment of the present invention provides a Bluetooth positioning device, applied to a second electronic device, the device comprising:
[0037] a second receiving module, configured to receive a first broadcast signal sent by the first electronic device when a Bluetooth positioning condition is not satisfied, wherein the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device;
[0038] The second sending module is used to send a second broadcast signal in response to the first broadcast signal when the Bluetooth positioning of the second electronic device is successful, and the second broadcast signal is used by the first electronic device to perform Bluetooth positioning in combination with a third broadcast signal sent by the target Bluetooth device.
[0039] In the above solution, the device further comprises:
[0040] An acquisition module, configured to acquire inertial measurement data of the second electronic device after the second electronic device is successfully positioned by Bluetooth;
[0041] The third sending module is used to send the inertial measurement data to the positioning server, and the inertial measurement data is used to update the second position coordinates, the second position coordinates are the Bluetooth positioning coordinates of the second electronic device in the positioning server, and the second position coordinates are used to perform Bluetooth positioning on the first electronic device in combination with the third position coordinates of the target Bluetooth device to obtain the first position coordinates of the first electronic device.
[0042] In a fifth aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the Bluetooth positioning method described in the first aspect are implemented, or the steps of the Bluetooth positioning method described in the second aspect are implemented.
[0043] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the Bluetooth positioning method described in the first aspect are implemented, or the steps of the Bluetooth positioning method described in the second aspect are implemented.
[0044] In an embodiment of the present invention, the first electronic device sends a first broadcast signal when the Bluetooth positioning condition is not met, and the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device; receive the second broadcast signal sent by the second electronic device based on the first broadcast signal; and perform Bluetooth positioning based on the second broadcast signal and the third broadcast signal sent by the target Bluetooth base station. In this way, when the first electronic device does not meet the Bluetooth positioning condition, the Bluetooth positioning of the first electronic device can be achieved by combining the broadcast signal sent by the Bluetooth base station and the broadcast signal sent by other electronic devices, thereby reducing the positioning error of the first electronic device during Bluetooth positioning and improving the accuracy of Bluetooth positioning of the first electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0046] Figure 1 This is one of the flow charts of the Bluetooth positioning method provided by an embodiment of the present invention;
[0047] Figure 2 It is a schematic diagram of the principle of three-side positioning;
[0048] Figure 3 This is a second flow chart of the Bluetooth positioning method provided by an embodiment of the present invention;
[0049] Figure 4 It is a schematic diagram of the structure of the Bluetooth positioning system;
[0050] Figure 5 It is a schematic diagram of the positioning of each terminal in the Bluetooth positioning system;
[0051] Figure 6 This is one of the structural schematic diagrams of the Bluetooth positioning device provided by an embodiment of the present invention;
[0052] Figure 7 This is a second structural diagram of a Bluetooth positioning device provided by an embodiment of the present invention;
[0053] Figure 8 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The following first describes the Bluetooth positioning method provided by an embodiment of the present invention.
[0056] It should be noted that the Bluetooth positioning method provided in the embodiment of the present invention relates to the field of Bluetooth positioning technology, which can be widely used in a Bluetooth positioning system, which can include a terminal, a Bluetooth base station and a positioning server. The method can be executed by a Bluetooth positioning device in the embodiment of the present invention. The Bluetooth positioning device can be configured in a terminal to execute the Bluetooth positioning method.
[0057] See also Figure 1 , the figure shows one of the flow charts of the Bluetooth positioning method provided by an embodiment of the present invention. The method is applied to a first electronic device, such as Figure 1 As shown, the method may include the following steps:
[0058] Step 101, sending a first broadcast signal when a Bluetooth positioning condition is not met, wherein the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request a second electronic device to perform Bluetooth positioning on the first electronic device.
[0059] In this embodiment, in some Bluetooth positioning scenarios, in order to achieve Bluetooth positioning through three-sided positioning, the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device needs to be at least three. That is to say, when the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, the first electronic device does not meet the Bluetooth positioning conditions, that is, the location coordinates of the first electronic device cannot be calculated through the broadcast signal sent by the target Bluetooth base station.
[0060] Among them, the target Bluetooth base station can be a Bluetooth base station that can send broadcast signals, that is, a Bluetooth base station with normal Bluetooth broadcast function, or it can be a Bluetooth base station corresponding to a broadcast signal with relatively stable RSSI strength among the broadcast signals scanned by the first electronic device. No specific limitation is made here.
[0061] In an optional implementation, the number of broadcast signals can be determined by scanning the broadcast signals to determine the number of available Bluetooth base stations in the surrounding area. If the number of scanned broadcast signals is less than 3, that is, the number of available Bluetooth base stations in the surrounding area is less than 3, it is determined that the first electronic device does not meet the Bluetooth positioning conditions.
[0062] In another optional implementation, due to the complexity of the actual use environment, such as complex environments with many mobile obstacles such as shopping malls, train stations, airports and hospitals, if there are obstacles between the Bluetooth base station and the first electronic device, it may cause the RSSI strength of the broadcast signal from the Bluetooth base station to the first electronic device to fluctuate, thereby making the distance calculated based on the RSSI strength inaccurate, and further making the Bluetooth positioning inaccurate.
[0063] In this case, the first electronic device can determine the Bluetooth base station corresponding to the broadcast signal with relatively stable RSSI strength among the scanned broadcast signals as the target Bluetooth base station. When the number of target Bluetooth base stations is less than 3, it can be determined that the first electronic device does not meet the Bluetooth positioning conditions.
[0064] When the Bluetooth positioning condition is not met, the first electronic device can use the integrated transceiver feature to send a first broadcast signal, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device. The second electronic device can be a terminal around the first electronic device.
[0065] The first electronic device may send a broadcast signal of type-B, i.e., a first broadcast signal, in real time or periodically, and may continue for a period of time to ensure that other surrounding electronic devices can scan the first broadcast signal. For example, the first electronic device may send the first broadcast signal at a period of 500 ms and may continue for 10 seconds.
[0066] Step 102: receiving a second broadcast signal sent by the second electronic device based on the first broadcast signal.
[0067] In this step, after receiving the first broadcast signal sent by the first electronic device, other electronic devices can send a second broadcast signal if their own conditions allow. Among the other electronic devices, the electronic device that their own conditions allow can be determined as the second electronic device.
[0068] Specifically, if other electronic devices want to assist the first electronic device in Bluetooth positioning, they themselves need to know their own location coordinates. Therefore, one of the conditions that the second electronic device needs to meet is that its location coordinates are known. In addition, the second electronic device of course also needs to have the characteristics of an integrated transmitter and receiver to receive the first broadcast signal sent by the first electronic device and send a second broadcast signal in response to the first broadcast signal.
[0069] The second broadcast signal may be different from the first broadcast signal, and is a type-C broadcast signal. The second broadcast signal is used by the first electronic device to perform Bluetooth positioning in combination with a third broadcast signal sent by the target Bluetooth base station.
[0070] The timing for the second electronic device to send the second broadcast signal can be set according to actual conditions. For example, the second broadcast signal can be sent when it is determined that its Bluetooth positioning is successful, or when it is determined that the first electronic device has finished broadcasting the type-B broadcast signal. Of course, the second broadcast signal can also be sent at other times, which is not specifically limited here.
[0071] The second broadcast signal can carry the device identification of the second electronic device, and the first electronic device can perform Bluetooth positioning according to the device identification of the second electronic device. The second broadcast signal can also carry the location coordinates of the second electronic device, and the first electronic device can perform Bluetooth positioning according to the location coordinates of the second electronic device. The specific Bluetooth positioning process will be described later.
[0072] Accordingly, when the second electronic device sends the second broadcast signal based on the first broadcast signal, the first electronic device can receive the second broadcast signal.
[0073] Step 103: Perform Bluetooth positioning based on the second broadcast signal and the third broadcast signal sent by the target Bluetooth base station.
[0074] In this step, the first electronic device can perform Bluetooth positioning in combination with the second broadcast signal and the third broadcast signal. The third broadcast signal can be a broadcast signal of type-A, and the Bluetooth base station can use the indoor positioning and navigation system ibeacon, or a private beacon broadcast method to send the third broadcast signal. Accordingly, the first electronic device can receive the third broadcast signal sent by the target Bluetooth base station.
[0075] Bluetooth positioning can be performed using three-sided positioning. When the sum of the number of target Bluetooth base stations and the number of second electronic devices is less than 3, the first electronic device can output a prompt signal to indicate that the current environment is not suitable for Bluetooth positioning.
[0076] When the sum of the number of target Bluetooth base stations and the number of second electronic devices is greater than 2, the step of performing Bluetooth positioning based on the second broadcast signal and the third broadcast signal sent by the target Bluetooth base station may include:
[0077] Parsing the third broadcast signal to obtain a first RSSI strength value; parsing the second broadcast signal to obtain a second RSSI strength value;
[0078] Determine a first distance between the first electronic device and the target Bluetooth base station based on the first RSSI strength value; determine a second distance between the first electronic device and the second electronic device based on the second RSSI strength value;
[0079] Based on the first distance and the second distance, first position coordinates of the first electronic device are determined.
[0080] Specifically, the second broadcast signal and the third broadcast signal may be analyzed respectively to obtain the RSSI strength value corresponding to the target Bluetooth base station, namely the first RSSI strength value, and the RSSI strength value corresponding to the second electronic device, namely the second RSSI strength value.
[0081] When the second broadcast signal carries the device identification of the second electronic device and the third broadcast signal carries the device identification of the target Bluetooth base station, the device identification of the second electronic device and the device identification of the target Bluetooth base station can be obtained by parsing the broadcast signal.
[0082] Based on the first RSSI strength value, a first distance between the first electronic device and the target Bluetooth base station is determined using an existing or new method. If there are multiple target Bluetooth base stations, there may be multiple first distances. Based on the second RSSI strength value, a second distance between the first electronic device and the second electronic device is determined using an existing or new method. If there are multiple second electronic devices, there may be multiple second distances.
[0083] In short, the sum of the number of first distances and the number of second distances needs to be greater than 2. Taking 3 as an example, they can be represented by d1, d2 and d3 respectively.
[0084] Afterwards, the first position coordinates of the first electronic device are determined based on the first distance and the second distance. There are many ways to determine the first position coordinates. For example, the first electronic device can calculate the first position coordinates by itself. Specifically, if the broadcast signal carries the position coordinates, the first electronic device can perform the position phase by three-sided positioning based on the first distance, the second distance, the position coordinates of the second electronic device and the position coordinates of the target Bluetooth base station to obtain the first position coordinates.
[0085] For another example, the process of solving the position of the first electronic device can be performed in the positioning server. The first electronic device can resolve the first distance, the second distance, the device identification of the second electronic device and the device identification of the target Bluetooth base station based on the broadcast signal, and send the solved information to the positioning server. The positioning server obtains the second position coordinates of the second electronic device based on the device identification of the second electronic device, obtains the third position coordinates of the target Bluetooth base station based on the device identification of the target Bluetooth base station, and then solves the position based on the first distance, the second distance, the second position coordinates and the third position coordinates to obtain the first position coordinates.
[0086] The process of position calculation is as follows:
[0087] See also Figure 2 , Figure 2 This is a schematic diagram of the principle of three-sided positioning, such as Figure 2 As shown, E, B and C are the positions of the second electronic device and the target Bluetooth base station, respectively, and their position coordinates are (x1, y1), (x2, y2) and (x3, y3), respectively. The first distance between the first electronic device and the target Bluetooth base station, and the second distance between the first electronic device and the second electronic device are d1, d2 and d3, respectively. By using the three-sided positioning method, it can be determined that the position of D is the position of the first electronic device, represented by (x, y), and this position is the position that needs to be solved.
[0088] The positioning calculation formula can be expressed as follows:
[0089]
[0090] After expansion, the position coordinates of the first electronic device can be calculated and expressed as the following formula (2):
[0091]
[0092] In this way, the second broadcast signal and the third broadcast signal can be combined to very simply calculate the position coordinates of the first electronic device by using a three-sided positioning method, thereby achieving Bluetooth positioning of the first electronic device.
[0093] In addition, if the sum of the number of second electronic devices and the number of target Bluetooth base stations is greater than 3, three devices corresponding to the RSSI strength with the smallest fluctuation (the three devices include the target Bluetooth base station and the second electronic device) can be selected to perform Bluetooth positioning on the first electronic device.
[0094] In this embodiment, the first electronic device sends a first broadcast signal when the Bluetooth positioning condition is not met, and the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device; receive the second broadcast signal sent by the second electronic device based on the first broadcast signal; and perform Bluetooth positioning based on the second broadcast signal and the third broadcast signal sent by the target Bluetooth base station. In this way, when the first electronic device does not meet the Bluetooth positioning condition, the Bluetooth positioning of the first electronic device can be achieved by combining the broadcast signal sent by the Bluetooth base station and the broadcast signal sent by other electronic devices, thereby reducing the positioning error of the first electronic device during Bluetooth positioning and improving the accuracy of Bluetooth positioning of the first electronic device.
[0095] Optionally, before sending the first broadcast signal when the Bluetooth positioning condition is not met, the method further includes:
[0096] Scanning third broadcast signals sent by M Bluetooth base stations to obtain M received signal strength indication RSSI intensity fluctuation values corresponding to the M Bluetooth base stations, the M Bluetooth base stations including the target Bluetooth base station, and M is an integer greater than 2;
[0097] When the number of target RSSI intensity fluctuation values among the M RSSI intensity fluctuation values is less than 3, determining that the first electronic device does not meet the Bluetooth positioning condition;
[0098] The target RSSI intensity fluctuation value is an RSSI intensity fluctuation value that is less than a preset threshold, and the target Bluetooth base station is a Bluetooth base station corresponding to the target RSSI intensity fluctuation value among the M Bluetooth base stations.
[0099] In this implementation manner, the first electronic device may determine whether the first electronic device meets the Bluetooth positioning condition by scanning the third broadcast signal sent by the Bluetooth base station and according to the RSSI intensity fluctuation value of the third broadcast signal.
[0100] Specifically, the first electronic device may scan the third broadcast signals sent by M Bluetooth base stations to obtain the third broadcast signals sent by each Bluetooth base station, and calculate M RSSI intensity fluctuation values corresponding to the M Bluetooth base stations. Among them, the RSSI intensity fluctuation value corresponding to a Bluetooth base station may be based on the variance value of the RSSI intensity of the third broadcast signal sent by the Bluetooth base station.
[0101] When the RSSI strength fluctuation value is relatively large and exceeds the preset threshold, i.e., the expected variance value, it means that the Bluetooth base station cannot be used for Bluetooth positioning of the first electronic device. When the RSSI strength fluctuation value is relatively small and less than the preset threshold, the Bluetooth base station corresponding to the RSSI strength fluctuation value is determined as the target Bluetooth base station. When the number of target Bluetooth base stations is less than 3, it is determined that the first electronic device does not meet the Bluetooth positioning conditions of the first electronic device.
[0102] In this embodiment, the third broadcast signal sent by M Bluetooth base stations is scanned to obtain M received signal strength indication RSSI intensity fluctuation values corresponding to the M Bluetooth base stations, and the M Bluetooth base stations include the target Bluetooth base station; when the number of target RSSI intensity fluctuation values among the M RSSI intensity fluctuation values is less than 3, it is determined that the first electronic device does not meet the Bluetooth positioning condition. In this way, it is possible to very accurately determine whether the first electronic device meets the Bluetooth positioning condition, and select a target Bluetooth base station suitable for Bluetooth positioning of the first electronic device, thereby improving the Bluetooth positioning accuracy of the first electronic device.
[0103] See also Figure 3 , the figure shows a second flow chart of the Bluetooth positioning method provided by an embodiment of the present invention. The method is applied to a second electronic device, such as Figure 3 As shown, the method may include the following steps:
[0104] Step 301, receiving a first broadcast signal sent by the first electronic device when a Bluetooth positioning condition is not met, the Bluetooth positioning condition being that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device;
[0105] Step 302, in response to the first broadcast signal, when the second electronic device is successfully positioned via Bluetooth, a second broadcast signal is sent, wherein the second broadcast signal is used by the first electronic device to perform Bluetooth positioning in combination with a third broadcast signal sent by the target Bluetooth device.
[0106] In this embodiment, the second electronic device can also use its integrated transceiver feature to receive the first broadcast signal sent by the first electronic device, and can respond to the first broadcast signal to determine whether it is allowed to assist the first electronic device in Bluetooth positioning.
[0107] The second electronic device can determine whether it is allowed to assist the first electronic device in performing Bluetooth positioning by determining whether its Bluetooth positioning is successful. Specifically, if the Bluetooth positioning is successful, the positioning server can feedback a signal, and after receiving the signal, the second electronic device can determine that its Bluetooth positioning is successful, otherwise it determines that its Bluetooth positioning is unsuccessful.
[0108] If the Bluetooth positioning is successful, the second broadcast signal can be sent, and the second broadcast signal can be sent when the first broadcast signal cannot be scanned. Accordingly, the first electronic device can receive the second broadcast signal and perform Bluetooth positioning in combination with the third broadcast signal of the target Bluetooth base station.
[0109] Optionally, after the second electronic device is successfully positioned by Bluetooth, the method further includes:
[0110] Acquiring inertial measurement data of the second electronic device;
[0111] The inertial measurement data is sent to a positioning server, and the inertial measurement data is used to update a second position coordinate, where the second position coordinate is the Bluetooth positioning coordinate of the second electronic device in the positioning server, and the second position coordinate is used to perform Bluetooth positioning on the first electronic device in combination with the third position coordinate of the target Bluetooth device to obtain the first position coordinate of the first electronic device.
[0112] In this embodiment, after the second electronic device is successfully positioned by Bluetooth, in order to ensure the accuracy of its position coordinates, it can use its inertial sensor unit (including a gyroscope and an accelerometer, etc.) to collect data during its movement and obtain inertial measurement data.
[0113] Afterwards, the Bluetooth positioning coordinates can be updated based on the inertial measurement data. If the second electronic device stores the second position coordinates, namely the Bluetooth positioning coordinates, the second electronic device can update the Kalman equation based on its inertial measurement data to update the coordinate values of the Bluetooth positioning coordinates.
[0114] The second electronic device may also send the inertial measurement data to the positioning server, and the positioning server updates the Kalman equation based on the inertial measurement data to update the coordinate value of the Bluetooth positioning coordinate.
[0115] In this way, when the position of the first electronic device is calculated, the position can be calculated based on the real-time second position coordinates, thereby improving the accuracy of the position calculation of the first electronic device and thus improving the accuracy of the Bluetooth positioning of the first electronic device.
[0116] In order to more clearly illustrate the solution of the embodiment of the present invention, a specific example is given below for illustration.
[0117] See also Figure 4 , Figure 4 It is a schematic diagram of the structure of the Bluetooth positioning system. Figure 4 As shown, the Bluetooth positioning system may include multiple Bluetooth base stations, namely Bluetooth base station 401, Bluetooth base station 402 and Bluetooth base station 403, which are marked with A, B and C, respectively fixed on the top of the three corners of the room, and broadcast beacon information outward with a period of 900ms.
[0118] There are two terminals such as mobile phones with Bluetooth broadcasting function, scanning function and inertial sensor unit, marked with a and b, which are terminal 404 and terminal 405 respectively. In the default state, the terminal only receives broadcast information, and the inertial sensor unit is turned off and no data is collected.
[0119] The movable obstacle 406 will cause the Bluetooth electromagnetic wave to attenuate, wherein there are no obstacles between the terminal 404 and the Bluetooth base stations 401, 402 and 403, there is a movable obstacle 406 between the terminal 405 and the Bluetooth base station 401, and there are no obstacles between the terminal 404 and the terminal 405.
[0120] See also Figure 5 , Figure 5 It is a schematic diagram of the positioning of each terminal in the Bluetooth positioning system, such as Figure 5 As shown, based on the above Bluetooth positioning system, the positioning steps are as follows:
[0121] When terminal 404, i.e., terminal a, performs Bluetooth positioning, it can locate the relative distance between itself and the Bluetooth base station by scanning and receiving the beacon broadcasts of Bluetooth base stations A, B, and C, and send it to the positioning server. Combined with the position coordinates of Bluetooth base stations A, B, and C pre-set by the positioning server, the positioning server uses three-sided positioning to solve the position coordinates of terminal a in the room. At this time, terminal a completes Bluetooth positioning.
[0122] After completing Bluetooth positioning, terminal a obtains the initial position coordinates of Bluetooth positioning, which can be called RSSI coordinate values. It turns on the inertial sensor unit and uses the inertial sensor unit to collect inertial measurement data. In combination with the RSSI coordinate values, the Kalman filter is used to continuously correct the inertial navigation results to obtain a dynamic and accurate coordinate value.
[0123] When terminal 405, i.e., terminal b, is performing positioning, terminal b can also receive beacon broadcasts from Bluetooth base stations A, B, and C by scanning, scan for a period of time, and calculate the variance value of the RSSI strength. Due to the presence of movable obstacle 406, the RSSI strength of the beacon broadcast from Bluetooth base station A will fluctuate greatly, exceeding the expected variance value. At this time, terminal b determines that the beacon broadcast from Bluetooth base station A cannot be used for three-sided positioning, and terminal b begins to send a positioning request broadcast, i.e., the first broadcast signal, with a period of 500 ms, and lasts for 10 seconds.
[0124] After receiving the positioning request broadcast sent by terminal b, terminal a may start sending a broadcast carrying its own device identification, ie, a second broadcast signal, 10 seconds later.
[0125] Terminal b parses the broadcasts of terminal a and Bluetooth base stations B and C, obtains the relative distance and device identification, and reports it to the positioning server.
[0126] The positioning server obtains the location coordinates of terminal a and the location coordinates of Bluetooth base stations B and C according to the device identifier, performs three-sided positioning based on the relative distance, and calculates the location coordinates of terminal b.
[0127] The Bluetooth positioning device provided by the embodiment of the present invention is described below.
[0128] See also Figure 6 , the figure shows one of the structural schematic diagrams of the Bluetooth positioning device provided by an embodiment of the present invention. The device is applied to a first electronic device, such as Figure 6 As shown, the Bluetooth positioning device 600 includes:
[0129] A first sending module 601 is used to send a first broadcast signal when a Bluetooth positioning condition is not met, where the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request a second electronic device to perform Bluetooth positioning on the first electronic device;
[0130] A first receiving module 602 is configured to receive a second broadcast signal sent by the second electronic device based on the first broadcast signal;
[0131] The Bluetooth positioning module 603 is used to perform Bluetooth positioning based on the second broadcast signal and the third broadcast signal sent by the target Bluetooth base station.
[0132] Optionally, the device further comprises:
[0133] A scanning module, configured to scan a third broadcast signal sent by M Bluetooth base stations to obtain M received signal strength indication RSSI intensity fluctuation values corresponding to the M Bluetooth base stations, wherein the M Bluetooth base stations include the target Bluetooth base station, and M is an integer greater than 2;
[0134] a determination module, configured to determine that the first electronic device does not meet the Bluetooth positioning condition when the number of target RSSI intensity fluctuation values among the M RSSI intensity fluctuation values is less than 3;
[0135] The target RSSI intensity fluctuation value is an RSSI intensity fluctuation value that is less than a preset threshold, and the target Bluetooth base station is a Bluetooth base station corresponding to the target RSSI intensity fluctuation value among the M Bluetooth base stations.
[0136] Optionally, the sum of the number of the target Bluetooth base stations and the number of the second electronic devices is greater than 2, and the Bluetooth positioning module 603 is specifically used to:
[0137] Parsing the third broadcast signal to obtain a first RSSI strength value; parsing the second broadcast signal to obtain a second RSSI strength value;
[0138] Determine a first distance between the first electronic device and the target Bluetooth base station based on the first RSSI strength value; determine a second distance between the first electronic device and the second electronic device based on the second RSSI strength value;
[0139] Based on the first distance and the second distance, first position coordinates of the first electronic device are determined.
[0140] The Bluetooth positioning device 600 can implement various processes implemented in the above-mentioned Bluetooth positioning method embodiment applied to the first electronic device, and will not be described again here to avoid repetition.
[0141] See also Figure 7 , the figure shows a second structural schematic diagram of a Bluetooth positioning device provided by an embodiment of the present invention. The device is applied to a second electronic device, such as Figure 7 As shown, the Bluetooth positioning device 700 includes:
[0142] The second receiving module 701 is used to receive a first broadcast signal sent by the first electronic device when a Bluetooth positioning condition is not met, where the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device;
[0143] The second sending module 702 is used to send a second broadcast signal in response to the first broadcast signal when the Bluetooth positioning of the second electronic device is successful, and the second broadcast signal is used by the first electronic device to perform Bluetooth positioning in combination with a third broadcast signal sent by the target Bluetooth device.
[0144] Optionally, the device further comprises:
[0145] An acquisition module, configured to acquire inertial measurement data of the second electronic device after the second electronic device is successfully positioned by Bluetooth;
[0146] The third sending module is used to send the inertial measurement data to the positioning server, and the inertial measurement data is used to update the second position coordinates, the second position coordinates are the Bluetooth positioning coordinates of the second electronic device in the positioning server, and the second position coordinates are used to perform Bluetooth positioning on the first electronic device in combination with the third position coordinates of the target Bluetooth device to obtain the first position coordinates of the first electronic device.
[0147] The Bluetooth positioning device 700 can implement each process implemented in the above-mentioned Bluetooth positioning method embodiment applied to the second electronic device, and will not be described again here to avoid repetition.
[0148] The electronic device provided by the embodiment of the present invention is described below.
[0149] See also Figure 8 , the figure shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 8 As shown, the electronic device 800 includes: a processor 801 , a memory 802 , a user interface 803 and a bus interface 804 .
[0150] The electronic device may be a first electronic device, and the processor 801 is configured to read the program in the memory 802 and execute the following process:
[0151] When the Bluetooth positioning condition is not met, sending a first broadcast signal, wherein the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device;
[0152] receiving a second broadcast signal sent by the second electronic device based on the first broadcast signal;
[0153] Bluetooth positioning is performed based on the second broadcast signal and a third broadcast signal sent by the target Bluetooth base station.
[0154] Optionally, the processor 801 is further configured to:
[0155] Scanning third broadcast signals sent by M Bluetooth base stations to obtain M received signal strength indication RSSI intensity fluctuation values corresponding to the M Bluetooth base stations, the M Bluetooth base stations including the target Bluetooth base station, and M is an integer greater than 2;
[0156] When the number of target RSSI intensity fluctuation values among the M RSSI intensity fluctuation values is less than 3, determining that the first electronic device does not meet the Bluetooth positioning condition;
[0157] The target RSSI intensity fluctuation value is an RSSI intensity fluctuation value that is less than a preset threshold, and the target Bluetooth base station is a Bluetooth base station corresponding to the target RSSI intensity fluctuation value among the M Bluetooth base stations.
[0158] Optionally, the sum of the number of the target Bluetooth base stations and the number of the second electronic devices is greater than 2, and the processor 801 is further configured to:
[0159] Parsing the third broadcast signal to obtain a first RSSI strength value; parsing the second broadcast signal to obtain a second RSSI strength value;
[0160] Determine a first distance between the first electronic device and the target Bluetooth base station based on the first RSSI strength value; determine a second distance between the first electronic device and the second electronic device based on the second RSSI strength value;
[0161] Based on the first distance and the second distance, first position coordinates of the first electronic device are determined.
[0162] The electronic device may also be a second electronic device, and the processor 801 is used to read the program in the memory 802 and execute the following process:
[0163] receiving a first broadcast signal sent by the first electronic device when a Bluetooth positioning condition is not satisfied, wherein the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device;
[0164] In response to the first broadcast signal, when the second electronic device is successfully positioned via Bluetooth, a second broadcast signal is sent, where the second broadcast signal is used by the first electronic device to perform Bluetooth positioning in combination with a third broadcast signal sent by the target Bluetooth device.
[0165] Optionally, the processor 801 is further configured to:
[0166] Acquiring inertial measurement data of the second electronic device;
[0167] The inertial measurement data is sent to a positioning server, and the inertial measurement data is used to update a second position coordinate, where the second position coordinate is the Bluetooth positioning coordinate of the second electronic device in the positioning server, and the second position coordinate is used to perform Bluetooth positioning on the first electronic device in combination with the third position coordinate of the target Bluetooth device to obtain the first position coordinate of the first electronic device.
[0168] exist Figure 8 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 801 and various circuits of memory represented by memory 802 are linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface 804 provides an interface. For different user devices, the user interface 803 may also be an interface that can be connected to external or internal devices, and the connected devices include but are not limited to keypads, displays, speakers, microphones, joysticks, etc.
[0169] The processor 801 is responsible for managing the bus architecture and general processing, and the memory 802 can store data used by the processor 801 when performing operations.
[0170] Preferably, an embodiment of the present invention further provides an electronic device, comprising a processor 801, a memory 802, and a computer program stored in the memory 802 and executable on the processor 801. When the computer program is executed by the processor 801, the computer program implements the various processes of the above-mentioned Bluetooth positioning method embodiment applied to the first electronic device, or implements the various processes of the above-mentioned Bluetooth positioning method embodiment applied to the second electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0171] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the Bluetooth positioning method embodiment applied to the first electronic device is implemented, or each process of the Bluetooth positioning method embodiment applied to the second electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0172] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0173] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0174] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0175] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0176] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0177] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0178] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A Bluetooth positioning method, characterized in that: Applied to a first electronic device, the method includes: When the Bluetooth positioning condition is not met, sending a first broadcast signal, wherein the Bluetooth positioning condition is that the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device; receiving a second broadcast signal sent by the second electronic device based on the first broadcast signal; the second electronic device is a terminal around the first electronic device; Performing Bluetooth positioning based on the second broadcast signal and a third broadcast signal sent by the target Bluetooth base station; The first broadcast signal is a broadcast signal of type-B, the second broadcast signal is a broadcast signal of type-C, the third broadcast signal is a broadcast signal of type-A, and the second broadcast signal is sent by the second electronic device after scanning the first broadcast signal and determining that the Bluetooth positioning is successful, or after scanning the first broadcast signal and determining that the first electronic device has finished broadcasting the broadcast signal of type-B.
2. The method according to claim 1, characterized in that: In the case where the Bluetooth positioning condition is not met, before sending the first broadcast signal, the method further includes: Scanning third broadcast signals sent by M Bluetooth base stations to obtain M received signal strength indication RSSI intensity fluctuation values corresponding to the M Bluetooth base stations, the M Bluetooth base stations including the target Bluetooth base station, and M is an integer greater than 2; When the number of target RSSI intensity fluctuation values among the M RSSI intensity fluctuation values is less than 3, determining that the first electronic device does not meet the Bluetooth positioning condition; The target RSSI intensity fluctuation value is an RSSI intensity fluctuation value that is less than a preset threshold, and the target Bluetooth base station is a Bluetooth base station corresponding to the target RSSI intensity fluctuation value among the M Bluetooth base stations.
3. The method according to claim 1, characterized in that The sum of the number of the target Bluetooth base stations and the number of the second electronic devices is greater than 2, and the performing Bluetooth positioning based on the second broadcast signal and the third broadcast signal sent by the target Bluetooth base station includes: Parsing the third broadcast signal to obtain a first RSSI strength value; parsing the second broadcast signal to obtain a second RSSI strength value; Determine a first distance between the first electronic device and the target Bluetooth base station based on the first RSSI strength value; determine a second distance between the first electronic device and the second electronic device based on the second RSSI strength value; Based on the first distance and the second distance, first position coordinates of the first electronic device are determined.
4. A Bluetooth positioning method, characterized in that: Applied to a second electronic device, the method includes: receiving a first broadcast signal sent by a first electronic device when a Bluetooth positioning condition is not satisfied, wherein the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device; the second electronic device is a terminal around the first electronic device; In response to the first broadcast signal, when the second electronic device is successfully positioned by Bluetooth, a second broadcast signal is sent, wherein the second broadcast signal is used by the first electronic device to perform Bluetooth positioning in combination with a third broadcast signal sent by the target Bluetooth device; The first broadcast signal is a broadcast signal of type-B, the second broadcast signal is a broadcast signal of type-C, the third broadcast signal is a broadcast signal of type-A, and the second broadcast signal is sent by the second electronic device after scanning the first broadcast signal and determining that the Bluetooth positioning is successful, or after scanning the first broadcast signal and determining that the first electronic device has finished broadcasting the broadcast signal of type-B.
5. The method according to claim 4, characterized in that After the second electronic device is successfully located via Bluetooth, the method further includes: Acquiring inertial measurement data of the second electronic device; The inertial measurement data is sent to a positioning server, and the inertial measurement data is used to update a second position coordinate, where the second position coordinate is the Bluetooth positioning coordinate of the second electronic device in the positioning server, and the second position coordinate is used to perform Bluetooth positioning on the first electronic device in combination with the third position coordinate of the target Bluetooth device to obtain the first position coordinate of the first electronic device.
6. A Bluetooth positioning device, characterized in that: Applied to a first electronic device, the device comprises: A first sending module, configured to send a first broadcast signal when a Bluetooth positioning condition is not met, wherein the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request a second electronic device to perform Bluetooth positioning on the first electronic device; A first receiving module is configured to receive a second broadcast signal sent by the second electronic device based on the first broadcast signal; the second electronic device is a terminal around the first electronic device; A Bluetooth positioning module, used for performing Bluetooth positioning based on the second broadcast signal and a third broadcast signal sent by the target Bluetooth base station; The first broadcast signal is a broadcast signal of type-B, the second broadcast signal is a broadcast signal of type-C, the third broadcast signal is a broadcast signal of type-A, and the second broadcast signal is sent by the second electronic device after scanning the first broadcast signal and determining that the Bluetooth positioning is successful, or after scanning the first broadcast signal and determining that the first electronic device has finished broadcasting the broadcast signal of type-B.
7. The device according to claim 6, characterized in that The device also includes: A scanning module, configured to scan a third broadcast signal sent by M Bluetooth base stations to obtain M received signal strength indication RSSI intensity fluctuation values corresponding to the M Bluetooth base stations, wherein the M Bluetooth base stations include the target Bluetooth base station, and M is an integer greater than 2; a determination module, configured to determine that the first electronic device does not meet the Bluetooth positioning condition when the number of target RSSI intensity fluctuation values among the M RSSI intensity fluctuation values is less than 3; The target RSSI intensity fluctuation value is an RSSI intensity fluctuation value that is less than a preset threshold, and the target Bluetooth base station is a Bluetooth base station corresponding to the target RSSI intensity fluctuation value among the M Bluetooth base stations.
8. A Bluetooth positioning device, characterized in that: Applied to a second electronic device, the device comprises: a second receiving module, configured to receive a first broadcast signal sent by a first electronic device when a Bluetooth positioning condition is not satisfied, wherein the number of target Bluetooth base stations that can be used for Bluetooth positioning of the first electronic device is less than 3, and the first broadcast signal is used to request the second electronic device to perform Bluetooth positioning on the first electronic device; the second electronic device is a terminal around the first electronic device; A second sending module is used to send a second broadcast signal in response to the first broadcast signal when the second electronic device is successfully positioned by Bluetooth, wherein the second broadcast signal is used for the first electronic device to perform Bluetooth positioning in combination with a third broadcast signal sent by the target Bluetooth device; The first broadcast signal is a broadcast signal of type-B, the second broadcast signal is a broadcast signal of type-C, the third broadcast signal is a broadcast signal of type-A, and the second broadcast signal is sent by the second electronic device after scanning the first broadcast signal and determining that the Bluetooth positioning is successful, or after scanning the first broadcast signal and determining that the first electronic device has finished broadcasting the broadcast signal of type-B.
9. An electronic device, characterized in that: The electronic device comprises: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the Bluetooth positioning method as described in any one of claims 1 to 3 are implemented, or the steps of the Bluetooth positioning method as described in any one of claims 4 to 5 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the Bluetooth positioning method according to any one of claims 1 to 3 are implemented, or the steps of the Bluetooth positioning method according to any one of claims 4 to 5 are implemented.
