CN114157952A - Earphone anti-loss early warning method and device, earphone and computer readable storage medium - Google Patents

Earphone anti-loss early warning method and device, earphone and computer readable storage medium Download PDF

Info

Publication number
CN114157952A
CN114157952A CN202111428619.9A CN202111428619A CN114157952A CN 114157952 A CN114157952 A CN 114157952A CN 202111428619 A CN202111428619 A CN 202111428619A CN 114157952 A CN114157952 A CN 114157952A
Authority
CN
China
Prior art keywords
earphone
preset
ultrasonic signal
early warning
state
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
CN202111428619.9A
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111428619.9A priority Critical patent/CN114157952A/en
Publication of CN114157952A publication Critical patent/CN114157952A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • 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

Landscapes

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

Abstract

The invention discloses an earphone anti-loss early warning method, an earphone anti-loss early warning device, an earphone and a computer readable storage medium, wherein the earphone anti-loss early warning method comprises the steps of acquiring a collected target ultrasonic signal when detecting that the earphone is switched from a wearing state to a falling state; determining whether the earphone meets a preset anti-lost condition or not according to a target ultrasonic signal; and if so, outputting preset earphone falling early warning information. The invention reduces the risk of losing the earphone.

Description

Earphone anti-loss early warning method and device, earphone and computer readable storage medium
Technical Field
The invention relates to the technical field of earphones, in particular to an earphone anti-loss early warning method and device, an earphone and a computer readable storage medium.
Background
The TWS headset is popular with consumers because the two headsets are independent and have no physical connecting line, but because the TWS headset has no physical connecting line and is independent and small, the phenomenon that the headset loosens or naturally falls off from the headset easily occurs, and then the headset is lost, which causes great trouble for users.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an earphone anti-loss early warning method, an earphone anti-loss early warning device, an earphone and a readable storage medium, and aims to solve the technical problem of reducing the risk of losing the earphone.
In order to achieve the above object, the present invention provides an anti-lost warning method for an earphone, including:
when the earphone is detected to be converted from a wearing state to a falling state, acquiring a collected target ultrasonic signal;
determining whether the earphone meets a preset anti-lost condition or not according to the target ultrasonic signal;
and if so, outputting preset earphone falling early warning information.
Optionally, the step of acquiring the acquired target ultrasonic signal includes:
and controlling a loudspeaker in the earphone to output ultrasonic signals, and controlling a microphone in the earphone to collect target ultrasonic signals corresponding to the output ultrasonic signals.
Optionally, the step of controlling a microphone in the earphone to acquire a target ultrasonic signal corresponding to the output ultrasonic signal includes:
and controlling a microphone in the earphone to collect ultrasonic reflection signals corresponding to the output ultrasonic signals once based on a preset time interval, and taking the collected ultrasonic reflection signals of a preset number as target ultrasonic signals.
Optionally, the step of determining whether the earphone meets a preset anti-lost condition according to the target ultrasonic signal includes:
acquiring a standard ultrasonic signal stored in a preset storage file, and matching the target ultrasonic signal with the standard ultrasonic signal;
and determining whether the earphone meets a preset anti-lost condition or not according to the matching result of the matching.
Optionally, the step of outputting preset earphone drop warning information includes:
detecting whether the earphone corresponding to the earphone is in a wearing state;
and if the pair of ear earphones are in a wearing state, outputting preset earphone falling early warning information through the pair of ear earphones.
Optionally, after the step of detecting whether the earphone corresponding to the earphone is in a wearing state, the method includes:
and if the earphone to the ear is not in a wearing state, determining a terminal connected with the earphone, and outputting preset earphone falling early warning information through the terminal.
Optionally, the step of detecting when the headset is switched from the wearing state to the falling state includes:
the method comprises the steps of acquiring wearing data acquired by a sensor in the earphone in real time, and detecting whether the wearing data is smaller than a preset threshold value;
and if the wearing data is smaller than a preset threshold value, determining that the earphone is converted from a wearing state to a falling state.
In addition, in order to achieve the above object, the present invention further provides an anti-lost warning device for an earphone, including:
the acquisition module is used for acquiring the acquired target ultrasonic signal when the earphone is detected to be converted from the wearing state to the falling state;
the determining module is used for determining whether the earphone meets a preset anti-lost condition or not according to the target ultrasonic signal;
and the output module is used for outputting preset earphone falling-off early warning information if the preset earphone falling-off early warning information is met.
In addition, in order to achieve the above object, the present invention further provides an earphone, where the earphone includes a memory, a processor, and an earphone anti-loss early warning program stored in the memory and capable of being executed on the processor, and when the earphone anti-loss early warning program is executed by the processor, the steps of the earphone anti-loss early warning method are implemented.
In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium, in which an earphone anti-loss early warning program is stored, and when the earphone anti-loss early warning program is executed by a processor, the steps of the earphone anti-loss early warning method are implemented.
According to the invention, when the earphone is detected to be converted from the wearing state to the falling state, whether the earphone meets the preset anti-lost condition is determined according to the acquired target ultrasonic signal, and when the earphone meets the preset anti-lost condition, the earphone falling early warning information is output, so that a user can find that the worn earphone naturally falls off in time, the phenomenon of earphone loss is avoided, the risk of earphone loss is reduced, no additional new accessory is required, the earphone falling detection treatment is carried out through the original accessory of the earphone, and the resource cost is also saved.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of an anti-lost warning method for an earphone according to the present invention;
fig. 3 is a schematic diagram of a device module of the anti-lost warning device for earphones according to the present invention.
The objects, features and advantages 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.
As shown in 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 is an earphone.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that turns off the display screen and/or the backlight when the terminal device is moved to the ear. Of course, the terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
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 an operating system, a network communication module, a user interface module, and a headset anti-loss warning 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 (user side) and performing data communication with the client; and the processor 1001 may be configured to call the headset anti-lost warning program stored in the memory 1005, and perform the following operations:
when the earphone is detected to be converted from a wearing state to a falling state, acquiring a collected target ultrasonic signal;
determining whether the earphone meets a preset anti-lost condition or not according to the target ultrasonic signal;
and if so, outputting preset earphone falling early warning information.
And in the invention, an earphone for operating the anti-lost early warning method is provided, wherein the earphone can comprise a TWS earphone. Inside the TWS headset, there are provided a power supply portion, a bluetooth portion, an MIC (microphone) matrix portion, a speaker, a Sensor, and the like. Wherein the power supply part is responsible for supplying power to other parts in the headset. The Bluetooth part is responsible for communication between the TWS earphone and the mobile phone and between the earphone and the earphone, between the earphone and the charging box and other controllers. The MIC matrix part can collect sound signals to realize a call function and also realize the functions of active noise reduction, sound source positioning, speed measurement and the like. The loudspeaker realizes the conventional music and voice playing function of the earphone and the function of sending out ultrasonic signals. The Sensor is used for realizing other related functions of the earphone. The earphone comprises a power supply, a Bluetooth chip, an MIC matrix, a loudspeaker and a Sensor. The MIC matrix comprises MIC1, MIC2 and MIC 3. And the MIC matrix realizes the conventional active noise reduction function and is also used for acquiring ultrasonic signals.
Based on the above hardware structure, please refer to fig. 2, the present invention provides an earphone anti-loss early warning method, in a first embodiment of the earphone anti-loss early warning method, the earphone anti-loss early warning method includes the following steps:
step S10, when the earphone is detected to be converted from the wearing state to the falling state, acquiring the acquired target ultrasonic signal;
the earphone in this embodiment may be a TWS earphone, and since the TWS earphone lacks a wire connection compared with a wired earphone, after a user wears the earphone on the ear, if the earphone naturally drops or looses from the ear, the user is hard to find, and at this time, a phenomenon that the earphone is lost is easily caused. Therefore, in this embodiment, whether the earphone has an action of being taken down actively by the user can be judged by using the ultrasonic waves, if no user operation is performed, the earphone is determined to fall off naturally, and at the moment, an early warning prompt can be given to inform the user, so that the earphone is prevented from being lost.
Therefore, in the present embodiment, detection may be performed by a sensor provided in advance in the headphone to determine the headphone state of the headphone. Wherein the states of the headset include a wearing state, a dropping state, and a box state. The wearing state may be a state in which the earphone is worn on the ear of the user. The in-box state may be a state in which the earphone is placed in the charging box. The dropped state may be a state in which the earphone is dropped from the ear but is not placed in the charging box. Therefore, in the present embodiment, the earphone state detection of the earphone can be performed by a sensor built in the earphone, and when it is detected that the earphone is connected to the charging contact in the charging box, it is determined that the earphone is in the box state. However, if the charging contacts in the earphone and the charging box are not connected, it can be determined that the earphone is not in the box state, and it can be determined whether the earphone is in the wearing state or the falling state.
At this time, the judgment can be carried out through a sensor in the earphone, namely, the value acquired by the sensor is compared with a preset threshold value, and if the value acquired by the sensor is smaller than the threshold value, the earphone can be determined to be far away from the earphone of the user, and the earphone is determined to be in a falling state. That is, the signal in the sensor outputs a signal through the speaker and receives a signal through the microphone, and the signal received by the microphone is taken as the value of the sensor. Wherein, the closer the earphone is to the user, the larger the signal value collected by the sensor.
It is also possible to determine whether the headset is in a worn state or a dropped state by distance detection. Namely, when the sensor in the earphone detects the human ear, the sensor sends a trigger signal, the distance between the earphone and the human ear is determined according to the trigger signal, then the distance is compared with the distance set in advance, if the distance is smaller than the distance set in advance, the earphone is determined to be in a wearing state, and if the distance is larger than or equal to the distance set in advance, the earphone is determined to be in a falling state.
And the state of dropping of earphone can be triggered through the user initiatively picking up the earphone, can also be that the earphone independently triggers, when the earphone drops naturally from the ear, also can trigger the state of dropping, lets the earphone get into the state of dropping. When the earphone drops naturally, the user is probably unaware of the earphone, and the earphone is easily lost. Therefore, in this embodiment, when it is detected that the earphone is switched from the wearing state to the dropping state, the earphone needs to be continuously detected to determine whether the earphone is naturally dropped, so as to avoid losing the earphone.
Furthermore, since the ultrasonic signal is emitted through the speaker in the earphone, the signal is not heard by the human ear, but the ultrasonic signal can be collected by the microphone of the earphone. And when the user takes off the earphone with the hand and the earphone naturally falls off, the ultrasonic signals collected by the microphone are different. Therefore, in the embodiment, whether the earphone falls off naturally can be judged through the acquired ultrasonic signals. Therefore, in the present embodiment, when the earphone is in the falling state, it is necessary to output an ultrasonic signal through a speaker in the earphone and collect a target ultrasonic signal through a microphone.
Step S20, determining whether the earphone meets a preset anti-lost condition according to the target ultrasonic signal;
after the microphone collects the target ultrasonic signal, the target ultrasonic signal can be directly compared with a signal value set in advance, if the target ultrasonic signal is the same as the signal value set in advance, the earphone is determined to be actively taken by a user, if the target ultrasonic signal is not the same as the signal value set in advance, the earphone is determined to naturally fall off, the risk of losing the earphone exists, a preset anti-loss condition can be triggered at the moment, namely the earphone meets the preset anti-loss condition, and subsequent anti-loss processing is carried out.
In addition, to improve the accuracy of determining whether the headphone is naturally fallen. The microphone in the earphone can be controlled to collect ultrasonic signals once at preset intervals, the ultrasonic signals collected at each time are compared with the signal value interval set in advance, if the ultrasonic signals are not in the signal value interval, and the ultrasonic signals with preset quantity are not in the signal value interval, the earphone is determined to fall off naturally, and the risk of losing the earphone exists. At this time, a preset anti-loss condition can be triggered to perform subsequent anti-loss treatment.
In addition, the average value of the ultrasonic signals for n times can be calculated, the average value is compared with a preset signal value, if the average value is different from the preset signal value, the earphone is determined to naturally fall off, and the risk of losing the earphone exists. At this time, a preset anti-loss condition can be triggered to perform subsequent anti-loss treatment.
And step S30, if yes, outputting preset earphone falling-off early warning information.
When the earphone is found to meet the preset anti-loss condition through judgment, the earphone can be determined to fall off naturally, the risk of losing the earphone exists, and the earphone falling early warning information (such as voice prompt, light flicker prompt, vibration prompt and the like) can be output through the terminal connected with the earphone or another earphone.
In addition, in order to assist understanding of the anti-lost warning method of the earphone in the present embodiment, the following description is given by way of example.
For example, when the anti-lost detection of the earphone is started, whether the earphone is taken off is detected first, and if not, the step of detecting whether the earphone is taken off is continued. If yes, sending out an ultrasonic signal through a loudspeaker in the earphone, collecting the signal through a mic in the earphone, collecting the signal for M times at intervals of Tms, and judging whether active removing action exists or not through processing. If yes, determining that the earphone is actively taken off by the user, and ending the earphone anti-loss detection process. If not, determining that the earphone is not actively taken off by the user and naturally falls off, continuously judging whether the earphone is worn on the ears, if so, sending a fall-off prompt tone through wearing the earphone on the ears, and if not, sending a fall-off prompt tone through the mobile phone APP. The determination method for determining whether there is an active picking action may be to determine whether there is an active picking action according to acceleration data detected by an acceleration sensor installed in the headset in advance, and determine that the active picking action is an active picking action if the acceleration data satisfies a certain condition. The judgment can also be carried out according to the ultrasonic signals, namely, a loudspeaker in the earphone is controlled to output the ultrasonic signals, a microphone in the earphone is controlled to collect the reflected ultrasonic signals, the reflected ultrasonic signals are compared with the standard ultrasonic signals which are set in advance, and whether the active picking action exists or not is determined according to the comparison result.
In this embodiment, when detecting that the earphone is changed into the state of dropping by wearing the state, whether the earphone satisfies preset anti-lost condition is determined according to the target ultrasonic signal of collection, and when satisfying, output earphone early warning information that drops, thereby can let the user in time discover that the earphone of wearing has already fallen naturally, the phenomenon of losing the earphone has been avoided appearing, the risk that the earphone is lost has been reduced, and need not additionally to increase new accessory, carry out earphone drop detection processing through the original accessory of earphone, resource cost has also been saved.
Further, based on the first embodiment of the present invention, a second embodiment of the earphone anti-lost warning method of the present invention is provided, in this embodiment, the step S10 of the above embodiment is a refinement of the step of acquiring the acquired target ultrasonic signal, and includes:
step a, controlling a loudspeaker in the earphone to output ultrasonic signals, and controlling a microphone in the earphone to collect target ultrasonic signals corresponding to the output ultrasonic signals.
In this embodiment, when detecting that the earphone is in the state of dropping, can directly start the loudspeaker in the earphone to control the loudspeaker to output the ultrasonic signal that has set for in advance, control the microphone in the earphone again and collect the signal that outputs ultrasonic signal bounce-back, and regard it as target ultrasonic signal, judge whether the earphone drops for nature according to target ultrasonic signal again, with the risk of confirming whether there is the earphone to lose.
It should be noted that, if the earphone is switched from the wearing state to the falling state, the earphone is in operation, such as playing music, and talking. The operation of the earphone is actively stopped at this time. And outputting the ultrasonic signals set in advance through a loudspeaker, and carrying out subsequent acquisition of target ultrasonic signals.
In this embodiment, the ultrasonic signal is output by controlling the speaker in the earphone, and the target ultrasonic signal corresponding to the output ultrasonic signal is collected by the microphone, so that the effectiveness of the collected target ultrasonic signal is ensured.
Specifically, the step of controlling a microphone in the earphone to collect a target ultrasonic signal corresponding to an output ultrasonic signal includes:
and b, controlling a microphone in the earphone to collect ultrasonic reflection signals corresponding to the output ultrasonic signals once based on a preset time interval, and taking the collected ultrasonic reflection signals of a preset number as target ultrasonic signals.
In this embodiment, after the speaker in the earphone outputs the ultrasonic signal, the microphone in the earphone may be controlled to collect the ultrasonic signal once based on a preset time interval (any time interval set in advance by the user, such as 5ms, etc.), that is, to output an ultrasonic reflection signal reflected back by the ultrasonic signal, and after collecting a preset number of ultrasonic reflection signals (any number set in advance by the user), the preset number of ultrasonic reflection signals may be used as the target ultrasonic signal. One or more ultrasound reflected signals may be acquired. The specific number is not limiting herein. After the loudspeaker in the earphone outputs the ultrasonic signal, when the ultrasonic signal is transmitted to the surface of a human body or clothes worn on the surface of the human body, the corresponding ultrasonic signal can be reflected, the reflected ultrasonic signal is collected through a microphone in the earphone, and the collected ultrasonic signal is used as an ultrasonic reflection signal.
In this embodiment, the microphone is controlled to collect the ultrasonic reflection signals once based on the preset time interval, and the ultrasonic reflection signals with the preset number are used as the target ultrasonic signals, so that a data basis is provided for subsequently judging whether the earphone naturally falls off, and the accuracy of judging whether the earphone naturally falls off is improved.
Further, the step of determining whether the earphone meets a preset anti-lost condition according to the target ultrasonic signal includes:
step c, acquiring a standard ultrasonic signal stored in a preset storage file, and matching the target ultrasonic signal with the standard ultrasonic signal;
and d, determining whether the earphone meets a preset anti-lost condition or not according to the matching result of the matching.
In this embodiment, after the target ultrasonic signal is determined by the earphone, the standard ultrasonic signal stored in a preset storage file (file set in advance) needs to be extracted, and the target ultrasonic signal and the standard ultrasonic signal are matched. If the number of the target ultrasonic signals is only one, whether the target ultrasonic signals are equal to the standard ultrasonic signals or not can be directly detected, or the absolute difference value between the target ultrasonic signals and the standard ultrasonic signals is smaller than a preset difference value, and if the target ultrasonic signals are equal to or smaller than the preset difference value, the earphone is determined not to meet the preset anti-lost condition. Otherwise, the earphone is determined to meet the preset anti-lost condition.
Or, if there are a plurality of target ultrasonic signals, calculating an average value of each target ultrasonic signal, and detecting whether an absolute difference between the average value and the standard ultrasonic signal is within a certain range, if so, determining that the earphone does not meet the preset anti-loss condition. Otherwise, the earphone is determined to meet the preset anti-lost condition.
Or if the standard ultrasonic signal is in the signal interval, the earphone does not meet the preset anti-loss condition when the target ultrasonic signal or the average value is in the signal interval range, and the earphone meets the preset anti-loss condition when the target ultrasonic signal or the average value is not in the signal interval range.
In addition, when the preset anti-loss condition of the earphone is judged, the judgment can be carried out according to the falling acceleration of the earphone, namely the speed of the earphone is collected through a sensor, whether the earphone is in an acceleration running state or not is determined, if the earphone is in the acceleration running state, whether the acceleration is matched with the preset acceleration range or not is judged, if the acceleration is matched with the preset acceleration range, the earphone is determined to naturally fall off, and the preset anti-loss condition is met.
In the embodiment, the target ultrasonic signal is matched with the standard ultrasonic signal in the preset storage file, and whether the earphone meets the preset anti-loss condition is determined according to the matching result, so that the detection accuracy of detecting whether the earphone naturally falls off is guaranteed, and the phenomenon that the earphone is lost is avoided.
Further, the step of outputting preset earphone falling-off early warning information comprises:
step e, detecting whether the earphone corresponding to the earphone is in a wearing state;
in this embodiment, when it is determined that the earphone naturally falls off, it may be first detected whether the earphone state of the headphone connected to the earphone is a wearing state, and it is determined whether to output the warning information that the earphone falls off through the headphone according to different detection results. The earphone for the opposite ear is an earphone having a connection relationship with the earphone, for example, if the earphone is a left-ear earphone, the earphone for the opposite ear is a right-ear earphone. If the earphone is a right-ear earphone, the opposite-ear earphone is a left-ear earphone.
And f, if the pair of ear earphones are in a wearing state, outputting preset earphone falling-off early warning information through the pair of ear earphones.
When the earphone is in a wearing state through judgment, other working processes (such as listening to music) of the earphone can be directly suspended, and earphone falling early warning information is output in the earphone, so that a user is informed that the earphone naturally falls, and the risk loss is avoided. Or when the earphone is in a wearing state, additionally starting a process in an idle state, and on the basis of not influencing the current running process of the earphone, parallelly outputting the earphone falling-off early warning information to avoid losing the earphone.
In this embodiment, through when confirming that the headphone is in the wearing state, directly through headphone output headphone early warning information that drops to make the user know that the headphone drops naturally the very first time, have the risk of losing, reduced the probability that the headphone is lost.
Specifically, after the step of detecting whether the earphone corresponding to the earphone is in a wearing state, the method includes:
and g, if the earphone to the ear is not in a wearing state, determining a terminal connected with the earphone, and outputting preset earphone falling early warning information through the terminal.
In this embodiment, when it is determined that the earphone is not worn, the terminal connected to the earphone, such as a smart phone or a computer, needs to be determined. And outputting the earphone falling-off early warning information through voice prompt or text prompt of the terminal.
In this embodiment, when it is determined that the earphone is not worn, the earphone drop-off warning information is directly output through the terminal connected with the earphone, so that the user can know that the earphone naturally drops at the first time, the risk of loss is present, and the probability of earphone loss is reduced.
Further, the step of detecting when the earphone is switched from the wearing state to the falling state comprises:
h, acquiring wearing data acquired by a sensor in the earphone in real time, and detecting whether the wearing data is smaller than a preset threshold value;
in this embodiment, when the earphone anti-loss process is determined, the wearing data collected by the sensor in the earphone needs to be acquired in real time, where the wearing data is a signal after the earphone is detected to be inserted into the ear. And detects whether the wearing data is smaller than a preset threshold (an arbitrary threshold set in advance by the user).
And k, if the wearing data is smaller than a preset threshold value, determining that the earphone is converted from a wearing state to a falling state.
And when the wearing data is found to be smaller than the preset threshold value through judgment, determining that the wearing state of the earphone is converted into a dropping state, and if the wearing data is larger than the preset threshold value, determining that the earphone is still in the wearing state.
In this embodiment, the earphone state of the earphone is judged according to the wearing data acquired by the sensor in the earphone, and when the wearing data is smaller than a preset threshold value, the earphone is determined to be switched from the wearing state to the falling state, so that the accuracy of detecting the earphone state of the earphone is guaranteed.
In addition, referring to fig. 3, the present invention further provides an earphone anti-loss early warning device, including:
the acquisition module A10 is used for acquiring the acquired target ultrasonic signal when the earphone is detected to be converted from the wearing state to the falling state;
a determining module A20, configured to determine whether the earphone meets a preset anti-lost condition according to the target ultrasonic signal;
and the output module A30 is used for outputting preset earphone falling-off early warning information if the preset earphone falling-off early warning information is met.
Optionally, the obtaining module a10 is configured to:
and controlling a loudspeaker in the earphone to output ultrasonic signals, and controlling a microphone in the earphone to collect target ultrasonic signals corresponding to the output ultrasonic signals.
Optionally, the obtaining module a10 is configured to:
and controlling a microphone in the earphone to collect ultrasonic reflection signals corresponding to the output ultrasonic signals once based on a preset time interval, and taking the collected ultrasonic reflection signals of a preset number as target ultrasonic signals.
Optionally, the determining module a20 is configured to:
acquiring a standard ultrasonic signal stored in a preset storage file, and matching the target ultrasonic signal with the standard ultrasonic signal;
and determining whether the earphone meets a preset anti-lost condition or not according to the matching result of the matching.
Optionally, an output module a30, configured to:
detecting whether the earphone corresponding to the earphone is in a wearing state;
and if the pair of ear earphones are in a wearing state, outputting preset earphone falling early warning information through the pair of ear earphones.
Optionally, an output module a30, configured to:
and if the earphone to the ear is not in a wearing state, determining a terminal connected with the earphone, and outputting preset earphone falling early warning information through the terminal.
Optionally, the obtaining module a10 is configured to:
the method comprises the steps of acquiring wearing data acquired by a sensor in the earphone in real time, and detecting whether the wearing data is smaller than a preset threshold value;
and if the wearing data is smaller than a preset threshold value, determining that the earphone is converted from a wearing state to a falling state.
The specific implementation of the module of the anti-lost warning device of the invention is basically the same as that of each embodiment of the anti-lost warning method of the earphone, and is not described again here.
In addition, the present invention also provides an earphone, including: the earphone anti-lost early warning device comprises a memory, a processor and an earphone anti-lost early warning program stored on the memory; the processor is used for executing the earphone anti-loss early warning program so as to realize the steps of the earphone anti-loss early warning method in each embodiment.
The specific implementation of the earphone of the present invention is basically the same as that of each embodiment of the above-mentioned earphone anti-lost early warning method, and is not described herein again.
The present invention also provides a readable storage medium, which may be a computer-readable storage medium, where one or more programs are stored, and the one or more programs are further executable by one or more processors for implementing the steps of the embodiments of the anti-lost warning method for an earphone.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of the embodiments of the above-mentioned earphone anti-lost warning method, and is not 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. An earphone anti-loss early warning method is characterized by comprising the following steps:
when the earphone is detected to be converted from a wearing state to a falling state, acquiring a collected target ultrasonic signal;
determining whether the earphone meets a preset anti-lost condition or not according to the target ultrasonic signal;
and if so, outputting preset earphone falling early warning information.
2. The earphone anti-lost warning method of claim 1, wherein the step of acquiring the acquired target ultrasonic signal comprises:
and controlling a loudspeaker in the earphone to output ultrasonic signals, and controlling a microphone in the earphone to collect target ultrasonic signals corresponding to the output ultrasonic signals.
3. The method for preventing earphone loss and warning as claimed in claim 2, wherein the step of controlling a microphone in the earphone to acquire a target ultrasonic signal corresponding to the output ultrasonic signal comprises:
and controlling a microphone in the earphone to collect ultrasonic reflection signals corresponding to the output ultrasonic signals once based on a preset time interval, and taking the collected ultrasonic reflection signals of a preset number as target ultrasonic signals.
4. The earphone anti-lost early warning method according to claim 1, wherein the step of determining whether the earphone meets a preset anti-lost condition according to the target ultrasonic signal comprises:
acquiring a standard ultrasonic signal stored in a preset storage file, and matching the target ultrasonic signal with the standard ultrasonic signal;
and determining whether the earphone meets a preset anti-lost condition or not according to the matching result of the matching.
5. The method for preventing earphone loss according to claim 1, wherein the step of outputting the preset earphone drop-off warning information comprises:
detecting whether the earphone corresponding to the earphone is in a wearing state;
and if the pair of ear earphones are in a wearing state, outputting preset earphone falling early warning information through the pair of ear earphones.
6. The anti-lost warning method for the earphones according to claim 5, wherein the step of detecting whether the earphones corresponding to the earphones are in a wearing state comprises the following steps:
and if the earphone to the ear is not in a wearing state, determining a terminal connected with the earphone, and outputting preset earphone falling early warning information through the terminal.
7. The headset anti-lost warning method of any one of claims 1-6, wherein the step of detecting when the headset is switched from the worn state to the dropped state comprises:
the method comprises the steps of acquiring wearing data acquired by a sensor in the earphone in real time, and detecting whether the wearing data is smaller than a preset threshold value;
and if the wearing data is smaller than a preset threshold value, determining that the earphone is converted from a wearing state to a falling state.
8. The utility model provides an earphone anti-lost early warning device which characterized in that, earphone anti-lost early warning device includes:
the acquisition module is used for acquiring the acquired target ultrasonic signal when the earphone is detected to be converted from the wearing state to the falling state;
the determining module is used for determining whether the earphone meets a preset anti-lost condition or not according to the target ultrasonic signal;
and the output module is used for outputting preset earphone falling-off early warning information if the preset earphone falling-off early warning information is met.
9. An earphone, characterized in that the earphone comprises: a memory, a processor and a headset anti-loss warning program stored on the memory and executable on the processor, the headset anti-loss warning program when executed by the processor implementing the steps of the headset anti-loss warning method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an earphone anti-loss warning program, which when executed by a processor implements the steps of the earphone anti-loss warning method according to any one of claims 1 to 7.
CN202111428619.9A 2021-11-26 2021-11-26 Earphone anti-loss early warning method and device, earphone and computer readable storage medium Pending CN114157952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111428619.9A CN114157952A (en) 2021-11-26 2021-11-26 Earphone anti-loss early warning method and device, earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111428619.9A CN114157952A (en) 2021-11-26 2021-11-26 Earphone anti-loss early warning method and device, earphone and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114157952A true CN114157952A (en) 2022-03-08

