CN110381410A - Earphone wears detection method, device, bluetooth headset and storage medium - Google Patents
Earphone wears detection method, device, bluetooth headset and storage medium Download PDFInfo
- Publication number
- CN110381410A CN110381410A CN201910745113.7A CN201910745113A CN110381410A CN 110381410 A CN110381410 A CN 110381410A CN 201910745113 A CN201910745113 A CN 201910745113A CN 110381410 A CN110381410 A CN 110381410A
- Authority
- CN
- China
- Prior art keywords
- bluetooth headset
- mode
- air pressure
- sensor
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 108
- 238000000034 method Methods 0.000 claims abstract description 29
- 230000008859 change Effects 0.000 claims description 54
- 230000001133 acceleration Effects 0.000 claims description 39
- 230000003068 static effect Effects 0.000 claims description 21
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 230000008054 signal transmission Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 210000005069 ears Anatomy 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L9/00—Measuring steady of quasi-steady pressure of fluid or fluent solid material by electric or magnetic pressure-sensitive elements; Transmitting or indicating the displacement of mechanical pressure-sensitive elements, used to measure the steady or quasi-steady pressure of a fluid or fluent solid material, by electric or magnetic means
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P15/00—Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Headphones And Earphones (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of earphones to wear detection method, device, bluetooth headset and storage medium.This method comprises: the operating mode of detection bluetooth headset;According to the operating mode of the bluetooth headset, matched sensor of interest is determined;If the detected value of the sensor of interest meets preset condition, it is determined that the bluetooth headset is in wearing state.Above-mentioned technical proposal improves the validity that bluetooth headset wears detection.
Description
Technical Field
The embodiment of the invention relates to the technical field of Bluetooth earphones, in particular to an earphone wearing detection method and device, a Bluetooth earphone and a storage medium.
Background
In order to reduce the power consumption of the bluetooth headset and prolong the service life of the bluetooth headset, a headset designer usually adds a wearing detection function, and the bluetooth headset automatically enters a low power consumption mode when detecting that a user takes off the headset.
At present, common earphone wearing detection modes comprise capacitance detection, infrared detection, air pressure detection and the like, and the detection modes have the advantages and disadvantages of high power consumption or high false detection probability. Moreover, the implementation of the headset wearing detection is often consistent, which makes it easier to reduce the effectiveness of the headset wearing detection.
Disclosure of Invention
The embodiment of the invention provides an earphone wearing detection method and device, a Bluetooth earphone and a storage medium, which are used for optimizing an earphone wearing detection mode in the prior art and improving the earphone wearing detection effectiveness.
In a first aspect, an embodiment of the present invention provides an earphone wearing detection method, including:
detecting the working mode of the Bluetooth headset;
determining a matched target sensor according to the working mode of the Bluetooth headset;
and if the detection value of the target sensor meets a preset condition, determining that the Bluetooth headset is in a wearing state.
In a second aspect, an embodiment of the present invention further provides an earphone wearing detection apparatus, including:
the mode detection module is used for detecting the working mode of the Bluetooth headset;
the target sensor determining module is used for determining a matched target sensor according to the working mode of the Bluetooth headset;
and the wearing detection module is used for determining that the Bluetooth headset is in a wearing state if the detection value of the target sensor meets a preset condition.
In a third aspect, an embodiment of the present invention further provides a bluetooth headset, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the headset wearing detection method according to any embodiment of the present invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for detecting wearing of a headset according to any of the embodiments of the present invention.
According to the technical scheme, the working mode of the Bluetooth headset is detected, the target sensor used for judging whether the headset is worn is determined according to the working mode, and whether the Bluetooth headset is in a wearing state is determined through the judgment of the detection value of the target sensor. In the technical scheme, whether the Bluetooth headset is in a wearing state is determined not in a fixed judgment mode, but different judgment modes are selected to determine whether the Bluetooth headset is in the wearing state according to different working modes of the Bluetooth headset, so that the wearing detection effectiveness of the Bluetooth headset is improved.
Drawings
Fig. 1 is a flowchart of an earphone wearing detection method according to a first embodiment of the present invention;
fig. 2 is a flowchart of an earphone wearing detection method in the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an earphone wearing detection device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a bluetooth headset in a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a bluetooth headset in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a method for detecting wearing of an earphone according to an embodiment of the present invention, which is applicable to a situation of detecting a wearing state of a bluetooth earphone, and the method may be executed by an earphone wearing detection apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated in a processor, for example, a bluetooth chip of a bluetooth earphone, or an MCU (Microcontroller Unit) built in a bluetooth chip.
As shown in fig. 1, the method of this embodiment specifically includes:
s110, detecting the working mode of the Bluetooth headset.
The working mode refers to a working state of the bluetooth headset after being powered on, and specifically may be a static mode, a music conversation mode, and the like. The static mode refers to a state in which no voice signal is transmitted in the bluetooth headset, and the music call mode refers to a state in which a voice signal such as music, conversation, or the like is transmitted in the bluetooth headset.
Typically, the operating mode of the bluetooth headset may be determined by detecting a signal transmission channel of the bluetooth headset, for example, when there is a signal in the signal transmission channel, the operating mode of the bluetooth headset is determined to be a music conversation mode, and when there is no signal in the signal transmission channel, the operating mode of the bluetooth headset is determined to be a static mode.
As an optional implementation manner of this embodiment, the detecting the working mode of the bluetooth headset may specifically be: and determining the working mode of the Bluetooth headset according to the signal state in the microphone and/or the loudspeaker of the Bluetooth headset.
And detecting whether signals exist in the microphone and/or the loudspeaker, so as to judge the working mode of the earphone. If no signal in the microphone and/or the loudspeaker is detected, determining that the working mode of the Bluetooth headset at the moment is a static mode; and if the signal in the microphone and/or the loudspeaker is detected, determining that the working mode of the Bluetooth headset at the moment is a music conversation mode.
And S120, determining a matched target sensor according to the working mode of the Bluetooth headset.
After the working mode of the Bluetooth headset is identified, a target sensor which is matched with the working mode and used for judging the wearing state of the Bluetooth headset is selected. The target sensors matched with different working modes are different, may be different in type, may be the same in type, different in model or number, and the like.
For example, the target sensor matched with the first working mode is a sensor of one type, and the target sensor matched with the second working mode is a sensor of two types; for another example, the target sensor matched with the first working mode is a first-class sensor, and the target sensor matched with the second working mode is two first-class sensors; for another example, the target sensor matched with the first operation mode is a sensor of type X1, and the target sensor matched with the second operation mode is a sensor of type X2; and so on.
As an optional implementation manner of this embodiment, if the operating mode of the bluetooth headset is a static mode, the target sensors are an acceleration sensor and an air pressure sensor; if the working mode of the Bluetooth headset is a music communication mode, the target sensor is an air pressure sensor; the acceleration sensor is used for detecting acceleration changes of the Bluetooth headset in the three axial directions of the rectangular coordinate system, and the air pressure sensor is used for detecting air pressure changes in an acoustic cavity of the Bluetooth headset.
In the above embodiments, the types of target sensors matched with different operation modes are not exactly the same. When the working mode is a static mode, the wearing state of the Bluetooth headset needs to be comprehensively judged by using an acceleration sensor and an air pressure sensor; when the working mode is a music communication mode, the wearing state of the Bluetooth headset is judged only by using the air pressure sensor.
Under the static mode, the earphone is switched to a wearing state from a non-wearing state, the position of the earphone can change, and the air pressure in the sound cavity of the earphone can also change, so that the target sensor is determined to be the acceleration sensor and the air pressure sensor, the acceleration sensor is used for detecting the position change condition of the earphone, and the air pressure sensor is used for detecting the air pressure change in the sound cavity of the earphone, so that the wearing detection accuracy is improved.
In the music communication mode, the air pressure fluctuation in the sound cavity of the earphone is caused by playing music or communication, and meanwhile, whether the earphone is worn or not directly influences the air pressure fluctuation condition, so that the target sensor is determined to be the air pressure sensor and used for detecting the air pressure change in the sound cavity of the earphone, and the accuracy of wearing detection is improved.
In addition, the target sensor is determined to be the acceleration sensor and the air pressure sensor or determined to be the air pressure sensor, so that the power consumption can be effectively reduced, and the problem of false triggering and false detection can be avoided.
S130, if the detection value of the target sensor meets a preset condition, determining that the Bluetooth headset is in a wearing state.
After the matched target sensor is determined according to the working mode, the detection value of the target sensor is compared with the preset condition, when the detection value of the target sensor is matched with the preset condition, the Bluetooth headset can be judged to be in a wearing state, and when the detection value of the target sensor is not matched with the preset condition, the Bluetooth headset can be judged not to be in the wearing state.
It should be noted that the detection value of the target sensor may be a value detected by the target sensor at a time point, or may be a value detected by the target sensor over a period of time.
Moreover, the preset condition for determining that the bluetooth headset is in the wearing state is matched with the configuration and the working mode of the bluetooth headset. The preset conditions for determining that the Bluetooth headset is in a wearing state are different in different working modes, and even in the same working mode, the preset conditions for determining that the Bluetooth headset is in the wearing state are also different due to different structures of the Bluetooth headset.
As an optional implementation manner of this embodiment, when the working mode of the bluetooth headset is a static mode, if the detection values of the acceleration sensor in the three axis directions of the rectangular coordinate system respectively satisfy the matched preset acceleration change conditions, and the detection value of the air pressure sensor satisfies the preset first air pressure change condition, it is determined that the detection value of the target sensor satisfies the preset conditions; when the working mode of the Bluetooth headset is a music communication mode, the detection value of the air pressure sensor meets a preset second air pressure change condition, and then the detection value of the target sensor is determined to meet the preset condition.
Specifically, when the working mode of the bluetooth headset is the static mode, the preset condition that the bluetooth headset is in the wearing state is determined to include a preset acceleration change condition and a preset first pressure change condition, and the preset acceleration change condition further specifically includes a preset acceleration change sub-condition in the three axis directions of the rectangular coordinate system.
The preset acceleration change condition may be that the acceleration change range is Δ a, and specifically, the acceleration change ranges in the three axial directions of the rectangular coordinate system are Δ a respectivelyx、ΔAyAnd Δ Az(ii) a The preset first air pressure change condition is that the air pressure change range is delta P1。
When the working mode of the Bluetooth headset is a static mode, if the detection value A of the acceleration sensor in the three axial directions of the rectangular coordinate system is detectedx、AyAnd AzFall within the acceleration variation range Delta Ax、ΔAyAnd Δ AzIn the earphone, the air pressure sensor detects that the air pressure in the sound cavity of the earphone changes, and the detection value P of the changed air pressure sensor falls into the air pressure change range of delta P1And if so, determining that the detection value of the target sensor meets the preset condition, and further judging that the Bluetooth headset is in a wearing state.
If the detected value A of the acceleration sensor in the three axial directions of the rectangular coordinate systemx、AyAnd AzNot all falling within the acceleration variation range Δ Ax、ΔAyAnd Δ AzDuring or after the change, the detection value P of the air pressure sensor does not fall into the air pressure change range delta P1And if so, determining that the detection value of the target sensor does not meet the preset condition, and further judging that the Bluetooth headset is not in a wearing state. At this time, the low power consumption mode can be automatically entered until the bluetooth headset is detected to be in a wearing state.
Specifically, when the working mode of the bluetooth headset is the music communication mode, the bluetooth headset is determinedThe preset conditions of the tooth earphone in the wearing state comprise a preset second air pressure change condition, and the preset second air pressure change condition is that the air pressure change range is delta P2. In general,. DELTA.P2Ratio of delta P1Larger than the others.
When the working mode of the Bluetooth earphone is a music communication mode, if the air pressure sensor detects that the air pressure in the sound cavity of the earphone changes, the detection value P of the changed air pressure sensor falls into the air pressure change range which is delta P2And if so, determining that the detection value of the target sensor meets the preset condition, and further judging that the Bluetooth headset is in a wearing state.
If the changed detection value P of the air pressure sensor does not fall into the air pressure change range, the air pressure change range is delta P2And if so, determining that the detection value of the target sensor does not meet the preset condition, and further judging that the Bluetooth headset is not in a wearing state. At this time, the low power consumption mode can be automatically entered until the bluetooth headset is detected to be in a wearing state.
According to the technical scheme, the working mode of the Bluetooth headset is detected, the target sensor used for judging whether the headset is worn is determined according to the working mode, and whether the Bluetooth headset is in a wearing state is determined through the judgment of the detection value of the target sensor. In the technical scheme, whether the Bluetooth headset is in a wearing state is determined not in a fixed judgment mode, but different judgment modes are selected to determine whether the Bluetooth headset is in the wearing state according to different working modes of the Bluetooth headset, so that the wearing detection effectiveness of the Bluetooth headset is improved.
Example two
Fig. 2 is a flowchart of an earphone wearing detection method according to a second embodiment of the present invention, where the present embodiment is optimized based on the above-described embodiment, and specifically includes: and if the working mode of the Bluetooth headset is the music communication mode and the Bluetooth headset is in a wearing state, starting the hearing protection mode.
Further, after the hearing protection mode is turned on, the method further comprises the following steps:
and if the detection value of the air pressure sensor meets a preset third air pressure change condition, automatically adjusting the volume of the Bluetooth headset to be within a preset hearing protection range.
As shown in fig. 2, the method of this embodiment specifically includes:
and S210, starting the earphone wearing detection function.
S220, judging the working mode of the Bluetooth headset according to the signal state in the microphone and/or the loudspeaker of the Bluetooth headset, if the working mode is a static mode, executing S230, and if the working mode is a music communication mode, executing S280.
And S230, judging whether the acceleration values in the three axis directions of the rectangular coordinate system are changed or not through the acceleration sensor, if so, executing S240, and if not, executing S220.
And S240, judging whether the detection values of the acceleration sensor in the three axial directions of the rectangular coordinate system respectively meet the matched preset acceleration change conditions, if so, executing S250, and if not, executing S220.
And S250, judging whether the air pressure of the sound cavity of the earphone is changed or not through an air pressure sensor, if so, executing S260, and if not, executing S220.
And S260, judging whether the detection value of the air pressure sensor meets a preset first air pressure change condition, if so, executing S270, and if not, executing S220.
S270, determining that the Bluetooth headset is in a wearing state in the static mode.
In a static mode, firstly, judging whether a user moves the position of the earphone or not through an acceleration sensor, and if the acceleration sensor detects that the accelerations in the three axial directions are changed and the change quantity of the acceleration is consistent with a preset range delta A, determining that the Bluetooth earphone is in a moving state; then judging whether the user has the action of wearing the earphone, if the air pressure sensor detects that large air pressure change occurs in the sound cavity of the earphone within a certain period of time, the air pressure change tends to be stable and unchanged, and the air pressure change value and the preset range delta P are within the preset range1And if the Bluetooth earphone is matched with the static mode, the Bluetooth earphone is determined to be in a wearing state in the static mode.
And S280, judging whether the air pressure of the sound cavity of the earphone is changed or not through the air pressure sensor, if so, executing S290, and if not, executing S220.
And S290, judging whether the detection value of the air pressure sensor meets a preset second air pressure change condition, if so, executing S2100, and if not, executing S220.
S2100, determining that the Bluetooth headset is in a wearing state in the music communication mode.
In the music communication mode, the air pressure sensor collects the air pressure change in the sound cavity of the earphone. After the sampled signal is filtered, if the air pressure in the sound cavity of the earphone is changed all the time, and the air pressure change value is within the preset range delta P2And if the Bluetooth earphone is matched with the music communication mode, the Bluetooth earphone is determined to be in a wearing state in the music communication mode.
And S2110, starting a hearing protection mode.
And the hearing protection mode is used for realizing automatic adjustment of the volume of the earphone and avoiding the phenomenon that the hearing of the user is adversely affected due to the overlarge volume of the earphone.
S2120, determining whether a detection value of the air pressure sensor satisfies a preset third air pressure change condition, if yes, executing S2130, and if no, executing S2120.
The preset third air pressure change condition is that the air pressure change range is delta P3. In general,. DELTA.P3Ratio of delta P2Larger than the others.
After the hearing protection mode of the Bluetooth headset is started, if the air pressure sensor detects that the air pressure in the sound cavity of the headset changes, the detection value P of the changed air pressure sensor falls into the air pressure change range which is delta P3Determining that the detection value of the air pressure sensor meets a preset third air pressure change condition, and further judging that the volume of the Bluetooth headset needs to be adjusted; if the changed detection value P of the air pressure sensor does not fall into the air pressure change range, the air pressure change range is delta P3And if so, determining that the detection value of the air pressure sensor does not meet the preset third air pressure change condition, and further judging that the volume of the Bluetooth headset does not need to be adjusted.
And S2130, automatically adjusting the volume of the Bluetooth headset to be within a preset hearing protection range.
The hearing protection range refers to the decibel range of sound which is beneficial to the hearing of the user of the earphone.
In this step, when the volume is automatically adjusted, a target decibel value of the volume automatic adjustment (the target decibel value is within the hearing protection range) may be determined according to the tone and/or the audio frequency of the voice signal in the bluetooth headset.
Typically, the volume of the bluetooth headset may also be automatically adjusted to a preset decibel value for hearing protection.
In the hearing protection mode, the air pressure sensor continuously monitors the air pressure change in the sound cavity of the earphone, if the air pressure change is within the preset range delta P3Match, wherein, Δ P3And executing hearing protection operation for the air pressure variation generated when the effective hearing range is exceeded.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
In the technical scheme, whether the Bluetooth headset is in a wearing state is determined not in a fixed judgment mode, but different judgment modes are selected to determine whether the Bluetooth headset is in the wearing state according to different working modes of the Bluetooth headset, so that the wearing detection effectiveness of the Bluetooth headset is improved. Meanwhile, when the Bluetooth headset is determined to be in a wearing state in the music conversation mode, the hearing protection mode is started, the volume of playing music or conversation is adjusted in a self-adaptive mode, the volume is reduced to be within the hearing protection range of human ears, and a hearing protection function is provided for the Bluetooth headset.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an earphone wearing detection apparatus according to a third embodiment of the present invention, which is applicable to a situation of detecting a wearing state of a bluetooth earphone, and the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated in a processor, for example, a bluetooth chip of the bluetooth earphone, or an MCU built in the bluetooth chip. As shown in fig. 3, the earphone wearing detection device specifically includes: a pattern detection module 310, an object sensor determination module 320, and a wear detection module 330. Wherein,
a mode detection module 310, configured to detect an operating mode of the bluetooth headset;
a target sensor determining module 320, configured to determine a matched target sensor according to the working mode of the bluetooth headset;
a wearing detection module 330, configured to determine that the bluetooth headset is in a wearing state if a detection value of the target sensor meets a preset condition.
According to the technical scheme, the working mode of the Bluetooth headset is detected, the target sensor used for judging whether the headset is worn is determined according to the working mode, and whether the Bluetooth headset is in a wearing state is determined through the judgment of the detection value of the target sensor. In the technical scheme, whether the Bluetooth headset is in a wearing state is determined not in a fixed judgment mode, but different judgment modes are selected to determine whether the Bluetooth headset is in the wearing state according to different working modes of the Bluetooth headset, so that the wearing detection effectiveness of the Bluetooth headset is improved.
Further, the mode detection module 310 is specifically configured to determine the operating mode of the bluetooth headset according to a signal state in a microphone and/or a speaker of the bluetooth headset.
Specifically, the operation mode includes at least one of a static mode and a music call mode.
Further, the target sensor determining module 320 is specifically configured to determine that the target sensor is an acceleration sensor and a barometric sensor if the working mode of the bluetooth headset is a static mode;
if the working mode of the Bluetooth headset is a music communication mode, the target sensor is an air pressure sensor;
the acceleration sensor is used for detecting acceleration changes of the Bluetooth headset in the three axial directions of the rectangular coordinate system, and the air pressure sensor is used for detecting air pressure changes in the sound cavity of the Bluetooth headset.
Further, the wearing detection module 330 is specifically configured to, when the working mode of the bluetooth headset is a static mode, determine that the detection value of the target sensor satisfies a preset condition if the detection values of the acceleration sensor in three axial directions of the rectangular coordinate system respectively satisfy a matched preset acceleration change condition and the detection value of the air pressure sensor satisfies a preset first air pressure change condition;
and when the working mode of the Bluetooth headset is a music communication mode, the detection value of the air pressure sensor meets a preset second air pressure change condition, and then the detection value of the target sensor is determined to meet the preset condition.
Further, the earphone wearing detection device further includes: and the hearing protection mode starting module is used for starting the hearing protection mode if the working mode of the Bluetooth headset is a music communication mode and the Bluetooth headset is in a wearing state.
Further, the earphone wearing detection device further includes: and the hearing protection execution module is used for automatically adjusting the volume of the Bluetooth headset to be within a preset hearing protection range if the detection value of the air pressure sensor meets a preset third air pressure change condition after the hearing protection mode is started.
The earphone wearing detection device can execute the earphone wearing detection method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the earphone wearing detection method.
Example four
Fig. 4 is a schematic structural diagram of a bluetooth headset according to a fourth embodiment of the present invention, and as shown in fig. 4, the bluetooth headset includes:
one or more processors 410, one processor 410 being illustrated in FIG. 4;
a memory 420;
the plurality of sensors 430, two sensors 430 are illustrated in fig. 4.
The processor 410 and the memory 420 of the device may be connected by a bus or other means, and in fig. 4, the sensor 430 is connected to the processor 410 by a bus.
The processor 410 may be specifically an MCU built in a bluetooth chip.
The memory 420, which is a non-transitory computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a headset wearing detection method in an embodiment of the present invention (e.g., the mode detection module 310, the target sensor determination module 320, and the wearing detection module 330 shown in fig. 3). The processor 410 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 420, namely, implementing a headset wearing detection method of the above-described method embodiment.
The memory 420 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 420 may optionally include memory located remotely from processor 410, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The sensor 430 may include at least one sensor, such as an acceleration sensor and a pneumatic pressure sensor.
Fig. 5 shows a more specific structural diagram of a bluetooth headset, and as shown in fig. 5, the bluetooth headset 50 mainly includes a bluetooth chip 510, a battery 520, a crystal oscillator 530, a memory 540, a microphone 550, a speaker 560, an acceleration sensor 570, a pressure sensor 580, and the like. The bluetooth chip 510 is a main control unit, and the MCU 511 is built in the bluetooth chip, and the MCU 511 is configured to execute the method for detecting wearing of an earphone according to the above embodiment of the method.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for detecting wearing of a headset, the method including:
detecting the working mode of the Bluetooth headset;
determining a matched target sensor according to the working mode of the Bluetooth headset;
and if the detection value of the target sensor meets a preset condition, determining that the Bluetooth headset is in a wearing state.
Optionally, the computer executable instruction, when executed by the computer processor, may be further used to implement a technical solution of a method for detecting wearing of an earphone provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the detection device for wearing an earphone, the units and modules included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. An earphone wearing detection method is characterized by comprising the following steps:
detecting the working mode of the Bluetooth headset;
determining a matched target sensor according to the working mode of the Bluetooth headset;
and if the detection value of the target sensor meets a preset condition, determining that the Bluetooth headset is in a wearing state.
2. The method of claim 1, wherein detecting an operating mode of a bluetooth headset comprises:
and determining the working mode of the Bluetooth headset according to the signal state in the microphone and/or the loudspeaker of the Bluetooth headset.
3. The method of claim 1 or 2, wherein the operating mode comprises at least one of a static mode and a music-on-call mode.
4. The method of claim 3, wherein determining a matching target sensor based on the operating mode of the Bluetooth headset comprises:
if the working mode of the Bluetooth headset is a static mode, the target sensor is an acceleration sensor and an air pressure sensor;
if the working mode of the Bluetooth headset is a music communication mode, the target sensor is an air pressure sensor;
the acceleration sensor is used for detecting acceleration changes of the Bluetooth headset in the three axial directions of the rectangular coordinate system, and the air pressure sensor is used for detecting air pressure changes in the sound cavity of the Bluetooth headset.
5. The method according to claim 4, wherein the detection value of the target sensor satisfies a preset condition, including:
when the working mode of the Bluetooth headset is a static mode, if the detection values of the acceleration sensor in the three axial directions of the rectangular coordinate system respectively meet matched preset acceleration change conditions and the detection value of the air pressure sensor meets a preset first air pressure change condition, determining that the detection value of the target sensor meets the preset conditions;
and when the working mode of the Bluetooth headset is a music communication mode, the detection value of the air pressure sensor meets a preset second air pressure change condition, and then the detection value of the target sensor is determined to meet the preset condition.
6. The method of claim 4, further comprising:
and if the working mode of the Bluetooth headset is a music communication mode and the Bluetooth headset is in a wearing state, starting a hearing protection mode.
7. The method of claim 6, further comprising, after turning on the hearing protection mode:
and if the detection value of the air pressure sensor meets a preset third air pressure change condition, automatically adjusting the volume of the Bluetooth headset to be within a preset hearing protection range.
8. An earphone wearing detection device, comprising:
the mode detection module is used for detecting the working mode of the Bluetooth headset;
the target sensor determining module is used for determining a matched target sensor according to the working mode of the Bluetooth headset;
and the wearing detection module is used for determining that the Bluetooth headset is in a wearing state if the detection value of the target sensor meets a preset condition.
9. A Bluetooth headset comprising a memory, a processor, a sensor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, implements the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910745113.7A CN110381410B (en) | 2019-08-13 | 2019-08-13 | Earphone wearing detection method and device, Bluetooth earphone and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910745113.7A CN110381410B (en) | 2019-08-13 | 2019-08-13 | Earphone wearing detection method and device, Bluetooth earphone and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110381410A true CN110381410A (en) | 2019-10-25 |
CN110381410B CN110381410B (en) | 2020-10-23 |
Family
ID=68259117
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910745113.7A Active CN110381410B (en) | 2019-08-13 | 2019-08-13 | Earphone wearing detection method and device, Bluetooth earphone and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110381410B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111683320A (en) * | 2020-06-08 | 2020-09-18 | 歌尔科技有限公司 | Electronic equipment and earphone |
CN112995831A (en) * | 2021-03-01 | 2021-06-18 | 歌尔科技有限公司 | Water entry alarm method of Bluetooth headset, wearable device and medium |
CN114374906A (en) * | 2021-12-16 | 2022-04-19 | 深圳创优声学科技有限公司 | TWS earphone limb language operating system and using method |
CN114827802A (en) * | 2022-03-25 | 2022-07-29 | 歌尔股份有限公司 | Wireless earphone control method and device, wireless earphone and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1921665A (en) * | 2005-08-26 | 2007-02-28 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal with voice output switching function and operation method thereof |
CN103257873A (en) * | 2013-04-18 | 2013-08-21 | 北京小米科技有限责任公司 | Method and system for controlling intelligent terminal device |
US20150063587A1 (en) * | 2013-09-05 | 2015-03-05 | Lg Electronics Inc. | Electronic device and control method thereof |
US20180213313A1 (en) * | 2017-01-20 | 2018-07-26 | Bose Corporation | Magnetic pivot sensor for headset microphone |
CN109743667A (en) * | 2018-12-28 | 2019-05-10 | 歌尔科技有限公司 | Earphone wears detection method and earphone |
-
2019
- 2019-08-13 CN CN201910745113.7A patent/CN110381410B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1921665A (en) * | 2005-08-26 | 2007-02-28 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal with voice output switching function and operation method thereof |
CN103257873A (en) * | 2013-04-18 | 2013-08-21 | 北京小米科技有限责任公司 | Method and system for controlling intelligent terminal device |
US20150063587A1 (en) * | 2013-09-05 | 2015-03-05 | Lg Electronics Inc. | Electronic device and control method thereof |
US20180213313A1 (en) * | 2017-01-20 | 2018-07-26 | Bose Corporation | Magnetic pivot sensor for headset microphone |
CN109743667A (en) * | 2018-12-28 | 2019-05-10 | 歌尔科技有限公司 | Earphone wears detection method and earphone |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111683320A (en) * | 2020-06-08 | 2020-09-18 | 歌尔科技有限公司 | Electronic equipment and earphone |
CN112995831A (en) * | 2021-03-01 | 2021-06-18 | 歌尔科技有限公司 | Water entry alarm method of Bluetooth headset, wearable device and medium |
CN114374906A (en) * | 2021-12-16 | 2022-04-19 | 深圳创优声学科技有限公司 | TWS earphone limb language operating system and using method |
CN114827802A (en) * | 2022-03-25 | 2022-07-29 | 歌尔股份有限公司 | Wireless earphone control method and device, wireless earphone and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110381410B (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110381410B (en) | Earphone wearing detection method and device, Bluetooth earphone and storage medium | |
US11882397B2 (en) | Noise reduction method and apparatus for microphone array of earphone, earphone and TWS earphone | |
CN110785808B (en) | Audio device with wake-up word detection | |
US11069343B2 (en) | Voice activation method, apparatus, electronic device, and storage medium | |
CN106898348B (en) | Dereverberation control method and device for sound production equipment | |
CN109348334B (en) | Wireless earphone and environment monitoring method and device thereof | |
WO2020019820A1 (en) | Microphone hole blockage detection method and related product | |
CN111586519A (en) | Wireless earphone loss alarm method and device, wireless earphone and storage medium | |
CN114071308B (en) | Headset self-adaptive tuning method and device, headset and readable storage medium | |
CN112584293A (en) | Microphone hole blockage detection method and related product | |
CN109121048B (en) | True wireless stereo earphone and standby management method and device thereof | |
CN108766468B (en) | Intelligent voice detection method, wireless earphone, TWS earphone and terminal | |
CN111586522B (en) | Earphone noise reduction method, earphone noise reduction device, earphone and storage medium | |
CN112272342B (en) | Automatic volume adjusting method and device, bluetooth headset and storage medium | |
CN111833863A (en) | Voice control system, method and apparatus, and computing device and storage medium | |
CN111787452B (en) | TWS earphone, TWS earphone control method, TWS earphone control device and computer readable storage medium | |
WO2023092784A1 (en) | Wireless earphone wearing detection method, device, and storage medium | |
CN113225637A (en) | Earphone volume control method and device, electronic equipment and storage medium | |
US10681451B1 (en) | On-body detection of wearable devices | |
CN110225429A (en) | Active denoising method, device and earphone | |
WO2023178869A1 (en) | Earbud wearing detection method, earbud and storage medium | |
WO2021128405A1 (en) | Tws earphone, method and apparatus for reducing earphone energy consumption, and medium | |
CN109068226B (en) | Earphone and control method thereof | |
WO2017210856A1 (en) | Method of controlling audio output, user terminal, and radio terminal | |
WO2020007172A1 (en) | Communicational connection establishment method and related 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |