CN117479100A - Retrieving method of wireless earphone, electronic equipment and storage medium - Google Patents

Retrieving method of wireless earphone, electronic equipment and storage medium Download PDF

Info

Publication number
CN117479100A
CN117479100A CN202311438277.8A CN202311438277A CN117479100A CN 117479100 A CN117479100 A CN 117479100A CN 202311438277 A CN202311438277 A CN 202311438277A CN 117479100 A CN117479100 A CN 117479100A
Authority
CN
China
Prior art keywords
distance value
positioning coordinate
wireless earphone
positioning
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311438277.8A
Other languages
Chinese (zh)
Inventor
孙伟鸿
李伟雄
彭娇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Risound Electronics Co ltd
Original Assignee
Jiangxi Risound Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangxi Risound Electronics Co ltd filed Critical Jiangxi Risound Electronics Co ltd
Priority to CN202311438277.8A priority Critical patent/CN117479100A/en
Publication of CN117479100A publication Critical patent/CN117479100A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a retrieving method of a wireless earphone, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a first positioning coordinate triggered and recorded based on a preset RSSI trigger interval and a second positioning coordinate recorded when Bluetooth is disconnected; acquiring a first distance value corresponding to the first positioning coordinate; acquiring a second distance value corresponding to the second positioning coordinate based on the first positioning coordinate and the second positioning coordinate; obtaining a first initial area based on the first positioning coordinates and the first distance value; obtaining a second initial area based on the second positioning coordinates and a second distance value; and determining a target retrieval area according to the first initial area and the second initial area. Compared with the prior art, the method and the device solve the problem that the searching range of the wireless earphone is too large when the wireless earphone is recovered by the terminal, and improve the accuracy and efficiency of the recovery of the wireless earphone.

Description