Family

ID=80784106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111428619.9A Pending CN114157952A (en) 2021-11-26 2021-11-26 Earphone anti-loss early warning method and device, earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114157952A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737921A (en) * 2018-04-28 2018-11-02 维沃移动通信有限公司 A kind of control method for playing back, system, earphone and mobile terminal
CN108763978A (en) * 2018-05-28 2018-11-06 Oppo广东移动通信有限公司 Information cuing method, device, terminal, earphone and readable storage medium storing program for executing
US20190261094A1 (en) * 2018-02-17 2019-08-22 Apple Inc. Ultrasonic proximity sensors, and related systems and methods
CN110333528A (en) * 2019-06-24 2019-10-15 Oppo广东移动通信有限公司 A kind of detection method, device, earphone, terminal and computer readable storage medium
CN111586519A (en) * 2020-05-18 2020-08-25 歌尔科技有限公司 Wireless earphone loss alarm method and device, wireless earphone and storage medium
CN113053081A (en) * 2021-03-30 2021-06-29 上海闻泰信息技术有限公司 Method and device for preventing loss of wireless earphone, terminal equipment and medium
WO2021179280A1 (en) * 2020-03-11 2021-09-16 瑞声声学科技(深圳)有限公司 Earphone and method for detecting wearing state thereof
CN113573226A (en) * 2021-05-08 2021-10-29 恒玄科技(北京)有限公司 Earphone, earphone in and out detection method and storage medium of earphone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190261094A1 (en) * 2018-02-17 2019-08-22 Apple Inc. Ultrasonic proximity sensors, and related systems and methods
CN108737921A (en) * 2018-04-28 2018-11-02 维沃移动通信有限公司 A kind of control method for playing back, system, earphone and mobile terminal
CN108763978A (en) * 2018-05-28 2018-11-06 Oppo广东移动通信有限公司 Information cuing method, device, terminal, earphone and readable storage medium storing program for executing
CN110333528A (en) * 2019-06-24 2019-10-15 Oppo广东移动通信有限公司 A kind of detection method, device, earphone, terminal and computer readable storage medium
WO2021179280A1 (en) * 2020-03-11 2021-09-16 瑞声声学科技(深圳)有限公司 Earphone and method for detecting wearing state thereof
CN111586519A (en) * 2020-05-18 2020-08-25 歌尔科技有限公司 Wireless earphone loss alarm method and device, wireless earphone and storage medium
CN113053081A (en) * 2021-03-30 2021-06-29 上海闻泰信息技术有限公司 Method and device for preventing loss of wireless earphone, terminal equipment and medium
CN113573226A (en) * 2021-05-08 2021-10-29 恒玄科技(北京)有限公司 Earphone, earphone in and out detection method and storage medium of earphone

