CN111770407A - Earphone state detection method and device, earphone and readable storage medium - Google Patents

Earphone state detection method and device, earphone and readable storage medium Download PDF

Info

Publication number
CN111770407A
CN111770407A CN202010611832.2A CN202010611832A CN111770407A CN 111770407 A CN111770407 A CN 111770407A CN 202010611832 A CN202010611832 A CN 202010611832A CN 111770407 A CN111770407 A CN 111770407A
Authority
CN
China
Prior art keywords
earphone
state
detection
determining
data
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
CN202010611832.2A
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 CN202010611832.2A priority Critical patent/CN111770407A/en
Publication of CN111770407A publication Critical patent/CN111770407A/en
Priority to PCT/CN2020/134462 priority patent/WO2022000998A1/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/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for detecting the state of an earphone, the earphone and a readable storage medium, wherein the method comprises the following steps: the method comprises the steps of detecting pressure data corresponding to the earphone based on a pressure sensor, obtaining duration corresponding to the pressure data, comparing the pressure data and the duration with a preset value, determining an initial state of the earphone based on a comparison result, obtaining detection data of a wearing detection module of the earphone, and determining a target state of the earphone based on the detection data and the initial state of the earphone. Whether the user is wearing, picking up the earphone and other manual operations is judged through pressure data and duration detected by the pressure sensor, the final state of the earphone is determined by combining detection data of the wearing detection module, real-time detection of the state of the earphone is achieved, meanwhile, the wearing state of the current earphone can be accurately positioned, the phenomenon that the earphone is lost due to the fact that the wearing state of the earphone cannot be known in time is avoided, and economic loss is brought to the user.

Description