Retrieving method of wireless earphone, electronic equipment and storage medium
Technical Field
The present invention relates to the field of wireless headphones, and in particular, to a method for retrieving a wireless headphone, an electronic device, and a storage medium.
Background
With the development of bluetooth technology, the earphone can obtain and play audio signals of the connected device through bluetooth data transmission, so that the earphone omits a signal wire connected with the device. However, the earphone omits a signal wire connected with the device, so that the convenience of using the earphone is improved, and the loss probability of the earphone is greatly improved.
In the prior art, most wireless earphones are not internally provided with a positioning device or a positioning device, and when a user loses the wireless earphones, the wireless earphones cannot be positioned and retrieved quickly, so that the process of retrieving the wireless earphones is time-consuming and labor-consuming; some wireless earphone can use terminal to assist the recovery function of wireless earphone, but the area of wireless earphone is too large, so the process of recovering wireless earphone is low in efficiency and troublesome.
In view of the foregoing, it is necessary to provide a method for retrieving a wireless earphone to solve the above-mentioned problems.
Disclosure of Invention
In view of the defects in the prior art, the invention provides a method for retrieving a wireless earphone, electronic equipment and a storage medium, which aim to solve the technical problem that a user cannot efficiently locate and retrieve the wireless earphone after the wireless earphone is lost.
To achieve the above object, a first aspect of the present invention provides a method for retrieving a wireless earphone, including:
acquiring a first positioning coordinate triggered and recorded based on a preset RSSI trigger interval and a second positioning coordinate recorded when Bluetooth is disconnected;
acquiring a first distance value corresponding to the first positioning coordinate;
acquiring a second distance value corresponding to the second positioning coordinate based on the first positioning coordinate and the second positioning coordinate;
obtaining a first initial area based on the first positioning coordinates and the first distance value;
obtaining a second initial area based on the second positioning coordinates and a second distance value;
and determining a target retrieval area according to the first initial area and the second initial area.
In a preferred embodiment, before the step of acquiring the second location coordinate recorded when the connection between the first location coordinate triggered and recorded based on the preset RSSI triggering area and bluetooth is disconnected, the method further includes:
acquiring an RSSI value of Bluetooth connection between a wireless earphone and a terminal;
judging whether the RSSI value is in an RSSI trigger interval or not;
if yes, the current positioning coordinates of the terminal are obtained and recorded as first positioning coordinates.
In a preferred embodiment, before the step of acquiring the second location coordinate recorded when the first location coordinate triggered and recorded based on the preset RSSI triggering interval is disconnected from the bluetooth connection, the method further includes:
judging whether the Bluetooth connection between the wireless earphone and the terminal is disconnected or not;
if yes, the current positioning coordinates of the terminal are obtained and recorded as second positioning coordinates.
In a preferred embodiment, the step of obtaining a first distance value corresponding to the first positioning coordinate includes:
acquiring an RSSI lower limit value of an RSSI trigger interval;
acquiring a first initial distance value based on the RSSI lower limit value;
and obtaining a first distance value according to the first initial distance value and a preset first correction number.
In a preferred embodiment, the step of obtaining the second distance value corresponding to the second positioning coordinate based on the first positioning coordinate and the second positioning coordinate includes:
calculating the distance between the first positioning coordinate and the second positioning coordinate to obtain a position distance;
determining whether the position distance is less than a first distance value;
if yes, the first distance value is used as the second distance value.
In a preferred embodiment, the step of determining whether the location distance is less than the first distance value further comprises:
if not, acquiring a maximum connection distance value of Bluetooth connection between the wireless earphone and the terminal;
and obtaining a second distance value based on the maximum connection distance value and a preset second correction number.
In a preferred embodiment, the step of determining the target retrieval area based on the first initial area and the second initial area comprises:
determining whether the second distance value is greater than the first distance value;
if so, acquiring an intersection area of the first initial area and the second initial area as a target retrieval area.
In a preferred embodiment, the step of determining whether the second distance value is greater than the first distance value further comprises:
if not, acquiring a difference area of the first initial area relative to the second initial area as a target retrieval area.
A second aspect of the present invention provides an electronic device, including a processor, a memory, and program instructions stored in the memory and executable by the processor for implementing the steps of the method for retrieving a wireless headset.
A third aspect of the present invention provides a computer-readable storage medium, on which a program of a method for retrieving a wireless headset is stored, which when executed by a processor is capable of implementing the steps of the method for retrieving a wireless headset.
The invention has the beneficial effects that: according to the invention, the first distance value is obtained based on the RSSI trigger interval by acquiring the second positioning coordinate recorded when the connection between the first positioning coordinate triggered and recorded based on the preset RSSI trigger interval and the Bluetooth is disconnected, the second distance value is determined by combining the parameter conditions of the first positioning coordinate and the second positioning coordinate, the first initial area and the second initial area are respectively determined based on the first positioning coordinate and the first distance value, the obtained first initial area and second initial area are utilized to define the target retrieval area, so that the function of utilizing the terminal to assist in retrieving the wireless earphone is realized, the problem that the area of the retrieval range of the wireless earphone is overlarge after the user loses the wireless earphone when the positioning device is not arranged in the wireless earphone is solved, the accuracy and the efficiency of retrieving the wireless earphone are improved, and the experience of the user in using the wireless earphone is further improved.
Drawings
Fig. 1 is a schematic diagram of a first process of a retrieving method of a wireless headset according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a second flow of a method for retrieving a wireless headset according to an embodiment of the present invention;
fig. 3 is a schematic third flow chart of a retrieving method of a wireless earphone according to an embodiment of the present invention;
fig. 4 is a fourth flowchart of a method for retrieving a wireless headset according to an embodiment of the present invention;
fig. 5 is a fifth flowchart of a method for retrieving a wireless headset according to an embodiment of the present invention;
fig. 6 is a sixth flowchart of a method for retrieving a wireless headset according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In the present invention, the terms "disposed," "configured," "connected," and "connected" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; may be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements, or components. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
Also, some of the terms described above may be used to indicate other meanings in addition to orientation or positional relationships, for example, the term "upper" may also be used to indicate some sort of attachment or connection in some cases. The specific meaning of these terms in the present invention will be understood by those of ordinary skill in the art according to the specific circumstances.
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Along with the rapid development of electronic technology, the earphone technology has also obtained rapid development, and the appearance of wireless earphone has improved the convenience that earphone used greatly, but because wireless earphone's fuselage itself is small and exquisite and do not have the constraint of signal line, in wireless earphone's use, the circumstances that wireless earphone was lost appears easily, and be provided with positioner in the wireless earphone again generally for the user is difficult to retrieve wireless earphone after losing wireless earphone, and then influences user's use experience. The invention provides a retrieving method of a wireless earphone, electronic equipment and a storage medium, which solve the problem that the searching range of the wireless earphone is overlarge when the wireless earphone is retrieved by a terminal, improve the accuracy and efficiency of retrieving after the wireless earphone is lost, and further improve the use experience of a user.
The wireless earphone assembly comprises a wireless earphone and an earphone charging box, and compared with the earphone charging box, the wireless earphone is easier to lose due to the fact that the size and the weight of the wireless earphone are relatively smaller. During use of the wireless headset, there are cases where the user takes the headset off, does not put the headset back in the headset box, and temporarily places the headset elsewhere. For example, during the movement of the user or after the movement of the user is completed, when the user removes the wireless headset, there may be a case that the user may directly place the wireless headset in the pocket, and under such a use scenario, the problem that the wireless headset is lost is very easy to occur. Under the aforementioned scenario, if the wireless earphone falls, the wireless earphone still remains connected with the terminal before exceeding the maximum connection distance between the wireless earphone and the terminal, so that the positioning function of the terminal can be utilized to obtain relevant parameters for positioning the wireless earphone, and further the positioning and retrieving of the wireless earphone are assisted.
The following are the contents of the first aspect of the present invention:
referring to fig. 1, in the present embodiment, the method for retrieving a wireless headset includes the steps of:
s1, acquiring a first positioning coordinate triggered and recorded based on a preset RSSI trigger interval and a second positioning coordinate recorded when Bluetooth is disconnected;
the RSSI trigger section is a determination section for determining whether to trigger recording of the first positioning coordinates. The first positioning coordinate is the current positioning coordinate of the terminal which is triggered and recorded when the RSSI value of the Bluetooth connection between the wireless earphone and the terminal is judged to be in the RSSI triggering interval; the second positioning coordinate is the current positioning coordinate of the terminal triggered and recorded when the wireless earphone is disconnected with the terminal by Bluetooth, and the terminal can be an electronic device with a positioning function or a positioning device arranged in a mobile phone, a tablet or a smart watch and the like, and is not limited herein.
It is easy to understand that the magnitude of the RSSI value of the bluetooth connection between the wireless earphone and the terminal can reflect the distance between the terminal and the wireless earphone to a certain extent, and the change condition of the connection distance between the wireless earphone and the terminal can be estimated approximately through the change condition of the RSSI value. Therefore, according to the actual design requirement, the RSSI value corresponding to the corresponding distance value can be selected to set the corresponding RSSI trigger interval. When the RSSI value of the Bluetooth connection between the wireless earphone and the terminal is in the RSSI trigger interval, the distance between the wireless earphone and the terminal is indicated to be in the distance corresponding to the RSSI trigger interval, and then the current positioning coordinate of the terminal can be triggered and recorded to be used as related data for using the terminal to assist in retrieving the wireless earphone.
The condition that the wireless earphone is disconnected with the terminal is that the Bluetooth connection between the wireless earphone and the terminal is actively disconnected on the terminal side or on the wireless earphone side, or the condition that after the wireless earphone is lost, the user carries the terminal to exceed the maximum connectable range between the terminal and the wireless earphone, namely, the Bluetooth connection between the wireless earphone and the terminal is disconnected in an over-distance manner. In the situation that the wireless earphone is lost actually, the situation that the wireless earphone and the terminal are disconnected in an overdue way is generally high. For example, in a normal case, because the volume of the earphone charging box is relatively large, the earphone charging box is not carried in the outdoor exercise process of the user, and the user may take off the earphone and place the wireless earphone in the pocket when or after the exercise is completed, so that the problem of wireless earphone loss is very easy to occur in such a case. After the wireless earphone falls, the Bluetooth connection between the wireless earphone and the terminal can be disconnected. The method for retrieving the wireless earphone provided by the embodiment records the current positioning coordinate of the terminal when the Bluetooth connection between the terminal and the wireless earphone is disconnected, so that the current positioning coordinate is used as related data for retrieving the wireless earphone with the assistance of the terminal, and the situation that the wireless earphone is disconnected with the terminal in an over-distance manner after the wireless earphone is lost can be better adapted by combining the positioning coordinate recorded based on the RSSI trigger interval.
S2, acquiring a first distance value corresponding to the first positioning coordinate;
s3, acquiring a second distance value corresponding to the second positioning coordinate based on the first positioning coordinate and the second positioning coordinate;
the first distance value and the second distance value are related parameters for determining the position of the wireless earphone. It can be understood that, since the conditions of the triggering records of the first positioning coordinates and the second positioning coordinates are different, and the first positioning coordinates and the second positioning coordinates are respectively used for determining different areas, that is, the types of the first positioning coordinates and the second positioning coordinates are different, the mode of acquiring the first distance value and the second distance value is also different, so that the range size of the subsequent area is better determined, the situation that the area of the target retrieval area obtained subsequently is overlarge is avoided, and the accuracy and the efficiency of retrieving the wireless earphone are ensured.
S4, obtaining a first initial area based on the first positioning coordinates and the first distance value;
s5, obtaining a second initial area based on the second positioning coordinates and a second distance value;
s6, determining a target recovery area according to the first initial area and the second initial area.
The bluetooth connection distance of the existing wireless earphone is usually about 10m, that is, after the terminal and the wireless earphone establish bluetooth connection, one of the two can move within a circular range with the other as the center, and still maintain the connection relationship. When the wireless earphone falls or is lost, the terminal still can keep a connection relation with the wireless earphone in a circular range taking the wireless earphone as a circle center until a user carries the terminal beyond the connectable range of Bluetooth connection between the wireless earphone and the terminal, so that the positioning function of the terminal can be utilized to assist in realizing the recovery of the wireless earphone, and a first initial area and a second initial area are respectively obtained through a first positioning coordinate and a first distance value of the terminal and a second positioning coordinate and a second distance value of the terminal so as to prepare for determining the area where the wireless earphone is located according to the specific conditions of the first initial area and the second initial area.
The first initial area and the second initial area are circular areas in order to be more in line with the approximate shape of the actual connection range of the wireless earphone and the terminal. Taking the first positioning coordinate as a circle center and taking the first distance value as a radius, so that a first initial area can be obtained; taking the second positioning coordinate as a circle center and the second distance value as a radius to obtain a second initial area; the target retrieval area is the range of the wireless earphone determined by the first initial area and the second initial area. Specifically, in the process of determining the target retrieval area, the first initial area plays a role in primarily determining the wireless earphone position range, and the second initial area plays a role in further assisting in determining the wireless earphone position range so as to reduce the area of the retrieval area.
It can be understood that, after the wireless earphone is lost, the terminal still maintains the bluetooth connection state in the connectable range with the wireless earphone as the center, and the recording triggering modes of the first positioning coordinate and the second positioning coordinate are different, so that multiple different position relations exist between the first positioning coordinate and the second positioning coordinate, and because the acquiring modes of the first distance value and the second distance value are different, the position relations and the magnitude relations between the first initial area and the second initial area obtained by the second positioning coordinate and the second distance value are also different.
Meanwhile, the first initial area and the second initial area are approximate areas which are obtained through calculation of positioning coordinates and distance values and used for determining target recovery areas, and an invalid area which occupies a relatively large area exists in the approximate areas. The target retrieval area where the wireless earphone is located can be obtained by acquiring the intersection area or the difference area between the first initial area and the second initial area based on the situation of the position relation and the size relation of the first initial area and the second initial area, so that a large number of invalid areas are removed, the problem that the retrieval range area of the wireless earphone is overlarge after a user loses the wireless earphone when no positioning device is arranged in the wireless earphone is solved, the retrieval accuracy and efficiency of the wireless earphone are improved, and the user experience of using the wireless earphone is further improved.
Further, referring to fig. 2, in an embodiment, before step S1 of acquiring the second positioning coordinate recorded when the connection between the first positioning coordinate triggered and recorded based on the preset RSSI triggering interval and bluetooth is disconnected, the method further includes:
s11, acquiring an RSSI value of Bluetooth connection between a wireless earphone and a terminal;
s12, judging whether the RSSI value is in an RSSI trigger interval or not;
and S13, if yes, acquiring the current positioning coordinates of the terminal, and recording the current positioning coordinates as first positioning coordinates.
The range of the RSSI trigger interval can be set according to the actual design requirement. It can be understood that after the RSSI value of the Bluetooth connection between the wireless earphone and the terminal is obtained, whether the current positioning coordinate of the terminal is triggered and recorded is determined after whether the RSSI value falls into the RSSI triggering interval is determined, so that frequent triggering and recording of the current positioning coordinate of the terminal can be effectively reduced, and occupation of data storage is reduced.
The range size of the RSSI trigger interval can be selected and set according to the connection distance between the wireless earphone and the terminal, and the range of the selected connection distance node is 50-80% of the maximum connection distance value of Bluetooth connection between the wireless earphone and the terminal. In a preferred embodiment, RSSI values corresponding to 50% and 60% of the maximum connection distance value between the wireless headset and the terminal are selected as the RSSI upper limit value and the RSSI lower limit value of the RSSI trigger section, respectively.
It can be understood that, in the conventional use process of the wireless earphone, the distance between the wireless earphone and the terminal is not too far away under normal conditions, when it is determined that the RSSI value of the bluetooth connection between the terminal and the wireless earphone falls within the RSSI triggering interval, it is indicated that the connection distance between the wireless earphone and the terminal has exceeded half of the maximum connection distance, and it can be reflected to a certain extent that there is a disconnection trend between the wireless earphone and the terminal, that is, there is a situation that the wireless earphone may be lost, so that the current positioning coordinate of the terminal may be triggered and recorded at this time. Through setting the RSSI trigger interval, the trigger recording frequency of the current positioning coordinates of the terminal can be effectively reduced in the use process of the wireless earphone, and the whole trigger recording is more in line with the situation after the actual wireless earphone is lost.
Further, referring to fig. 3, in this embodiment, before step S1 of acquiring the second positioning coordinate recorded when the connection between the first positioning coordinate triggered and recorded based on the preset RSSI triggering interval and bluetooth is disconnected, the method further includes:
s14, judging whether Bluetooth connection between the wireless earphone and the terminal is disconnected;
and S15, if yes, acquiring the current positioning coordinate of the terminal, and recording the current positioning coordinate as a second positioning coordinate.
It can be understood that the reason for disconnecting the wireless earphone from the terminal may be that the terminal side or the wireless earphone side actively disconnects the bluetooth connection between the terminal and the wireless earphone, or that the user moves out of the bluetooth connection range between the terminal and the wireless earphone after wearing the wireless earphone, or that the user moves the terminal beyond the bluetooth connection range of the wireless earphone after losing the wireless earphone, thereby disconnecting the connection between the terminal and the wireless earphone. After the terminal is disconnected with the wireless earphone, the current position information of the terminal is recorded, so that the problem that the wireless earphone is lost in the previous situation can be solved in an auxiliary mode.
Specifically, in the process of using the wireless earphone, the situation that the Bluetooth connection between the terminal and the wireless earphone is actively disconnected for many times by a user or the situation that the Bluetooth connection range is exceeded for many times may exist, so when the second positioning coordinates are recorded, a mode of recording a plurality of second positioning coordinates may be adopted, after a wireless earphone recovery instruction is triggered, a term with the latest timeliness is screened out from the second positioning coordinates of a plurality of terms to serve as a relevant parameter used by the wireless earphone recovery method, preferably, an updating and replacing mode may also be adopted, and when the terminal and the wireless earphone are judged to be disconnected from the Bluetooth connection each time, the second positioning coordinates are replaced.
Further, the first positioning coordinate is recorded by determining whether the RSSI value of the bluetooth connection between the wireless headset and the terminal meets the RSSI trigger interval, and the RSSI trigger interval needs to be combined when determining the first distance value corresponding to the first positioning coordinate. Specifically, referring to fig. 4, in one embodiment, the step of obtaining a first distance value corresponding to the first positioning coordinate includes:
s21, acquiring an RSSI lower limit value of an RSSI trigger interval;
s22, acquiring a first initial distance value based on an RSSI lower limit value;
s23, obtaining a first distance value according to the first initial distance value and a preset first correction number.
The first initial distance value is a value obtained by calculating an RSSI value and a connection distance formula according to an RSSI lower limit value of an RSSI trigger interval. The first correction number is a positive number and is used for correcting the first initial distance value so as to ensure that the obtained first distance value can be larger than the actual connection distance between the wireless earphone and the terminal at the time.
Specifically, the connection distance is calculated by a relation formula of an RSSI value and a connection distance between the wireless earphone and the terminal, wherein the calculation formula of the connection distance is d=10 ((abs (RSSI) -A)/(10 x n)), d is the connection distance, namely a first initial distance value, A is the RSSI value when the connection distance between the terminal and the wireless earphone is 1m, and n is an environmental attenuation factor.
The value interval of the first correction number may be [0.5,1.5], and preferably, the first correction number is 1. After a first initial distance value is obtained based on the RSSI trigger interval, the first distance value can be obtained by calculating the sum of the first initial distance value and the first correction number. It is easy to understand that the calculation mode of the first distance value may also adopt a coefficient correction mode, and after the first initial distance value is obtained, a corresponding correction coefficient may be obtained to correct the first initial distance value, so as to obtain the first distance value.
It can be understood that the retrieving method of the wireless earphone provided by the embodiment uses the RSSI value and the disconnection state to trigger and record the positioning coordinates of the terminal, thereby realizing the function of the terminal for assisting in retrieving the wireless earphone. Because the positioning of the terminal may have deviation, the first initial distance value obtained based on the lower limit value of the RSSI trigger interval needs to be corrected to ensure that the first distance value is larger than the actual connection distance between the wireless earphone and the terminal so as to cope with the situation of actual use of the wireless earphone, further ensure that the wireless earphone can be positioned in the first initial area, and further improve the accuracy of retrieving the wireless earphone.
Further, in this embodiment, the target retrieval area is determined mainly by using the positional relationship and the magnitude relationship of the first initial area and the second initial area. In the process of determining the target recovery area, the first initial area and the second initial area have different functions, specifically, the first initial area is mainly used for primarily determining the range of the wireless earphone, the second initial area is mainly used for further assisting in positioning the range of the wireless earphone, so that part of invalid areas in the first initial area are removed, and the target recovery area with more accurate searching range is obtained. The size of the second initial region is affected by the second distance value, which in turn is affected by the positional relationship between the first positioning coordinates and the second positioning coordinates.
Specifically, referring to fig. 5, in one embodiment, based on the first positioning coordinate and the second positioning coordinate, the step S3 of obtaining the second distance value corresponding to the second positioning coordinate includes:
s31, calculating the distance between the first positioning coordinate and the second positioning coordinate to obtain a position distance;
s32, judging whether the position distance is smaller than a first distance value;
s33, if yes, taking the first distance value as a second distance value;
s34, if not, acquiring a maximum connection distance value of Bluetooth connection between the wireless earphone and the terminal;
and S35, obtaining a second distance value based on the maximum connection distance value and a preset second correction number.
The position distance is the distance between two points of the first positioning coordinate and the second positioning coordinate, and can be calculated by using a distance formula between the two points. The maximum connection distance values of different wireless headphones may not be the same, and the values may be set according to actual product conditions. The second correction number is a positive number for correcting the maximum connection distance value.
It is easy to understand that by determining the magnitude relation between the position distance and the first distance value, the position relation between the first positioning coordinates and the second positioning coordinates can be determined; when the position distance is smaller than the first distance value, it indicates that the second positioning coordinate is in the first initial area, the distance between the first positioning coordinate and the second positioning coordinate is relatively close, when the position distance is not smaller than the first distance value, it indicates that the second positioning coordinate is not in the first initial area, the distance between the first positioning coordinate and the second positioning coordinate is relatively far, and because the position relationship between the first positioning coordinate and the second positioning coordinate is different, the mode of obtaining the second distance value needs to be determined according to different conditions.
Specifically, when the determined position distance is smaller than the first distance value, that is, the position between the first positioning coordinate and the second positioning coordinate is relatively close, the second distance value is selected as the first distance value in order to better reduce the invalid region in the first initial region. When the current position distance is not smaller than the first distance value, namely the distance between the first positioning coordinate and the second positioning coordinate is relatively far, in order to better reduce the invalid region in the first initial region, the second distance value is acquired by correcting the maximum connection distance value.
The value interval of the second correction number can be [0.5,1.5], which can be selected according to the actual design requirement, and preferably, the second correction number can be 1. After the maximum connection distance value is obtained, the second distance value can be obtained by calculating the sum of the maximum connection distance value and the second correction number. It is easy to understand that the calculation mode of the second distance value may also adopt a coefficient correction mode, and after the maximum connection distance value is obtained, a corresponding correction coefficient may be obtained to correct the maximum connection distance value, so as to obtain the second distance value.
Still further, referring to fig. 6, in one embodiment, the step of determining the target retrieval area according to the first initial area and the second initial area includes:
s61, judging whether the second distance value is larger than the first distance value;
s62, if yes, acquiring an intersection area of the first initial area and the second initial area as a target retrieval area;
and S63, if not, acquiring a difference set area of the first initial area relative to the second initial area as a target retrieval area.
The second distance value is obtained based on the position relation between the first positioning coordinate and the second positioning coordinate, and if the position relation between the first positioning coordinate and the second positioning coordinate is different, the obtained second distance value is also different. When the position between the first positioning coordinate and the second positioning coordinate is relatively close, the first distance value can be used as the second distance value; when the position between the first positioning coordinate and the second positioning coordinate is relatively far, the second distance value can be obtained by correcting the maximum connection distance value.
The first initial area and the second initial area are respectively obtained based on the first positioning coordinate and the first distance value, and the second positioning coordinate and the second distance value, so that the position relationship and the size relationship between the first initial area and the second initial area can be reflected to a certain extent by judging the size relationship between the first distance value and the second distance value. The first initial area and the second initial area do not play the same role in determining the target retrieval area, and are influenced by the positional relationship and the magnitude relationship between the first initial area and the second initial area when the target retrieval area is determined by using the first initial area and the second initial area. It can be understood that the core of determining the target retrieval area by using the first initial area and the second initial area is to primarily determine the approximate area where the wireless earphone is located through the first initial area, and then cut down the range of the first initial area through the second initial area so as to obtain the target retrieval area with relatively smaller range area.
When the second distance value is larger than the first distance value, the area of the second initial area is larger than the area of the first initial area, so that the intersection area of the first initial area and the second initial area can be obtained to serve as a target retrieval area, and the retrieval range area of the wireless earphone is reduced.
When the second distance value is not larger than the first distance value, the positions between the first positioning coordinates and the second positioning coordinates are relatively close, and in order to better reduce the invalid area in the first initial area, the difference area of the first initial area relative to the second initial area is used as a target retrieval area so as to reduce the retrieval range area of the wireless earphone.
Furthermore, before triggering and recording the first positioning coordinates, the RSSI value of the Bluetooth connection between the terminal and the wireless earphone needs to be acquired, so that when the RSSI value of the Bluetooth connection between the terminal and the wireless earphone is determined to be within a preset RSSI triggering interval, the terminal can output a prompt to a user.
In one embodiment, the step of determining that the RSSI value is within the preset RSSI trigger interval further comprises: the terminal outputs first prompt information for reminding the user.
The first prompt information can be a voice prompt, a vibration prompt or an information pop-up prompt, and can be selected to be set singly or in combination according to actual requirements. It is easy to understand that when the RSSI value of the Bluetooth connection between the terminal and the wireless earphone is detected to be in the RSSI trigger interval, the wireless earphone is indicated to have a possible disconnection trend, so the terminal can output a relevant prompt to remind the user to prevent the wireless earphone from being lost or forgotten.
To further improve the efficiency of retrieving the wireless headset, in one embodiment, the step of obtaining the target retrieval area further includes:
after the terminal is positioned in the target retrieval area, the terminal is connected with the wireless earphone;
the terminal controls the wireless earphone to send out second prompt information.
When the terminal is in the target retrieval area, the terminal can send a pairing connection request to the wireless earphone, and under the condition that the electric quantity of the wireless earphone is enough, the terminal can establish Bluetooth connection with the wireless earphone. The second prompt information can be an audio prompt or an indicator lamp flashing prompt, and the like, and can be set according to actual design requirements.
It is easy to understand that when the target retrieval area is used for searching the wireless earphone, the wireless earphone is possibly covered by an object, or the environment light of the target retrieval area is darker, so that the wireless earphone is not easy to find, the wireless earphone is connected through the terminal, and the wireless earphone is controlled to output the second prompt information, so that a user can find the wireless earphone in the target retrieval area more quickly, and the retrieval efficiency of the wireless earphone is further improved.
Further, to enhance the user experience, in one embodiment, before the step of obtaining the RSSI value of the bluetooth connection between the wireless headset and the terminal, the method further includes:
determining whether the wireless earphone is in a positioning recording mode;
if yes, the RSSI value of Bluetooth connection between the wireless earphone and the terminal is obtained.
It can be understood that after the wireless earphone is determined to start the positioning recording mode, the RSSI value of the bluetooth connection between the terminal and the wireless earphone can be obtained to determine whether to trigger recording of the current positioning coordinates of the terminal. If the positioning recording mode is not started, the positioning coordinates of the recording terminal are not triggered, and the power consumption can be saved to a certain extent. The user can control the starting and closing of the positioning recording mode according to the self requirement, and further the user experience is improved.
In summary, the method and the device acquire the second positioning coordinate recorded when the connection between the first positioning coordinate triggered and recorded based on the preset RSSI trigger interval and the Bluetooth is disconnected, acquire the first distance value based on the RSSI trigger interval, then combine the parameter conditions of the first positioning coordinate and the second positioning coordinate to determine the second distance value, then respectively determine the first initial area and the second initial area based on the first positioning coordinate and the first distance value, and then utilize the acquired first initial area and second initial area to define the target retrieval area, thereby realizing the function of utilizing the terminal to assist in retrieving the wireless earphone, solving the problem that the area of the retrieval range of the wireless earphone is overlarge after the user loses the wireless earphone when the positioning device is not arranged in the wireless earphone, improving the retrieval accuracy and efficiency of the wireless earphone, and further improving the experience of the user using the wireless earphone.
The following is the content of the second aspect of the invention:
the present invention provides an electronic device, as shown in fig. 7, which includes a memory 10, a processor 20 and a wireless earphone retrieving method program instruction 30 stored in the memory 10 and capable of running on the processor 20, wherein the wireless earphone retrieving method is implemented when the wireless earphone retrieving method program instruction 30 is executed by the processor 20.
In some embodiments, the processor may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor is typically used to control the overall operation of the headset. In this embodiment, the processor is configured to execute program codes or process data stored in a readable storage medium.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present invention.
The following is the content of the third aspect of the present invention:
the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above described method of retrieving a wireless headset.
The foregoing is merely exemplary of the application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the application and are intended to be comprehended within the scope of the application.

