Method for finding wireless earphone, electronic device and storage medium

By obtaining the RSSI value and location coordinates before and after the wireless earphone disconnects from the terminal via Bluetooth, and combining the RSSI trigger interval, the target retrieval area is calculated, which solves the problem of low retrieval efficiency after the wireless earphone is lost and realizes a more efficient retrieval process.

CN117459892BActive Publication Date: 2026-07-03JIANGXI RUISHENG ELECTRONIC CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JIANGXI RUISHENG ELECTRONIC CO LTD
Filing Date
2023-11-01
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

When wireless earphones are lost, users find it difficult to locate and retrieve them efficiently. Current technologies make the retrieval process time-consuming, labor-intensive, and inefficient.

Method used

By obtaining the RSSI value and location coordinates before and after the wireless earphone disconnects from the terminal via Bluetooth, the initial area is determined, and the target retrieval area is calculated by combining the RSSI trigger interval, thus using the terminal to assist in finding the earphone.

Benefits of technology

It improves the accuracy and efficiency of finding wireless earphones, thus enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117459892B_ABST
    Figure CN117459892B_ABST
Patent Text Reader

Abstract

This invention discloses a method, electronic device, and storage medium for retrieving wireless earphones. The method includes: acquiring a first RSS I value recorded at the moment before the wireless earphone disconnects from the terminal via Bluetooth; acquiring a first positioning coordinate recorded based on the RSS I trigger interval and a second positioning coordinate recorded at the moment the Bluetooth connection is disconnected; determining a first initial region and a second initial region based on the first RSS I value, the RSS I trigger interval, the first positioning coordinate, and the second positioning coordinate; and determining a target retrieval region based on the first initial region and the second initial region. Compared with existing technologies, this invention solves the problem of an excessively large retrieval range when using a terminal to retrieve wireless earphones, better adapting to scenarios where wireless earphones are lost, and improving the accuracy and efficiency of wireless earphone retrieval.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless earphone technology, and in particular to a method for retrieving wireless earphones, an electronic device, and a storage medium. Background Technology

[0002] With the development of Bluetooth technology, headphones can obtain and play audio signals from connected devices via Bluetooth data transmission, eliminating the need for a signal cable. However, while eliminating the signal cable improves the convenience of headphone use, it also significantly increases the probability of headphone loss.

[0003] In existing technologies, most wireless earphones do not have a positioning device or positioning component inside. When a user loses a wireless earphone, it is not possible to quickly locate and retrieve it, making the process of finding the wireless earphone both time-consuming and laborious. Some wireless earphones can use terminal assistance to achieve the function of finding the wireless earphone, but the area for locating and retrieving the wireless earphone is too large, making the process of finding the wireless earphone inefficient and troublesome.

[0004] Therefore, it is necessary to provide a method for finding wireless earphones to solve the above problems. Summary of the Invention

[0005] In view of the shortcomings of the existing technology, the present invention provides a method, electronic device and storage medium for finding wireless earphones, which aims to solve the technical problem that users cannot efficiently locate and find wireless earphones after they are lost.

[0006] To achieve the above objectives, a first aspect of the present invention provides a method for retrieving a wireless earphone, the method comprising the steps of:

[0007] Obtain the first RSS I value recorded just before the wireless earphone disconnects from the terminal via Bluetooth;

[0008] Obtain the first location coordinates recorded based on the preset RSS I trigger interval and the second location coordinates recorded when the Bluetooth connection is disconnected;

[0009] Based on the first RSS I value, the RSS I trigger interval, the first positioning coordinates and the second positioning coordinates, the first initial region and the second initial region are determined.

[0010] The target retrieval area is determined based on the first initial region and the second initial region.

[0011] In a preferred embodiment, the step of determining the first initial region and the second initial region based on the first RSS I value, the RSS I trigger interval, the first positioning coordinates, and the second positioning coordinates includes:

[0012] Based on the RSS I trigger interval, obtain the first distance value corresponding to the first positioning coordinate;

[0013] Based on the first RSS I value, the RSS I trigger interval, the first positioning coordinates and the second positioning coordinates, determine the second distance value corresponding to the second positioning coordinates;

[0014] Based on the first positioning coordinates and the first distance value, the first initial region is obtained;

[0015] Based on the second positioning coordinates and the second distance value, the second initial region is obtained.

[0016] In a preferred embodiment, the step of obtaining the first distance value corresponding to the first positioning coordinate based on the RSS I trigger interval includes:

[0017] Get the lower limit value of RSS I in the RSS I trigger interval;

[0018] Based on the lower limit of RSS I, obtain the first initial distance value;

[0019] The first distance value is obtained based on the first initial distance value and the preset first correction number.

[0020] In a preferred embodiment, the step of determining the second distance value corresponding to the second positioning coordinates based on the first RSS I value, the RSS I trigger interval, the first positioning coordinates, and the second positioning coordinates includes:

[0021] Get the upper limit value of RSS I in the RSS I trigger interval;

[0022] Determine whether the first RSS I value is greater than the upper limit of RSS I;

[0023] If so, then the first distance value will be used as the second distance value;

[0024] If not, then obtain the second distance value based on the first and second positioning coordinates.

[0025] In a preferred embodiment, the step of obtaining the second distance value based on the first positioning coordinates and the second positioning coordinates includes:

[0026] Calculate the distance between the first and second positioning coordinates to obtain the position distance;

[0027] Determine if the location distance is less than the first distance value;

[0028] If so, then the first distance value will be used as the second distance value;

[0029] If not, obtain the maximum connection distance value of the Bluetooth connection between the wireless headset and the terminal;

[0030] The second distance value is obtained based on the maximum connection distance value and the preset second correction number.

[0031] In a preferred embodiment, the step of obtaining the first positioning coordinates recorded based on a preset RSS I trigger interval and the second positioning coordinates recorded when the Bluetooth connection is disconnected includes:

[0032] Obtain the RSS I value of the Bluetooth connection between the wireless headset and the terminal;

[0033] Determine whether the RSS I value is within the RSS I trigger range;

[0034] If so, the current position coordinates of the terminal are recorded as the first positioning coordinates.

[0035] In a preferred embodiment, the step of determining the target retrieval region based on the first initial region and the second initial region includes:

[0036] Get the upper limit value of RSS I in the RSS I trigger interval;

[0037] Determine whether the first RSS I value is greater than the upper limit of RSS I;

[0038] If so, then obtain the intersection of the first initial region and the second initial region as the target retrieval region;

[0039] If not, the target retrieval area is determined based on the first distance value and the second distance value.

[0040] In a preferred embodiment, the step of determining the target retrieval area based on the first distance value and the second distance value includes:

[0041] Determine whether the second distance value is greater than the first distance value;

[0042] If so, then obtain the intersection of the first initial region and the second initial region as the target retrieval region;

[0043] If not, then obtain the difference region between the first initial region and the second initial region, as the target retrieval region.

[0044] A second aspect of the present invention provides an electronic device including a processor, a memory, and program instructions for a wireless earphone retrieval method stored in the memory and executable by the processor, wherein the program instructions, when executed by the processor, can implement the steps of the wireless earphone retrieval method described above.

[0045] A third aspect of the present invention provides a computer-readable storage medium storing a program for a method of retrieving a wireless earphone, wherein when the program for the method of retrieving a wireless earphone is executed by a processor, it can implement the steps of the wireless earphone retrieval method described above.

[0046] The beneficial effects of this invention are as follows: By using the first RSS I value at the moment before the wireless earphone loses connection with the terminal, the first positioning coordinates triggered by a specific RSS I trigger interval, and the second positioning coordinates at the moment the wireless earphone loses connection with the terminal, this invention determines a first initial area for preliminary positioning of the wireless earphone and a second initial area for further auxiliary positioning of the wireless earphone. By combining the specific circumstances of the first RSS I value, the first positioning coordinates, and the second positioning coordinates, and utilizing the positional and size relationships between the first and second initial areas, the target retrieval area can be obtained. This solves the problem of low search efficiency caused by an excessively large search range when using a terminal to retrieve wireless earphones. It can better adapt to the scenario of lost wireless earphones, improve the efficiency and accuracy of using a terminal to find wireless earphones, and improve the user experience. Attached Figure Description

[0047] Figure 1 This is a schematic diagram of the first process of the wireless earphone retrieval method according to an embodiment of the present invention;

[0048] Figure 2 This is a schematic diagram of the second process of the wireless earphone retrieval method according to an embodiment of the present invention;

[0049] Figure 3 This is a schematic diagram of the third process of the wireless earphone retrieval method according to an embodiment of the present invention;

[0050] Figure 4 This is a schematic diagram of the fourth process of the wireless earphone retrieval method according to an embodiment of the present invention;

[0051] Figure 5 This is a schematic diagram of the fifth process of the wireless earphone retrieval method according to an embodiment of the present invention;

[0052] Figure 6 This is a schematic diagram of the sixth process of the wireless earphone retrieval method according to an embodiment of the present invention;

[0053] Figure 7 This is a schematic diagram of the seventh process of the wireless earphone retrieval method according to an embodiment of the present invention;

[0054] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0055] In this invention, the terms "set up," "equipped with," and "connected" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral structure; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium, or an internal connection between two devices, elements, or components. Those skilled in the art can understand the specific meaning of these terms in this invention according to the specific circumstances.

[0056] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0057] Furthermore, in addition to indicating direction or positional relationship, some of the aforementioned terms may also have other meanings. For example, the term "above" may also be used in certain situations to indicate a dependency or connection. Those skilled in the art can understand the specific meaning of these terms in this invention based on the specific circumstances.

