Method, system and device for positioning Bluetooth headset and Bluetooth headset
Through the combination of intelligent tracking Bluetooth technology and ultra-wideband technology, time difference calculation method and GPS positioning are used to solve the problem of large positioning errors of Bluetooth headphones, and the precise positioning of Bluetooth headphones and terminal devices is achieved, which significantly improves positioning accuracy and reliability.
Patent Information
- Application Number
- CN202411424438.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-01-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing Bluetooth headset positioning technology is susceptible to environmental interference due to signal strength indication, resulting in large positioning errors, making it impossible to accurately position Bluetooth headsets and terminal devices.
Using intelligent tracking Bluetooth technology and ultra-wideband (UWB) precise positioning technology, the base station generates specific address broadcasts and query data packets, and the distance estimation is performed based on the time difference calculation method. Combined with the GPS positioning function, it ensures the accuracy of the base station location information and realizes Bluetooth headsets. Accurate positioning with terminal devices.
It significantly improves the accuracy and reliability of Bluetooth headset positioning, overcomes the low-precision problems caused by environmental factors by traditional RSSI algorithms, enhances the overall performance of the system, and realizes accurate positioning between Bluetooth headsets and terminal devices.
Smart Images

Figure CN119255370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things positioning, and in particular to a method, system, device and Bluetooth headset for positioning a Bluetooth headset. Background Art
[0002] At present, Bluetooth headsets have become an indispensable part of people's daily life. It connects to mobile phones, computers and other devices through wireless Bluetooth technology, allowing users to get rid of the constraints of traditional wired headsets and enjoy a more free and convenient audio experience. With the development of technology, today's Bluetooth headsets have not only reached a satisfactory level in sound quality, but also have significantly improved in wearing comfort, battery life and intelligent functions. Some high-end models support active noise reduction technology, which can effectively isolate external noise and provide users with pure auditory enjoyment; while touch operation, voice assistant integration and other functions further enhance the convenience of use. The compact and portable design also makes Bluetooth headsets an ideal companion for sports. With its excellent performance and diverse characteristics, Bluetooth headsets are constantly driving the development of personal audio devices while meeting the needs of different users. However, the compact and lightweight design of Bluetooth headsets brings great convenience, but it is also easy to cause the problem of loss. For those users who often carry and use them frequently, they may accidentally leave the headset in a corner or drop it without knowing it. To meet this challenge, many brands have begun to introduce location tracking functions, such as using dedicated applications to help find lost items. Some products even support sound reminders, which will sound an alarm when the distance exceeds a certain range.
[0003] In the prior art, Bluetooth headset positioning all adopts RSSI positioning algorithm and system, which uses the Bluetooth wireless communication protocol of the Bluetooth headset to scan the surrounding Bluetooth devices through the terminal device, and determines the distance between the Bluetooth headset and the terminal device through the received signal strength indication RSSI. Since the signal strength indication is easily affected by environmental interference and cannot directly reflect the distance between the two devices, the traditional solution has a large error and cannot achieve accurate positioning of the Bluetooth headset and the terminal device. Summary of the invention
[0004] The present invention provides a method, system, device and Bluetooth headset for positioning a Bluetooth headset, so as to realize accurate positioning of the Bluetooth headset and a terminal device.
[0005] In a first aspect, in order to solve the above technical problem, the present invention provides a method for positioning a Bluetooth headset, comprising: Obtain a request instruction, wherein the request instruction includes the device number of the Bluetooth headset to be searched and the time when the instruction is issued; Sending a broadcast signal according to the request instruction, wherein the broadcast signal includes the broadcast sending time and the Bluetooth headset device number to be searched; Calculate a first distance between the base station and the terminal according to the broadcast sending time and the instruction sending time; Get the response signal sent by the Bluetooth headset; Obtaining a signal return time according to the response signal; Calculate a second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time; A first target distance between the Bluetooth headset and the terminal is obtained according to the first distance and the second distance.
[0006] In an optional implementation, the calculating the first distance between the base station and the terminal according to the broadcast sending time and the instruction sending time includes: in, is the first distance between the base station and the terminal, is the speed of light, a time at which said broadcast is emitted, The time when the instruction is issued.
[0007] In an optional implementation, the calculating the second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time includes: in, is the second distance between the base station and the Bluetooth headset, is the speed of light, a time at which said broadcast is emitted, is the signal return time.
[0008] In an optional implementation manner, obtaining a response signal sent by the Bluetooth headset includes: The response signal is sent by the Bluetooth headset after receiving the broadcast signal; The Bluetooth headset is a Bluetooth headset whose device number matches the Bluetooth headset device number to be searched; If the Bluetooth headset receiving the broadcast signal does not match the Bluetooth headset device number to be searched, the signal is ignored; The response signal includes the time when the Bluetooth headset sends the response signal.
[0009] In an optional implementation manner, obtaining the distance between the Bluetooth headset and the terminal according to the first distance and the second distance includes: The distance between the Bluetooth headset and the terminal is the difference between the first distance and the second distance.
[0010] In an optional implementation, after obtaining the first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance, the method further includes: The second base station obtains a request instruction; Sending a second broadcast signal according to the request instruction; Calculating a third distance between the second base station and the terminal according to the second broadcast signal; calculating a fourth distance between the second base station and the Bluetooth headset according to a second response signal of the Bluetooth headset; Calculating a second target distance according to the third distance and the fourth distance; The terminal calculates the accurate coordinates of the Bluetooth headset relative to the terminal through triangulation based on the pre-acquired base station coordinate information, the actual location information, the first target distance and the second target distance.
[0011] In an optional embodiment, the method further includes: The received power is calculated using the following formula: in, is the received power, is the maximum value of the first target distance and the second target distance, is the transmission power, is the transmit antenna gain, is the receiving antenna gain, is the system loss, is an environmental factor, affected by temperature and relative humidity Influence; The location where the received power is less than a preset threshold is defined as a blind spot, and the minimum value of the first target distance and the second target distance in the blind spot is used as the distance of the Bluetooth headset relative to the terminal.
[0012] In a second aspect, the present invention provides a system for positioning a Bluetooth headset, comprising: An instruction acquisition module is used to acquire a request instruction, wherein the request instruction includes the device number of the Bluetooth headset to be searched and the time when the instruction is issued; A broadcast signal module, used to send a broadcast signal according to the request instruction, wherein the broadcast signal includes a broadcast sending time and a Bluetooth headset device number to be searched; A first distance module, configured to calculate a first distance between a base station and a terminal according to the broadcast sending time and the instruction sending time; A response receiving module is used to obtain a response signal sent by the Bluetooth headset; A signal reading module, used for obtaining a signal return time according to the response signal; A second distance module, used for calculating a second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time; A target distance module is used to obtain a first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance.
[0013] In a third aspect, the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements any one of the above-described methods for locating a Bluetooth headset when executing the computer program.
[0014] In a fourth aspect, the present invention further provides a Bluetooth headset, which is used to communicate with the system for positioning the Bluetooth headset to achieve positioning of the Bluetooth headset.
[0015] Compared with the prior art, the present invention has the following beneficial effects: The present invention discloses a method, system, device and Bluetooth headset for positioning a Bluetooth headset. The method comprises obtaining a request instruction, wherein the request instruction comprises a Bluetooth headset device number to be searched and an instruction issuance time; issuing a broadcast signal according to the request instruction, wherein the broadcast signal comprises a broadcast issuance time and a Bluetooth headset device number to be searched; calculating a first distance between a base station and a terminal according to the broadcast issuance time and the instruction issuance time; obtaining a response signal issued by the Bluetooth headset; obtaining a signal return time according to the response signal; calculating a second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast issuance time; and obtaining a first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance. The present invention significantly improves the accuracy and reliability of Bluetooth headset positioning by combining intelligent tracking Bluetooth technology with ultra-wideband (UWB) precise positioning technology. The base station is used to generate a specific address broadcast and query data packet, and the distance is estimated based on the time difference calculation method, which not only overcomes the low accuracy problem of the traditional RSSI algorithm caused by environmental factors, but also enhances the overall performance of the system. At the same time, the base station in the scheme has a GPS positioning function, which ensures the accuracy of the base station's own location information, thereby realizing precise positioning between the Bluetooth headset and the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic flow chart of a method for locating a Bluetooth headset provided by the first embodiment of the present invention; Figure 2 It is a schematic diagram of the structure of a system for positioning a Bluetooth headset provided by the second embodiment of the present invention. DETAILED DESCRIPTION
[0017] 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] At present, Bluetooth headsets have become an indispensable part of people's daily life. It connects to mobile phones, computers and other devices through wireless Bluetooth technology, allowing users to get rid of the constraints of traditional wired headsets and enjoy a more free and convenient audio experience. With the development of technology, today's Bluetooth headsets have not only reached a satisfactory level in sound quality, but also have significantly improved in wearing comfort, battery life and intelligent functions. Some high-end models support active noise reduction technology, which can effectively isolate external noise and provide users with pure auditory enjoyment; while touch operation, voice assistant integration and other functions further enhance the convenience of use. The compact and portable design also makes Bluetooth headsets an ideal companion for sports. With its excellent performance and diverse characteristics, Bluetooth headsets are constantly driving the development of personal audio devices while meeting the needs of different users. However, the compact and lightweight design of Bluetooth headsets brings great convenience, but it is also easy to cause the problem of loss. For those users who often carry and use them frequently, they may accidentally leave the headset in a corner or drop it without knowing it. To meet this challenge, many brands have begun to introduce location tracking functions, such as using dedicated applications to help find lost items. Some products even support sound reminders, which will sound an alarm when the distance exceeds a certain range.
[0019] In the prior art, Bluetooth headset positioning all adopts RSSI positioning algorithm and system, which uses the Bluetooth wireless communication protocol of the Bluetooth headset to scan the surrounding Bluetooth devices through the terminal device, and determines the distance between the Bluetooth headset and the terminal device through the received signal strength indication RSSI. Since the signal strength indication is easily affected by environmental interference and cannot directly reflect the distance between the two devices, the traditional solution has a large error and cannot achieve accurate positioning of the Bluetooth headset and the terminal device.
[0020] Reference Figure 1 The first embodiment of the present invention provides a method for positioning a Bluetooth headset, comprising the following steps: S11, obtaining a request instruction, wherein the request instruction includes the device number of the Bluetooth headset to be searched and the time when the instruction is issued; S12, sending a broadcast signal according to the request instruction, wherein the broadcast signal includes the broadcast sending time and the Bluetooth headset device number to be searched; S13, calculating a first distance between the base station and the terminal according to the broadcast sending time and the instruction sending time; S14, obtaining a response signal sent by the Bluetooth headset; S15, obtaining a signal return time according to the response signal; S16, calculating a second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time; S17: Obtain a first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance.
[0021] In step S11, a request instruction is obtained, wherein the request instruction includes the device number of the Bluetooth headset to be searched and the time when the instruction is issued.
[0022] In one embodiment, the process of obtaining the request instruction is implemented by a smart tracking Bluetooth adapter. When the Bluetooth headset needs to be located, the terminal device sends a query data packet to the smart tracking Bluetooth adapter. This data packet contains the identification information of the terminal device and the specific Bluetooth headset MAC address requested for location. After receiving the query data packet, the base station built into the smart tracking Bluetooth adapter generates the corresponding address broadcast according to the information therein and sends these broadcast signals. At the same time, the base station also generates and sends a query data packet to the target Bluetooth headset. During the whole process, the smart tracking Bluetooth adapter is responsible for establishing a communication connection with the Bluetooth headset, processing the request instruction from the terminal device, and coordinating the data exchange between the Bluetooth headset and the terminal device to complete the acquisition of the location information of the Bluetooth headset. Furthermore, the adapter combines Bluetooth low energy (BLE) technology and ultra-wideband (UWB) technology, which work together to provide higher positioning accuracy. Among them, BLE is used to maintain a long-term stable connection and consumes extremely low power; while UWB can provide centimeter-level positioning accuracy within a short distance.
[0023] It is worth noting that the ultra-wideband technology used in the present invention is a carrier-free communication technology that uses non-sinusoidal narrow pulses in the nanosecond to picosecond range to transmit data, so the spectrum range it occupies is very wide. The traditional positioning system adopts a position estimation method based on the signal energy intensity indication. Compared with the traditional method, the ultra-wideband technology used in this method determines the position by measuring the flight time or arrival time difference of the signal, which can achieve centimeter-level positioning accuracy, which is much higher than the meter-level accuracy of the traditional RSSI method. Furthermore, due to its extremely short pulse characteristics, the signal can effectively distinguish and process multipath effects, thereby reducing positioning errors caused by reflection, refraction, etc. This is particularly evident in complex environments such as indoors or in densely populated urban areas.
[0024] In step S12, a broadcast signal is sent out according to the request instruction, and the broadcast signal includes the broadcast sending time and the Bluetooth headset device number to be searched.
[0025] It is worth noting that the smart tracking Bluetooth adapter uses ultra-wideband technology to transmit signals. The reason why the signal includes the broadcast time and the device number of the Bluetooth headset to be searched is that the broadcast time is used to calculate the flight time or arrival time difference of the signal for subsequent position calculation; and the device number of the Bluetooth headset to be searched ensures that the signal can be correctly identified and responded to by the target Bluetooth headset, thereby avoiding interference from other Bluetooth devices and improving the accuracy and efficiency of positioning.
[0026] It is worth noting that in order to avoid interference from other Bluetooth devices, the broadcast signal contains the specific MAC address of the Bluetooth headset to be searched, and uses a special encoding method to send the signal, and performs corresponding decoding at the receiving end. The purpose of this is to ensure that only the target Bluetooth headset will respond to this specific broadcast signal. Even if the non-target Bluetooth device receives the signal, it will not respond due to the mismatch of the device number, thereby reducing unnecessary communication and potential interference. Further ultra-wideband technology operates in a very wide spectrum range and uses extremely short pulses for data transmission. This feature makes the ultra-wideband signal have a lower power spectral density than the traditional narrowband Bluetooth signal, and is not easily interfered by conventional Bluetooth devices or other wireless devices. At the same time, the ultra-wideband signal can better handle the multipath effect and improve the positioning accuracy. Furthermore, by quickly switching between multiple frequencies, the interference with other fixed frequency devices can be further reduced.
[0027] In step S13, a first distance between the base station and the terminal is calculated according to the broadcast sending time and the instruction sending time.
[0028] In one implementation, the calculating the first distance between the base station and the terminal according to the broadcast issuance time and the instruction issuance time includes: in, is the first distance between the base station and the terminal, is the speed of light, a time at which said broadcast is emitted, The time when the instruction is issued.
[0029] It is worth noting that the broadcast time is recorded in the broadcast signal, which contains the timestamp of the base station sending the broadcast signal. The command signal also contains the timestamp of the terminal sending the command. By using the time difference between the two and combining the time it takes for electromagnetic waves to propagate at the speed of light, the distance between the terminal and the base station can be accurately calculated.
[0030] It is worth noting that, considering the processing time of the base station, it is necessary to subtract the processing time of the base station when calculating the time difference. This time is fixed and can be obtained by testing by changing the distance multiple times.
[0031] In step S14, a response signal sent by the Bluetooth headset is obtained.
[0032] In one embodiment, the base station in the smart tracking Bluetooth adapter is responsible for receiving the response signal sent by the Bluetooth headset. In order to ensure accurate time measurement, time synchronization is required between the base station and the Bluetooth headset. This can be accomplished through a preset synchronization protocol. The base station continuously monitors a specific frequency range, waiting for a response signal from the Bluetooth headset. Once a signal is detected, the base station immediately records the reception timestamp. The base station decodes the received signal and extracts the response information sent by the Bluetooth headset, including key data such as the timestamp when the Bluetooth headset receives the broadcast signal. If the system adopts a multi-base station design, each base station will transmit the collected data to the central processor or connect to the cloud server through the network for further processing and positioning calculations.
[0033] It is worth noting that both the base station and the Bluetooth headset are equipped with a Global Navigation Satellite System (GNSS) receiver, which can achieve initial time synchronization by receiving satellite signals. GNSS provides microsecond time accuracy. Furthermore, the base station can synchronize time with one or more reliable time servers using the Network Time Protocol. The Network Time Protocol provides free time reference services worldwide through the Internet, which can provide millisecond synchronization accuracy. Although the accuracy of the Network Time Protocol is not as high as that required by ultra-wideband, it can be used as an auxiliary synchronization method, especially to maintain approximate time consistency during initial setup and long-term operation. For networked Bluetooth headsets, the Precision Time Protocol is a high-precision time synchronization protocol defined by the IEEE 1588 standard, which is particularly suitable for industrial Ethernet environments. The Precision Time Protocol synchronizes the clock by exchanging timestamp messages in the network. The use of hardware timestamps can greatly reduce software processing time, and the synchronization accuracy can reach sub-microsecond or even tens of nanoseconds. Bluetooth headsets can achieve more accurate time synchronization through the Precision Time Protocol. In the two-way time transfer method, the base station and the Bluetooth headset send timestamp information to each other, and the clock deviation of both parties is corrected by calculating the round-trip time difference. This method can effectively eliminate the uncertainty in one-way transmission and improve synchronization accuracy.
[0034] In step S15, a signal return time is obtained according to the response signal.
[0035] In one implementation, when a Bluetooth headset receives a broadcast signal, it uses its internal clock to record the reception time. The Bluetooth headset encodes this timestamp into a response signal and sends it to the base station via ultra-wideband technology. After receiving the response signal, the base station decodes the reception time of the Bluetooth headset and records its own reception time. This encoding can be in a simple binary format.
[0036] In another embodiment, in addition to using a simple binary format for encoding the signal, there is also a specific encoding method of scrambling the timestamp sequence. This sequence is composed of a pseudo-random pulse sequence and is generated using the AES-128 encryption algorithm. The base station encodes this pseudo-random pulse sequence together with the timestamp into the broadcast signal. Each pseudo-random pulse sequence is unique and unpredictable. The base station confirms the validity of the pseudo-random pulse sequence by using the same AES-128 key and algorithm. Once the pseudo-random pulse sequence is confirmed to be valid, the base station can safely use the information in the signal to calculate the round-trip flight time of the signal.
[0037] In step S16, a second distance between the base station and the Bluetooth headset is calculated according to the signal return time and the broadcast sending time.
[0038] In one implementation, the calculating the second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time includes: in, is the second distance between the base station and the Bluetooth headset, is the speed of light, a time at which said broadcast is emitted, is the signal return time.
[0039] It is worth noting that the broadcast time is recorded in the broadcast signal, which contains the timestamp of the base station sending the broadcast signal. The response signal also contains the timestamp of the signal being returned. By using the time difference between the two and combining the time it takes for electromagnetic waves to propagate at the speed of light, the distance between the Bluetooth headset and the base station can be accurately calculated.
[0040] In step S17, the distance between the Bluetooth headset and the terminal is obtained according to the first distance and the second distance.
[0041] In one implementation, the distance between the Bluetooth headset and the terminal is the difference between the first distance and the second distance.
[0042] It is worth noting that the response signal is sent by the Bluetooth headset after receiving the broadcast signal; the Bluetooth headset is a Bluetooth headset whose device number matches the device number of the Bluetooth headset to be searched; if the Bluetooth headset that receives the broadcast signal does not match the device number of the Bluetooth headset to be searched, the signal is ignored; the response signal includes the time when the Bluetooth headset sends the response signal.
[0043] In one embodiment, the method further comprises: The received power is calculated using the following formula: in, is the received power, is the maximum value of the first target distance and the second target distance, is the transmission power, is the transmit antenna gain, is the receiving antenna gain, is the system loss, is an environmental factor, affected by temperature and relative humidity Influence; The location where the received power is less than a preset threshold is defined as a blind spot, and the minimum value of the first target distance and the second target distance in the blind spot is used as the distance of the Bluetooth headset relative to the terminal.
[0044] It is worth noting that the signal blind area in the Bluetooth headset positioning method refers to certain areas where the Bluetooth signal cannot be transmitted or received normally, resulting in the positioning system being unable to accurately determine the location of the Bluetooth headset. This situation may be caused by a variety of factors, mainly including: physical obstacles such as buildings, walls, and metal objects can block or weaken the Bluetooth signal. For example, in a large office building, heavy concrete walls may hinder signal transmission, resulting in the inability to receive Bluetooth signals in some rooms. Furthermore, when the Bluetooth signal reaches the receiver through multiple paths, such as reflection and refraction, signal interference may occur, resulting in signal distortion or delay, thereby affecting the positioning accuracy. This phenomenon is particularly evident in complex environments, such as city streets or indoor places with a large number of furniture and equipment. At the same time, as the distance increases, the Bluetooth signal strength will gradually weaken. If the Bluetooth headset is too far away from the receiving base station, the signal may become too weak to be effectively received, forming a signal blind area. Other radio signal sources, such as Wi-Fi routers, microwave ovens, other Bluetooth devices, etc., can interfere with Bluetooth signals, especially in areas with crowded spectrum. This can cause packet loss or signal instability, which in turn affects positioning accuracy. Furthermore, changes in environmental conditions can also lead to signal blind spots. For example, weather conditions, crowd density, and temporarily placed objects can all change the signal propagation characteristics.
[0045] In one implementation, a receiving power threshold and a free space path loss model are introduced, and the receiving power calculated by the receiving power model is compared with the receiving power threshold. If it is less than the preset receiving power threshold, it belongs to a signal blind area. In order to solve these signal blind area problems, more Bluetooth base stations can be deployed to improve signal coverage and redundancy and reduce blind areas; or the location of the base station can be reasonably arranged to avoid physical obstacles as much as possible and ensure that the signal can be evenly distributed; at the same time, the ultra-wideband technology used in this method can also reduce the signal blind area. For Bluetooth headsets in signal blind areas, only methods with lower accuracy can be used for positioning. For the setting of the receiving power threshold, a fixed RSSI threshold can be set based on experience or experimental data. For example, if a signal below -80 dBm is considered unreliable, -80 dBm can be set as the minimum received signal strength threshold; the threshold can also be automatically adjusted according to environmental changes. This can be achieved by analyzing the statistical characteristics of RSSI over a period of time, such as the average value and standard deviation, so as to dynamically update the threshold so that the system can better adapt to different environmental conditions. Set the time interval between two position updates. For example, the position can be updated every 5 seconds, which can maintain relatively real-time position tracking and avoid battery consumption caused by frequent updates. At the same time, a moving distance threshold is set: the location update is triggered only when the Bluetooth headset moves a certain distance. This method helps to reduce unnecessary data transmission, especially when the user is stationary. Furthermore, supervised learning or unsupervised learning algorithms are used to optimize the threshold, and the optimal threshold setting is predicted by the training model.
[0046] It is worth noting that setting anomaly detection thresholds can identify and handle abnormal situations, such as signal mutations, loss, etc. If the RSSI value changes dramatically in a short period of time and exceeds the preset change rate threshold, the system can mark the event as a potential anomaly and take corresponding measures, such as recalibration or alarming. Time threshold for continuous non-receiving of signals: Set a time threshold. If no Bluetooth signal is received after this time, it can be assumed that the headset is out of range or has failed, and the user is notified.
[0047] In order to facilitate the understanding of the present invention, some preferred embodiments of the present invention are further described below.
[0048] In one implementation, the distance between the Bluetooth headset and the terminal is the difference between the first distance and the second distance.
[0049] In another implementation, the second base station can also obtain a request instruction; send a second broadcast signal according to the request instruction; calculate the third distance between the second base station and the terminal according to the second broadcast signal; calculate the fourth distance between the second base station and the Bluetooth headset according to the second response signal of the Bluetooth headset; calculate the second target distance according to the third distance and the fourth distance; the terminal calculates the exact coordinates of the Bluetooth headset relative to the terminal through the triangulation positioning method based on the pre-acquired base station coordinate information, the actual location information, the first target distance and the second target distance.
[0050] It is worth noting that simply subtracting the second distance from the first distance does not directly give the distance from the Bluetooth headset to the terminal, except in very special and simple geometric configurations, the distance from the Bluetooth headset to the terminal can be calculated as follows: in, d is the distance from the Bluetooth headset to the terminal, is the straight-line distance from the first base station to the second base station, is the first target distance, is the second target distance. This method uses the principle of trilateral measurement, that is, the position of any point in a triangle is determined by three known side lengths. If the terminal is exactly in the center between two base stations, and the first distance and the second distance are the distances from the Bluetooth headset to each base station, then ideally, when the Bluetooth headset is directly above or below the terminal, the first distance and the second distance will be equal. When the Bluetooth headset deviates from this center position, its actual distance from the terminal can be calculated by combining the two distances and the distance between the two base stations using the Pythagorean theorem.
[0051] It is worth mentioning that trilateration is a positioning technology that determines the location of a target point by measuring the distance from the target point to three known locations. This principle is based on a basic concept in geometry: if you know the distance from a point to three fixed points, then you can uniquely determine the location of the point in space. When applying trilateration on a two-dimensional plane, assume that there are three base stations A, B, and C, and their coordinates are and , with this information we can build the equation system: The above equations represent a circle with each base station as the center and the corresponding distance as the radius. The target point D is located at the intersection of these three circles. Ideally, when there is no measurement error, the three circles will intersect exactly at one point, which is the location of the target point D. However, in practical applications, due to measurement errors, the three circles will not intersect exactly at the same point, so an optimization algorithm (such as the least squares method) is needed to find the best intersection point closest to all circles. In three-dimensional space, the principle of trilateral measurement is similar, except that now four reference points are required instead of three, because each reference point defines a sphere instead of a circle when the height coordinate system is additionally considered, and the target point is located at the intersection of these four spheres. A key advantage of trilateral measurement is that it does not require angle measurement, only distance measurement.
[0052] In summary, the present invention proposes an innovative Bluetooth headset positioning method, which aims to significantly improve the positioning accuracy between the Bluetooth headset and the terminal device to meet the needs of modern smart wearable devices for high-precision positioning. The technical solution is based on ultra-wideband (UWB) precise positioning technology and the design of an intelligent tracking Bluetooth adapter. By combining a variety of advanced technologies and algorithms, it overcomes many shortcomings in the existing Bluetooth positioning system. In terms of technical background, traditional Bluetooth positioning mainly relies on the received signal strength indication (RSSI) algorithm. Although this method is simple, it is easily affected by environmental interference, such as multipath effects and non-line-of-sight propagation, resulting in low positioning accuracy. In addition, the traditional system processes each base station separately, lacks overall coordination, and further increases the complexity of the system. In order to solve these problems, the present invention adopts UWB technology, which uses nanosecond or even shorter pulses to transmit data and has extremely high time resolution, so that centimeter-level positioning accuracy can be achieved. The core of the present invention is an intelligent tracking Bluetooth adapter, which has a built-in base station and can communicate with a Bluetooth headset and a terminal device (such as a smart phone). By measuring the time difference and distance of the signal, the position of the Bluetooth headset is calculated and determined. Specifically, the smart tracking Bluetooth adapter establishes a wireless connection with the Bluetooth headset through a broadcast signal, and obtains the time difference information between the Bluetooth headset and the terminal device by generating address broadcast and query data packets. These data packets contain key information such as device number, address and signal strength, so that the base station can accurately calculate the time difference and distance based on the responded data packet. In order to further improve the positioning accuracy, the present invention adopts a dual base station design. The two base stations are installed at both ends of the terminal device respectively. Through collaborative work, not only the signal blind area is reduced, but also the stability and accuracy of positioning are enhanced. In the data processing flow, the present invention introduces a unique formula algorithm: "distance = 1 / 2*speed*time difference". This formula allows the system to calculate the distance between the Bluetooth headset and the terminal device based on the measured time difference and speed. In addition, the base station itself is also equipped with a GPS module, which enables the location information to be further corrected through GPS positioning even in the case of weak signals or blind spots, ensuring the high reliability of the positioning results. Furthermore, the present invention takes into account the user experience, and the terminal device can directly use the positioning function without installing additional applications or connecting to Wi-Fi, which simplifies the user's operation steps. As time goes by, the system will continue to correct the distance and error, making the positioning accuracy higher and higher.
[0053] In addition to the improvements at the hardware level, the present invention also pays special attention to the design and optimization of software algorithms. By adaptively adjusting the RSSI (received signal strength indication) threshold, the system can dynamically select the best working parameters according to the current environmental conditions, so that even in areas with dense crowds or severe electromagnetic interference, it can maintain a high positioning accuracy. On this basis, a location prediction model based on machine learning is further integrated. The model can accurately predict user behavior patterns and location change trends by learning a large amount of historical data, so as to respond in advance and improve positioning efficiency. In addition, the detection of abnormal situations has also been strengthened, including setting a reasonable signal change rate threshold and a time threshold for continuous non-receiving of signals. Once the preset range is exceeded, the alarm mechanism is triggered to promptly notify the user to take corresponding measures. Further, the present invention is not limited to a single technical means, but creatively combines Bluetooth positioning with other wireless technologies to build a multi-level, highly complementary comprehensive positioning system. For example, by integrating information from different sources such as Wi-Fi fingerprint recognition, UWB ultra-wideband positioning and even satellite navigation systems, not only the positioning accuracy is improved, but also the robustness of the entire system is enhanced.
[0054] Reference Figure 2 The second embodiment of the present invention provides a system for positioning a Bluetooth headset, comprising: An instruction acquisition module is used to acquire a request instruction, wherein the request instruction includes the device number of the Bluetooth headset to be searched and the time when the instruction is issued; A broadcast signal module, used to send a broadcast signal according to the request instruction, wherein the broadcast signal includes a broadcast sending time and a Bluetooth headset device number to be searched; A first distance module, configured to calculate a first distance between a base station and a terminal according to the broadcast sending time and the instruction sending time; A response receiving module is used to obtain a response signal sent by the Bluetooth headset; A signal reading module, used for obtaining a signal return time according to the response signal; A second distance module, used for calculating a second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time; A target distance module is used to obtain a first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance.
[0055] Preferably, the instruction acquisition module is used to: Get a request instruction, where the request instruction includes the device number of the Bluetooth headset to be searched and the time when the instruction is issued.
[0056] Preferably, the broadcast signal module is used to: A broadcast signal is sent out according to the request instruction, wherein the broadcast signal includes a broadcast sending time and a Bluetooth headset device number to be searched.
[0057] Preferably, the first distance module is used for: Calculating a first distance between a base station and a terminal according to the broadcast sending time and the instruction sending time includes: in, is the first distance between the base station and the terminal, is the speed of light, a time at which said broadcast is emitted, The time when the instruction is issued.
[0058] Preferably, the response receiving module is used to: Get the response signal sent by the Bluetooth headset, including: The response signal is sent by the Bluetooth headset after receiving the broadcast signal; The Bluetooth headset is a Bluetooth headset whose device number matches the Bluetooth headset device number to be searched; If the Bluetooth headset receiving the broadcast signal does not match the Bluetooth headset device number to be searched, the signal is ignored; The response signal includes the time when the Bluetooth headset sends the response signal.
[0059] Preferably, the signal reading module is used for: A signal return time is obtained according to the response signal.
[0060] Preferably, the second distance module is used for: Calculating a second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time includes: in, is the second distance between the base station and the Bluetooth headset, is the speed of light, a time at which said broadcast is emitted, is the signal return time.
[0061] Preferably, the target distance module is used to: Obtaining a first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance includes: The distance between the Bluetooth headset and the terminal is the difference between the first distance and the second distance.
[0062] Preferably, after obtaining the first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance, the method further includes: The second base station obtains a request instruction; Sending a second broadcast signal according to the request instruction; Calculating a third distance between the second base station and the terminal according to the second broadcast signal; calculating a fourth distance between the second base station and the Bluetooth headset according to a second response signal of the Bluetooth headset; Calculating a second target distance according to the third distance and the fourth distance; The terminal calculates the accurate coordinates of the Bluetooth headset relative to the terminal through triangulation based on the pre-acquired base station coordinate information, the actual location information, the first target distance and the second target distance.
[0063] Preferably, the method further comprises: The received power is calculated using the following formula: in, is the received power, is the maximum value of the first target distance and the second target distance, is the transmission power, is the transmit antenna gain, is the receiving antenna gain, is the system loss, is an environmental factor, affected by temperature and relative humidity Influence; The location where the received power is less than a preset threshold is defined as a blind spot, and the minimum value of the first target distance and the second target distance in the blind spot is used as the distance of the Bluetooth headset relative to the terminal.
[0064] It should be noted that a system for locating a Bluetooth headset provided in an embodiment of the present invention is used to execute all the process steps of a method for locating a Bluetooth headset in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they will not be repeated here.
[0065] The embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a distance calculation program. When the processor executes the computer program, the steps in the above-mentioned method for locating a Bluetooth headset are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are realized, such as the instruction acquisition module.
[0066] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.
[0067] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or may combine certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0068] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.
[0069] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0070] Wherein, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0071] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0072] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for positioning a Bluetooth headset, characterized in that: include: Obtain a request instruction, wherein the request instruction includes the device number of the Bluetooth headset to be searched and the time when the instruction is issued; Sending a broadcast signal according to the request instruction, wherein the broadcast signal includes the broadcast sending time and the Bluetooth headset device number to be searched; Calculate a first distance between the base station and the terminal according to the broadcast sending time and the instruction sending time; Get the response signal sent by the Bluetooth headset; Obtaining a signal return time according to the response signal; Calculate a second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time; A first target distance between the Bluetooth headset and the terminal is obtained according to the first distance and the second distance.
2. The method for locating a Bluetooth headset according to claim 1, characterized in that: The calculating the first distance between the base station and the terminal according to the broadcast sending time and the instruction sending time includes: in, is the first distance between the base station and the terminal, is the speed of light, a time at which said broadcast is emitted, The time when the instruction is issued.
3. The method for locating a Bluetooth headset according to claim 1, characterized in that: The calculating the second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time includes: in, is the second distance between the base station and the Bluetooth headset, is the speed of light, a time at which said broadcast is emitted, is the signal return time.
4. The method for locating a Bluetooth headset according to claim 1, characterized in that: The step of obtaining a response signal sent by the Bluetooth headset includes: The response signal is sent by the Bluetooth headset after receiving the broadcast signal; The Bluetooth headset is a Bluetooth headset whose device number matches the Bluetooth headset device number to be searched; If the Bluetooth headset receiving the broadcast signal does not match the Bluetooth headset device number to be searched, the signal is ignored; The response signal includes the time when the Bluetooth headset sends the response signal.
5. The method for locating a Bluetooth headset according to claim 1, characterized in that: The obtaining the distance between the Bluetooth headset and the terminal according to the first distance and the second distance includes: The distance between the Bluetooth headset and the terminal is the difference between the first distance and the second distance.
6. The method for locating a Bluetooth headset according to claim 1, characterized in that: After obtaining the first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance, the method further includes: The second base station obtains a request instruction; Sending a second broadcast signal according to the request instruction; Calculating a third distance between the second base station and the terminal according to the second broadcast signal; calculating a fourth distance between the second base station and the Bluetooth headset according to a second response signal of the Bluetooth headset; Calculating a second target distance according to the third distance and the fourth distance; The terminal calculates the accurate coordinates of the Bluetooth headset relative to the terminal through triangulation based on the pre-acquired base station coordinate information, the actual location information, the first target distance and the second target distance.
7. The method for locating a Bluetooth headset according to claim 6, characterized in that: The method further comprises: The received power is calculated using the following formula: in, is the received power, is the maximum value of the first target distance and the second target distance, is the transmission power, is the transmit antenna gain, is the receiving antenna gain, is the system loss, is an environmental factor, affected by temperature and relative humidity Influence; The location where the received power is less than a preset threshold is defined as a blind spot, and the minimum value of the first target distance and the second target distance in the blind spot is used as the distance of the Bluetooth headset relative to the terminal.
8. A system for positioning a Bluetooth headset, characterized in that: include: An instruction acquisition module is used to acquire a request instruction, wherein the request instruction includes the device number of the Bluetooth headset to be searched and the time when the instruction is issued; A broadcast signal module, used to send a broadcast signal according to the request instruction, wherein the broadcast signal includes a broadcast sending time and a Bluetooth headset device number to be searched; A first distance module, configured to calculate a first distance between a base station and a terminal according to the broadcast sending time and the instruction sending time; A response receiving module is used to obtain a response signal sent by the Bluetooth headset; A signal reading module, used for obtaining a signal return time according to the response signal; A second distance module, used for calculating a second distance between the base station and the Bluetooth headset according to the signal return time and the broadcast sending time; A target distance module is used to obtain a first target distance between the Bluetooth headset and the terminal according to the first distance and the second distance.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for locating a Bluetooth headset as claimed in any one of claims 1 to 7 is implemented.
10. A Bluetooth headset, characterized in that: The Bluetooth headset is used to communicate with the system for positioning the Bluetooth headset as described in claim 8 to achieve positioning of the Bluetooth headset.
Citation Information
Patent Citations
Method and device for locating wearable device
CN105163266A
A system and method for finding a key
CN112913207A
Prompting method, electronic equipment, Bluetooth headset and computer storage medium
CN113691939A
Ranging method and system based on UWB technology
CN115529554A
Automobile key, mobile terminal and method for searching automobile key
CN116347340A
Cited By
Vehicle searching system and method based on star flash and Bluetooth technology
CN120568275A
Jumping correction method, system and device for Bluetooth ranging and medium
CN120595275A
