CN112945226B - Headset wearing detection method, device and computer readable storage medium - Google Patents

Headset wearing detection method, device and computer readable storage medium Download PDF

Info

Publication number
CN112945226B
CN112945226B CN202110079725.4A CN202110079725A CN112945226B CN 112945226 B CN112945226 B CN 112945226B CN 202110079725 A CN202110079725 A CN 202110079725A CN 112945226 B CN112945226 B CN 112945226B
Authority
CN
China
Prior art keywords
sensor
headset
sensor signal
signal
detection sensor
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.)
Active
Application number
CN202110079725.4A
Other languages
Chinese (zh)
Other versions
CN112945226A (en
Inventor
郎允森
万声国
蔡永桂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek 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 CN202110079725.4A priority Critical patent/CN112945226B/en
Publication of CN112945226A publication Critical patent/CN112945226A/en
Application granted granted Critical
Publication of CN112945226B publication Critical patent/CN112945226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/165Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Headphones And Earphones (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for detecting wear of a headset and a computer readable storage medium, wherein a first sensor signal detected by a tension detection sensor is obtained, and a second sensor signal detected by the wear detection sensor is obtained when the beam is judged to be stretched according to the first sensor signal; or, a third sensor signal detected by the inertial sensor is acquired, and when it is determined that the headphone is picked up based on the third sensor signal, a second sensor signal detected by the wear detection sensor is acquired. The invention improves the accuracy of the detection result of the wearing condition.

Description

Headset wearing detection method, device and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting wear of a headset, and a computer readable storage medium.
Background
With the development of the consumer electronics industry, various consumer electronics products are growing. Headphones are popular as a type of electronic product, and have the characteristics of good sound field, no in-ear, and the like, and are popular with consumers. The headset can be used for wearing detection for the headset in order to save electric quantity to the greatest extent and increase standby time. When the wearing of the headset is not detected, the headset can enter a low-power consumption mode, current consumption is reduced, the use time can be prolonged to the greatest extent, and the user experience is improved.
The headset that current is commonly used wears the detection, mainly through detecting whether the ear muff of headset has the cover to establish on the ear and confirm the state of wearing, but when the headset is placed on the table, can appear the false mark that the ear muff cover was established on the ear, leads to wearing the degree of accuracy of detection lower.
Disclosure of Invention
The invention mainly aims to provide a method and a device for detecting wear of a headset and a computer readable storage medium, and aims to solve the problem of low accuracy of wear detection.
In order to achieve the above object, the present invention provides a headphone wear detection method, which includes the steps of:
acquiring a first sensor signal detected by the stretching detection sensor, and acquiring a second sensor signal detected by the wearing detection sensor when the beam is judged to be stretched according to the first sensor signal;
or, acquiring a third sensor signal detected by the inertial sensor, and acquiring a second sensor signal detected by the wear detection sensor when it is determined that the headset is picked up according to the third sensor signal;
determining whether the headset is worn based on the second sensor signal.
In an embodiment, the stretch detecting sensor includes a flexible sensor, and the step of acquiring a first sensor signal detected by the stretch detecting sensor includes:
and detecting the resistance of the flexible sensor, and taking the resistance as a first sensor signal, wherein when the resistance is smaller than a preset resistance, the cross beam is judged to be stretched.
In an embodiment, the stretch detecting sensor includes a bending sensor, and the step of acquiring a first sensor signal detected by the stretch detecting sensor includes:
and detecting a differential capacitance value of the bending sensor, and taking the differential capacitance value as a first sensor signal, wherein when the differential capacitance value is larger than a preset capacitance value, the beam is judged to be stretched.
In an embodiment, after the step of obtaining the first sensor signal detected by the stretch detecting sensor, the method further includes:
and when the first sensor signal judges that the cross beam is not stretched, judging that the headset is not worn.
In an embodiment, after the step of determining whether the headset is worn according to the second sensor signal, the method further comprises:
when the second sensor signal meets a preset condition, judging that the headset is worn;
and when the second sensor signal does not meet a preset condition, judging that the headset is not worn.
In an embodiment, the wear detection sensor includes an infrared sensor, and the step of acquiring the second sensor signal detected by the wear detection sensor includes:
controlling the infrared sensor to emit infrared signals, detecting the distance between the infrared sensor and a human body, and taking the distance as the second sensor signal, wherein when the distance is smaller than a preset distance, the earphone is judged to be worn;
or detecting a time difference between the infrared sensor and the infrared signal and a phase difference between the infrared signal and the infrared signal, wherein the time difference and the phase difference are used as a second sensor signal, and the preset condition comprises that the time difference and the phase difference are smaller than a preset threshold value.
In an embodiment, the wear detection sensor includes an ultrasonic detection sensor, and the step of acquiring the second sensor signal detected by the wear detection sensor includes:
controlling the ultrasonic detection sensor to emit ultrasonic pulses, and detecting the signal amplitude of the ultrasonic pulses reflected by the human body and received by the ultrasonic detection sensor;
and taking the signal amplitude as a second sensor signal, wherein the preset condition comprises that the signal amplitude is larger than a preset signal amplitude.
In an embodiment, the wear detection sensor includes a pressure sensor, and the step of acquiring the second sensor signal detected by the wear detection sensor includes:
detecting the voltage value of the pressure sensor in real time;
and taking the voltage value as a second sensor signal, wherein the preset condition comprises that the voltage value is larger than a preset voltage value.
In order to achieve the above object, the present invention also provides a headphone wear detection device including a stretch detection sensor, a wear detection sensor, a memory, a processor, and a headphone wear detection program stored in the memory and executable on the processor, the stretch detection sensor and the wear detection sensor being connected to the processor, the headphone wear detection program realizing the respective steps of the headphone wear detection method as described above when executed by the processor.
To achieve the above object, the present invention also provides a computer-readable storage medium storing a headphone wear detection program which, when executed by a processor, implements the respective steps of the headphone wear detection method described above.
The invention provides a method and a device for detecting wear of a headset and a computer readable storage medium. Or, the third sensor signal detected by the inertial sensor is obtained, and when the headset is judged to be picked up according to the third sensor signal, the second sensor signal detected by the wearing detection sensor is obtained, and whether the headset is worn or not is determined according to the second sensor signal. Compared with a single detection sensor, the wear condition of the earphone is comprehensively judged through the stretching detection sensor and the wear detection sensor or the inertia detection sensor and the wear detection sensor, so that the accuracy of the detection result of the wear condition is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a headphone-based wear detection device according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a method for detecting wear of a headset according to the present invention;
FIG. 3 is a flowchart of a second embodiment of a method for detecting wear of a headset according to the present invention;
FIG. 4 is a schematic diagram of an external processing circuit of the headset wear detection method of the present invention;
FIG. 5 is a flowchart of a third embodiment of a method for detecting wear of a headset according to the present invention;
FIG. 6 is a schematic diagram of an external analog front end chip of a headset wear detection method according to the present invention;
fig. 7 is a detailed flowchart of the step 10 or the step S20 of obtaining the second sensor signal detected by the wear detection sensor according to the fourth embodiment of the headset wear detection method of the present invention;
fig. 8 is a detailed flowchart of the step 10 or the step S20 of obtaining the second sensor signal detected by the wear detection sensor according to the fifth embodiment of the headset wear detection method of the present invention;
FIG. 9 is a logic block diagram of the interior of an ultrasonic sensor of the headset wear detection method of the present invention;
fig. 10 is a detailed flowchart of the step 10 or the step S20 of obtaining the second sensor signal detected by the wear detection sensor according to the sixth embodiment of the headset wear detection method of the present invention;
fig. 11 is a schematic diagram of an external analog front end chip of the headset wearing detection method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: acquiring a first sensor signal detected by the stretching detection sensor, and acquiring a second sensor signal detected by the wearing detection sensor when the beam is judged to be stretched according to the first sensor signal; or, acquiring a third sensor signal detected by the inertial sensor, and acquiring a second sensor signal detected by the wear detection sensor when it is determined that the headset is picked up according to the third sensor signal; determining whether the headset is worn based on the second sensor signal.
Compared with a single detection sensor, the wear condition of the earphone is comprehensively judged through the stretching detection sensor and the wear detection sensor, and the accuracy of the detection result of the wear condition is improved.
As an implementation, the headphone wear detection device may be as shown in fig. 1.
An embodiment of the present invention relates to a headphone wear detection device, including: a processor 101, such as a CPU, a memory 102, and a communication bus 103. Wherein the communication bus 103 is used to enable connected communication among the components.
The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. As shown in fig. 1, a headphone wear detection program may be included in a memory 102 as one type of computer-readable storage medium; and the processor 101 may be configured to invoke the headphone wear detection program stored in the memory 102 and perform the following operations:
acquiring a first sensor signal detected by the stretching detection sensor, and acquiring a second sensor signal detected by the wearing detection sensor when the beam is judged to be stretched according to the first sensor signal;
or, acquiring a third sensor signal detected by the inertial sensor, and acquiring a second sensor signal detected by the wear detection sensor when it is determined that the headset is picked up according to the third sensor signal;
determining whether the headset is worn based on the second sensor signal.
In an embodiment, the processor 101 may be configured to invoke the headphone wear detection program stored in the memory 102 and perform the following operations:
and detecting the resistance of the flexible sensor, and taking the resistance as a first sensor signal, wherein when the resistance is smaller than a preset resistance, the cross beam is judged to be stretched.
In an embodiment, the processor 101 may be configured to invoke the headphone wear detection program stored in the memory 102 and perform the following operations:
and detecting a differential capacitance value of the bending sensor, and taking the differential capacitance value as a first sensor signal, wherein when the differential capacitance value is larger than a preset capacitance value, the beam is judged to be stretched.
In an embodiment, the processor 101 may be configured to invoke the headphone wear detection program stored in the memory 102 and perform the following operations:
and when the first sensor signal judges that the cross beam is not stretched, judging that the headset is not worn.
In an embodiment, the processor 101 may be configured to invoke the headphone wear detection program stored in the memory 102 and perform the following operations:
when the second sensor signal meets a preset condition, judging that the headset is worn;
and when the second sensor signal does not meet a preset condition, judging that the headset is not worn.
In an embodiment, the processor 101 may be configured to invoke the headphone wear detection program stored in the memory 102 and perform the following operations:
controlling the infrared sensor to emit infrared signals, detecting the distance between the infrared sensor and a human body, and taking the distance as the second sensor signal, wherein when the distance is smaller than a preset distance, the earphone is judged to be worn;
or detecting a time difference between the infrared sensor and the infrared signal and a phase difference between the infrared signal and the infrared signal, wherein the time difference and the phase difference are used as a second sensor signal, and the preset condition comprises that the time difference and the phase difference are smaller than a preset threshold value.
In an embodiment, the processor 101 may be configured to invoke the headphone wear detection program stored in the memory 102 and perform the following operations:
controlling the ultrasonic detection sensor to emit ultrasonic pulses, and detecting the signal amplitude of the ultrasonic pulses reflected by the human body and received by the ultrasonic detection sensor;
and taking the signal amplitude as a second sensor signal, wherein the preset condition comprises that the signal amplitude is larger than a preset signal amplitude.
In an embodiment, the processor 101 may be configured to invoke the headphone wear detection program stored in the memory 102 and perform the following operations:
detecting the voltage value of the pressure sensor in real time;
and taking the voltage value as a second sensor signal, wherein the preset condition comprises that the voltage value is larger than a preset voltage value.
Based on the hardware architecture of the headset wearing detection device, an embodiment of the headset wearing detection method is provided.
Referring to fig. 2, fig. 2 is a first embodiment of the headphone wear detection method of the present invention, the headphone wear detection method comprising the steps of:
step S10, acquiring a first sensor signal detected by the stretching detection sensor, and acquiring a second sensor signal detected by the wearing detection sensor when the beam is judged to be stretched according to the first sensor signal;
specifically, the stretch detecting sensor is used for detecting the stretch of the cross beam, the stretch detecting sensor is not limited to the sensor mentioned in the application, and a first sensor signal detected by the stretch detecting sensor is obtained, wherein the stretch detecting sensor can be a flexible sensor or a bending sensor, the stretch detecting sensor is arranged on the cross beam of the headset, and detection points of the stretch detecting sensor can be on two sides of the cross beam of the headset. And judging the stretching condition of the cross beam according to the first sensor signal, and judging that the headset is not worn when the first sensor signal judges that the cross beam is not stretched. When it is determined that the cross member is stretched based on the first sensor signal, it is also necessary to determine the wearing condition of the headphone in combination with the sensor signal of the wearing detection sensor.
The wear detection sensor is disposed on an earmuff of the headset, and the wear detection sensor may be at least one of an infrared sensor, an ultrasonic detection sensor, a time-of-flight proximity detection sensor, and a pressure sensor. Any one of wear detection sensors may be disposed in each of the two earmuffs, and the left earmuff is an infrared sensor and the right earmuff is provided with an ultrasonic detection sensor, for example. And the second sensor signals of the wearing detection sensors of the two earmuffs are respectively checked and used for wearing detection, so that the wearing detection method has better accuracy than the wearing detection of a single sensor.
In the case where it is determined from the first sensor signal that the cross member is stretched, a second sensor signal detected by the wear detection sensor is acquired.
Step S20, or acquiring a third sensor signal detected by the inertial sensor, and acquiring a second sensor signal detected by the wear detection sensor when it is determined that the headset is picked up according to the third sensor signal;
specifically, the inertial sensor is used for detecting whether the headset is picked up, and the inertial sensor can be an attitude detection sensor, not limited to the sensor mentioned in the application, and obtains a third sensor signal detected by the inertial sensor, wherein the inertial sensor is arranged at any position on the headset. And when the headset is judged not to be picked up according to the third sensor signal, judging that the headset is not worn. When it is determined that the headphone is picked up based on the third sensor signal, it is also necessary to determine the wearing condition of the headphone in combination with the sensor signal of the wearing detection sensor. The wearing detection sensor will not be described in detail here. In the case where it is determined from the third sensor signal that the headphone is picked up, the second sensor signal detected by the wear detection sensor is acquired.
And step S30, determining whether the headset is worn according to the second sensor signal.
Specifically, since the second sensor signal is different when the object is close to the earmuff than when no object is close to the earmuff, it can be determined whether or not the object is close to the earmuff, typically, the ear of the user is close to the earmuff. Judging whether the headset is worn according to the second sensor signal, and judging that the headset is worn when the second sensor signal meets the preset condition; and when the second sensor signal does not meet the preset condition, judging that the headset is not worn.
In the technical solution of this embodiment, when the beam is determined to be stretched according to the first sensor signal, the first sensor signal detected by the stretching detection sensor is obtained, and whether the headphone is worn or not is determined according to the second sensor signal. Or, the third sensor signal detected by the inertial sensor is obtained, and when the headset is judged to be picked up according to the third sensor signal, the second sensor signal detected by the wearing detection sensor is obtained, and whether the headset is worn or not is determined according to the second sensor signal. Compared with a single detection sensor, the wear condition of the earphone is comprehensively judged through the stretching detection sensor and the wear detection sensor or the inertia detection sensor and the wear detection sensor, so that the accuracy of the detection result of the wear condition is improved.
Referring to fig. 3, fig. 3 is a second embodiment of the headset wearing detection method according to the present invention, based on the first embodiment, the step S10 of obtaining the first sensor signal detected by the stretch detection sensor includes:
and S11, detecting the resistance value of the flexible sensor in real time, and taking the resistance value as a first sensor signal, wherein when the resistance value is smaller than a preset resistance value, the cross beam is judged to be stretched.
Specifically, the stretch detecting sensor may be a flexible sensor. When the earphone beam is stretched, the bending angle of the flexible sensor changes, and the resistance value output by the flexible sensor changes. When the earphone beam is not stretched, the resistance value output by the flexible sensor is maximum, and when the earphone is worn, the beam is stretched, the bending angle of the flexible sensor is increased, and the resistance value output by the flexible sensor is correspondingly reduced. And taking the resistance value as a first sensor signal, and judging that the cross beam is stretched when the resistance value is smaller than a preset resistance value.
The first sensor signal can be transmitted to a corresponding micro control unit or Bluetooth chip through an external processing circuit, whether the flexible sensor detects the change of the bending angle or not is recognized, and whether the cross beam is stretched or not is judged according to the bending angle. For example, an external processing circuit may be connected in series with the flexible sensor through a resistor, and then the output voltage corresponding to the resistor is collected by a micro control unit or a bluetooth chip. The external processing circuit can also be externally added with a comparator, as shown in fig. 4, R1 and R2 are connected in series to set a threshold voltage, R4 is a flexible sensor, when the cross beam is not stretched, the resistance value output by the flexible sensor is maximum, and the output of the output end is high level; when the flexible sensor is stretched, the resistance gradually decreases, and when the set threshold voltage is reached, the output of the output end is low level, so that whether the flexible sensor is in an effective wearing state can be judged through the micro control unit or the Bluetooth chip.
In the technical scheme of the embodiment, the resistance value of the flexible sensor is used as a first sensor signal, the stretching condition of the cross beam is judged according to the resistance value, and when the resistance value is smaller than a preset resistance value, the cross beam can be determined to be stretched, and the stretching condition of the cross beam is accurately detected.
Referring to fig. 5, fig. 5 is a third embodiment of the headset wearing detection method according to the present invention, based on the first embodiment, the acquiring the first sensor signal detected by the stretch detection sensor in step S10 includes:
and step S12, detecting the differential capacitance value of the bending sensor in real time, and taking the differential capacitance value as a first sensor signal, wherein when the differential capacitance value is larger than a preset capacitance value, the beam is judged to be stretched.
Specifically, the stretching detection sensor may be a bending sensor, the bending sensor detects the angle change of two end points fixed on the beam along the stretching direction of the beam, when the beam is not worn, the angle is the minimum value, the differential capacitance output by the bending sensor is the minimum value, when the beam is stretched when the beam is worn, the angle is increased, and the differential capacitance output by the bending sensor is correspondingly increased. The differential capacitance of the bending sensor output is in a linear relation with the angle, and the differential capacitance of the bending sensor output correspondingly increases with the increase of the angle.
Since the differential capacitance output by the bending sensor has small change, generally in pf level, it is difficult to directly detect the change of the differential capacitance by using a micro control unit or a bluetooth chip. The output end of the bending sensor is required to be externally connected with an analog front end chip, as shown in fig. 6, the differential capacitance changed by the bending sensor is processed by an amplifier AMP inside the analog front end chip AFE, and then the differential capacitance is converted into a digital signal through an internal digital-to-analog conversion signal ADC and the like, and is transmitted to a micro control unit or a bluetooth chip through an I2C interface. When the bending sensor is stretched, the differential capacitance corresponding to the bending sensor changes, and then an output signal is processed by the analog front end AFE to be sent to the micro control unit or the Bluetooth chip, and the micro control unit or the Bluetooth chip reads data in the analog front end AFE through the I2C to carry out judgment processing, so that angles of two endpoints on the bending sensor along the pulling direction of the head can be identified, and the stretching condition of the cross beam can be judged. The bending sensor is set with a low threshold and a high threshold by the micro control unit. When the headset is in a wearing state, and the output signal processed by the bending sensor is larger than a set high threshold value, the micro control unit determines that the cross beam is stretched at the moment; when the headset is in a non-wearing state, the micro-control unit determines that the cross beam is not stretched when the output signal processed by the bending sensor is smaller than a set low threshold value.
In the technical scheme of the embodiment, the differential capacitance value of the bending sensor is detected in real time, the differential capacitance value is used as a first sensor signal, the stretching condition of the cross beam is judged according to the differential capacitance value, and when the differential capacitance value is larger than a preset capacitance value, the cross beam is judged to be stretched, so that the stretching condition of the cross beam is accurately detected.
Referring to fig. 7, fig. 7 is a fourth embodiment of the method for detecting wear of a headset according to the present invention, wherein the acquiring the second sensor signal detected by the wear detection sensor in the step 10 or the step S20 includes:
step S21, controlling the infrared sensor to emit infrared signals, detecting the distance between the infrared sensor and a human body, and taking the distance as the second sensor signal, wherein when the distance is smaller than a preset distance, the earphone is judged to be worn;
step S22, or detecting a time difference between the infrared signal emitted by the infrared sensor and the received infrared signal, and a phase difference between the emitted infrared signal and the received infrared signal, and taking the time difference and the phase difference as a second sensor signal, where the preset condition includes that the time difference and the phase difference are smaller than a preset threshold.
Specifically, the wearing detection sensor can be an infrared sensor, the infrared sensor can be an infrared proximity detection sensor, the infrared proximity detection sensor is a sensor utilizing light induction such as infrared, and the infrared proximity detection sensor internally comprises an infrared emitting diode and a photosensitive receiving device. When infrared light emitted by the infrared proximity detection sensor encounters a human body or an obstacle, the infrared light is reflected and is received by a photosensitive device in the infrared proximity detection sensor, the intensity of the reflected infrared light can be adjusted by adjusting the emitted current and pulse width modulation, and the distance between the infrared proximity detection sensor and the obstacle or the measured object is determined according to the adjusted infrared light, so that the wearing condition of the earphone can be judged. The infrared proximity detection sensor is connected to the Bluetooth chip or the micro control unit through an I2C bus, wherein the infrared proximity detection sensor is provided with a low threshold value and a high threshold value through the micro control unit, when the infrared proximity detection sensor detects that the distance from a human body or an obstacle to the sensor is larger than the set high threshold value, the micro control unit judges that the earphone is worn, otherwise, when the distance from the human body or the obstacle to the sensor is smaller than the set low threshold value, the micro control unit judges that the earphone is not worn.
The infrared sensor can be a flight time proximity detection sensor, the flight time proximity detection sensor emits 940nm infrared light, when the infrared light is reflected after encountering an obstacle, the flight time proximity detection sensor calculates the distance from the flight time proximity detection sensor to the obstacle by calculating the infrared light emission and reflection time difference and the phase difference, and when the time difference and the phase difference are smaller than a preset threshold value, that is, the distance from the flight time proximity detection sensor to the obstacle is smaller than the preset distance, the earphone is judged to be worn. The judgment of the signals of the flight time proximity detection sensor in the micro control unit or the Bluetooth chip is similar to that of the infrared sensor, a high threshold value and a low threshold value are set in the micro control unit or the Bluetooth chip, the detection mode is similar to that of the infrared proximity detection sensor, and the specific description is omitted.
In the technical scheme of the embodiment, an infrared sensor is controlled to emit infrared signals, the distance between the infrared sensor and a human body is detected, and when the distance is smaller than a preset distance, the earphone is judged to be worn; or determining the time difference and the phase difference of the transmitted infrared signal and the received infrared signal, and judging that the earphone is worn when the time difference and the phase difference are larger than a preset threshold value, so that the wearing condition of the earphone is accurately judged.
Referring to fig. 8, fig. 8 is a fifth embodiment of the headset wearing detection method according to the present invention, wherein the acquiring the second sensor signal detected by the wearing detection sensor in the step 10 or the step S20 includes:
step S23, controlling the ultrasonic detection sensor to emit ultrasonic pulses, and detecting the signal amplitude of the ultrasonic pulses reflected by the human body and received by the ultrasonic detection sensor;
and step S24, taking the signal amplitude as a second sensor signal, wherein the preset condition comprises that the signal amplitude is larger than a preset signal amplitude.
Specifically, the wearing detection sensor may be an ultrasonic detection sensor, the signal amplitude received by the ultrasonic sensor when the earphone is worn correctly is obviously higher than the signal amplitude received by the ultrasonic sensor when the earphone is not worn, and when the signal amplitude is greater than the preset signal amplitude, the earphone is judged to be worn. As shown in fig. 9, which is an internal logic block diagram of the ultrasonic sensor, the control line SCL and the data line SDA are connected with the micro-control unit, the micro-control unit controls the ultrasonic sensor to internally transmit ultrasonic pulses, when the ultrasonic signals are reflected after encountering an obstacle, the received reflected ultrasonic signals are processed by the internal digital-to-analog conversion signal ADC, and the signals are transmitted to the micro-control unit through the I2C, wherein the I2C can be the data line SDA and the control line SCL, the speed of the sound wave propagating in the air is 343m/s, and the micro-control unit can determine the distance from the obstacle to the ultrasonic sensor by using the transmission time through the internal signal processing, thereby determining the wearing condition of the earphone. The ultrasonic detection sensor is similar to an infrared sensor in the micro control unit or the Bluetooth chip, a high threshold value and a low threshold value are set in the micro control unit or the Bluetooth chip, the detection mode is also similar to the infrared sensor, and the specific description is omitted.
In the technical scheme of the embodiment, the ultrasonic detection sensor is controlled to emit ultrasonic pulses, the signal amplitude of the ultrasonic pulses reflected by the human body is detected, the signal amplitude is used as a second sensor signal, when the signal amplitude is larger than a preset signal amplitude, the earphone is judged to be worn, and the wearing condition of the earphone is accurately judged.
Referring to fig. 10, fig. 10 is a sixth embodiment of the headset wearing detection method according to the present invention, wherein the acquiring the second sensor signal detected by the wearing detection sensor in the step 10 or the step S20 includes:
step S27, detecting the voltage value of the pressure sensor in real time;
and step S28, taking the voltage value as a second sensor signal, wherein the preset condition comprises that the voltage value is larger than a preset voltage value.
In particular, the wear detection sensor may be a pressure sensor, in particular a MEMS (Microelectro Mechanical Systems, microelectromechanical system) pressure detection sensor. When pressure is indirectly or directly applied to the pressure detection sensor, the output voltage of the pressure detection sensor will slightly change, typically in mV level, while as the applied pressure increases, the output voltage of the pressure detection sensor will obviously increase, but if the external is directly detected by the micro control unit or the bluetooth chip, the internal processing will be difficult and the resolution will be lower due to the smaller change. Therefore, as shown in fig. 11 below, the output end of the pressure detection sensor is externally connected with an analog front end chip, the voltage value of the pressure detection sensor is processed by an amplifier AMP inside the analog front end chip AFE, then the voltage value is converted into a digital signal through an internal digital-to-analog conversion signal ADC and the like, the digital signal is transmitted to the micro control unit or the bluetooth chip through the I2C interface, when an external force is applied to the outside of the pressure detection sensor, the analog front end AFE outputs an interrupt signal to the micro control unit or the bluetooth chip, and then the micro control unit or the bluetooth chip reads data in the analog front end AFE through the I2C to perform judgment processing, so that whether the external force is applied effectively to each pressure detection sensor can be identified, and whether the second detection sensor is in an effective wearing state can be judged. The pressure detection sensor is connected to the bluetooth chip or the micro control unit through the I2C bus, wherein the pressure detection sensor is set with a low threshold value and a high threshold value through the micro control unit, and the detection processing manner of the pressure detection sensor is similar to that of the infrared sensor, and is not described herein.
In the technical scheme of the embodiment, the voltage value of the pressure sensor is detected in real time, the voltage value is used as a second sensor signal, when the voltage value is larger than a preset voltage value, the earphone is judged to be worn, and the wearing condition of the earphone is accurately judged.
The present invention also provides a headphone wear detection device, which includes a stretch detection sensor, a wear detection sensor, a memory, a processor, and a headphone wear detection program stored in the memory and executable on the processor, the stretch detection sensor and the wear detection sensor being connected to the processor, the headphone wear detection program implementing the respective steps of the headphone wear detection method described in the above embodiments when executed by the processor.
The present invention also provides a computer-readable storage medium storing a headphone wear detection program which, when executed by a processor, implements the respective steps of the headphone wear detection method described in the above embodiments.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the 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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a computer readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The method for detecting the wearing of the headset is characterized in that the method for detecting the wearing of the headset is applied to the headset, a tension detection sensor is arranged on a beam of the headset, an inertia sensor is arranged on the headset, a wearing detection sensor is arranged on an earmuff of the headset, and the method for detecting the wearing of the headset comprises the following steps:
acquiring a first sensor signal detected by the stretching detection sensor, and acquiring a second sensor signal detected by the wearing detection sensor when the beam is judged to be stretched according to the first sensor signal; when the first sensor signal determines that the cross beam is not stretched, determining that the headset is not worn;
or acquiring a third sensor signal detected by the inertial sensor, and acquiring a second sensor signal detected by the wearing detection sensor when the headset is judged to be picked up according to the third sensor signal, wherein the second sensor signal is used for judging whether an object is close to an earmuff; judging that the headset is not worn when judging that the headset is not picked up according to the third sensor signal;
determining whether the headset is worn based on the second sensor signal.
2. The headphone wear detection method according to claim 1, wherein the stretch detection sensor includes a flexible sensor, and the step of acquiring the first sensor signal detected by the stretch detection sensor includes:
and detecting the resistance of the flexible sensor, and taking the resistance as a first sensor signal, wherein when the resistance is smaller than a preset resistance, the cross beam is judged to be stretched.
3. The headphone wear detection method according to claim 1, wherein the stretch detection sensor includes a bending sensor, and the step of acquiring the first sensor signal detected by the stretch detection sensor includes:
and detecting a differential capacitance value of the bending sensor, and taking the differential capacitance value as a first sensor signal, wherein when the differential capacitance value is larger than a preset capacitance value, the beam is judged to be stretched.
4. The headphone wear detection method according to claim 1, wherein after the step of acquiring the first sensor signal detected by the stretch detection sensor, further comprising:
and when the first sensor signal judges that the cross beam is not stretched, judging that the headset is not worn.
5. The headphone wear detection method according to claim 1, wherein after the step of determining whether the headphone is worn based on the second sensor signal, further comprising:
when the second sensor signal meets a preset condition, judging that the headset is worn;
and when the second sensor signal does not meet a preset condition, judging that the headset is not worn.
6. The headphone wear detection method according to claim 5, wherein the wear detection sensor includes an infrared sensor, and the step of acquiring the second sensor signal detected by the wear detection sensor includes:
controlling the infrared sensor to emit infrared signals, detecting the distance between the infrared sensor and a human body, and taking the distance as the second sensor signal, wherein when the distance is smaller than a preset distance, the earphone is judged to be worn;
or detecting the time difference between the infrared signal emitted by the infrared sensor and the received infrared signal And transmitting a phase difference between the infrared signal and the received infrared signal, taking the time difference and the phase difference as a second sensor signal, wherein the preset condition comprises that the time difference and the phase difference are smaller than a preset threshold.
7. The headphone wear detection method according to claim 5, wherein the wear detection sensor includes an ultrasonic detection sensor, and the step of acquiring the second sensor signal detected by the wear detection sensor includes:
controlling the ultrasonic detection sensor to emit ultrasonic pulses, and detecting the signal amplitude of the ultrasonic pulses reflected by the human body and received by the ultrasonic detection sensor;
and taking the signal amplitude as a second sensor signal, wherein the preset condition comprises that the signal amplitude is larger than a preset signal amplitude.
8. The headphone wear detection method according to claim 5, wherein the wear detection sensor includes a pressure sensor, and the step of acquiring the second sensor signal detected by the wear detection sensor includes:
detecting the voltage value of the pressure sensor in real time;
and taking the voltage value as a second sensor signal, wherein the preset condition comprises that the voltage value is larger than a preset voltage value.
9. A headphone wear detection device, characterized in that the headphone wear detection device comprises a stretch detection sensor, a wear detection sensor, a memory, a processor, and a headphone wear detection program stored in the memory and executable on the processor, the stretch detection sensor and the wear detection sensor being connected to the processor, the headphone wear detection program realizing the respective steps of the headphone wear detection method according to any one of claims 1-8 when executed by the processor.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a headphone wear detection program, which when executed by a processor, implements the respective steps of the headphone wear detection method according to any one of claims 1-8.
CN202110079725.4A 2021-01-26 2021-01-26 Headset wearing detection method, device and computer readable storage medium Active CN112945226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110079725.4A CN112945226B (en) 2021-01-26 2021-01-26 Headset wearing detection method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110079725.4A CN112945226B (en) 2021-01-26 2021-01-26 Headset wearing detection method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112945226A CN112945226A (en) 2021-06-11
CN112945226B true CN112945226B (en) 2023-07-14

Family

ID=76235663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110079725.4A Active CN112945226B (en) 2021-01-26 2021-01-26 Headset wearing detection method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112945226B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175014A (en) * 2019-05-28 2019-08-27 歌尔科技有限公司 A kind of wireless headset method for controlling volume, system and wireless headset and storage medium
CN111148009A (en) * 2019-12-31 2020-05-12 歌尔科技有限公司 Earphone wearing state determining method and device and earphone

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015037246A (en) * 2013-08-13 2015-02-23 ソニー株式会社 Headphone type acoustic device and control method therefor
CN104182051B (en) * 2014-08-29 2018-03-09 百度在线网络技术(北京)有限公司 Head-wearing type intelligent equipment and the interactive system with the head-wearing type intelligent equipment
KR20160036393A (en) * 2014-09-25 2016-04-04 하이브모션 주식회사 headset for measuring EEG signal and measuring method using the same
TW201625020A (en) * 2014-12-30 2016-07-01 富智康(香港)有限公司 Headset and controlling handheld device system, method
WO2017146671A1 (en) * 2016-02-22 2017-08-31 Honeywell International Inc. System and method for detecting earmuff worn status for true low power mode and real time fitment check
WO2018053677A1 (en) * 2016-09-20 2018-03-29 华为技术有限公司 Method of detecting whether smart device is being worn, and smart device
US10555106B1 (en) * 2017-01-27 2020-02-04 Facebook Technologies, Llc Gaze-directed audio enhancement
CN110099324B (en) * 2019-05-23 2021-04-20 歌尔科技有限公司 Earphone wearing state detection method and device and earphone
CN110351646B (en) * 2019-06-19 2021-01-22 歌尔科技有限公司 Wearing detection method for headset and headset
CN111083271B (en) * 2019-12-27 2022-03-18 歌尔股份有限公司 Wearing detection method, system, equipment and computer readable storage medium
CN111366175A (en) * 2020-04-20 2020-07-03 深圳市科奈信科技有限公司 Wireless earphone, method and device for detecting wearing state of wireless earphone and storage medium
CN111464908B (en) * 2020-04-28 2023-04-07 歌尔科技有限公司 Earphone and earphone control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175014A (en) * 2019-05-28 2019-08-27 歌尔科技有限公司 A kind of wireless headset method for controlling volume, system and wireless headset and storage medium
CN111148009A (en) * 2019-12-31 2020-05-12 歌尔科技有限公司 Earphone wearing state determining method and device and earphone

Also Published As

Publication number Publication date
CN112945226A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
US10390123B2 (en) Proximity sensing headphones
US20190173446A1 (en) Audio Device with Dynamically Responsive Volume
EP1884799B1 (en) Distance measuring system and method
US20120162636A1 (en) Proximity detector including anti-falsing mechanism
WO2018058937A1 (en) Head-mount blind guiding device
EP3130938B1 (en) Object detection device and object detection method
KR20210046414A (en) Vehicle control method considering the behavior of adjacent pedestrians
US11353568B2 (en) Ultrasonic object detection device
US10595115B2 (en) Earphone
CN110139018B (en) Camera control module, camera movement control method and terminal
KR20220106643A (en) Electronic device controlled based on sound data and method of controlling electronic device based on sound data
CN112945226B (en) Headset wearing detection method, device and computer readable storage medium
CN109562012B (en) Portable environment sensing device
JP5422744B2 (en) Calibration processing apparatus and calibration processing method for ultrasonic detection apparatus, and on-vehicle obstacle detection apparatus
CN110031860A (en) Laser distance measurement method, device and mobile terminal
KR20190009638A (en) Walking assistance system
CN110709729A (en) Object detection device
KR101082685B1 (en) range-finding device for the blind man glasses.
CN109597055A (en) The adaptive reduction of ultrasonic wave transmitting in vehicle object detecting system
US20170303828A1 (en) Chewing detecting device
KR20160081589A (en) Front detection device of glasses type
EP3326604A1 (en) Spatial detection device
JP2006343218A (en) Ultrasonic human body sensor and toilet device having it
CN219250655U (en) Blind guiding device based on Bluetooth headset and terminal equipment
US20240305936A1 (en) Hearing aid proximity detection and action to optimize a call

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