Similar Documents

Publication Publication Date Title
US10015836B2 (en) Master device for using connection attribute of electronic accessories connections to facilitate locating an accessory
JP6403397B2 (en) Application control method and device for terminal, earphone device and application control system
CN108810693B (en) Wearable device and device control device and method thereof
CN110493678B (en) Earphone control method and device, earphone and storage medium
CN112584293B (en) Microphone hole blockage detection method and related product
CN108763901B (en) Ear print information acquisition method and device, terminal, earphone and readable storage medium
CN108540900B (en) Volume adjusting method and related product
CN108668009B (en) Input operation control method, device, terminal, earphone and readable storage medium
CN111770407A (en) Earphone state detection method and device, earphone and readable storage medium
CN109348334B (en) Wireless earphone and environment monitoring method and device thereof
CN108681413B (en) Control method of display module and mobile terminal
CN111787452B (en) TWS earphone, TWS earphone control method, TWS earphone control device and computer readable storage medium
CN106302974B (en) information processing method and electronic equipment
CN108900688B (en) Sound production control method and device, electronic device and computer readable medium
KR20200097590A (en) Electronic device and method for detecting block of microphone
CN109361987B (en) Sports earphone and control method, device and equipment thereof
CN108962259B (en) Processing method and first electronic device
CN108810787B (en) Foreign matter detection method and device based on audio equipment and terminal
CN114157952A (en) Earphone anti-loss early warning method and device, earphone and computer readable storage medium
CN108680181B (en) Wireless earphone, step counting method based on earphone detection and related product
CN109144461B (en) Sound production control method and device, electronic device and computer readable medium
CN113905302B (en) Method and device for triggering prompt message and earphone
CN109032008A (en) Sounding control method, device and electronic device
CN114745624A (en) Wireless earphone searching method and device, earphone and storage medium
CN113766385A (en) Earphone noise reduction method and device

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