Earphone state detection method and device, earphone and readable storage medium
Technical Field
The present invention relates to the field of earphones, and in particular, to an earphone state detection method, an earphone state detection device, an earphone, and a readable storage medium.
Background
TWS is an abbreviation of True Wireless Stereo, i.e. the True Wireless Stereo meaning, and TWS technology is also based on the development of bluetooth chip technology. According to the working principle, the mobile phone is connected with the main earphone, and then the main earphone is quickly connected with the auxiliary earphone in a wireless mode, so that the real wireless separation use of the left and right sound channels of the Bluetooth is realized. When the slave loudspeaker box is not connected, the master loudspeaker box returns to the monophonic tone quality. The TWS technology is applied to the field of Bluetooth headsets, so a new product TWS Bluetooth headset is also promoted.
The existing TWS earphone is increasingly pursuing to be small, light and thin, and emphasizes the non-inductive wearing. Because the wearing perception of user to the earphone is more and more weak, consequently drop from the ear when the earphone, also have the problem of difficult perception, the losing of earphone can cause certain loss of property for the user.
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 a method and a device for detecting the wearing state of an earphone, the earphone and a readable storage medium, and aims to solve the technical problem that the wearing state of the earphone cannot be known in time due to the fact that the wearing perception of a user on the earphone is weaker and weaker in the prior art.
In order to achieve the above object, the present invention provides a method for detecting a state of an earphone, including the steps of:
detecting pressure data corresponding to the earphone based on the pressure sensor, and acquiring duration corresponding to the pressure data;
determining an initial state of the headset based on the pressure data, the duration;
and acquiring detection data of a wearing detection module of the earphone, and determining a target state of the earphone based on the detection data and the initial state of the earphone.
Further, the step of determining an initial state of the headset based on the pressure data, the duration, comprises:
when the pressure data is greater than or equal to a preset pressure value and the duration is greater than or equal to a first preset duration, determining that the earphone is in a handheld state;
and when the pressure data is smaller than the preset pressure value, determining that the initial state of the earphone is not handheld.
Further, the step of acquiring detection data of a wearing detection module of the headset and determining a target state of the headset based on the detection data and an initial state of the headset includes:
determining a contact state of the earphone with the ear based on the detection data;
determining a target state of the headset based on the initial state of the headset and the contact state.
Further, the detection data includes a detection value and a detection time length corresponding to the detection value, and the step of determining the contact state of the earphone and the ear based on the detection data includes:
when the detection value is in a preset interval and the detection duration is longer than a second preset duration, determining that the contact state is contacted;
and when the detection value is not in a preset interval, determining that the contact state is non-contact.
Further, the step of determining a target state of the headset based on the contact state and the initial state of the headset comprises:
when the initial state of the earphone is determined to be handheld and the contact state is determined to be contacted, determining the target state of the earphone to be the beginning of wearing the earphone;
when the initial state of the earphone is determined to be handheld and the contact state is determined to be non-contact, determining that the target state of the earphone is the handheld earphone;
when the initial state of the earphone is determined to be not handheld and the contact state is determined to be contacted, determining that the target state of the earphone is in the wearing state of the earphone;
and when the initial state of the earphone is determined to be not handheld and the contact state is determined to be non-contact, determining that the target state of the earphone is earphone falling.
Further, when it is determined that the initial state of the headset is handheld and the contact state is non-contact, the step of determining that the target state of the headset is handheld comprises:
acquiring detection data of a box-in detection module of the earphone within preset time;
determining whether the earphone is in an earphone box or not based on the detection data of the box-entering detection module;
and when the earphone is in the earphone box, updating the target state of the earphone to be that the earphone is put into the box.
Further, after the step of determining that the target state of the headset is headset falling when the initial state of the headset is determined to be not handheld and the contact state is determined to be non-contact, the method includes:
acquiring detection data of a box-in detection module of the earphone, and determining whether the earphone is in an earphone box or not based on the detection data of the box-in detection module;
and when the earphone is not in the earphone box, sending earphone falling alarm information to a preset terminal.
Further, the headphone state detection apparatus includes:
the detection module is used for detecting pressure data corresponding to the earphone based on the pressure sensor and acquiring duration corresponding to the pressure data;
a comparison module for determining an initial state of the headset based on the pressure data and the duration;
the determining module is used for acquiring detection data of the wearing detection module of the earphone and determining a target state of the earphone based on the detection data and the initial state of the earphone.
In addition, to achieve the above object, the present invention also provides an earphone state detecting earphone, including: the earphone state detection method comprises a memory, a processor and an earphone state detection program which is stored on the memory and can run on the processor, wherein the earphone state detection program realizes the steps of any earphone state detection method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a readable storage medium, which stores therein a headphone state detection program, the headphone state detection program, when executed by a processor, implementing the steps of the headphone state detection method according to any one of the above.
The method comprises the steps of detecting pressure data corresponding to the earphone based on the pressure sensor, obtaining duration corresponding to the pressure data, determining the initial state of the earphone based on the pressure data and the duration, obtaining detection data of a wearing detection module of the earphone, and determining the target state of the earphone based on the detection data and the initial state of the earphone. Whether the user is wearing, picking up the earphone and other manual operations is judged through pressure data and duration detected by the pressure sensor, the final state of the earphone is further determined by combining detection data of the wearing detection module, real-time detection of the earphone state is achieved, meanwhile, the wearing state (including falling) of the current earphone can be accurately positioned, the earphone is prevented from being lost due to the fact that the wearing state of the earphone cannot be known in time, and economic loss is brought to the user.
Drawings
Fig. 1 is a schematic diagram of a headset in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a method for detecting states of earphones according to the present invention;
fig. 3 is a schematic flow chart illustrating wearing detection of an earphone according to an embodiment of the earphone state detection method of the present invention;
fig. 4 is a schematic flow chart illustrating time accumulation during wearing of an earphone according to an embodiment of the earphone state detection method of the present invention;
FIG. 5 is a schematic flow chart illustrating a headset in-box detection method according to an embodiment of the headset state detection method of the present invention;
fig. 6 is a schematic diagram of functional modules of an embodiment of an earphone status detection apparatus according to 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.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a headset in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the headset 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 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.
Those skilled in the art will appreciate that the object detection system configuration shown in fig. 1 does not constitute a limitation of the headset and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a headset state detection program.
In the headset shown in fig. 1, the network interface 1004 is mainly used for connecting with a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a user terminal and performing data communication with the user terminal; and the processor 1001 may be used to invoke the headset state detection program stored in the memory 1005.
In this embodiment, the headset includes: the earphone state detection method comprises a memory 1005, a processor 1001 and an earphone state detection program which is stored in the memory 1005 and can run on the processor 1001, wherein when the processor 1001 calls the earphone state detection program stored in the memory 1005, the steps of the earphone state detection method provided by each embodiment of the application are executed.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of the method for detecting a state of an earphone according to the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein.
In this embodiment, the headphone state detection method includes:
step S100, detecting pressure data corresponding to the earphone based on the pressure sensor, and acquiring duration corresponding to the pressure data;
in this embodiment, in general, the wireless headset mainly includes a main control module, a wireless communication module, a speaker, a plurality of microphones with different functions, a rechargeable battery, and the like, where the main control module is connected to the main device through the wireless communication module to acquire data sent by the main device or send data to the main device. Further, in order to detect the wearing state of the earphone, the wireless earphone is further provided with a wearing detection module and a pressure sensor module, wherein the wearing detection module is used for detecting the contact between the earphone and the ear, namely whether the earphone is in the wearing state.
Specifically, the pressure sensor module is arranged inside a casing of a position where a user habitually takes the earphone, for example, an earphone handle, the pressure sensor can detect deformation of the earphone casing, detect pressure and simultaneously accumulate duration of the pressure, when the detected pressure is greater than a threshold value, it can be determined that the earphone is taken by the user, and the duration corresponding to the pressure data indicates that the user is always taking the earphone or wearing the earphone, taking the earphone and the like within the duration.
Step S200, determining the initial state of the earphone based on the pressure data and the duration;
in this embodiment, according to the pressure data detected by the pressure sensor and the duration corresponding to the accumulated pressure data, the initial state of the earphone is first determined, where the initial state includes two states, a handheld state and a non-handheld state, where the handheld state indicates that a user may wear the earphone and pick up the earphone, and the non-handheld state indicates that the user does not perform any manual operation on the earphone.
Specifically, step S200 includes:
step S210, when the pressure data is greater than or equal to the preset pressure value and the duration is greater than or equal to the first preset duration, determining that the initial state of the earphone is handheld;
step S220, when the pressure data is smaller than the preset pressure value, determining that the initial state of the earphone is not handheld.
In this embodiment, a pressure threshold is preset to determine whether a user presses the earphone, the first preset time is used to detect the duration of the pressure operation, for example, 5 seconds is set, when the pressure data is greater than or equal to the preset pressure value and the duration of the pressure is greater than or equal to the first preset time, it is determined that the initial state of the earphone is handheld, that is, the user holds the earphone with the hand, and the duration is used to exclude the user from only touching the earphone.
Further, when the pressure data detected by the pressure sensor is smaller than the preset pressure value, it is indicated that the user does not press the earphone, that is, the user does not hold the earphone with the hand, at this time, the duration time does not need to be determined, and as long as the user does not press the earphone, that is, the pressure data is smaller than the preset pressure value, it is determined that the initial state of the earphone is not handheld.
Step S300, acquiring detection data of a wearing detection module of the earphone, and determining a target state of the earphone based on the detection data and the initial state of the earphone.
In this embodiment, the wearing detection module of the earphone is used to detect whether the earphone is in contact with the ear, that is, whether the earphone is in a wearing state, and the wearing detection module includes, but is not limited to, an optical sensor wearing detection unit or a capacitive detection device. For example, the optical sensor wearing detection unit detects the emitted infrared light, reflects the light signal after encountering the human ear, and judges that the earphone is in contact with the ear when the optical sensor wearing detection unit receives the reflected light signal; or the capacitance detection device detects the coupling capacitance value, and the coupling capacitance value is larger than the capacitance threshold value, so that the earphone is judged to be in contact with the ear.
Specifically, step S300 includes:
step S310, determining the contact state of the earphone and the ear based on the detection data;
specifically, step S310 includes:
step S311, when the detection value is in a preset interval and the detection duration is longer than a second preset duration, determining that the contact state is contacted;
in step S312, when the detection value is not in the preset interval, it is determined that the contact state is non-contact.
In this embodiment, the detection data of the wearing detection module of the earphone includes a detection value and a detection duration corresponding to the detection value, the preset interval is used to determine whether the detection value is valid, if the wearing detection module wears the detection unit for the optical sensor, the detection value is the optical signal intensity, the preset interval is the preset range of the optical signal, when the optical signal intensity is in the preset interval, it is determined that the earphone is in contact with the ear, and the contact needs to be kept for a certain duration, that is, the detection duration is longer than a second preset duration, and it is determined that the contact state of the earphone and the ear is in contact. Otherwise, when the detection value is not in the preset interval, the contact state of the earphone and the ear is determined to be non-contact.
Step S320, determining a target state of the headset based on the initial state of the headset and the contact state.
In the present embodiment, the states of the headset generally include: the earphone is worn, the earphone is held by hands, the earphone is worn, the earphone falls off, and the earphone placing box is special. The target state of the headset, i.e. the current real state, is determined from the initial state of the headset and the contact state of the headset with the ear.
Specifically, step S320 includes:
step S321, when the initial state of the earphone is determined to be handheld and the contact state is determined to be contacted, determining the target state of the earphone to be the beginning of wearing the earphone;
in this embodiment, a user opens the earphone storage box to take the earphone, when the pressure sensor of the earphone detects the taking action of the finger of the user, that is, the detected pressure data is greater than or equal to a preset pressure value, and the duration time of the pressure data is greater than or equal to a first preset time length, that is, the earphone is held by the hand in an initial state; meanwhile, if the wearing detection module of the earphone detects the reflected optical signal by the optical sensor or the capacitive detection device detects that the earphone is in contact with the skin, namely the contact state of the earphone and the ear is the contact state, the earphone is taken out of the storage box and the wearing action is finished, namely when the initial state of the earphone is handheld and the contact state is the contact state, the target state of the earphone is determined as the beginning of wearing the earphone.
For example, referring to fig. 3, the abscissa represents time, and when the user takes the headphone from the headphone storage case in the non-wearing state, the pressure sensor inside the headphone handle case detects the taking motion of the user's finger, that is, the detected pressure data is greater than the threshold value Δ F, and then time accumulation is performed. If the pressure data detected by the pressure sensor is larger than the threshold value deltaF, the time accumulation is larger than deltat 1, meanwhile, the wearing detection module of the earphone detects valid data, such as the optical sensor of the earphone detects a reflected light signal, or the capacitance detection device detects contact with the skin, the time accumulation is started, if the time accumulation is larger than deltat 2, the user is judged to take out the earphone from the storage box, and the wearing action is finished. Since the user may release the handle while wearing the headphone, referring to fig. 4, the condition that the initial state is the hand-held state and the contact state is satisfied as long as the cumulative time of the pressure data exceeding the threshold Δ F is greater than Δ t1 and the cumulative time of the contact of the headphone with the ear is greater than Δ t 2.
Step S322, when the initial state of the earphone is determined to be handheld and the contact state is determined to be non-contact, determining that the target state of the earphone is the handheld earphone;
in this embodiment, the pressure sensor of the earphone detects the taking action of the finger of the user, but the wearing detection module does not detect valid data at this time, that is, the contact state of the earphone and the ear is non-contact, that is, when the initial state of the earphone is handheld and the contact state is non-contact, the target state of the earphone is determined to be the handheld earphone. The state of the handheld headset may be that the user is just holding the headset, or the user is picking up the headset.
For example, when the user removes the headset from the ear while the headset is worn, the pressure sensor in the headset detects the removal of the user's finger, i.e., the detected pressure is greater than the threshold Δ F, and the accumulation of the time that the detected pressure is greater than the threshold Δ F is greater than Δ t 1. And in the time when the detected pressure is continuously greater than the threshold value deltaF, the wearing detection module of the earphone does not detect valid data, for example, the optical sensor of the earphone does not detect a reflected optical signal, or the capacitive detection device detects that the earphone is not in contact with the skin, and the earphone is judged to be taken off from the ear and is in a non-wearing state.
Step S323, when the initial state of the earphone is determined to be not handheld and the contact state is determined to be contacted, determining that the target state of the earphone is in the wearing process of the earphone;
in this embodiment, when the earphone is worn, the earphone is usually not touched by a hand, so that when the pressure data detected by the pressure sensor of the earphone is smaller than the preset pressure value, that is, the user does not press the earphone, and the current contact state of the earphone and the ear is already in contact, it can be determined that the earphone is currently in the worn state. It should be noted that the wearing detection module of the earphone and the pressure sensor continuously perform data monitoring, so as to ensure that the earphone can be found in time when the earphone falls off or is abnormally worn, and alarm is given.
Step S324, when the initial state of the earphone is determined to be not handheld and the contact state is determined to be non-contact, the target state of the earphone is determined to be earphone falling.
In this embodiment, when the pressure data detected by the pressure sensor of the earphone is smaller than the preset pressure value, that is, the user does not press the earphone, the wearing detection module of the earphone, for example, the optical sensor of the earphone does not detect the reflected optical signal, or the capacitive detection device detects that the earphone is not in contact with the skin, determines that the earphone is not worn correctly or falls off. Because the wearing detection module and the pressure sensor of the earphone continuously monitor data, the earphone can be guaranteed to be monitored in time when the earphone drops or is worn abnormally, and a user is informed, so that the earphone is prevented from being lost, and economic loss is brought to the user.
The method for detecting the state of the headset provided in this embodiment obtains the respective corresponding hyper-parameters of each preset group, and sends the respective hyper-parameters to the participants in the respective corresponding group, so that the participants in the group detect the respective model parameters based on the received state of the headset, and federate learning is performed among the participants in the group to obtain the sub-target models corresponding to the respective groups, wherein each group includes the same number of participants, and then evolution calculation is performed based on the respective sub-target models and the respective corresponding hyper-parameters of each group to obtain the intermediate hyper-parameters, the respective corresponding hyper-parameters of each group are optimized based on the intermediate hyper-parameters, and finally iterative evolution calculation is performed based on the respective corresponding hyper-parameters of each optimized group until an iteration stop condition is detected to obtain the target hyper-parameters. The method has the advantages that the model hyper-parameters of the federal learning are synchronously optimized on the basis of optimizing the model parameters of the federal learning through evolution calculation, so that manual adjustment of the hyper-parameters is avoided, the hyper-parameter optimization efficiency in the federal learning is improved, and meanwhile, the performance of the federal learning model is remarkably improved.
Based on the first embodiment, a second embodiment of the earphone status detection method of the present invention is proposed, in this embodiment, step S322 includes:
step a, acquiring detection data of a box-in detection module of the earphone within preset time;
b, determining whether the earphone is in the earphone box or not based on the detection data of the box-entering detection module;
and c, when the earphone is in the earphone box, updating the target state of the earphone to be that the earphone is put into the box.
In this embodiment, the pressure sensor of the earphone detects the taking action of the finger of the user, but the wearing detection module does not detect valid data at this time, that is, the contact state of the earphone and the ear is non-contact, that is, when the initial state of the earphone is handheld and the contact state is non-contact, the target state of the earphone is determined to be the handheld earphone. The state of the handheld headset may be that the user is just holding the headset, or the user is picking up the headset. Whether can further confirm the earphone and place in the earphone receiver, wherein, the earphone receiver is provided with into box monitoring devices, when the earphone goes into the box, can send data for the income box detection module of earphone, perhaps the income box detection module initiative of earphone acquires into box monitoring devices's data to confirm whether the earphone goes into the box.
Specifically, when the state of the headset is currently determined to be that the headset is held, within a preset time, the detection data of the headset in-box detection module is acquired to determine whether the headset is in the headset box, and when the headset is in the headset box, the current state of the headset is updated to be that the headset is in the box.
For example, if the earphone insertion detection module detects that the earphone is inserted after time Δ t3, it is determined that the user has taken the earphone off the insertion box, as shown in fig. 5, and the abscissa is time, and if the pressure sensor of the earphone detects the taking action of the user's finger, that is, the detected pressure is greater than the threshold value Δ F, and the insertion box detection module does not detect that the earphone is inserted after time Δ t3, it is determined that the user has taken the earphone off the insertion box but not inserted.
Further, in an embodiment, after the step S324, the method includes:
step d, acquiring detection data of a box-in detection module of the earphone, and determining whether the earphone is in the earphone box or not based on the detection data of the box-in detection module;
and e, when the earphone is not in the earphone box, sending earphone falling alarm information to a preset terminal.
In this embodiment, when the pressure data detected by the pressure sensor of the earphone is smaller than the preset pressure value, that is, the user does not press the earphone, the wearing detection module of the earphone, for example, the optical sensor of the earphone does not detect the reflected optical signal, or the capacitive detection device detects that the earphone is not in contact with the skin, determines that the earphone is not worn correctly or falls off. At this moment, can further confirm whether the earphone is placed in the earphone receiver, wherein, the earphone receiver is provided with into box monitoring devices, when the earphone goes into the box, can send data for the income box detection module of earphone, perhaps the income box detection module of earphone initiatively acquires into box monitoring devices' data to confirm whether the earphone goes into the box.
Specifically, when the state of the earphone is currently determined to be that the earphone falls off, within the preset time, the detection data of the earphone entering box detection module is acquired to determine whether the earphone is in the earphone box, and when the earphone is in the earphone box, the current state of the earphone is updated to be that the earphone is already in the box. Otherwise, when the earphone is not in the earphone box, an abnormal wearing command is sent to main equipment such as a mobile phone and the like to remind a user that the earphone falls off, so that the earphone falling reminding is realized.
According to the earphone state detection method provided by the embodiment, whether the earphone is placed in the earphone storage box or not is determined through the earphone box entering detection module, so that the current state of the earphone is more accurately determined, the condition that the earphone enters the box but is judged to fall off is avoided, and the earphone wearing state judgment accuracy is improved. Meanwhile, when the earphone drops or is worn abnormally, the user is reminded in time, and the phenomenon that the earphone is lost and economic loss is brought to the user due to the fact that the wearing state of the earphone cannot be known in time is prevented.
The invention further provides a device for detecting a state of an earphone, and referring to fig. 6, fig. 6 is a schematic diagram of functional modules of an embodiment of the device for detecting a state of an earphone according to the invention.
The detection module 10 is configured to detect pressure data corresponding to the earphone based on the pressure sensor, and acquire a duration corresponding to the pressure data;
an initial determination module 20, configured to determine an initial state of the headset based on the pressure data and the duration;
and the target determining module 30 is configured to obtain detection data of the wearing detection module of the earphone, and determine a target state of the earphone based on the detection data and the initial state of the earphone.
Further, the initial determination module 20 is further configured to:
when the pressure data is greater than or equal to the preset pressure value and the duration is greater than or equal to the first preset duration, determining that the initial state of the earphone is handheld;
and when the pressure data is smaller than the preset pressure value, determining that the initial state of the earphone is not handheld.
Further, the goal determination module 30 is further configured to:
determining a contact state of the earphone with the ear based on the detection data;
determining a target state of the headset based on the initial state of the headset and the contact state.
Further, the goal determination module 30 is further configured to:
when the detection value is in a preset interval and the detection duration is longer than a second preset duration, determining that the contact state is contacted;
and when the detection value is not in a preset interval, determining that the contact state is non-contact.
Further, the goal determination module 30 is further configured to:
when the initial state of the earphone is determined to be handheld and the contact state is determined to be contacted, determining the target state of the earphone to be the beginning of wearing the earphone;
when the initial state of the earphone is determined to be handheld and the contact state is determined to be non-contact, determining that the target state of the earphone is the handheld earphone;
when the initial state of the earphone is determined to be not handheld and the contact state is determined to be contacted, determining that the target state of the earphone is in the wearing state of the earphone;
and when the initial state of the earphone is determined to be not handheld and the contact state is determined to be non-contact, determining that the target state of the earphone is earphone falling.
Further, the goal determination module 30 is further configured to:
acquiring detection data of a box-in detection module of the earphone within preset time;
determining whether the earphone is in an earphone box or not based on the detection data of the box-entering detection module;
and when the earphone is in the earphone box, updating the target state of the earphone to be that the earphone is put into the box.
Further, the earphone state detection apparatus further includes:
the analysis module is used for acquiring detection data of the earphone box-entering detection module and determining whether the earphone is in the earphone box or not based on the detection data of the earphone box-entering detection module;
an alarm module for sending the earphone falling alarm information to a preset terminal when the earphone is not in the earphone box
In addition, an embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores an earphone state detection program, and the earphone state detection program, when executed by a processor, implements the steps of the earphone state detection method in the foregoing embodiments.
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 solutions of the present invention may be embodied in the form of a software product, which is stored in a readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a system device (such as 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 method for detecting the state of an earphone is characterized by being applied to the earphone provided with a pressure sensor and comprising the following steps:
detecting pressure data corresponding to the earphone based on the pressure sensor, and acquiring duration corresponding to the pressure data;
determining an initial state of the headset based on the pressure data, the duration;
and acquiring detection data of a wearing detection module of the earphone, and determining a target state of the earphone based on the detection data and the initial state of the earphone.
2. The headphone state detection method of claim 1, wherein the step of determining the initial state of the headphones based on the pressure data, the duration, comprises:
when the pressure data is greater than or equal to a preset pressure value and the duration is greater than or equal to a first preset duration, determining that the earphone is in a handheld state;
and when the pressure data is smaller than the preset pressure value, determining that the initial state of the earphone is not handheld.
3. The headphone state detection method according to claim 1 or 2, wherein the step of acquiring detection data of a wearing detection module of the headphone, and determining a target state of the headphone based on the detection data and an initial state of the headphone comprises:
determining a contact state of the earphone with the ear based on the detection data;
determining a target state of the headset based on the initial state of the headset and the contact state.
4. The headphone state detection method according to claim 3, wherein the detection data includes a detection value and a detection time period corresponding to the detection value, and the step of determining the contact state of the headphone with the ear based on the detection data includes:
when the detection value is in a preset interval and the detection duration is longer than a second preset duration, determining that the contact state is contacted;
and when the detection value is not in a preset interval, determining that the contact state is non-contact.
5. The headphone state detection method of claim 3, wherein the step of determining the target state of the headphone based on the contact state and the initial state of the headphone comprises:
when the initial state of the earphone is determined to be handheld and the contact state is determined to be contacted, determining the target state of the earphone to be the beginning of wearing the earphone;
when the initial state of the earphone is determined to be handheld and the contact state is determined to be non-contact, determining that the target state of the earphone is the handheld earphone;
when the initial state of the earphone is determined to be not handheld and the contact state is determined to be contacted, determining that the target state of the earphone is in the wearing state of the earphone;
and when the initial state of the earphone is determined to be not handheld and the contact state is determined to be non-contact, determining that the target state of the earphone is earphone falling.
6. The headphone state detection method according to claim 5, wherein the determining that the target state of the headphone is a handheld headphone when the initial state of the headphone is determined to be handheld and the contact state is non-contact includes:
acquiring detection data of a box-in detection module of the earphone within preset time;
determining whether the earphone is in an earphone box or not based on the detection data of the box-entering detection module;
and when the earphone is in the earphone box, updating the target state of the earphone to be that the earphone is put into the box.
7. The method for detecting the state of an earphone according to claim 5, wherein the step of determining that the target state of the earphone is that the earphone is detached when the initial state of the earphone is determined to be not handheld and the contact state is determined to be non-contact, comprises:
acquiring detection data of a box-in detection module of the earphone, and determining whether the earphone is in an earphone box or not based on the detection data of the box-in detection module;
and when the earphone is not in the earphone box, sending earphone falling alarm information to a preset terminal.
8. An earphone state detection apparatus, characterized by comprising:
the detection module is used for detecting pressure data corresponding to the earphone based on the pressure sensor and acquiring duration corresponding to the pressure data;
an initial determination module for determining an initial state of the headset based on the pressure data and the duration;
and the target determining module is used for acquiring the detection data of the wearing detection module of the earphone and determining the target state of the earphone based on the detection data and the initial state of the earphone.
9. An earphone, characterized in that the earphone comprises: memory, a processor and a headphone state detection program stored on the memory and executable on the processor, the headphone state detection program when executed by the processor implementing the steps of the headphone state detection method according to any one of claims 1 to 7.
10. A readable storage medium, having the headset state detection program stored thereon, which when executed by a processor, implements the steps of the headset state detection method according to any one of claims 1 to 7.
CN202010611832.2A 2020-06-30 2020-06-30 Earphone state detection method and device, earphone and readable storage medium Pending CN111770407A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010611832.2A CN111770407A (en) 2020-06-30 2020-06-30 Earphone state detection method and device, earphone and readable storage medium
PCT/CN2020/134462 WO2022000998A1 (en) 2020-06-30 2020-12-08 Earphone state detection method and device, earphone, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010611832.2A CN111770407A (en) 2020-06-30 2020-06-30 Earphone state detection method and device, earphone and readable storage medium

Publications (1)

Publication Number Publication Date
CN111770407A true CN111770407A (en) 2020-10-13

Family

ID=72722935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010611832.2A Pending CN111770407A (en) 2020-06-30 2020-06-30 Earphone state detection method and device, earphone and readable storage medium

Country Status (2)

Country Link
CN (1) CN111770407A (en)
WO (1) WO2022000998A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112289012A (en) * 2020-10-28 2021-01-29 上海闻泰信息技术有限公司 Reminding method and device, Bluetooth headset and storage medium
CN112492439A (en) * 2020-11-17 2021-03-12 上海闻泰信息技术有限公司 Earphone falling reminding method and device, electronic equipment and storage medium
CN112533126A (en) * 2020-12-16 2021-03-19 歌尔光学科技有限公司 Earphone wearing state detection method, earphone and computer readable storage medium
CN113079434A (en) * 2021-04-07 2021-07-06 南京紫牛软件科技有限公司 Control method, device, storage medium and system of audio playing equipment
CN113473292A (en) * 2021-06-29 2021-10-01 芯海科技(深圳)股份有限公司 State detection method, earphone and computer readable storage medium
WO2022000998A1 (en) * 2020-06-30 2022-01-06 歌尔股份有限公司 Earphone state detection method and device, earphone, and readable storage medium
CN114466300A (en) * 2022-02-28 2022-05-10 深圳曦华科技有限公司 Earphone state detection method and device, earphone and computer storage medium
IT202100000293A1 (en) * 2021-01-08 2022-07-08 St Microelectronics Srl DEVICE AND METHOD OF DETECTING A CHANGE IN THE OPERATING ENVIRONMENT FOR AN ELECTRONIC APPLIANCE
CN115278431A (en) * 2022-06-24 2022-11-01 维沃移动通信有限公司 State determination method and device, electronic equipment and readable storage medium
CN117255283A (en) * 2023-11-16 2023-12-19 深圳市雅乐电子有限公司 Earphone, control method and control device thereof
CN115278431B (en) * 2022-06-24 2024-10-22 维沃移动通信有限公司 State determination method and device, electronic equipment and readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501220B (en) * 2022-02-28 2023-02-28 歌尔股份有限公司 Earphone control method, earphone control device, earphone equipment and storage medium
CN115696129B (en) * 2023-01-05 2023-07-07 荣耀终端有限公司 Method and equipment for identifying mixed loading of earphone

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150264472A1 (en) * 2011-09-30 2015-09-17 Apple Inc. Pressure sensing earbuds and systems and methods for the use thereof
CN108702567A (en) * 2017-11-27 2018-10-23 深圳市汇顶科技股份有限公司 Earphone, test earphone wearing state method and electronic equipment
CN208489963U (en) * 2018-06-08 2019-02-12 Oppo广东移动通信有限公司 Wearable device and Bluetooth audio traffic system
CN110972014A (en) * 2019-12-11 2020-04-07 歌尔智能科技有限公司 Parameter adjustment method and device for active noise reduction earphone and wireless earphone
CN111131954A (en) * 2019-12-27 2020-05-08 歌尔科技有限公司 Wireless earphone charging box, earphone in-out box detection method, system and storage medium
CN111328009A (en) * 2018-12-14 2020-06-23 苹果公司 Acoustic in-ear detection for audible devices

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413536B (en) * 2018-12-20 2020-06-30 歌尔科技有限公司 Wireless earphone box-entering detection method and device and wireless earphone charging box
CN111770407A (en) * 2020-06-30 2020-10-13 歌尔科技有限公司 Earphone state detection method and device, earphone and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150264472A1 (en) * 2011-09-30 2015-09-17 Apple Inc. Pressure sensing earbuds and systems and methods for the use thereof
CN108702567A (en) * 2017-11-27 2018-10-23 深圳市汇顶科技股份有限公司 Earphone, test earphone wearing state method and electronic equipment
CN208489963U (en) * 2018-06-08 2019-02-12 Oppo广东移动通信有限公司 Wearable device and Bluetooth audio traffic system
CN111328009A (en) * 2018-12-14 2020-06-23 苹果公司 Acoustic in-ear detection for audible devices
CN110972014A (en) * 2019-12-11 2020-04-07 歌尔智能科技有限公司 Parameter adjustment method and device for active noise reduction earphone and wireless earphone
CN111131954A (en) * 2019-12-27 2020-05-08 歌尔科技有限公司 Wireless earphone charging box, earphone in-out box detection method, system and storage medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022000998A1 (en) * 2020-06-30 2022-01-06 歌尔股份有限公司 Earphone state detection method and device, earphone, and readable storage medium
CN112289012A (en) * 2020-10-28 2021-01-29 上海闻泰信息技术有限公司 Reminding method and device, Bluetooth headset and storage medium
CN112492439A (en) * 2020-11-17 2021-03-12 上海闻泰信息技术有限公司 Earphone falling reminding method and device, electronic equipment and storage medium
CN112533126A (en) * 2020-12-16 2021-03-19 歌尔光学科技有限公司 Earphone wearing state detection method, earphone and computer readable storage medium
CN112533126B (en) * 2020-12-16 2022-03-25 歌尔光学科技有限公司 Earphone wearing state detection method, earphone and computer readable storage medium
IT202100000293A1 (en) * 2021-01-08 2022-07-08 St Microelectronics Srl DEVICE AND METHOD OF DETECTING A CHANGE IN THE OPERATING ENVIRONMENT FOR AN ELECTRONIC APPLIANCE
US11778358B2 (en) 2021-01-08 2023-10-03 Stmicroelectronics S.R.L. Device and method for detecting a change in operating environment for an electronic apparatus
CN113079434A (en) * 2021-04-07 2021-07-06 南京紫牛软件科技有限公司 Control method, device, storage medium and system of audio playing equipment
CN113473292A (en) * 2021-06-29 2021-10-01 芯海科技(深圳)股份有限公司 State detection method, earphone and computer readable storage medium
CN113473292B (en) * 2021-06-29 2024-02-06 芯海科技(深圳)股份有限公司 State detection method, earphone and computer readable storage medium
CN114466300A (en) * 2022-02-28 2022-05-10 深圳曦华科技有限公司 Earphone state detection method and device, earphone and computer storage medium
CN115278431A (en) * 2022-06-24 2022-11-01 维沃移动通信有限公司 State determination method and device, electronic equipment and readable storage medium
CN115278431B (en) * 2022-06-24 2024-10-22 维沃移动通信有限公司 State determination method and device, electronic equipment and readable storage medium
CN117255283A (en) * 2023-11-16 2023-12-19 深圳市雅乐电子有限公司 Earphone, control method and control device thereof
CN117255283B (en) * 2023-11-16 2024-04-05 深圳市雅乐电子有限公司 Earphone and control method thereof

Also Published As

Publication number Publication date
WO2022000998A1 (en) 2022-01-06

Similar Documents

Publication Publication Date Title
CN111770407A (en) Earphone state detection method and device, earphone and readable storage medium
CN110166879B (en) Voice acquisition control method and device and TWS earphone
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN109561420B (en) Emergency help-seeking method and related equipment
EP3823311A1 (en) Microphone hole blockage detection method and related product
CN111698601B (en) Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof
CN111654773B (en) Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium
WO2020019858A1 (en) Microphone hole clogging detection method and related products
US10681451B1 (en) On-body detection of wearable devices
CN112013949A (en) Earphone wearing state determining method and device and earphone
CN111462454A (en) Reminding method, device, equipment and storage medium
CN112533126B (en) Earphone wearing state detection method, earphone and computer readable storage medium
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN112492439B (en) Earphone falling reminding method and device, electronic equipment and storage medium
CN112258809B (en) Loss detection method and device of wireless earphone and earphone
CN113920975A (en) Noise reduction parameter setting method and device, earphone equipment and storage medium
CN112230779B (en) Operation response method, device, equipment and storage medium
CN111780907A (en) Earphone, earphone state monitoring method and device and readable storage medium
CN110049395B (en) Earphone control method and earphone device
EP4213497B1 (en) Measurement system and measurement method
CN109413592B (en) Broadcasting method and mobile terminal
CN103796145A (en) Auditory sense threshold value determining method and device and hearing aid
CN114501292A (en) Earphone wearing detection method and device, earphone equipment and storage medium
EP3890344B1 (en) Hearing devices and methods for implementing automatic sensor-based on/off control of a hearing device
CN114627630A (en) Danger early warning method based on earphone, earphone device and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201013

RJ01 Rejection of invention patent application after publication