Claims (10)

1. A method for retrieving a wireless headset, comprising:
acquiring a first positioning coordinate triggered and recorded based on a preset RSSI trigger interval and a second positioning coordinate recorded when Bluetooth is disconnected;
acquiring a first distance value corresponding to the first positioning coordinate;
acquiring a second distance value corresponding to the second positioning coordinate based on the first positioning coordinate and the second positioning coordinate;
obtaining a first initial area based on the first positioning coordinates and the first distance value;
obtaining a second initial area based on the second positioning coordinates and the second distance value;
and determining a target recovery area according to the first initial area and the second initial area.
2. The method for retrieving a wireless headset according to claim 1, further comprising, before the step of acquiring the second positioning coordinate recorded when the first positioning coordinate triggered and recorded based on the preset RSSI triggering period is disconnected from the bluetooth:
acquiring an RSSI value of Bluetooth connection between a wireless earphone and a terminal;
judging whether the RSSI value is in the RSSI trigger interval or not;
if yes, the current positioning coordinates of the terminal are obtained and recorded as the first positioning coordinates.
3. The method for retrieving a wireless headset according to claim 1, further comprising, before the step of acquiring the second positioning coordinate recorded when the first positioning coordinate triggered and recorded based on the preset RSSI triggering period is disconnected from the bluetooth:
judging whether the Bluetooth connection between the wireless earphone and the terminal is disconnected or not;
if yes, the current positioning coordinate of the terminal is obtained, and the current positioning coordinate is recorded as the second positioning coordinate.
4. The method for retrieving a wireless headset according to claim 1, wherein the step of obtaining the first distance value corresponding to the first positioning coordinate includes:
acquiring an RSSI lower limit value of the RSSI trigger interval;
acquiring a first initial distance value based on the RSSI lower limit value;
and obtaining the first distance value according to the first initial distance value and a preset first correction number.
5. The method for retrieving a wireless headset according to claim 1, wherein the step of obtaining a second distance value corresponding to the second positioning coordinate based on the first positioning coordinate and the second positioning coordinate includes:
calculating the distance between the first positioning coordinates and the second positioning coordinates to obtain a position distance;
determining whether the location distance is less than the first distance value;
if yes, the first distance value is used as the second distance value.
6. The method of retrieving a wireless headset of claim 5, wherein the step of determining whether the location distance is less than the first distance value further comprises:
if not, acquiring a maximum connection distance value of Bluetooth connection between the wireless earphone and the terminal;
and obtaining the second distance value based on the maximum connection distance value and a preset second correction number.
7. The method of retrieving a wireless headset of claim 1, wherein the step of determining a target retrieval area based on the first initial area and the second initial area comprises:
determining whether the second distance value is greater than the first distance value;
if yes, acquiring an intersection area of the first initial area and the second initial area as a target retrieval area.
8. The method of retrieving a wireless headset of claim 7, wherein the step of determining whether the second distance value is greater than the first distance value further comprises:
if not, acquiring a difference set area of the first initial area relative to the second initial area as a target retrieval area.
9. An electronic device comprising a processor, a memory, and program instructions stored in the memory and executable by the processor for performing the steps of the method for retrieving a wireless headset according to any one of claims 1 to 8.
10. A computer-readable storage medium, on which a program of a method for retrieving a wireless headset is stored, characterized in that the program of the method for retrieving a wireless headset, when executed by a processor, is capable of implementing the steps of the method for retrieving a wireless headset according to any one of claims 1 to 8.
CN202311438277.8A 2023-11-01 2023-11-01 Retrieving method of wireless earphone, electronic equipment and storage medium Pending CN117479100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311438277.8A CN117479100A (en) 2023-11-01 2023-11-01 Retrieving method of wireless earphone, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311438277.8A CN117479100A (en) 2023-11-01 2023-11-01 Retrieving method of wireless earphone, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117479100A true CN117479100A (en) 2024-01-30

Family

ID=89634349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311438277.8A Pending CN117479100A (en) 2023-11-01 2023-11-01 Retrieving method of wireless earphone, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117479100A (en)

Similar Documents

Publication Publication Date Title
CN103491230B (en) Can the mobile terminal of automatic regulating volume and font and Automatic adjustment method thereof
CN108599304B (en) Charging box, charging control method and related product
CN108896911B (en) Charging abnormity detection method and device for electronic equipment
CN108429979B (en) Charging box upgrading method, charging box, wireless headset and TWS headset
US9794699B2 (en) Hearing device considering external environment of user and control method of hearing device
CN107277657B (en) Earphone retrieving method and device and earphone
CN110677924B (en) Method for searching wireless earphone charging box and related device
CN107329778B (en) System updating method and related product
CN102405608A (en) Automatic audio transition
CN106655381B (en) Wireless charging method and device
US10185536B2 (en) Communication method and terminal
CN108600539B (en) Mobile terminal, position detection method and related product
CN110504544A (en) Aerial angle adjusting method, signal projector and storage medium
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN111462454A (en) Reminding method, device, equipment and storage medium
CN112954532A (en) Method, system, terminal and storage medium for adjusting noise reduction level of Bluetooth headset
CN117479100A (en) Retrieving method of wireless earphone, electronic equipment and storage medium
CN108683800B (en) Mobile terminal, position detection method and related product
CN116193413B (en) Bluetooth connection method, system, storage medium and device
CN117459892A (en) Retrieving method of wireless earphone, electronic equipment and storage medium
JP4121879B2 (en) Mobile device
CN111654774A (en) Earphone charging box, finding method, system and computer readable storage medium
CN117596544A (en) Retrieving method of wireless earphone
CN108933715B (en) Interaction method and device and intelligent equipment
CN113015077B (en) Prompting method, wearable device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination