CN114040297A - Earphone switch control method, device, equipment and storage medium - Google Patents

Earphone switch control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114040297A
CN114040297A CN202111446149.9A CN202111446149A CN114040297A CN 114040297 A CN114040297 A CN 114040297A CN 202111446149 A CN202111446149 A CN 202111446149A CN 114040297 A CN114040297 A CN 114040297A
Authority
CN
China
Prior art keywords
current
target
earphone
ear
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111446149.9A
Other languages
Chinese (zh)
Inventor
赵玉贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111446149.9A priority Critical patent/CN114040297A/en
Publication of CN114040297A publication Critical patent/CN114040297A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention relates to the technical field of earphone control, and discloses an earphone switch control method, an earphone switch control device, earphone switch control equipment and a storage medium, wherein the method comprises the following steps: acquiring a current position acquired by distance detection equipment, and determining the current distance between a target earphone and a user ear canal according to the current position; acquiring target auxiliary parameters through preset auxiliary detection equipment; determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling the on-off state of the target earphone according to the wearing state; according to the invention, the target earphone is detected through the preset auxiliary detection equipment to obtain the target auxiliary parameter, then the wearing state is determined through the target auxiliary parameter and the current distance, and the on-off state of the target earphone is controlled according to the wearing state.

Description

Earphone switch control method, device, equipment and storage medium
Technical Field
The present invention relates to the field of earphone control technologies, and in particular, to an earphone switch control method, apparatus, device, and storage medium.
Background
In the present society, with the continuous improvement of living standard of people, various earphones also enter daily lives of people one after another, and form a long-standing development trend, especially True Wireless Stereo (TWS) earphones have the advantages of intellectualization and convenience, and the TWS earphones are developed towards miniaturization, that is, the volume of the earphones is continuously reduced in the design process, because the construction of the earphones also needs other structures and hardware, the battery capacity and space are also smaller and smaller, and the battery endurance of the earphones is poorer, aiming at the problems, the currently common technical scheme is an open source throttling dual mode, on one hand, the battery capacity and the conversion efficiency are increased by improving the battery, on the other hand, the wearing state of the earphones is detected, the earphones are closed when the earphones are not worn, so as to reduce the battery loss of empty consumption, the duration is prolonged, but the infrared sensor through the configuration when detecting the earphone wearing state at present stage, but the infrared sensor is only to survey and judge the distance, but can't differentiate that the object of survey is the duct or other objects, easily receives other object interference, leads to the condition of misjudgement to appear, is opened when the earphone is in not wearing state promptly for the condition of consumption appears in the electric current, causes this TWS earphone electric quantity duration to reduce.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for controlling an earphone switch, and aims to solve the technical problem that the accuracy of the wearing state of an earphone cannot be determined to be low, so that the cruising ability of electric quantity is reduced.
In order to achieve the above object, the present invention provides an earphone switch control method, including the steps of:
acquiring a current position acquired by distance detection equipment, and determining the current distance between a target earphone and a user ear canal according to the current position;
acquiring target auxiliary parameters through preset auxiliary detection equipment;
and determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling the on-off state of the target earphone according to the wearing state.
Optionally, the target auxiliary parameter includes an earphone temperature difference, the preset auxiliary detection device includes a contact temperature sensor and a non-contact temperature sensor, the contact temperature sensor is located at an ear entrance of the target earphone, and the non-contact temperature sensor is located at an ear outer part of the target earphone;
the acquiring of the target auxiliary parameter through the preset auxiliary detection device includes:
acquiring a current in-ear temperature set acquired by the contact temperature sensor and a current out-of-ear temperature set acquired by the non-contact temperature sensor;
respectively screening the current in-ear temperature set and the current out-of-ear temperature set;
carrying out average calculation on the current in-ear temperature set after screening to obtain the current in-ear temperature, and carrying out average calculation on the current out-of-ear temperature set after screening to obtain the current out-of-ear temperature;
and obtaining the temperature difference of the earphone according to the current in-ear temperature and the current out-of-ear temperature.
Optionally, the target auxiliary parameter includes an earphone illumination intensity difference, and the preset auxiliary detection device includes a first group of optical sensors and a second group of optical sensors, where the first group of optical sensors is located at an ear entrance of the target earphone, and the second group of optical sensors is located at an ear outside of the target earphone;
the acquiring of the target auxiliary parameter through the preset auxiliary detection device includes:
acquiring a current in-ear illumination intensity set acquired by the first group of light sensors and a current out-of-ear illumination intensity set acquired by the second group of light sensors;
respectively screening the current in-ear illumination intensity set and the current out-of-ear illumination intensity set;
carrying out mean value calculation on the current in-ear illumination intensity set after screening to obtain the current in-ear illumination intensity, and carrying out mean value calculation on the current out-of-ear illumination intensity set after screening to obtain the current out-of-ear illumination intensity;
and obtaining the earphone illumination intensity difference according to the current in-ear illumination intensity and the current out-of-ear illumination intensity.
Optionally, the target auxiliary parameter includes a simple harmonic vibration signal, and the preset auxiliary detection device includes a conductive electrode and an acceleration sensor, which are located at a housing of the target earphone;
the acquiring of the target auxiliary parameter through the preset auxiliary detection device includes:
acquiring the current potential of the auditory canal of the user through a conductive electrode, and obtaining potential variation according to the current potential and the target potential;
amplifying the potential variation through a preset amplification strategy;
picking up the amplified potential variation through an acceleration sensor to obtain a current vibration signal;
and filtering the current vibration signal to obtain a simple harmonic vibration signal.
Optionally, the obtaining a current position acquired by the distance detection device, and determining a current distance between the target earphone and the ear canal of the user according to the current position include:
acquiring a current position acquired by distance detection equipment, and determining an infrared shielding point according to the current position and an emission direction;
obtaining an infrared starting point according to the current position;
and calculating the infrared starting point and the infrared shielding point to obtain the current distance between the target earphone and the ear canal of the user.
Optionally, the determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling a switch state of the target earphone according to the wearing state includes:
when the current distance is greater than or equal to a preset distance threshold value, the temperature difference of the earphones is greater than or equal to a preset temperature threshold value, the illumination intensity difference of the earphones is greater than or equal to a preset illumination intensity threshold value, and the simple harmonic wave vibration signal is a target range vibration signal, determining that the target earphone is in a worn state;
acquiring the current state of the target earphone;
and when the current state is the closed state, setting the target earphone to be in the open state through a first frequency according to the worn state.
Optionally, the determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling a switch state of the target earphone according to the wearing state includes:
when the current distance is smaller than a preset distance threshold, and/or the temperature difference of the earphones is smaller than a preset temperature threshold, and/or the illumination intensity difference of the earphones is smaller than a preset illumination intensity threshold, and/or the simple harmonic wave vibration signal is a target range vibration signal, determining that the target earphone is in an unworn state;
and when the current state of the target earphone is an on state, setting the target earphone to be an off state through a second frequency according to the non-wearing state.
In addition, in order to achieve the above object, the present invention also provides an earphone switch control device, including:
the determining module is used for acquiring the current position acquired by the distance detecting equipment and determining the current distance between the target earphone and the ear canal of the user according to the current position;
the detection module is used for acquiring target auxiliary parameters through preset auxiliary detection equipment;
and the control module is used for determining a corresponding wearing state according to the current distance and the target auxiliary parameter and controlling the on-off state of the target earphone according to the wearing state.
Further, to achieve the above object, the present invention also provides an earphone switch control device including: a memory, a processor, and a headset switch control program stored on the memory and executable on the processor, the headset switch control program configured to implement a headset switch control method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a headphone switch control program stored thereon, the headphone switch control program, when executed by a processor, implementing the headphone switch control method as described above.
The earphone switch control method provided by the invention comprises the steps of obtaining the current position collected by distance detection equipment, and determining the current distance between a target earphone and the auditory canal of a user according to the current position; acquiring target auxiliary parameters through preset auxiliary detection equipment; determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling the on-off state of the target earphone according to the wearing state; according to the invention, the target earphone is detected through the preset auxiliary detection equipment to obtain the target auxiliary parameter, then the wearing state is determined through the target auxiliary parameter and the current distance, and the on-off state of the target earphone is controlled according to the wearing state.
Drawings
Fig. 1 is a schematic structural diagram of a headset switch control device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a method for controlling an earphone switch according to the present invention;
fig. 3 is a schematic flow chart of a headset switch control method according to a second embodiment of the present invention;
fig. 4 is a schematic overall flow chart of an embodiment of a method for controlling an earphone switch according to the present invention;
fig. 5 is a schematic flow chart of a headset switch control method according to a third embodiment of the present invention;
fig. 6 is a functional block diagram of the earphone switch control device according to the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a headset switch control device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the earphone switch control apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the headset switch control device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a headset switch control program.
In the headset switch control device shown in fig. 1, the network interface 1004 is mainly used for data communication with the network-integrated platform workstation; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the earphone switch control device according to the present invention may be provided in the earphone switch control device, and the earphone switch control device calls the earphone switch control program stored in the memory 1005 through the processor 1001 and executes the earphone switch control method according to the embodiment of the present invention.
Based on the hardware structure, the embodiment of the earphone switch control method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for controlling an earphone switch according to the present invention.
In a first embodiment, the headphone switch control method includes the steps of:
and step S10, acquiring the current position acquired by the distance detection equipment, and determining the current distance between the target earphone and the ear canal of the user according to the current position.
It should be noted that, the execution main body of the embodiment is an earphone switch control device, and may also be other devices that can implement the same or similar functions, such as an earphone processor, and the like.
It should be understood that the current position refers to a position where the distance detection device is located when the distance from the ear canal of the user is acquired, the distance detection device is located in the ear canal of the earphone housing, the distance detection device may be an infrared sensor, or may be other distance detection devices, which is not limited in this embodiment, and the infrared sensor is taken as an example for description, after the current position is obtained, the current distance between the target earphone and the ear canal of the user is determined by the current position, and the current distance refers to a distance between the ear canal of the user and the target earphone.
Further, step S10 includes: acquiring a current position acquired by distance detection equipment, and determining an infrared shielding point according to the current position and an emission direction; obtaining an infrared starting point according to the current position; and calculating the infrared starting point and the infrared shielding point to obtain the current distance between the target earphone and the ear canal of the user.
It can be understood that the emission direction refers to a direction from which the detection light is emitted from the detection device, the infrared shielding point refers to a point at which the detection light is shielded, the infrared shielding point is determined along with the emission direction, the infrared starting point refers to a source point at which the detection light is emitted from the detection device, the source point is located at a central position from the detection device, that is, the current position is different from the source point, in order to effectively improve the accuracy of obtaining the current distance, the current distance is calculated from the infrared starting point, for example, the infrared starting point is a, the infrared shielding point is B, and the current distance between the target earphone and the ear canal of the user is AB.
In step S20, the target auxiliary parameter is obtained by the preset auxiliary detection device.
It can be understood that the target auxiliary parameter refers to a parameter for assisting in determining a wearing state of a target earphone, the target auxiliary parameter includes parameters such as an earphone temperature difference, an earphone illumination intensity difference, and a simple harmonic vibration signal, the preset auxiliary detection device refers to a device for assisting in detecting to obtain the target auxiliary parameter, the preset auxiliary detection device includes a temperature sensor, a light sensor, a conductive electrode, and an acceleration sensor, and specifically, the preset auxiliary device is used for respectively obtaining the target auxiliary parameter.
Further, step S20 includes: acquiring a current in-ear temperature set acquired by the contact temperature sensor and a current out-of-ear temperature set acquired by the non-contact temperature sensor; respectively screening the current in-ear temperature set and the current out-of-ear temperature set; carrying out average calculation on the current in-ear temperature set after screening to obtain the current in-ear temperature, and carrying out average calculation on the current out-of-ear temperature set after screening to obtain the current out-of-ear temperature; and obtaining the temperature difference of the earphone according to the current in-ear temperature and the current out-of-ear temperature.
It should be understood that, when the preset auxiliary detection device is a temperature sensor, the target auxiliary parameter is a temperature difference of the earphone, the preset auxiliary detection device includes a contact temperature sensor and a non-contact temperature sensor, the contact temperature sensor and the non-contact temperature sensor are both divided into a plurality of parts, and are distributed in the places of the target earphone, where the temperature sensors are located in the ear and out of the ear, and the temperature sensors collect corresponding temperatures, so that the anti-interference capability of the temperature sensors can be effectively improved, the contact temperature sensor is located in the place of the target earphone, and the non-contact temperature sensor is located in the place of the target earphone, out of the ear.
It can be understood that, the current in-ear temperature set at the in-ear position is acquired by the contact temperature sensor, the current out-of-ear temperature set at the out-of-ear position is acquired by the non-contact temperature sensor, after the current in-ear temperature set and the current out-of-ear temperature set are obtained, the temperature offset items in the current in-ear temperature set and the current out-of-ear temperature set are screened, and then the mean value of the screened current in-ear temperature set and the current out-of-ear temperature set is calculated to obtain the current in-ear temperature and the current out-of-ear temperature, wherein the current in-ear temperature and the current out-of-ear temperature are closer to the actual temperature.
Further, step S20 includes: acquiring a current in-ear illumination intensity set acquired by the first group of light sensors and a current out-of-ear illumination intensity set acquired by the second group of light sensors; respectively screening the current in-ear illumination intensity set and the current out-of-ear illumination intensity set; carrying out mean value calculation on the current in-ear illumination intensity set after screening to obtain the current in-ear illumination intensity, and carrying out mean value calculation on the current out-of-ear illumination intensity set after screening to obtain the current out-of-ear illumination intensity; and obtaining the earphone illumination intensity difference according to the current in-ear illumination intensity and the current out-of-ear illumination intensity.
It should be understood that, when the preset auxiliary device is an optical sensor, the target auxiliary parameter is a difference in illumination intensity of the earphone, the preset auxiliary detection device includes a first group of optical sensors and a second group of optical sensors, the first group of optical sensors is located at an ear entrance of the target earphone, the second group of optical sensors is located at an ear external position of the target earphone, the first group of optical sensors and the second group of optical sensors are the same in number, and the accuracy of obtaining the illumination intensity of the earphone and the anti-interference performance of the optical sensors are improved.
It can be understood that the current in-ear illumination intensity set at the in-ear position is collected through the first group of optical sensors, the current out-of-ear illumination intensity set at the out-of-ear position is collected through the second group of optical sensors, after the current in-ear illumination intensity set and the current out-of-ear illumination intensity set are obtained, the illumination intensity offset items in the current out-of-ear illumination intensity set are screened out, and then the mean value calculation is performed on the screened current in-ear illumination intensity set and the current out-of-ear illumination intensity set to obtain the current in-ear illumination intensity and the current out-of-ear illumination intensity.
Further, step S20 includes: acquiring the current potential of the auditory canal of the user through a conductive electrode, and obtaining potential variation according to the current potential and the target potential; amplifying the potential variation through a preset amplification strategy; picking up the amplified potential variation through an acceleration sensor to obtain a current vibration signal; and filtering the current vibration signal to obtain a simple harmonic vibration signal.
It should be understood that, when the preset auxiliary detection device is a conductive electrode and an acceleration sensor, the target auxiliary parameter is a simple harmonic vibration signal, and the conductive electrode and the acceleration sensor are located at the housing of the target earphone and distributed at the housing in a staggered manner, and are all in full contact with the ear canal wall of the ear canal of the user.
It can be understood that the current potential refers to a potential when causing the ear canal of the user to vibrate, the factor causing the ear canal of the user to vibrate includes speaking and walking footsteps of the wearer of the earphone, the current potential of the ear canal of the user is obtained through the conductive electrode, the target potential refers to a potential when the ear canal of the user does not vibrate, the fine potential variation amount when the ear canal of the user vibrates is determined through the current potential and the target potential, and the potential variation amount is amplified through a preset amplification strategy, which may be a differential amplification strategy or a conversion amplification strategy, which is not limited in this embodiment, the differential amplification strategy is taken as an example for explanation, and then the amplified potential variation amount is picked up through the acceleration sensor to obtain the current vibration signal, since the clutter signal exists in the current vibration signal at this time, the clutter signal of the current vibration signal is removed through filtering, thereby obtaining a simple harmonic vibration signal.
And step S30, determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling the on-off state of the target earphone according to the wearing state.
It should be understood that, after the current distance and the target auxiliary parameter are obtained, the wearing state of the target earphone is determined according to the comparison result by comparing the current distance with the preset distance threshold and the target auxiliary parameter with the auxiliary parameter threshold, the wearing state includes a worn state and an unworn state, and the corresponding switch state is controlled through the electrical frequency according to the wearing state of the target earphone.
It is understood that the wearing state change of the target earphone can be judged through the current distance and the target auxiliary parameter, for example, the wearing state is converted into the non-wearing state, or the non-wearing state is converted into the wearing state, and whether the target earphone is completely worn, the wearing form of the target earphone, and the like can also be judged.
The method comprises the steps of obtaining a current position acquired by distance detection equipment, and determining the current distance between a target earphone and a user ear canal according to the current position; acquiring target auxiliary parameters through preset auxiliary detection equipment; determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling the on-off state of the target earphone according to the wearing state; in the embodiment, the target earphone is detected through the preset auxiliary detection device to obtain the target auxiliary parameter, then the wearing state is determined through the target auxiliary parameter and the current distance, and then the on-off state of the target earphone is controlled according to the wearing state.
In an embodiment, as shown in fig. 3, a second embodiment of the headset switch control method according to the present invention is proposed based on the first embodiment, and the step S30 includes:
step S301, when the current distance is greater than or equal to a preset distance threshold, the temperature difference of the earphones is greater than or equal to a preset temperature threshold, the illumination intensity difference of the earphones is greater than or equal to a preset illumination intensity threshold, and the simple harmonic vibration signal is a target range vibration signal, determining that the target earphone is in a worn state.
It should be understood that the preset distance threshold refers to a distance which is worn by the user and farthest away from the target earphone, the preset temperature threshold refers to a minimum temperature difference when the user wears the target earphone, the preset illumination intensity threshold refers to a minimum illumination intensity when the user wears the earphone, and the target range vibration signal refers to a 360-degree full-range vibration signal.
It can be understood that after the current distance, the earphone temperature difference, the earphone illumination intensity and the simple harmonic wave vibration signal are obtained, whether the current distance is greater than or equal to a preset distance threshold value, whether the earphone temperature difference is greater than or equal to a preset temperature threshold value, whether the earphone illumination intensity difference is greater than or equal to a preset illumination intensity threshold value and whether the simple harmonic wave vibration signal is a target range vibration signal are respectively judged, and if the above conditions are met, the target earphone is determined to be in a worn state.
Step S302, obtaining the current state of the target earphone.
It is understood that the current state refers to the on-off state of the target earphone, and the current state is divided into an on state and an off state.
And step S303, when the current state is the closed state, setting the target earphone to be in the open state through the first frequency according to the worn state.
It should be understood that, when the current state is the off state and the state of the target earphone is the worn state, it indicates that the user needs to turn on the earphone at this time, that is, the target earphone is set to the on state through the first electrical frequency, which is a high level, and after the digital signal processor correspondingly stimulates the earphone hardware and components, the target earphone starts to work.
Referring to fig. 4, fig. 4 is a schematic overall flow chart of earphone power-on control, specifically: the current ear-external temperature is collected by a non-contact temperature sensor, and the current ear-external temperature after screening and mean value calculation is T1Acquiring a current in-ear temperature set through a contact temperature sensor, wherein the current in-ear temperature obtained through screening and mean value calculation is T2If the temperature difference of the earphone is | T2-T1And the preset temperature threshold is delta T, meanwhile, the current external ear illumination intensity set is collected through a second group of optical sensors, and the current external ear illumination intensity obtained through screening and mean value calculation is Lux1Acquiring a current in-ear illumination intensity set through a first group of optical sensors, wherein the current in-ear illumination intensity obtained through screening and mean value calculation is Lux2If the difference of the illumination intensity of the earphones is | Lux2-Lux1The preset illumination intensity is delta Lux, a simple harmonic vibration signal is obtained through the pickup of a conductive electrode and an acceleration sensor and the filtering, a distance detection device X1 is obtained through the distance detection device, the preset distance threshold is delta X, and the preset distance threshold is larger than or equal to delta X and the preset distance threshold is delta X at X12-T1|≥△T、|Lux2-Lux1| ≧ Δ Lux and simple harmonic vibration signalSetting the target earphone to be in an open state through a first electric frequency according to a worn state when the target earphone is in an off state and is a vibration signal within a target range, and setting the target earphone to be in an open state at X1 < [ delta ] X, | T2-T1|<△T、|Lux2-Lux1And if the I & ltDelta & gt and the simple harmonic wave vibration signal are not the vibration signals in the target range, and the current state of the target earphone is in an open state, setting the target earphone to be in a closed state through a second electric frequency according to the non-wearing state.
In the embodiment, when the current distance is greater than or equal to the preset distance threshold value, the temperature difference of the earphones is greater than or equal to the preset temperature threshold value, the illumination intensity difference of the earphones is greater than or equal to the preset illumination intensity threshold value, and the simple harmonic vibration signal is the vibration signal in the target range, the target earphone is determined to be in the worn state, and then whether the current state is in the closed state or not is judged, if so, the target earphone is set to be in the open state through the first electric frequency according to the worn state, so that the accuracy of controlling the on and off of the target earphone is effectively improved.
In an embodiment, as shown in fig. 5, a third embodiment of the headset switch control method according to the present invention is proposed based on the first embodiment, and the step S30 includes:
step S304, when the current distance is smaller than a preset distance threshold, and/or the temperature difference of the earphones is smaller than a preset temperature threshold, and/or the illumination intensity difference of the earphones is smaller than a preset illumination intensity threshold, and/or the simple harmonic wave vibration signal is a target range vibration signal, determining that the target earphone is not worn.
It can be understood that after the current distance, the earphone temperature difference, the earphone illumination intensity and the simple harmonic wave vibration signal are obtained, whether the current distance is smaller than a preset distance threshold, whether the earphone temperature difference is smaller than a preset temperature threshold, whether the earphone illumination intensity difference is smaller than a preset illumination intensity threshold and whether the simple harmonic wave vibration signal is a target range vibration signal are judged, if the judgment result meets any one of the above conditions, it is indicated that the state of the target earphone is an unworn state.
Step S305, when the current state of the target earphone is an on state, setting the target earphone to be an off state through a second frequency according to the non-wearing state.
It should be understood that, after the current state of the target earphone is obtained, it is determined whether the current state is an on state, if yes, the target earphone is set to be an off state through a second electrical frequency according to the unworn state, and the second electrical frequency is a low level, that is, the target earphone stops working.
In the embodiment, when the current distance is smaller than the preset distance threshold, and/or the temperature difference of the earphones is smaller than the preset temperature threshold, and/or the illumination intensity difference of the earphones is smaller than the preset illumination intensity threshold, and/or the simple harmonic vibration signal is the vibration signal in the target range, the state of the target earphones is determined to be the unworn state, and then whether the current state of the target earphones is the on state is judged, if so, the target earphones are set to be the off state through the second electric frequency according to the unworn state, so that the cruising ability of the electric quantity is effectively improved.
In addition, an embodiment of the present invention further provides a storage medium, where an earphone switch control program is stored on the storage medium, and the earphone switch control program, when executed by a processor, implements the steps of the earphone switch control method described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
In addition, referring to fig. 6, an embodiment of the present invention further provides an earphone switch control device, where the earphone switch control device includes:
the determining module 10 is configured to obtain a current position acquired by the distance detecting device, and determine a current distance between the target earphone and the ear canal of the user according to the current position.
And the detection module 20 is configured to obtain the target auxiliary parameter through a preset auxiliary detection device.
And the control module 30 is configured to determine a corresponding wearing state according to the current distance and the target auxiliary parameter, and control a switching state of the target earphone according to the wearing state.
The method comprises the steps of obtaining a current position acquired by distance detection equipment, and determining the current distance between a target earphone and a user ear canal according to the current position; acquiring target auxiliary parameters through preset auxiliary detection equipment; determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling the on-off state of the target earphone according to the wearing state; in the embodiment, the target earphone is detected through the preset auxiliary detection device to obtain the target auxiliary parameter, then the wearing state is determined through the target auxiliary parameter and the current distance, and then the on-off state of the target earphone is controlled according to the wearing state.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may be referred to the method for controlling the earphone switch provided in any embodiment of the present invention, and are not described herein again.
In an embodiment, the determining module 10 is further configured to obtain a current position acquired by the distance detecting device, and determine an infrared shielding point according to the current position and the emission direction; obtaining an infrared starting point according to the current position; and calculating the infrared starting point and the infrared shielding point to obtain the current distance between the target earphone and the ear canal of the user.
In an embodiment, the obtaining module 20 is further configured to obtain a target auxiliary parameter including an earphone temperature difference, where the preset auxiliary detection device includes a contact temperature sensor and a non-contact temperature sensor, where the contact temperature sensor is located at an ear entrance of the target earphone, and the non-contact temperature sensor is located at an ear outside of the target earphone; acquiring a current in-ear temperature set acquired by the contact temperature sensor and a current out-of-ear temperature set acquired by the non-contact temperature sensor; respectively screening the current in-ear temperature set and the current out-of-ear temperature set; carrying out average calculation on the current in-ear temperature set after screening to obtain the current in-ear temperature, and carrying out average calculation on the current out-of-ear temperature set after screening to obtain the current out-of-ear temperature; and obtaining the temperature difference of the earphone according to the current in-ear temperature and the current out-of-ear temperature.
In an embodiment, the obtaining module 20 is further configured to obtain the target auxiliary parameter including an earphone illumination intensity difference, where the preset auxiliary detecting device includes a first group of optical sensors and a second group of optical sensors, the first group of optical sensors is located at an ear entrance of the target earphone, and the second group of optical sensors is located at an ear outside of the target earphone; acquiring a current in-ear illumination intensity set acquired by the first group of light sensors and a current out-of-ear illumination intensity set acquired by the second group of light sensors; respectively screening the current in-ear illumination intensity set and the current out-of-ear illumination intensity set; carrying out mean value calculation on the current in-ear illumination intensity set after screening to obtain the current in-ear illumination intensity, and carrying out mean value calculation on the current out-of-ear illumination intensity set after screening to obtain the current out-of-ear illumination intensity; and obtaining the earphone illumination intensity difference according to the current in-ear illumination intensity and the current out-of-ear illumination intensity.
In an embodiment, the obtaining module 20 is further configured to obtain the target auxiliary parameter includes a simple harmonic vibration signal, and the preset auxiliary detecting device includes a conductive electrode and an acceleration sensor, where the conductive electrode and the acceleration sensor are located at a housing of the target earphone; acquiring the current potential of the auditory canal of the user through a conductive electrode, and obtaining potential variation according to the current potential and the target potential; amplifying the potential variation through a preset amplification strategy; picking up the amplified potential variation through an acceleration sensor to obtain a current vibration signal; and filtering the current vibration signal to obtain a simple harmonic vibration signal.
In an embodiment, the control module 30 is further configured to determine that the target earphone is in a worn state when the current distance is greater than or equal to a preset distance threshold, the earphone temperature difference is greater than or equal to a preset temperature threshold, the earphone illumination intensity difference is greater than or equal to a preset illumination intensity threshold, and the simple harmonic vibration signal is a target range vibration signal; acquiring the current state of the target earphone; and when the current state is the closed state, setting the target earphone to be in the open state through a first frequency according to the worn state.
In an embodiment, the control module 30 is further configured to determine that the target earphone is in an unworn state when the current distance is smaller than a preset distance threshold, and/or the earphone temperature difference is smaller than a preset temperature threshold, and/or the earphone illumination intensity difference is smaller than a preset illumination intensity threshold, and/or the simple harmonic vibration signal is a target range vibration signal; and when the current state of the target earphone is an on state, setting the target earphone to be an off state through a second frequency according to the non-wearing state.
Other embodiments or methods of implementing the earphone switch control device according to the present invention can refer to the above embodiments, and are not redundant herein.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, an all-in-one platform workstation, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An earphone switch control method is characterized by comprising the following steps:
acquiring a current position acquired by distance detection equipment, and determining the current distance between a target earphone and a user ear canal according to the current position;
acquiring target auxiliary parameters through preset auxiliary detection equipment;
and determining a corresponding wearing state according to the current distance and the target auxiliary parameter, and controlling the on-off state of the target earphone according to the wearing state.
2. The earphone switch control method according to claim 1, wherein the target auxiliary parameter includes an earphone temperature difference, and the preset auxiliary detection device includes a contact temperature sensor located at an in-ear position of the target earphone and a non-contact temperature sensor located at an out-of-ear position of the target earphone;
the acquiring of the target auxiliary parameter through the preset auxiliary detection device includes:
acquiring a current in-ear temperature set acquired by the contact temperature sensor and a current out-of-ear temperature set acquired by the non-contact temperature sensor;
respectively screening the current in-ear temperature set and the current out-of-ear temperature set;
carrying out average calculation on the current in-ear temperature set after screening to obtain the current in-ear temperature, and carrying out average calculation on the current out-of-ear temperature set after screening to obtain the current out-of-ear temperature;
and obtaining the temperature difference of the earphone according to the current in-ear temperature and the current out-of-ear temperature.
3. The headset switch control method of claim 1, wherein the target auxiliary parameter comprises a headset illumination intensity difference, the pre-set auxiliary detection device comprises a first set of photo sensors located at an in-ear location of the target headset and a second set of photo sensors located at an out-of-ear location of the target headset;
the acquiring of the target auxiliary parameter through the preset auxiliary detection device includes:
acquiring a current in-ear illumination intensity set acquired by the first group of light sensors and a current out-of-ear illumination intensity set acquired by the second group of light sensors;
respectively screening the current in-ear illumination intensity set and the current out-of-ear illumination intensity set;
carrying out mean value calculation on the current in-ear illumination intensity set after screening to obtain the current in-ear illumination intensity, and carrying out mean value calculation on the current out-of-ear illumination intensity set after screening to obtain the current out-of-ear illumination intensity;
and obtaining the earphone illumination intensity difference according to the current in-ear illumination intensity and the current out-of-ear illumination intensity.
4. The earphone switch control method according to claim 1, wherein the target auxiliary parameter includes a simple harmonic vibration signal, the preset auxiliary detection device includes a conductive electrode and an acceleration sensor, the conductive electrode and the acceleration sensor being located at a housing of the target earphone;
the acquiring of the target auxiliary parameter through the preset auxiliary detection device includes:
acquiring the current potential of the auditory canal of the user through a conductive electrode, and obtaining potential variation according to the current potential and the target potential;
amplifying the potential variation through a preset amplification strategy;
picking up the amplified potential variation through an acceleration sensor to obtain a current vibration signal;
and filtering the current vibration signal to obtain a simple harmonic vibration signal.
5. The method for controlling the opening and closing of the earphone according to claim 1, wherein the obtaining of the current position acquired by the distance detection device and the determining of the current distance between the target earphone and the ear canal of the user according to the current position comprises:
acquiring a current position acquired by distance detection equipment, and determining an infrared shielding point according to the current position and an emission direction;
obtaining an infrared starting point according to the current position;
and calculating the infrared starting point and the infrared shielding point to obtain the current distance between the target earphone and the ear canal of the user.
6. The method for controlling the on-off of the earphones according to any one of claims 1 to 5, wherein the determining a corresponding wearing state according to the current distance and a target auxiliary parameter and controlling the on-off state of the target earphones according to the wearing state comprises:
when the current distance is greater than or equal to a preset distance threshold value, the temperature difference of the earphones is greater than or equal to a preset temperature threshold value, the illumination intensity difference of the earphones is greater than or equal to a preset illumination intensity threshold value, and the simple harmonic wave vibration signal is a target range vibration signal, determining that the target earphone is in a worn state;
acquiring the current state of the target earphone;
and when the current state is the closed state, setting the target earphone to be in the open state through a first frequency according to the worn state.
7. The method for controlling the on-off of the earphones according to any one of claims 1 to 5, wherein the determining a corresponding wearing state according to the current distance and a target auxiliary parameter and controlling the on-off state of the target earphones according to the wearing state comprises:
when the current distance is smaller than a preset distance threshold, and/or the temperature difference of the earphones is smaller than a preset temperature threshold, and/or the illumination intensity difference of the earphones is smaller than a preset illumination intensity threshold, and/or the simple harmonic wave vibration signal is a target range vibration signal, determining that the target earphone is in an unworn state;
and when the current state of the target earphone is an on state, setting the target earphone to be an off state through a second frequency according to the non-wearing state.
8. An earphone switch control device, characterized by comprising:
the determining module is used for acquiring the current position acquired by the distance detecting equipment and determining the current distance between the target earphone and the ear canal of the user according to the current position;
the detection module is used for acquiring target auxiliary parameters through preset auxiliary detection equipment;
and the control module is used for determining a corresponding wearing state according to the current distance and the target auxiliary parameter and controlling the on-off state of the target earphone according to the wearing state.
9. A headset switch control device, characterized in that the headset switch control device comprises: a memory, a processor, and a headset switch control program stored on the memory and executable on the processor, the headset switch control program configured to implement the headset switch control method of any one of claims 1 to 7.
10. A storage medium having a headphone switch control program stored thereon, the headphone switch control program implementing the headphone switch control method according to any one of claims 1 to 7 when executed by a processor.
CN202111446149.9A 2021-11-30 2021-11-30 Earphone switch control method, device, equipment and storage medium Pending CN114040297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111446149.9A CN114040297A (en) 2021-11-30 2021-11-30 Earphone switch control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111446149.9A CN114040297A (en) 2021-11-30 2021-11-30 Earphone switch control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114040297A true CN114040297A (en) 2022-02-11

Family

ID=80139356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111446149.9A Pending CN114040297A (en) 2021-11-30 2021-11-30 Earphone switch control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114040297A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002940A (en) * 2022-08-02 2022-09-02 荣耀终端有限公司 Bluetooth communication method, device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168102A (en) * 2018-11-22 2019-01-08 歌尔科技有限公司 A kind of earphone wearing state detection method, device and earphone
CN110418236A (en) * 2019-08-16 2019-11-05 歌尔股份有限公司 A kind of wireless headset wears detection device, method and TWS earphone
CN110784797A (en) * 2019-10-31 2020-02-11 歌尔科技有限公司 Wireless earphone control method and device, wireless earphone and storage medium
CN211702364U (en) * 2020-05-14 2020-10-16 深圳市中科蓝讯科技股份有限公司 TWS earphone of intelligence switching on and shutting down
CN112013949A (en) * 2020-08-06 2020-12-01 歌尔科技有限公司 Earphone wearing state determining method and device and earphone
WO2021093119A1 (en) * 2019-11-15 2021-05-20 歌尔股份有限公司 Earphone wearing detection method, device, earphone and readable storage medium
CN112866876A (en) * 2021-03-15 2021-05-28 西安Tcl软件开发有限公司 In-ear detection method of TWS headset, and computer-readable storage medium
WO2021110326A1 (en) * 2019-12-04 2021-06-10 Robert Bosch Gmbh Method and device for detecting wearing state of earphones, and earphones
CN113329298A (en) * 2021-06-15 2021-08-31 立讯电子科技(昆山)有限公司 Earphone control method and earphone

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168102A (en) * 2018-11-22 2019-01-08 歌尔科技有限公司 A kind of earphone wearing state detection method, device and earphone
CN110418236A (en) * 2019-08-16 2019-11-05 歌尔股份有限公司 A kind of wireless headset wears detection device, method and TWS earphone
CN110784797A (en) * 2019-10-31 2020-02-11 歌尔科技有限公司 Wireless earphone control method and device, wireless earphone and storage medium
WO2021093119A1 (en) * 2019-11-15 2021-05-20 歌尔股份有限公司 Earphone wearing detection method, device, earphone and readable storage medium
WO2021110326A1 (en) * 2019-12-04 2021-06-10 Robert Bosch Gmbh Method and device for detecting wearing state of earphones, and earphones
CN211702364U (en) * 2020-05-14 2020-10-16 深圳市中科蓝讯科技股份有限公司 TWS earphone of intelligence switching on and shutting down
CN112013949A (en) * 2020-08-06 2020-12-01 歌尔科技有限公司 Earphone wearing state determining method and device and earphone
CN112866876A (en) * 2021-03-15 2021-05-28 西安Tcl软件开发有限公司 In-ear detection method of TWS headset, and computer-readable storage medium
CN113329298A (en) * 2021-06-15 2021-08-31 立讯电子科技(昆山)有限公司 Earphone control method and earphone

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002940A (en) * 2022-08-02 2022-09-02 荣耀终端有限公司 Bluetooth communication method, device and storage medium
CN115002940B (en) * 2022-08-02 2022-12-27 荣耀终端有限公司 Bluetooth communication method, device and storage medium

