CN111063170A - TWS earphone loss prevention method, TWS earphone and computer readable storage medium - Google Patents

TWS earphone loss prevention method, TWS earphone and computer readable storage medium Download PDF

Info

Publication number
CN111063170A
CN111063170A CN201911211861.3A CN201911211861A CN111063170A CN 111063170 A CN111063170 A CN 111063170A CN 201911211861 A CN201911211861 A CN 201911211861A CN 111063170 A CN111063170 A CN 111063170A
Authority
CN
China
Prior art keywords
earphone
tws
lost
headset
detecting whether
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.)
Granted
Application number
CN201911211861.3A
Other languages
Chinese (zh)
Other versions
CN111063170B (en
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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201911211861.3A priority Critical patent/CN111063170B/en
Publication of CN111063170A publication Critical patent/CN111063170A/en
Application granted granted Critical
Publication of CN111063170B publication Critical patent/CN111063170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • 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/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • H04W4/022Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences with dynamic range variability
    • 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
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a TWS earphone anti-lost method. The anti-lost method of the TWS earphone is applied to a real wireless stereo TWS earphone, and comprises the following steps: when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is in a charging box or not at preset time intervals; if the first earphone is detected not to be in the charging box, detecting whether the communication connection between the first earphone and a second earphone in the TWS earphones is disconnected; and if the communication connection is disconnected, controlling the first earphone to carry out anti-lost reminding. The invention also discloses a TWS earphone and a computer readable storage medium. The invention can solve the problem that the existing TWS earphone is easy to lose.

Description

TWS earphone loss prevention method, TWS earphone and computer readable storage medium
Technical Field
The invention relates to the technical field of portable listening equipment, in particular to a TWS earphone anti-lost method, a TWS earphone and a computer readable storage medium.
Background
Along with the rapid development of mobile terminal technology and chip technology, the earphone market has been rapidly developed, especially the wireless earphone market. Among various Wireless earphone products, a TWS (True Wireless Stereo) earphone can realize Wireless separation of left and right sound channels of bluetooth, and meanwhile, compared with a traditional bluetooth earphone, the TWS earphone is obviously improved in the aspects of portability, high-definition tone quality, intelligent level and the like, and is popular among Wireless earphone users.
While TWS headphones provide convenience for people's daily lives, there are also well-known problems, such as: in the using process, if one earphone is taken off conveniently or a certain earphone falls off carelessly, the TWS earphone is lost due to the fact that the TWS earphone is lack of connection of wires and small in size, and the TWS earphone is difficult to find. Therefore, how to prevent the TWS headset from being lost is a problem that needs to be solved urgently.
Disclosure of Invention
The invention mainly aims to provide a TWS earphone anti-lost method, a TWS earphone and a computer readable storage medium, aiming at solving the problem that the existing TWS earphone is easy to lose.
In order to achieve the above object, the present invention provides a TWS headset anti-lost method, which is applied to a true wireless stereo TWS headset, and the TWS headset anti-lost method includes:
when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is in a charging box or not at preset time intervals;
if the first earphone is detected not to be in the charging box, detecting whether the communication connection between the first earphone and a second earphone in the TWS earphones is disconnected;
and if the communication connection is disconnected, controlling the first earphone to carry out anti-lost reminding.
Optionally, when it is detected that a first earphone of the TWS earphones is removed, the step of detecting whether the first earphone is in the charging box at preset time intervals includes:
when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is a master earphone or a slave earphone;
if the first earphone is a master earphone, switching the first earphone into a slave earphone, switching the second earphone into a master earphone, and detecting whether the first earphone is in a charging box at intervals of preset time;
and if the first earphone is the slave earphone, detecting whether the first earphone is in the charging box or not at preset time intervals.
Optionally, the step of detecting whether the first earphone is in the charging box at preset intervals includes:
acquiring a general input/output port GPIO level value of the first earphone at preset time intervals;
and detecting whether the GPIO level value is within a preset threshold range or not so as to judge whether the first earphone is in the charging box or not.
Optionally, the step of controlling the first earphone to perform anti-lost reminding includes:
and controlling the first earphone to play a preset reminding audio according to a preset reminding mode and/or carrying out vibration reminding.
Optionally, the step of controlling the first earphone to perform anti-lost reminding includes:
acquiring the signal intensity of a broadcast signal sent by the second earphone when the communication connection is disconnected, and acquiring a loss distance according to the signal intensity;
and determining a target reminding mode according to the lost distance, and controlling the first earphone to adopt the target reminding mode to carry out anti-lost reminding.
Optionally, the TWS headset anti-lost method further includes:
when the first earphone is detected to be in the connection range of the second earphone, the communication connection between the first earphone and the second earphone is reestablished, and the anti-lost reminding is stopped.
Optionally, after the step of detecting whether the communication connection between the first headset and the second headset in the TWS headset is disconnected, the method further includes:
if the communication connection is not disconnected, acquiring the residual electric quantity of the first earphone every other preset time, and detecting whether the residual electric quantity is lower than a preset threshold value;
and if the residual electric quantity is lower than a preset threshold value, generating corresponding prompt information for timely searching, and sending the prompt information to the second earphone, so that the second earphone sends the prompt information for timely searching to a corresponding mobile terminal.
Optionally, after the step of detecting whether the first earphone is in the charging box every preset time, the method further includes:
and if the first earphone is detected to be in the charging box, controlling the first earphone to be disconnected from the communication connection with the second earphone.
Further, to achieve the above object, the present invention also provides a TWS headset, including: a memory, a processor and a TWS headset anti-lost program stored on the memory and executable on the processor, the TWS headset anti-lost program when executed by the processor implementing the steps of the TWS headset anti-lost method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a TWS headset anti-lost program, which when executed by a processor, implements the steps of the TWS headset anti-lost method as described above.
The invention provides a TWS earphone loss prevention method, a TWS earphone and a computer readable storage medium, wherein the method is applied to the TWS earphone, and when a first earphone in the TWS earphone is detected to be removed, whether the first earphone is in a charging box or not is detected at preset time intervals; if the first earphone is detected not to be in the charging box, detecting whether the communication connection between the first earphone and a second earphone in the TWS earphone is disconnected; and if the communication connection is disconnected, controlling the first earphone to carry out anti-lost reminding. The state of the removed first earphone is acquired and detected in a timing mode, when the acquired state meets the preset condition, the state is in an anti-lost state, the first earphone is controlled to carry out anti-lost reminding, so that a user can easily find the removed first earphone according to the reminding, the lost condition is avoided, and the problem that the existing TWS earphone is easy to lose is solved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a TWS earphone anti-lost method according to a first embodiment of the present invention;
fig. 3 is a detailed flowchart of step S20 in the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the prior art, while the TWS headset brings convenience to daily life, there are some well-known problems, such as: in the using process, if one earphone is taken off conveniently or a certain earphone falls off carelessly, the TWS earphone is lost due to the fact that the TWS earphone is lack of connection of wires and small in size, and the TWS earphone is difficult to find. Therefore, how to prevent the TWS headset from being lost is a problem that needs to be solved urgently.
In order to solve the technical problem, the invention provides a TWS earphone anti-lost method, which is applied to a TWS earphone, and when a first earphone in the TWS earphone is detected to be removed, whether the first earphone is in a charging box or not is detected at preset time intervals; if the first earphone is detected not to be in the charging box, detecting whether the communication connection between the first earphone and a second earphone in the TWS earphone is disconnected; and if the communication connection is disconnected, controlling the first earphone to carry out anti-lost reminding. The state of the removed first earphone is acquired and detected in a timing mode, when the acquired state meets the preset condition, the state is in an anti-lost state, the first earphone is controlled to carry out anti-lost reminding, so that a user can easily find the removed first earphone according to the reminding, the lost condition is avoided, and the problem that the existing TWS earphone is easy to lose is solved.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a TWS (True Wireless Stereo) earphone.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, and a memory 1003. Wherein a communication bus 1002 is used to enable connective communication between these components. The memory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may also include sensors, vibration motors, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may detect whether the TWS headset is in a wearing state according to the brightness of ambient light. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the motion sensor is stationary, and can be used for application of terminal gesture recognition, related functions of vibration recognition, and the like; of course, the terminal may also be configured with other sensors such as a temperature sensor and an infrared sensor, which are not described herein again. The vibration motor can be used for vibration reminding.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein a network communication module and a TWS headset anti-loss program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client and performing data communication with the client; and the processor 1001 may be configured to invoke the TWS headset anti-lost program stored in the memory 1005 and perform the following operations:
when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is in a charging box or not at preset time intervals;
if the first earphone is detected not to be in the charging box, detecting whether the communication connection between the first earphone and a second earphone in the TWS earphones is disconnected;
and if the communication connection is disconnected, controlling the first earphone to carry out anti-lost reminding.
Further, the processor 1001 may call the TWS headset anti-lost program stored in the memory 1005, and also perform the following operations:
when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is a master earphone or a slave earphone;
if the first earphone is a master earphone, switching the first earphone into a slave earphone, switching the second earphone into a master earphone, and detecting whether the first earphone is in a charging box at intervals of preset time;
and if the first earphone is the slave earphone, detecting whether the first earphone is in the charging box or not at preset time intervals.
Further, the processor 1001 may call the TWS headset anti-lost program stored in the memory 1005, and also perform the following operations:
acquiring a general input/output port GPIO level value of the first earphone at preset time intervals;
and detecting whether the GPIO level value is within a preset threshold range or not so as to judge whether the first earphone is in the charging box or not.
Further, the processor 1001 may call the TWS headset anti-lost program stored in the memory 1005, and also perform the following operations:
and controlling the first earphone to play a preset reminding audio according to a preset reminding mode and/or carrying out vibration reminding.
Further, the processor 1001 may call the TWS headset anti-lost program stored in the memory 1005, and also perform the following operations:
acquiring the signal intensity of a broadcast signal sent by the second earphone when the communication connection is disconnected, and acquiring a loss distance according to the signal intensity;
and determining a target reminding mode according to the lost distance, and controlling the first earphone to adopt the target reminding mode to carry out anti-lost reminding.
Further, the processor 1001 may call the TWS headset anti-lost program stored in the memory 1005, and also perform the following operations:
when the first earphone is detected to be in the connection range of the second earphone, the communication connection between the first earphone and the second earphone is reestablished, and the anti-lost reminding is stopped.
Further, the processor 1001 may call the TWS headset anti-lost program stored in the memory 1005, and also perform the following operations:
if the communication connection is not disconnected, acquiring the residual electric quantity of the first earphone every other preset time, and detecting whether the residual electric quantity is lower than a preset threshold value;
and if the residual electric quantity is lower than a preset threshold value, generating corresponding prompt information for timely searching, and sending the prompt information to the second earphone, so that the second earphone sends the prompt information for timely searching to a corresponding mobile terminal.
Further, the processor 1001 may call the TWS headset anti-lost program stored in the memory 1005, and also perform the following operations:
and if the first earphone is detected to be in the charging box, controlling the first earphone to be disconnected from the communication connection with the second earphone.
Based on the hardware structure, the invention provides various embodiments of the TWS earphone anti-lost method.
The invention provides a TWS earphone anti-lost method.
Referring to fig. 2, fig. 2 is a schematic flow chart of a TWS headset anti-lost method according to a first embodiment of the present invention.
In this embodiment, the TWS headset anti-lost method includes:
step S10, when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is in a charging box at preset time intervals;
in this embodiment, the TWS earphone anti-loss method is applicable to a scene where one of two TWS earphones is removed or lost, the state of the removed earphone is obtained and detected at regular time, and when the obtained state meets a preset condition, the state is in an anti-loss state, and the removed earphone is controlled to perform anti-loss reminding, so that a user can easily find the removed earphone according to reminding, the loss situation is avoided, and the problem that the existing TWS earphone is easily lost is solved.
In the embodiment, when it is detected that the first earphone in the TWS earphone is removed, whether the first earphone is in the charging box is detected at preset time intervals. It should be noted that the first earphone refers to one of the TWS earphones, and is not particularly referred to a certain earphone. For example, optical sensors may be respectively disposed at an in-ear position and a non-in-ear position of the TWS headset, and if the light detected by the optical sensor at the in-ear position is weaker than the light detected by the optical sensor at the non-in-ear position, it may be determined that the TWS headset is in a worn state, and if the light information detected by the optical sensor changes, for example, when the light intensities detected by the optical sensor at the in-ear position and the optical sensor at the non-in-ear position are consistent, it may be determined that the TWS headset is removed. Of course, it is understood that the last detection condition is only an example, and in specific implementation, other specific detection conditions may be set according to actual situations. In addition, the preset time can be preset by the system and can be set to 5s-10s, and a personalized setting function can be provided according to the actual situation of the user.
Specifically, referring to fig. 3, step S10 includes:
step S11, when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is a master earphone or a slave earphone;
in this embodiment, since the communication connection mode between the TWS headset and the terminal is: the main earphone and the auxiliary earphone in the TWS earphone carry out pairing communication, and only the main earphone is in communication connection with the mobile terminal, so that when the removed earphone is the main earphone, if the main earphone is lost or disconnected with the terminal, the use of the auxiliary earphone in a wearing state can be influenced, and therefore, when the first earphone in the TWS earphone is detected to be removed, whether the first earphone is the main earphone or the auxiliary earphone can be detected.
Step S12, if the first earphone is a master earphone, switching the first earphone to a slave earphone, switching the second earphone to a master earphone, and detecting whether the first earphone is in a charging box every preset time;
and step S13, if the first earphone is the slave earphone, detecting whether the first earphone is in the charging box at preset time intervals.
If the first earphone is a master earphone, master-slave switching is required, specifically, the first earphone is switched into a slave earphone, the second earphone is switched into a master earphone, and whether the first earphone is in the charging box or not is detected at preset time intervals; if the first earphone is the slave earphone, master-slave switching is not needed, and whether the first earphone is in the charging box or not is detected at preset time intervals.
Wherein, the step of detecting whether the first earphone is in the charging box at preset time intervals comprises:
a1, acquiring general purpose input/output (GPIO) level values of the first earphone at preset time intervals;
step a2, detecting whether the GPIO level value is in a preset threshold range to judge whether the first earphone is in the charging box.
When detecting whether the first earphone is in the charging box, a General Purpose Input/Output (GPIO) level value of the first earphone can be obtained at preset time intervals, and then whether the obtained GPIO level value is within a preset threshold range is detected to determine whether the first earphone is in the charging box. The preset threshold range can be specifically set according to the circuit setting condition of the charging box. If the acquired GPIO level value is within the preset threshold range, the first earphone can be judged to be in the charging box; if the obtained GPIO level value is not within the preset threshold range, the first earphone is judged not to be in the charging box.
Step S20, if the first earphone is not in the charging box, detecting whether the communication connection between the first earphone and the second earphone in the TWS earphone is disconnected;
if the first earphone is detected not to be in the charging box, whether the communication connection between the first earphone and a second earphone in the TWS earphone is disconnected or not is detected.
Further, after step S10, the method further includes:
and if the first earphone is detected to be in the charging box, controlling the first earphone to be disconnected from the communication connection with the second earphone.
Namely, if the first earphone is detected to be in the charging box, the first earphone is controlled to be disconnected from the communication connection with the second earphone, so that the electric quantity of the first earphone is saved.
If the communication connection is disconnected, execute step S30: and controlling the first earphone to carry out anti-lost reminding.
Finally, if the communication connection between the first earphone and the second earphone is detected to be disconnected, it is indicated that the first earphone may be lost, and at this time, the first earphone enters a loss prevention state, and the first earphone is controlled to perform loss prevention reminding, so that a user can easily find the removed earphone according to the reminding, the loss situation is avoided, and the problem that the existing TWS earphone is easily lost is solved.
Specifically, step S30 may include:
and b1, controlling the first earphone to play a preset reminding audio according to a preset reminding mode and/or carrying out vibration reminding.
As one implementation mode of the anti-lost reminding, the first earphone can be controlled to play a preset reminding audio according to a preset reminding mode and/or to carry out vibration reminding. The preset reminding mode may include, but is not limited to: the reminding is carried out continuously, periodically at preset time intervals or according to preset times.
Step S30 may further include:
step b2, obtaining the signal intensity of the broadcast signal sent by the second earphone when the communication connection is disconnected, and obtaining the lost distance according to the signal intensity;
step b3, determining a target reminding mode according to the lost distance, and controlling the first earphone to adopt the target reminding mode for anti-lost reminding.
As another embodiment of the anti-lost reminder, the anti-lost reminder may be implemented by determining a target reminding mode according to the lost distance. Specifically, the signal strength of the broadcast signal sent by the second earphone when the communication connection is disconnected is first obtained, and then the loss distance is obtained according to the signal strength. The confirmation of the lost distance may be obtained by confirming based on the signal strength and a preset mapping relationship, where the preset mapping relationship includes a mapping relationship between the signal strength and the lost distance, and the preset mapping relationship may be a formula or a table. After the lost distance is confirmed, a target reminding mode can be determined according to the lost distance, and the first earphone is controlled to carry out anti-lost reminding by adopting the target reminding mode. For the confirmation of the target reminding mode, the distance range where the lost distance is located, such as a short-distance range, a medium-distance range and a long-distance range, can be determined based on the lost distance and the preset distance range, and then the target reminding mode is determined according to the located distance range, for example, the target reminding mode corresponding to the short-distance range is to play a preset reminding audio, the target reminding mode corresponding to the medium-distance range is to play a preset audio + vibration reminding, and the target reminding mode corresponding to the long-distance range is to play a preset audio + vibration reminding mode.
The embodiment of the invention provides a TWS earphone anti-lost method, which is applied to a TWS earphone, and when a first earphone in the TWS earphone is detected to be removed, whether the first earphone is in a charging box or not is detected at preset time intervals; if the first earphone is detected not to be in the charging box, detecting whether the communication connection between the first earphone and a second earphone in the TWS earphone is disconnected; and if the communication connection is disconnected, controlling the first earphone to carry out anti-lost reminding. The state of the removed first earphone is acquired and detected in a timing mode, when the acquired state meets the preset condition, the state is in an anti-lost state, the first earphone is controlled to carry out anti-lost reminding, so that a user can easily find the removed first earphone according to the reminding, the lost condition is avoided, and the problem that the existing TWS earphone is easy to lose is solved.
Further, based on the first embodiment described above, a second embodiment of the TWS headset anti-lost method of the present invention is proposed.
In this embodiment, after step S30, the TWS headset anti-lost method further includes:
and step A, when the first earphone is detected to be in the connection range of the second earphone, reestablishing the communication connection between the first earphone and the second earphone, and stopping the anti-lost reminding.
In this embodiment, after the first earphone and the second earphone are disconnected, the user may be in a relative movement state with the first earphone, at this time, the first earphone may be made to return to the connection range of the second earphone, and at this time, when it is detected that the first earphone is in the connection range of the second earphone, the communication connection between the first earphone and the second earphone is reestablished, and the anti-lost reminder is stopped.
Of course, it can be understood that the anti-lost reminder can also be stopped when the first earphone is detected to be in a re-wearing state or is installed in the charging box.
Further, based on the first embodiment described above, a third embodiment of the TWS headset anti-lost method of the present invention is proposed.
In this embodiment, before step S30, the TWS headset anti-lost method further includes:
step B, if the communication connection is not disconnected, acquiring the residual electric quantity of the first earphone every other preset time, and detecting whether the residual electric quantity is lower than a preset threshold value;
and step C, if the residual electric quantity is lower than a preset threshold value, generating corresponding prompt information and sending the prompt information to the second earphone, so that the second earphone sends the prompt information to a corresponding mobile terminal.
In this embodiment, when it is detected that the first headset is not in the charging box, it is further detected whether the communication connection between the first headset and the second headset in the TWS headset is disconnected; if the communication connection is not disconnected, acquiring the residual electric quantity of the first earphone at preset time intervals, and detecting whether the residual electric quantity is lower than a preset threshold value; if the residual capacity is lower than the preset threshold value, the user is reminded of in time searching for the first earphone in order to avoid the situation that the first earphone cannot be lost when power is not supplied, at the moment, corresponding prompt information can be generated and sent to the second earphone, so that the second earphone sends the prompt information to the corresponding mobile terminal, the user can check the prompt information through the mobile terminal, the residual capacity of the first earphone is known, and the user can search in time.
Of course, it can be understood that when it is detected that the remaining power of the first earphone is lower than the preset threshold, the first earphone may also be controlled to perform low power reminding, where the low power reminding mode needs to be different from the anti-lost reminding mode, so as to be distinguished by the user, for example, a low power reminding audio may be played in a circulating manner, or an intermittent vibration reminding mode may be adopted, or an indicator light of the first earphone may be controlled to flash for reminding.
Through the mode, the user can be reminded of finding in time when the residual quantity of the first earphone is less, so that the situation that the first earphone cannot be lost for reminding when the first earphone is not powered off is avoided, and the first earphone removed is difficult to find.
The invention also provides a computer readable storage medium having stored thereon a TWS headset anti-lost program, which when executed by a processor implements the steps of the TWS headset anti-lost method according to any of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the TWS headset anti-lost method described above, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A TWS earphone anti-lost method is applied to a true wireless stereo TWS earphone, and comprises the following steps:
when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is in a charging box or not at preset time intervals;
if the first earphone is detected not to be in the charging box, detecting whether the communication connection between the first earphone and a second earphone in the TWS earphones is disconnected;
and if the communication connection is disconnected, controlling the first earphone to carry out anti-lost reminding.
2. The TWS headset anti-lost method of claim 1 wherein the step of detecting whether a first one of the TWS headsets is inside a charging box at predetermined intervals when the first headset is detected to be removed comprises:
when detecting that a first earphone in the TWS earphones is removed, detecting whether the first earphone is a master earphone or a slave earphone;
if the first earphone is a master earphone, switching the first earphone into a slave earphone, switching the second earphone into a master earphone, and detecting whether the first earphone is in a charging box at intervals of preset time;
and if the first earphone is the slave earphone, detecting whether the first earphone is in the charging box or not at preset time intervals.
3. The TWS headset anti-lost method of claim 1 wherein the step of detecting whether the first headset is inside a charging box at predetermined intervals comprises:
acquiring a general input/output port GPIO level value of the first earphone at preset time intervals;
and detecting whether the GPIO level value is within a preset threshold range or not so as to judge whether the first earphone is in the charging box or not.
4. The TWS headset anti-lost method of claim 1, wherein the step of controlling the first headset to perform an anti-lost alert comprises:
and controlling the first earphone to play a preset reminding audio according to a preset reminding mode and/or carrying out vibration reminding.
5. The TWS headset anti-lost method of claim 1, wherein the step of controlling the first headset to perform an anti-lost alert comprises:
acquiring the signal intensity of a broadcast signal sent by the second earphone when the communication connection is disconnected, and acquiring a loss distance according to the signal intensity;
and determining a target reminding mode according to the lost distance, and controlling the first earphone to adopt the target reminding mode to carry out anti-lost reminding.
6. The TWS headset anti-lost method of any of claims 1 to 5, further comprising:
when the first earphone is detected to be in the connection range of the second earphone, the communication connection between the first earphone and the second earphone is reestablished, and the anti-lost reminding is stopped.
7. The TWS headset anti-lost method of any of claims 1 to 5, wherein after the step of detecting whether the communication connection between the first headset and the second one of the TWS headsets has been disconnected, further comprising:
if the communication connection is not disconnected, acquiring the residual electric quantity of the first earphone every other preset time, and detecting whether the residual electric quantity is lower than a preset threshold value;
and if the residual electric quantity is lower than a preset threshold value, generating corresponding prompt information for timely searching, and sending the prompt information to the second earphone, so that the second earphone sends the prompt information for timely searching to a corresponding mobile terminal.
8. The TWS headset anti-lost method of any of claims 1 to 5 wherein after the step of detecting whether the first headset is inside a charging box every preset time, further comprising:
and if the first earphone is detected to be in the charging box, controlling the first earphone to be disconnected from the communication connection with the second earphone.
9. A TWS headset, comprising: memory, processor and a TWS headset anti-loss program stored on the memory and executable on the processor, which when executed by the processor implements the steps of a TWS headset anti-loss method as claimed in any one of claims 1 to 8.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a TWS headset anti-loss program which, when executed by a processor, implements the steps of the TWS headset anti-loss method according to any one of claims 1 to 8.
CN201911211861.3A 2019-11-29 2019-11-29 TWS earphone loss prevention method, TWS earphone and computer readable storage medium Active CN111063170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911211861.3A CN111063170B (en) 2019-11-29 2019-11-29 TWS earphone loss prevention method, TWS earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911211861.3A CN111063170B (en) 2019-11-29 2019-11-29 TWS earphone loss prevention method, TWS earphone and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111063170A true CN111063170A (en) 2020-04-24
CN111063170B CN111063170B (en) 2021-12-07

Family

ID=70299637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911211861.3A Active CN111063170B (en) 2019-11-29 2019-11-29 TWS earphone loss prevention method, TWS earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111063170B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586519A (en) * 2020-05-18 2020-08-25 歌尔科技有限公司 Wireless earphone loss alarm method and device, wireless earphone and storage medium
CN111770409A (en) * 2020-07-13 2020-10-13 珠海市杰理科技股份有限公司 Earphone loss prevention method, device and system and earphone
CN112040361A (en) * 2020-09-03 2020-12-04 Oppo广东移动通信有限公司 Earphone control method, earphone control device and storage medium
CN112258809A (en) * 2020-09-30 2021-01-22 歌尔科技有限公司 Loss detection method and device of wireless earphone and earphone
CN113993076A (en) * 2021-11-23 2022-01-28 歌尔科技有限公司 Earphone positioning method and device, earphone equipment and storage medium
CN115273431A (en) * 2022-09-26 2022-11-01 荣耀终端有限公司 Device retrieving method and device, storage medium and electronic device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011071354A2 (en) * 2010-07-13 2011-06-16 Lee Sung-Jin Portable antitheft apparatus
CN206024064U (en) * 2016-09-13 2017-03-15 周继蓉 A kind of anti-lost protection structure of twin type bluetooth earphone
CN106878921A (en) * 2017-01-04 2017-06-20 佳禾智能科技股份有限公司 Earphone, earphone and voice signal send the method and device connected between equipment
CN108683998A (en) * 2018-06-12 2018-10-19 歌尔科技有限公司 TWS earphones anti-lost method, TWS earphones, terminal and anti-lose system
CN108718467A (en) * 2018-06-06 2018-10-30 歌尔科技有限公司 A kind of transmission method of voice data, wireless headset and TWS earphones
CN108718431A (en) * 2018-04-28 2018-10-30 歌尔股份有限公司 A kind of wireless headset and its alarm method
CN108810696A (en) * 2018-06-12 2018-11-13 歌尔科技有限公司 A kind of electric quantity reminding method, TWS earphones and earphone charging equipment
CN108834052A (en) * 2018-06-12 2018-11-16 歌尔科技有限公司 A kind of TWS earphone anti-lost method, TWS earphone and anti-lose system
CN109743654A (en) * 2019-01-29 2019-05-10 上海与德通讯技术有限公司 A kind of bluetooth headset major-minor ear switching method, device, equipment and medium
CN109922402A (en) * 2019-04-29 2019-06-21 歌尔科技有限公司 A kind of earphone anti-lost method, true wireless headset, charging box and earphone complete sets of products
CN110149567A (en) * 2019-05-21 2019-08-20 歌尔股份有限公司 The state monitoring method of true wireless headset and true wireless headset
CN110381485A (en) * 2019-06-14 2019-10-25 华为技术有限公司 Bluetooth communication method, TWS bluetooth headset and terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011071354A2 (en) * 2010-07-13 2011-06-16 Lee Sung-Jin Portable antitheft apparatus
CN206024064U (en) * 2016-09-13 2017-03-15 周继蓉 A kind of anti-lost protection structure of twin type bluetooth earphone
CN106878921A (en) * 2017-01-04 2017-06-20 佳禾智能科技股份有限公司 Earphone, earphone and voice signal send the method and device connected between equipment
CN108718431A (en) * 2018-04-28 2018-10-30 歌尔股份有限公司 A kind of wireless headset and its alarm method
CN108718467A (en) * 2018-06-06 2018-10-30 歌尔科技有限公司 A kind of transmission method of voice data, wireless headset and TWS earphones
CN108683998A (en) * 2018-06-12 2018-10-19 歌尔科技有限公司 TWS earphones anti-lost method, TWS earphones, terminal and anti-lose system
CN108810696A (en) * 2018-06-12 2018-11-13 歌尔科技有限公司 A kind of electric quantity reminding method, TWS earphones and earphone charging equipment
CN108834052A (en) * 2018-06-12 2018-11-16 歌尔科技有限公司 A kind of TWS earphone anti-lost method, TWS earphone and anti-lose system
CN109743654A (en) * 2019-01-29 2019-05-10 上海与德通讯技术有限公司 A kind of bluetooth headset major-minor ear switching method, device, equipment and medium
CN109922402A (en) * 2019-04-29 2019-06-21 歌尔科技有限公司 A kind of earphone anti-lost method, true wireless headset, charging box and earphone complete sets of products
CN110149567A (en) * 2019-05-21 2019-08-20 歌尔股份有限公司 The state monitoring method of true wireless headset and true wireless headset
CN110381485A (en) * 2019-06-14 2019-10-25 华为技术有限公司 Bluetooth communication method, TWS bluetooth headset and terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586519A (en) * 2020-05-18 2020-08-25 歌尔科技有限公司 Wireless earphone loss alarm method and device, wireless earphone and storage medium
CN111586519B (en) * 2020-05-18 2022-06-03 歌尔科技有限公司 Wireless earphone loss alarm method and device, wireless earphone and storage medium
CN111770409A (en) * 2020-07-13 2020-10-13 珠海市杰理科技股份有限公司 Earphone loss prevention method, device and system and earphone
CN112040361A (en) * 2020-09-03 2020-12-04 Oppo广东移动通信有限公司 Earphone control method, earphone control device and storage medium
CN112258809A (en) * 2020-09-30 2021-01-22 歌尔科技有限公司 Loss detection method and device of wireless earphone and earphone
CN112258809B (en) * 2020-09-30 2022-04-05 歌尔科技有限公司 Loss detection method and device of wireless earphone and earphone
CN113993076A (en) * 2021-11-23 2022-01-28 歌尔科技有限公司 Earphone positioning method and device, earphone equipment and storage medium
CN115273431A (en) * 2022-09-26 2022-11-01 荣耀终端有限公司 Device retrieving method and device, storage medium and electronic device
CN115273431B (en) * 2022-09-26 2023-03-07 荣耀终端有限公司 Device retrieving method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN111063170B (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN111063170B (en) TWS earphone loss prevention method, TWS earphone and computer readable storage medium
EP3447648B1 (en) Master device for using connection attribute of electronic accessories connections to facilitate locating an accessory
CN110413134B (en) Wearing state detection method and related equipment
US10805731B2 (en) Method for controlling earphone switching, earphone, and earphone system
KR102367053B1 (en) Electronic apparatus for performing communication with an external electronic device
EP3246790B1 (en) Information processing of combined voice and gesture input operations
CN111107667A (en) Bluetooth headset pairing method and device and readable storage medium
CN111787452B (en) TWS earphone, TWS earphone control method, TWS earphone control device and computer readable storage medium
KR20200106742A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
CN111899545B (en) Driving reminding method and device, storage medium and mobile terminal
US11295614B2 (en) Method for processing message and electronic device implementing the same
KR20200110086A (en) Method for establishing wireless communication link and electronic device supporting the same
KR102335903B1 (en) Method and apparatus for communication between electronic devices
CN110933738A (en) Mode switching method and system of wireless headset and TWS headset system
KR20200106743A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
EP3246791A2 (en) Information processing apparatus, informating processing system, and information processing method
KR102456913B1 (en) Electronic device for performing device to device communication and method thereof
JP2012533951A5 (en)
KR102462692B1 (en) Electronic Device and the Method for Informing Message Reception
CN111127937B (en) Traffic information transmission method, device and system and storage medium
CN114257922B (en) Earphone mixed loading identification method, system, equipment and computer readable storage medium
CN114866896B (en) Earphone pairing method, equipment and computer readable storage medium
CN114245458A (en) TWS earphone positioning method, system, device, equipment and storage medium
CN114245350A (en) Earphone interaction control method, system, equipment and storage medium
CN114257922A (en) Earphone mixed loading identification method, system, equipment and computer 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
GR01 Patent grant
GR01 Patent grant