[0058] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0059] With the rapid development of electronic technology, wireless headphones have become increasingly versatile. The emergence of wireless headphones has improved the convenience of using headphones for users. However, due to the small size of the wireless headphones and the absence of wires, they are prone to being lost or forgotten during use. Moreover, existing wireless headphones usually do not have a positioning device, making it difficult for users to find lost wireless headphones. When using a terminal to assist in finding wireless headphones, the search area is too large, resulting in a poor user experience.

[0060] This invention provides a method, electronic device, and storage medium for finding wireless earphones. It solves the problem that the search range for wireless earphones is too large when using a terminal to find them, resulting in low search efficiency. It can adapt to various situations when wireless earphones are lost, improves the efficiency and accuracy of finding wireless earphones using a terminal, and enhances the user experience.

[0061] The wireless earphone assembly includes the wireless earphones and the charging case. Compared to the charging case, wireless earphones are more prone to loss due to their smaller size and weight. During use, users sometimes remove the earphones and leave them elsewhere, such as during or after exercise, without returning them to the charging case. In these scenarios, the earphones are easily lost. However, in such cases, if the earphones are lost, they will remain connected to the device until the maximum connection distance is exceeded. Therefore, the device's location function can be used to obtain relevant parameters for locating the earphones, thus assisting in their recovery.

[0062] The following is the content of the first aspect of the present invention:

[0063] Please refer to Figure 1 In this embodiment, the steps of the method for retrieving wireless earphones include:

[0064] S1. Obtain the first RSS I value recorded just before the wireless earphone disconnects from the terminal via Bluetooth.

[0065] S2. Obtain the first positioning coordinates recorded based on the preset RSS I trigger interval and the second positioning coordinates recorded when the Bluetooth connection is disconnected;

[0066] The first RSS I value is approximately equivalent to the RSS I value when the wireless headset disconnects from the terminal via Bluetooth, and can be used to estimate the distance between the wireless headset and the terminal when the Bluetooth connection is disconnected. The RSS I trigger interval is the interval used to determine whether to trigger the recording of the first positioning coordinate. The first positioning coordinate is the current positioning coordinate of the terminal that is triggered and recorded when it is determined that the RSS I value of the Bluetooth connection between the wireless headset and the terminal is within the RSS I trigger interval. The second positioning coordinate is the current positioning coordinate of the terminal that is triggered and recorded when the wireless headset disconnects from the terminal via Bluetooth. The terminal can be an electronic device with a built-in positioning device or positioning function, such as a mobile phone, tablet, or smartwatch, and is not limited here.

[0067] It's easy to understand that the RSS I value of the Bluetooth connection between the wireless earphone and the terminal can reflect the connection distance between them to some extent. By observing changes in the RSS I value, the change in the connection distance between the wireless earphone and the terminal can be roughly estimated. Therefore, based on the actual design requirements, the RSS I value corresponding to the relevant distance can be selected to set the corresponding RSS I trigger range. When the RSS I value of the Bluetooth connection between the wireless earphone and the terminal is detected to be within this RSS I trigger range, it indicates that the distance between the wireless earphone and the terminal is within the distance range corresponding to this RSS I trigger range. This will trigger the recording of the terminal's current location coordinates, which will be used as relevant data for subsequent terminal-assisted retrieval of the wireless earphone.

[0068] The wireless headset may disconnect from the terminal via Bluetooth if either the wireless headset or the terminal actively disconnects the connection, or if the wireless headset is lost or dropped and the user is carrying the terminal beyond the maximum range between the two devices. In other words, the Bluetooth connection between the wireless headset and the terminal is lost due to distance. Therefore, the first RSS I value just before the wireless headset disconnects from the terminal can reflect the method of disconnection to some extent.

[0069] S3. Based on the first RSS I value, the RSS I trigger interval, the first positioning coordinates and the second positioning coordinates, determine the first initial region and the second initial region;

[0070] S4. Determine the target retrieval area based on the first initial region and the second initial region.

[0071] The first initial region is the area used for initial positioning of the wireless earphone, and the second initial region is the area used for further auxiliary positioning of the wireless earphone. To better reflect the approximate shape of the actual connection range between the wireless earphone and the terminal, both the first initial region and the second initial region are circular areas.

[0072] The Bluetooth connection range of existing wireless earbuds is typically around 10 meters. This means that after a Bluetooth connection is established between the device and the earbuds, either device can move within a circular area centered on the other while maintaining the connection. Even if the earbuds are lost, the device can still maintain a connection within this circular area until the user moves the device beyond the Bluetooth connection range or the user actively disconnects the connection. Therefore, the device's location function can be used to assist in finding the earbuds. It is understandable that by using the first RSS I value, the RSS I trigger interval, and the specific details of the first and second location coordinates, the distance between the first and second initial areas can be determined, thus allowing the acquisition of the first and second initial areas.

[0073] It is understandable that when the wireless earphone is lost, the terminal will still maintain the Bluetooth connection state within the connectable range centered on the wireless earphone. However, since the recording trigger methods of the first positioning coordinate and the second positioning coordinate are different, there are multiple different positional relationships between the first positioning coordinate and the second positioning coordinate. Furthermore, there are multiple possible range distances between the first initial area and the second initial area, which in turn leads to different positional and size relationships between the first initial area and the second initial area.

[0074] Based on the role of the first initial region in initially locating the retrieval range of the wireless earphone and the role of the second initial region in further assisting in locating the retrieval range, the positional and size relationships between the first and second initial regions can be combined to obtain the intersection or difference region between the first and second initial regions. This allows for the determination of the target retrieval area where the wireless earphone is located, thereby eliminating a large number of invalid areas. This solves the problem of an excessively large retrieval range for wireless earphones when no positioning device is installed inside the earphone, improving the accuracy and efficiency of wireless earphone retrieval and thus enhancing the user experience.

[0075] For further details, please refer to... Figure 2 In this embodiment, step S3, which determines the first initial region and the second initial region based on the first RSS I value, the RSS I trigger interval, the first positioning coordinates, and the second positioning coordinates, includes:

[0076] S31. Based on the RSS I trigger interval, obtain the first distance value corresponding to the first positioning coordinate;

[0077] S32. Based on the first RSSI value, the RSSI trigger interval, the first positioning coordinates and the second positioning coordinates, determine the second distance value corresponding to the second positioning coordinates;

[0078] S33. Based on the first positioning coordinates and the first distance value, obtain the first initial region;

[0079] S34. Based on the second positioning coordinates and the second distance value, the second initial region is obtained.

[0080] The first distance value and the second distance value are parameters used to determine the size of the first initial area and the second initial area, respectively. It can be understood that the conditions for triggering the recording of the first positioning coordinate and the second positioning coordinate are different, and the first positioning coordinate and the second positioning coordinate are used to determine different areas. That is, the first positioning coordinate and the second positioning coordinate are of different types. Therefore, the methods for obtaining the first distance value and the second distance value are also different, so as to better determine the size of the subsequent area and avoid the situation that the area of ​​the target retrieval area obtained later is too large, so as to ensure the accuracy and efficiency of wireless earphone retrieval.

[0081] Furthermore, the first positioning coordinate is triggered for recording based on the RSSI trigger interval. Therefore, the first distance value corresponding to the first positioning coordinate needs to be obtained in conjunction with the parameters of the RSSI trigger interval. For details, please refer to [link / reference needed]. Figure 3 In this embodiment, step S31, which obtains the first distance value corresponding to the first positioning coordinate based on the RSSI trigger interval, includes:

[0082] S311. Obtain the lower limit value of RSSI in the RSS I trigger interval;

[0083] S312. Based on the lower limit of RSS I, obtain the first initial distance value;

[0084] S313. Obtain the first distance value based on the first initial distance value and the preset first correction number.

[0085] The first initial distance value is a value calculated using the RSSI lower limit and the connection distance formula; the first correction number is a positive number used to correct the first initial distance value to ensure that the obtained first distance value is greater than the actual connection distance between the wireless headset and the terminal at that time.

[0086] Specifically, the RSSI value is calculated using the formula relating the connection distance between the wireless headset and the terminal. The formula for calculating the connection distance is d = 10^((abs(RSSI)-A) / (10*n)), where d is the connection distance, i.e., the first initial distance value, A is the RSSI value when the connection distance between the terminal and the wireless headset is 1m, and n is the environmental attenuation factor.

[0087] The first correction factor can be in the range of [0.5, 1.5], preferably 1. After obtaining the first initial distance value based on the RSS I trigger interval, the first distance value can be obtained by calculating the sum of the first initial distance value and the first correction factor. It is easy to understand that the first distance value can also be calculated using a coefficient correction method. After obtaining the first initial distance value, the corresponding correction coefficient can be obtained to correct the first initial distance value, thereby obtaining the first distance value.

[0088] It is understood that the wireless earphone retrieval method provided in this embodiment utilizes the RSSI value and disconnection status to trigger the recording of the terminal's location coordinates, thereby enabling the terminal to assist in retrieval of the wireless earphone. To ensure that the first distance value is greater than the actual connection distance between the wireless earphone and the terminal, to address the actual usage scenarios of the wireless earphone, and to ensure that the wireless earphone is within the first initial area, the first initial distance value obtained based on the lower limit of the RSS I trigger interval needs to be corrected, thereby improving the accuracy of retrieval of the wireless earphone.

[0089] Furthermore, the first initial region is used for the initial positioning of the wireless earphone, and the second initial region is used for further assisting in the positioning of the wireless earphone. That is, the second initial region is used to reduce the invalid areas in the first initial region in order to reduce the size of the wireless earphone retrieval area. The size of the second initial region will affect the reduction effect of the second initial region on the first initial region. The size of the second initial region is also affected by the second distance value. Therefore, the acquisition of the second distance value needs to combine multiple parameter information to ensure the subsequent reduction effect on the size of the first initial region.

[0090] For details, please refer to Figure 4 In this embodiment, step S32, which determines the second distance value corresponding to the second positioning coordinate based on the first RSSI value, the RSSI trigger interval, the first positioning coordinate, and the second positioning coordinate, includes:

[0091] S321. Obtain the upper limit value of RSSI in the RSS I trigger interval;

[0092] S322. Determine whether the first RSS I value is greater than the upper limit value of RSSI;

[0093] S323. If so, then the first distance value is used as the second distance value;

[0094] S324. If not, then obtain the second distance value based on the first positioning coordinate and the second positioning coordinate.

[0095] It is understandable that the first RSSI value can be approximately equivalent to the RSS I value when the wireless headset disconnects from the terminal via Bluetooth. By determining the relationship between the first RSSI value and the upper limit of RSSI, the relationship between the distance between the wireless headset and the terminal when the Bluetooth connection is disconnected and the distance corresponding to the upper limit of RSSI can be obtained.

[0096] Specifically, when the first RSSI value is greater than the upper limit of RSSI, it means that when the wireless headset is disconnected from the terminal, the connection distance between the wireless headset and the terminal is less than the distance corresponding to the upper limit of RSSI. That is, the terminal is located within a circular area with the wireless headset as the center and the connection distance corresponding to the upper limit of RSSI as the radius. When the first RSSI value is less than or equal to the upper limit of RSSI, it means that when the wireless headset is disconnected from the terminal, the connection distance between the wireless headset and the terminal is greater than or equal to the distance corresponding to the upper limit of RSSI. That is, the terminal is located outside the circular area with the wireless headset as the center and the connection distance corresponding to the upper limit of RSSI as the radius.

[0097] Based on the upper limit of RSS I and the first correction factor, a first distance value can be obtained to confirm the first initial region. If the first RSS I value is determined to be greater than the upper limit of RSS I, it can be used as the second distance value to simplify calculations. If the first RSS I value is determined to be no greater than the upper limit of RSS I, the positional relationship between the first and second positioning coordinates needs to be further considered to determine the second distance value, ensuring the accuracy and applicability of the obtained second distance value.

[0098] For further details, please refer to... Figure 5 In this embodiment, step S324, which obtains the second distance value based on the first positioning coordinates and the second positioning coordinates, includes:

[0099] S3241. Calculate the distance between the first positioning coordinate and the second positioning coordinate to obtain the position distance;

[0100] S3242. Determine whether the location distance is less than the first distance value;

[0101] S3243. If so, then the first distance value is used as the second distance value;

[0102] S3244. If not, obtain the maximum connection distance value of the Bluetooth connection between the wireless headset and the terminal;

[0103] S3245. Based on the maximum connection distance value and the preset second correction number, obtain the second distance value.

[0104] The location distance is the distance between the first and second positioning coordinates, which can be calculated using the formula for the distance between two points. The parameters related to the maximum connection distance vary between different wireless headphones, and this value can be set according to the actual product. The second correction factor is a positive number used to adjust the maximum connection distance value.

[0105] It is easy to understand that by determining the relationship between the position distance and the first distance value, the positional relationship between the first and second positioning coordinates can be determined. When the position distance is less than the first distance value, it means that the second positioning coordinate is within the first initial area, and the distance between the first and second positioning coordinates is relatively close. When the position distance is not less than the first distance value, it means that the second positioning coordinate is not within the first initial area, and the distance between the first and second positioning coordinates is relatively far. Since there are different situations in the positional relationship between the first and second positioning coordinates, the method of obtaining the second distance value needs to be determined according to different situations.

[0106] Specifically, when the location distance is determined to be less than the first distance value, meaning the positions of the first and second positioning coordinates are relatively close, the second distance value is selected as the first distance value to better reduce the invalid area in the first initial region. When the current location distance is determined to be not less than the first distance value, meaning the distance between the first and second positioning coordinates is relatively far, the second distance value should be obtained by adjusting the maximum connection distance value to better reduce the invalid area in the first initial region.

[0107] The second correction factor can be in the range of [0.5, 1.5], and can be selected according to the actual design requirements. Preferably, the second correction factor can be 1. After obtaining the maximum connection distance value, the second distance value can be obtained by calculating the sum of the maximum connection distance value and the second correction factor. It is easy to understand that the second distance value can also be calculated using a coefficient correction method. After obtaining the maximum connection distance value, the corresponding correction coefficient can be obtained to correct the maximum connection distance value, thereby obtaining the second distance value.

[0108] For further details, please refer to... Figure 6 In this embodiment, step S4, which determines the target retrieval area based on the first initial region and the second initial region, includes:

[0109] S41. Obtain the upper limit value of RSSI in the RSS I trigger interval;

[0110] S42. Determine whether the first RSSI value is greater than the RSSI upper limit value;

[0111] S43. If so, then obtain the intersection area of ​​the first initial region and the second initial region as the target retrieval region;

[0112] S44. If not, determine the target retrieval area based on the first distance value and the second distance value.

[0113] Understandably, the first RSSI value can reflect the distance between the wireless earphone and the terminal when the Bluetooth connection is disconnected. When the first RSSI value is greater than the upper limit of RSSI, it means that when the wireless earphone and the terminal are disconnected, the connection distance between them is less than the distance corresponding to the upper limit of RSSI. The terminal is located within a circular area centered on the wireless earphone and with the connection distance corresponding to the upper limit of RSSI as the radius. In other words, the second positioning coordinates of the second initial area are closer to the wireless earphone than the first positioning coordinates of the first initial area. By obtaining the intersection area of ​​the first and second initial areas as the target retrieval area, the invalid area in the first initial area can be better reduced, thereby improving the efficiency and accuracy of wireless earphone retrieval and adapting to situations where the user actively disconnects the Bluetooth connection between the wireless earphone and the terminal.

[0114] When the first RSSI value is determined to be no greater than the upper limit of RSSI, further segmentation is needed based on the scenario of the lost wireless earphone. Therefore, it is necessary to combine the first distance value and the second distance value to determine the target retrieval area. For further details, please refer to... Figure 7 In this embodiment, step S44, which determines the target retrieval area based on the first distance value and the second distance value, includes:

[0115] S441. Determine whether the second distance value is greater than the first distance value;

[0116] S442. If so, then obtain the intersection area of ​​the first initial region and the second initial region as the target retrieval region;

[0117] S443. If not, then obtain the difference region between the first initial region and the second initial region as the target retrieval region.

[0118] The second distance value is determined based on the first RSS I value, the RSS I trigger interval, the first positioning coordinate, and the second positioning coordinate.

[0119] Specifically, when the first RSS I value is greater than the upper limit of the RSS I triggering interval, the first distance value is used as the second distance value. When the first RSS I value is not greater than the upper limit of the RSS I triggering interval, the second distance value is determined based on the positional relationship between the first positioning coordinate and the second positioning coordinate. When the positions between the first positioning coordinate and the second positioning coordinate are relatively close, the first distance value can be used as the second distance value. When the positions between the first positioning coordinate and the second positioning coordinate are relatively far apart, the second distance value can be obtained by correcting the maximum connection distance value.

[0120] Furthermore, since the first initial region and the second initial region are obtained based on the first positioning coordinates and the first distance value, and the second positioning coordinates and the second distance value, respectively, determining the relationship between the first distance value and the second distance value can, to some extent, reflect the positional and size relationships between the first and second initial regions. When determining the target retrieval area, the first and second initial regions play different roles, and the size of the target retrieval area is influenced by the positional and size relationships between them. It can be understood that the core of using the first and second initial regions to determine the target retrieval area lies in initially determining the approximate area where the wireless earphone is located using the first initial region, and then reducing the range of the first initial region using the second initial region to obtain a relatively smaller target retrieval area.

[0121] When the second distance value is determined to be greater than the first distance value, the area of ​​the second initial region is greater than the first initial region. Since the wireless earphones are all located within the first initial region and the second initial region, the intersection area of ​​the first initial region and the second initial region can be used as the target retrieval area to reduce the area of ​​the wireless earphone retrieval range.

[0122] When the first distance value is used as the second distance value, it can be determined that the second distance value is not greater than the first distance value. The positions between the first positioning coordinates and the second positioning coordinates are relatively close. In order to better reduce the invalid area in the first initial area, the difference area between the first initial area and the second initial area should be used as the target retrieval area to reduce the area of ​​wireless earphone retrieval.

[0123] Furthermore, in this embodiment, before steps S1 and S2 of the wireless earphone retrieval method, the method further includes:

[0124] Obtain the RSS I value of the Bluetooth connection between the wireless headset and the terminal;

[0125] Determine whether the RSS I value is within the RSS I trigger range;

[0126] If so, then the current position coordinates of the terminal will be recorded as the first positioning coordinates.

[0127] The range of the RSS I trigger interval can be set according to the actual design requirements. After each acquisition of the RSS I value of the Bluetooth connection between the wireless headset and the terminal, the first RSS I value is updated to this RSS I value.

[0128] Understandably, after obtaining the RSS I value of the Bluetooth connection between the wireless headset and the terminal, determining whether the RSS I value falls within the RSS I trigger range before deciding whether to trigger the recording of the terminal's current location coordinates can effectively reduce the frequent recording of the terminal's current location coordinates and reduce the data storage usage.

[0129] The range of the RSS I trigger interval can be selected and set according to the connection distance between the wireless headset and the terminal. The range of selectable connection distance nodes is 50% to 80% of the maximum connection distance value of the Bluetooth connection between the wireless headset and the terminal. In a preferred embodiment, the RSS I values ​​corresponding to 50% and 60% of the maximum connection distance value between the wireless headset and the terminal are selected as the upper limit and lower limit of the RSS I trigger interval, respectively.

[0130] Understandably, during normal use of wireless earbuds, the distance between the earbuds and the device is usually not too far. When the RSS I value of the Bluetooth connection between the device and the earbuds falls within the RSS I trigger range, it indicates that the connection distance between the earbuds and the device has exceeded half of the maximum connection distance. This suggests a potential disconnection, meaning the earbuds may have been lost. Therefore, recording the device's current location coordinates can be triggered at this point. By setting the RSS I trigger range, the frequent recording of the device's current location coordinates during earbud use can be effectively reduced, making the entire triggering process more consistent with the actual process after the earbuds are lost.

[0131] Furthermore, in this embodiment, before the step of obtaining the second positioning coordinates recorded when the wireless headset disconnects from the terminal via Bluetooth, the method further includes:

[0132] Determine whether the Bluetooth connection between the wireless headset and the terminal has been lost;

[0133] If so, obtain the current location coordinates of the terminal and record them as the second location coordinates.

[0134] Specifically, during the use of wireless earphones, there may be instances where the user actively disconnects the Bluetooth connection between the terminal and the wireless earphones multiple times or exceeds the Bluetooth connection range multiple times. Therefore, when recording the second positioning coordinates, several second positioning coordinates can be recorded. After the wireless earphone retrieval command is triggered, the most up-to-date item is selected from several second positioning coordinates as the relevant parameters used by the wireless earphone retrieval method. Preferably, an update and replacement method can also be adopted, where the second positioning coordinates are replaced each time it is determined that the terminal and the wireless earphones have disconnected the Bluetooth connection.

[0135] Furthermore, before triggering the recording of the first positioning coordinates, it is necessary to obtain the RSS I value of the Bluetooth connection between the terminal and the wireless headset in real time. Therefore, when it is determined that the RSS I value of the Bluetooth connection between the terminal and the wireless headset falls within the preset RSSI trigger range, a prompt will be output to the user that the wireless headset and the terminal are about to disconnect and the wireless headset may be lost.

[0136] In one embodiment, after determining that the RSS I value is within the preset RSS I trigger range, the method further includes: the terminal outputting a first prompt message to remind the user.

[0137] The first prompt can be a voice prompt, a vibration prompt, or a pop-up notification, which can be selected and set individually or in combination according to actual needs. It's easy to understand that when the RSS I value of the Bluetooth connection between the terminal and the wireless headset is detected to be within the RSS I trigger range, it indicates that the wireless headset is about to disconnect. Therefore, the terminal can output a relevant prompt to remind the user and prevent the wireless headset from being lost or forgotten.

[0138] To further improve the efficiency of retrieving wireless earphones, in one embodiment, after the step of obtaining the target retrieval area, the method further includes:

[0139] Once the terminal is located in the target retrieval area, it connects to the wireless headset.

[0140] The terminal controls the wireless earphone to send a second prompt message.

[0141] Once the terminal is within the target retrieval area, it can send a pairing request to the wireless earphone. If the wireless earphone has sufficient battery power, the terminal can establish a Bluetooth connection with the earphone. The second prompt can be an audio prompt or a flashing indicator light, which can be configured according to actual design requirements.

[0142] It is easy to understand that when searching for wireless earphones in the target retrieval area, there may be situations where the wireless earphones are covered by objects or the ambient light in the target retrieval area is dim, making the wireless earphones difficult to find. By connecting the wireless earphones to the terminal and then controlling the wireless earphones to output a second prompt message, users can find the wireless earphones in the target retrieval area more quickly, thereby improving the efficiency of wireless earphone retrieval.

[0143] Furthermore, to improve the user experience, in one embodiment, the step of obtaining the RSS I value of the Bluetooth connection between the wireless headset and the terminal includes:

[0144] Determine if the wireless earphone is in location recording mode;

[0145] If so, obtain the RSSI value of the Bluetooth connection between the wireless headset and the terminal.

[0146] Understandably, once the location recording mode is detected to be activated by the wireless earbuds, the RSSI value of the Bluetooth connection between the device and the earbuds can be obtained to determine whether to trigger the recording of the device's current location coordinates. If location recording mode is not activated, the recording of the device's location coordinates will not be triggered, which can save power consumption to some extent. Users can control the activation and deactivation of location recording mode according to their own needs, thereby improving the user experience.

[0147] In summary, this invention determines a first initial area for preliminary location of the wireless earphone and a second initial area for further auxiliary location by using the first RSSI value at the moment before the wireless earphone loses connection with the terminal, the first positioning coordinates triggered by a specific RSSI trigger interval, and the second positioning coordinates at the moment the wireless earphone loses connection with the terminal. By combining the first RSSI value, the first positioning coordinates, and the second positioning coordinates, and utilizing the positional relationship between the first and second initial areas, the target retrieval area can be obtained. This solves the problem of low search efficiency due to an excessively large search area when using a terminal to retrieve wireless earphones. It is better suited to scenarios where wireless earphones are lost, improves the efficiency and accuracy of retrieval using a terminal, and enhances the user experience.

[0148] The following is the content of the second aspect of the present invention:

[0149] This invention provides an electronic device, such as... Figure 8 As shown, the electronic device includes a memory 10, a processor 20, and a wireless earphone retrieval method program instruction 30 stored in the memory 10 and executable on the processor 20. When the wireless earphone retrieval method program instruction 30 is executed by the processor 20, the aforementioned wireless earphone retrieval method is implemented.

[0150] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor is typically used to control the overall operation of the headphones. In this embodiment, the processor is used to run program code stored in a readable storage medium or to process data.

[0151] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of the various embodiments of the present invention.

[0152] The following is the content of the third aspect of the present invention:

[0153] The present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described method for retrieving wireless earphones.

[0154] The above are merely specific embodiments of this application. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for retrieving wireless earphones, characterized in that, include: Obtain the first RSSI value recorded just before the wireless earphone disconnects from the terminal via Bluetooth; Obtain the first positioning coordinates recorded based on the preset RSSI trigger range and the second positioning coordinates recorded when the Bluetooth connection is disconnected; Based on the first RSSI value, the RSSI trigger interval, the first positioning coordinates and the second positioning coordinates, a first initial region and a second initial region are determined. The target retrieval area is determined based on the first initial region and the second initial region; The step of determining the first initial region and the second initial region based on the first RSSI value, the RSSI trigger interval, the first positioning coordinates, and the second positioning coordinates includes: Based on the RSSI trigger interval, obtain the first distance value corresponding to the first positioning coordinate; Based on the first RSSI value, the RSSI trigger interval, the first positioning coordinates, and the second positioning coordinates, determine the second distance value corresponding to the second positioning coordinates; Based on the first positioning coordinates and the first distance value, the first initial area is obtained; Based on the second positioning coordinates and the second distance value, the second initial area is obtained; The step of determining the second distance value corresponding to the second positioning coordinate based on the first RSSI value, the RSSI trigger interval, the first positioning coordinate, and the second positioning coordinate includes: Obtain the upper limit value of RSSI in the RSSI trigger interval; Determine whether the first RSSI value is greater than the RSSI upper limit value; If so, then the first distance value is used as the second distance value; If not, then the second distance value is obtained based on the first positioning coordinates and the second positioning coordinates.

2. The method for retrieving wireless earphones according to claim 1, characterized in that, The step of obtaining the first distance value corresponding to the first positioning coordinate based on the RSSI trigger interval includes: Obtain the lower limit value of RSSI in the RSSI trigger interval; Based on the RSSI lower limit value, obtain the first initial distance value; The first distance value is obtained based on the first initial distance value and the preset first correction number.

3. The method for retrieving wireless earphones according to claim 1, characterized in that, The step of obtaining the second distance value based on the first positioning coordinates and the second positioning coordinates includes: Calculate the distance between the first positioning coordinate and the second positioning coordinate to obtain the position distance; Determine whether the location distance is less than the first distance value; If so, then the first distance value is used as the second distance value; If not, obtain the maximum connection distance value of the Bluetooth connection between the wireless headset and the terminal; The second distance value is obtained based on the maximum connection distance value and the preset second correction number.

4. The method for retrieving a wireless earphone according to claim 1, characterized in that, The step of obtaining the first positioning coordinates recorded based on the preset RSSI trigger range and the second positioning coordinates recorded when the Bluetooth connection is disconnected includes the following: Obtain the RSSI value of the Bluetooth connection between the wireless earphone and the terminal; Determine whether the RSSI value is within the RSSI trigger range; If so, the current position coordinates of the terminal are recorded as the first positioning coordinates.

5. The method for retrieving wireless earphones according to claim 1, characterized in that, The step of determining the target retrieval area based on the first initial area and the second initial area includes: Obtain the upper limit value of RSSI in the RSSI trigger interval; Determine whether the first RSSI value is greater than the RSSI upper limit value; If so, the intersection of the first initial region and the second initial region is obtained as the target retrieval region; If not, the target retrieval area is determined based on the first distance value and the second distance value.

6. The method for retrieving a wireless earphone according to claim 5, characterized in that, The step of determining the target retrieval area based on the first distance value and the second distance value includes: Determine whether the second distance value is greater than the first distance value; If so, the intersection of the first initial region and the second initial region is obtained as the target retrieval region; If not, then the difference region between the first initial region and the second initial region is obtained as the target retrieval region.

7. An electronic device, characterized in that, The device includes a processor, a memory, and program instructions for a method of retrieving a wireless earphone stored in the memory and executable by the processor, wherein the program instructions, when executed by the processor, are capable of implementing the steps of the method of retrieving a wireless earphone as described in any one of claims 1 to 6.

8. A computer-readable storage medium storing a program for a method of retrieving a wireless earphone, characterized in that, When the program for the wireless earphone retrieval method is executed by a processor, it can implement the steps of the wireless earphone retrieval method as described in any one of claims 1 to 6.