Similar Documents

Publication Publication Date Title
CN110114738B (en) Wearable device, wearing detection method, and storage medium
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
WO2021016899A1 (en) Wireless earphone control method and apparatus, wireless earphone, and storage medium
CN108958696A (en) Principal and subordinate&#39;s earphone method for handover control and Related product
CN106055364A (en) Application starting method and terminal equipment
CN108540900B (en) Volume adjusting method and related product
CN107122760A (en) Fingerprint identification method and related product
CN108924375B (en) Ringtone volume processing method and device, storage medium and terminal
CN110430500B (en) Noise reduction method of earphone and earphone
CN109743652B (en) Headset control method, headset, and computer-readable storage medium
WO2018214871A1 (en) Radio frequency interference processing method and electronic device
CN114040297A (en) Earphone switch control method, device, equipment and storage medium
EP4002887A1 (en) Detection of filter clogging for hearing devices
EP3627854B1 (en) Method for operating a hearing system and hearing system comprising two hearing devices
US20230022327A1 (en) Method for determining wearing status of wireless earphone and related apparatus
CN111462454A (en) Reminding method, device, equipment and storage medium
US20240152313A1 (en) Wearing detection method, wearable device, and storage medium
CN111372157A (en) Wireless earphone, wearing detection method thereof and storage medium
KR102652553B1 (en) Electronic device and method for detecting block of microphone
CN107071151A (en) For the control method and mobile terminal of the physical button corresponding to home keys
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN113973249A (en) Earphone communication method and earphone
CN108600906B (en) Playing control method and device for multiple sound boxes
CN106127004A (en) A kind of document handling method and terminal unit
CN112104938B (en) Anti-falling method and device for true wireless Bluetooth headset and true wireless Bluetooth headset

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