CN112911484A - Earphone state detection method and device - Google Patents

Earphone state detection method and device Download PDF

Info

Publication number
CN112911484A
CN112911484A CN202110116105.3A CN202110116105A CN112911484A CN 112911484 A CN112911484 A CN 112911484A CN 202110116105 A CN202110116105 A CN 202110116105A CN 112911484 A CN112911484 A CN 112911484A
Authority
CN
China
Prior art keywords
capacitive sensor
capacitance value
value
capacitance
earphone
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
CN202110116105.3A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110116105.3A priority Critical patent/CN112911484A/en
Publication of CN112911484A publication Critical patent/CN112911484A/en
Priority to PCT/CN2022/073442 priority patent/WO2022161305A1/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
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

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

Abstract

The application discloses a method and a device for detecting the state of an earphone, wherein the method for detecting the state of the earphone is applied to the earphone, and the earphone comprises a shell, a main board, a first capacitive sensor and a second capacitive sensor, wherein the main board, the first capacitive sensor and the second capacitive sensor are positioned in the shell; the mainboard is respectively electrically connected with the first capacitive sensor and the second capacitive sensor, and a grounding area is arranged on the mainboard; the first capacitive sensor is located between the housing and the second capacitive sensor; the second capacitive sensor is positioned between the first capacitive sensor and the motherboard; the method comprises the following steps: acquiring a first capacitance value output by the first capacitance sensor and a second capacitance value output by the second capacitance sensor; and determining that the earphone is in a wearing state under the condition that the first capacitance value and the second capacitance value meet a preset condition.

Description

Earphone state detection method and device
Technical Field
The application belongs to the technical field of earphones, and particularly relates to an earphone state detection method and device.
Background
In the related art, a sensor is provided on the headset for detecting whether the headset is worn, and the sensor sensitivity is limited due to a limitation in volume. In the environment of using the earphone, liquid such as water drops and sweat can appear, and the liquid adheres to and can lead to sensor to detect and appear great error on the earphone. And because the change of ambient temperature also can influence the precision that the sensor detected, lead to whether wearing wrong judgement to the earphone.
In the process of implementing the present application, the applicant finds that at least the following problems exist in the prior art: it is not possible to accurately detect whether the earphone is worn.
Disclosure of Invention
The application aims to provide an earphone state detection method, which at least solves the problem that whether an earphone is worn or not can not be accurately detected.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for detecting a state of an earphone, where the method is applied to an earphone, where the earphone includes a housing, and a main board, a first capacitive sensor, and a second capacitive sensor that are located in the housing;
the mainboard is respectively electrically connected with the first capacitive sensor and the second capacitive sensor, and a grounding area is arranged on the mainboard; the first capacitive sensor is located between the housing and the second capacitive sensor; the second capacitive sensor is positioned between the first capacitive sensor and the motherboard;
the method comprises the following steps:
acquiring a first capacitance value output by the first capacitance sensor and a second capacitance value output by the second capacitance sensor;
and determining that the earphone is in a wearing state under the condition that the first capacitance value and the second capacitance value meet a preset condition.
In a second aspect, an embodiment of the present application provides an earphone state detection apparatus, where the apparatus is applied to an earphone, where the earphone includes a housing, and a main board, a first capacitive sensor, and a second capacitive sensor that are located in the housing;
the mainboard is respectively electrically connected with the first capacitive sensor and the second capacitive sensor, and a grounding area is arranged on the mainboard; the first capacitive sensor is located between the housing and the second capacitive sensor; the second capacitive sensor is positioned between the first capacitive sensor and the motherboard;
the device comprises:
the acquisition module is used for acquiring a first capacitance value output by the first capacitance sensor and a second capacitance value output by the second capacitance sensor;
the determining module is configured to determine that the earphone is in a wearing state when the first capacitance value and the second capacitance value satisfy a preset condition.
In a third aspect, an embodiment of the present application provides a headset, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the headset state detection method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the earphone state detection method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, whether the earphone is in a wearing state or not can be detected more accurately by acquiring the first capacitance value output by the first capacitance sensor and the second capacitance value acquired by the second capacitance sensor.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic structural diagram of a part of an earphone according to an embodiment of the present application;
fig. 2 is one of detection flowcharts for detecting whether the headset is worn according to an embodiment of the present application.
Fig. 3 is a second flowchart of detecting whether the earphone is worn according to the embodiment of the present application.
Fig. 4 is a schematic diagram of a headphone state detection apparatus according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a hardware structure of a headset according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The features of the terms first and second in the description and in the claims of the present application may explicitly or implicitly include one or more of such features. In the description of the present application, "a plurality" means two or more unless otherwise specified. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail the earphone state detection method, the detection apparatus, the earphone and the readable storage medium provided in the embodiments of the present application with reference to fig. 1 to 5 through specific embodiments and application scenarios thereof.
In some embodiments of the present application, a headphone state detection method is provided, which is applied to a headphone. As shown in fig. 1, the headset includes a housing 14, and a main board 13, a first capacitive sensor 11, and a second capacitive sensor 12 located within the housing 14.
The mainboard 13 is electrically connected with the first capacitive sensor 11 and the second capacitive sensor 12 respectively, and a grounding area 2 is arranged on the mainboard 13; the first capacitive sensor 11 is located between the housing 14 and the second capacitive sensor 12; the second capacitive sensor 12 is located between the first capacitive sensor 11 and the main board 13.
As shown in fig. 2, the method includes:
s2100: a first capacitance value output by the first capacitive sensor 11 and a second capacitance value output by the second capacitive sensor 12 are obtained.
In the present application, the first capacitive sensor 11 is located between the second capacitive sensor 12 and the housing 14, the first capacitive sensor 11 senses a capacitance value of one side of the housing 14, and the second capacitive sensor 12 senses a capacitance value of one side of the main board 13. The capacitance of the first capacitive sensor 11 is not affected by the main board 13, and the capacitance of the second capacitive sensor 12 is not affected by the housing 14.
The condition of the headset in the worn state can have an influence on the capacitance values of the first and second capacitive sensors 11, 12. By acquiring the first capacitance value of the first capacitive sensor 11 and the second capacitance value of the second capacitive sensor 12, it can be determined whether the headset is worn.
S2200: and determining that the earphone is in a wearing state under the condition that the first capacitance value and the second capacitance value meet a preset condition.
The first and second capacitance values correspondingly reflect the influence of external conditions to which the first and second capacitive sensors 11 and 12 are subjected. When the first capacitance value and the second capacitance value meet the preset condition, the external condition affecting the earphone is the condition that the earphone is in the wearing state.
This application can detect the earphone more accurately and be in the state of wearing through the second capacitance value of obtaining the first capacitance value of first capacitance sensor output and second capacitance sensor output.
In some embodiments of the present application, there is provided a headphone state detection method, the method comprising:
s2100: acquiring a first capacitance value output by the first capacitance sensor 11 and a second capacitance value output by the second capacitance sensor 12;
s2200: and determining that the earphone is in a wearing state under the condition that the first capacitance value and the second capacitance value meet a preset condition.
Determining that the earphone is in a wearing state when the first capacitance value and the second capacitance value meet a preset condition, wherein the step S2200 includes:
s2210: and under the condition that the first capacitance value is larger than a first threshold value, the second capacitance value is larger than a second threshold value, and the difference value between the first capacitance value and the second capacitance value is larger than a third threshold value, determining that the earphone is in a wearing state.
Wherein, when the earphone is worn, the housing 14 contacts with the user, and the user provides a low potential to the first capacitive sensor 11, which is grounded, thereby influencing the first capacitive sensor 11 to generate the first capacitance value. The first capacitive sensor 11 is also affected by other than the user when the user touches the sensor. The main board 13 provides a ground for the second capacitive sensor 12, the second capacitive sensor 12 is affected to generate a first capacitance value on the main board 13 side, and the second capacitive sensor 12 is affected by an influence other than user contact. According to the difference value between the first capacitance value and the second capacitance value, the influence except the contact is eliminated, so that the difference value only reflects the influence caused by the contact. When the difference is greater than the third threshold, it is determined that the capacitance value of the first capacitance sensor 11 generated only by the contact satisfies the contact condition generated by the headset and the wearing state. And further combining the judgment that the second capacitance value meets the second threshold value, whether the earphone is in a wearing state can be judged more accurately.
S2200: when the first capacitance value and the second capacitance value satisfy a preset condition, determining that the earphone is in a wearing state, further comprising:
s2220: and when a first change value of the first capacitance value in a first time period is larger than a fourth threshold value, a second change value of the second capacitance value in a second time period is larger than a fifth threshold value, and a difference value between the first change value and the second change value is larger than a sixth threshold value, determining that the earphone is in a wearing state.
The first change value of the first capacitance value in the first time period is obtained, and the first change value is compared with the first threshold value, so that the influence of the capacitance value generated on the first capacitance sensor 11 by contact on the first capacitance value can be avoided, and the obtained first change value accurately reflects the change of the first capacitance sensor 11 caused by the influence of external conditions. Likewise, the second variation value of the second capacitance value in the second time period can accurately reflect the variation of the second capacitive sensor 12 caused by the external condition.
Through the comparison of the difference value of the first change value and the second change value with the sixth threshold value, the influence of external conditions other than the influence caused by contact on detection can be more accurately eliminated, so that the accuracy of the detection of the wearing state of the earphone is further improved.
In this embodiment, the first variation value is obtained within the first duration, so that the more accurate first capacitance value of the first capacitive sensor 11 can be obtained, and the erroneous determination caused by the false touch due to the instant contact can be avoided. And the second change value is obtained within the second time length, so that the influence of the temperature on the capacitance value can be more accurately obtained. For example, in the case of temperature action, the temperature of the earphone may change to be the same as or similar to the external temperature within a certain time. And a second change value generated by the temperature influence is acquired in a second time period, so that the accuracy of acquiring the capacitance value change generated by the temperature influence is improved.
In one embodiment of the present application, as shown in fig. 3, the headphone state detection method includes:
s3100: a first capacitance value output by the first capacitive sensor 11 and a second capacitance value output by the second capacitive sensor 12 are obtained.
S3200: when the first capacitance value is smaller than or equal to a first threshold value, the second capacitance value is smaller than or equal to a second threshold value, or a difference value between the first capacitance value and the second capacitance value is smaller than or equal to a third threshold value, it is determined that the earphone is in an unworn state.
When any of the embodiments is satisfied, the headset is in an unworn state, and the capacitance values generated by the first and second capacitance sensors 11 and 12 are caused by an external contact condition other than wearing.
On the basis of the embodiment of the above earphone state detection method, the step S3200 further includes:
s3210: when the first capacitance value is less than or equal to the first threshold value, the first capacitive sensor 11 does not receive enough influence, and it is determined that the first capacitive sensor 11 does not reach the contact state generated in the wearing state. In this case, it is determined that the earphone is not worn.
On the basis of the embodiment of the above earphone state detection method, the step S3200 further includes:
s3220: and when the first capacitance value is larger than a first threshold value and the second capacitance value is smaller than or equal to a second threshold value, judging that the earphone is interfered by foreign matter contact. The foreign object interference is caused by other objects contacting the earphone, for example, sweat or liquid such as water drops.
When the first capacitance value is greater than the first threshold value, the first capacitive sensor 11 reflects that the housing 14 is affected by contact through the first capacitance value, and the contact condition is satisfied. By comparing the first capacitance value with the second threshold value, when the second capacitance value is less than or equal to the second threshold value, it is determined that the second capacitive sensor 12 is not affected by sufficient temperature. The contact influence is not for the ear.
When the headset is worn, the temperature of the headset may increase due to contact with the user, so the second capacitance value should also be larger than the second threshold value. And when the second capacitance value is not larger than the second threshold value, judging that the second capacitance sensor is not influenced by enough temperature, so that the earphone is not in a wearing state.
On the basis of the embodiment of the above earphone state detection method, the step S3200 further includes:
s3230: and when the first capacitance value is larger than a first threshold value, the second capacitance value is larger than a second threshold value, and the difference value between the first capacitance value and the second capacitance value is smaller than or equal to a third threshold value, judging that the earphone is interfered by the temperature.
When the earphone is worn, the temperature generated by the user can gradually increase the temperature of the earphone, and the temperature interference generated by external foreign matters can gradually decrease.
When the first capacitance value is larger than a first threshold value and the second capacitance value is larger than a second threshold value, the earphone meets the conditions of contact and temperature. The difference between the first capacitance value and the second capacitance value, which is the capacitance value caused by the influence of contact only, is compared with a third threshold value, so that the influence of temperature on the first capacitance value generated by the first capacitive sensor 11 is eliminated. When the difference between the first capacitance value and the second capacitance value is smaller than or equal to the third threshold, the capacitance value generated by the first capacitive sensor 11 is not satisfied with the condition of touch only under the influence of touch. The earphone is judged to be subjected to temperature interference.
When the earphone is in a wearing state, when the earphone is heated due to wearing of a user, the capacitance value generated only by the condition that the earphone is in contact with the user also meets the condition, and the difference value between the first capacitance value and the second capacitance value is larger than the third threshold value. When the difference is less than the third threshold, it is indicated that the state of the headset does not satisfy the condition of the capacitance value generated only by the contact when worn.
For example, the first capacitance is larger than the first threshold value and the second capacitance is larger than the second threshold value due to the interference of the external temperature. The difference between the first capacitance value and the second capacitance value eliminates the temperature influence, so that when the difference is smaller than or equal to the third threshold value, the condition that the capacitance value without the temperature influence does not meet the capacitance value generated only by contact is reflected.
The embodiment of the application can detect whether the earphone is in a wearing state more accurately by acquiring the first capacitance value output by the first capacitance sensor and the second capacitance value acquired by the second capacitance sensor.
On the basis of the above embodiment, the headphone state detection method further includes:
the voltage signal outside the sensing region of the first capacitive sensor 11 and the voltage signal outside the sensing region of the second capacitive sensor 12 are shielded.
The voltage signal outside the sensing area is shielded, which allows the first capacitive sensor 11 and the second capacitive sensor 12 to react only to influences within the sensing area. For example, when the earphone is worn, the contact area is a sensing area. When the portion other than the sensing region is affected, the first capacitive sensor 11 is not affected. This can further improve the accuracy of detecting the wearing state of the headphone.
It should be noted that, in the earphone state detection method provided in the embodiment of the present application, the execution main body may be an earphone state detection device, or a control module in the earphone state detection device for executing a loading earphone state detection method. In the embodiment of the present application, a method for detecting a state of a loaded headset performed by a headset state detection device is taken as an example, and the method for detecting a state of a headset provided in the embodiment of the present application is described.
The embodiment of the application provides an earphone state detection device 4000, which is applied to earphones, and the earphones comprise a shell 14, and a main board 13, a first capacitive sensor 11 and a second capacitive sensor 12 which are located in the shell 14.
The mainboard 13 is electrically connected with the first capacitive sensor 11 and the second capacitive sensor 12 respectively, and a grounding area 2 is arranged on the mainboard 13; the first capacitive sensor 11 is located between the housing 14 and the second capacitive sensor 12; the second capacitive sensor 12 is located between the first capacitive sensor 11 and the main board 13.
As shown in fig. 4, the apparatus includes:
an obtaining module 4001, configured to obtain a first capacitance value output by the first capacitive sensor 11 and a second capacitance value output by the second capacitive sensor 12;
a determining module 4002, configured to determine that the earphone is in a wearing state when the first capacitance value and the second capacitance value satisfy a preset condition.
In one embodiment, the determining module 4002 is configured to determine that the earphone is in the wearing state if the first capacitance value and the second capacitance value satisfy a preset condition, and includes: and under the condition that the first capacitance value is larger than a first threshold value, the second capacitance value is larger than a second threshold value, and the difference value between the first capacitance value and the second capacitance value is larger than a third threshold value, determining that the earphone is in a wearing state.
In one embodiment, the determining module 4002 is configured to determine that the earphone is in the wearing state if the first capacitance value and the second capacitance value satisfy a preset condition, and includes: and when a first change value of the first capacitance value in a first time interval is larger than a fourth threshold value, a second change value of the second capacitance value in a second time interval is larger than a fifth threshold value, and a difference value between the first change value and the second change value is larger than a sixth threshold value, determining that the earphone is in a wearing state.
In one embodiment, the determining module 4002 is further configured to: when any one of the first capacitance value is less than or equal to a first threshold value, the second capacitance value is less than or equal to a second threshold value, or a difference value between the first capacitance value and the second capacitance value is less than or equal to a third threshold value is satisfied, the headset is determined to be in an unworn state.
In one embodiment, the determining module 4002 is further configured to: and when the first capacitance value is larger than a first threshold value and the second capacitance value is smaller than or equal to a second threshold value, judging that the earphone is interfered by foreign matter contact.
In one embodiment, the determining module 4002 is further configured to: and when the first capacitance value is larger than a first threshold value, the second capacitance value is larger than a second threshold value, and the difference value between the first capacitance value and the second capacitance value is smaller than or equal to a third threshold value, judging that the earphone is interfered by the temperature.
In one embodiment, the apparatus further comprises: a shielding module 4003 for shielding voltage signals outside the sensing area of the first capacitive sensor and the sensing area of the second capacitive sensor.
The earphone state detection device 4000 of the present application can detect more accurately whether the earphone is in a state of wearing or not by acquiring the first capacitance value output by the first capacitance sensor and the second capacitance value acquired by the second capacitance sensor.
The earphone state detection device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The earphone state detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The earphone state detection device provided by the embodiment of the application can realize each process realized by the earphone state detection device in the earphone state detection method embodiment, and is not repeated here for avoiding repetition.
The earphone state detection device can detect whether the earphone is in a wearing state more accurately through the first capacitance value output by the first capacitance sensor and the second capacitance value obtained by the second capacitance sensor.
Optionally, an earphone is further provided in this embodiment of the present application, including a processor 1010, a memory 1009, and a program or an instruction stored in the memory 1009 and capable of running on the processor 1010, where the program or the instruction is executed by the processor 1010 to implement each process of the above embodiment of the earphone state detection method, and the same technical effect can be achieved, and details are not described here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Drawing (A)5The earphone is a hardware structure diagram for realizing the earphone.
The headset 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
A processor 1010 configured to obtain a first capacitance value output by the first capacitive sensor and a second capacitance value output by the second capacitive sensor.
The processor 1010 is further configured to determine that the earphone is in a wearing state if the first capacitance value and the second capacitance value satisfy a preset condition.
In the embodiment of the application, whether the earphone is in a wearing state or not can be detected more accurately by acquiring the first capacitance value output by the first capacitance sensor and the second capacitance value acquired by the second capacitance sensor.
Optionally, the processor 1010 is further configured to determine that the earphone is in a wearing state when the first capacitance value is greater than a first threshold value, the second capacitance value is greater than a second threshold value, and a difference between the first capacitance value and the second capacitance value is greater than a third threshold value.
The processor 1010 is further configured to determine that the earphone is in a wearing state when a first variation value of the first capacitance value in a first time period is greater than a fourth threshold, a second variation value of the second capacitance value in a second time interval is greater than a fifth threshold, and a difference between the first variation value and the second variation value is greater than a sixth threshold.
The processor 1010 is further configured to determine that the earphone is in an unworn state when the first capacitance value is less than or equal to a first threshold value, the second capacitance value is less than or equal to a second threshold value, or a difference between the first capacitance value and the second capacitance value is less than or equal to a third threshold value.
The processor 1010 is further configured to determine that the earphone is interfered by contact of a foreign object when the first capacitance value is greater than a first threshold value and the second capacitance value is less than or equal to a second threshold value.
The processor 1010 is further configured to determine that the earphone is subjected to temperature interference when the first capacitance value is greater than a first threshold value, the second capacitance value is greater than a second threshold value, and a difference between the first capacitance value and the second capacitance value is less than or equal to a third threshold value.
The processor 1010 is further configured to mask voltage signals outside a sensing region of the first capacitive sensor from voltage signals outside a sensing region of the second capacitive sensor.
In the embodiment of the application, whether the earphone is in a wearing state or not can be detected more accurately by acquiring the first capacitance value output by the first capacitance sensor and the second capacitance value acquired by the second capacitance sensor.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the embodiment of the method for detecting a state of an earphone is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the application provides a chip, the chip includes a processor and a communication interface, the communication interface with the processor coupling, the processor is used for running programs or instructions, realizes each process of the above earphone state detection method embodiment, and can reach the same technical effect, for avoiding repetition, it is no longer repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
In the earphone structure of the present application, the housing 14 has a contact area thereon for contacting a wearing subject, and the first capacitive sensor 11 is opposite to the contact area.
When the headset is worn, the contact area is in contact with the skin of the user, thereby changing the capacitance value of the first capacitive sensor 11. The smaller the area of the region where the position of the user contact overlaps with the first capacitive sensor 11, the smaller the influence on the capacitance value, and the first capacitive sensor 11 faces the contact region, and the position of the contact can be made to overlap with the first capacitive sensor 11. Thus, the portion of the touch region touched by the user can effectively affect the capacitance value of the first capacitive sensor 11, thereby securing the sensitivity of the first capacitive sensor 11.
For example, the first capacitive sensor 11 and the second capacitive sensor 12 are each a parallel plate capacitive sensor.
The parallel plate capacitance sensor is disposed within the housing 14 and objects outside in contact with the housing 14 can form a conductive plane to ground that is parallel to the first capacitance sensor 11, thereby forming a parallel plate capacitance. The capacitance value of the parallel plate capacitor is the first capacitance value. The parallel plate capacitance sensor can improve the detection sensitivity.
Optionally, a sensor chip 4 is disposed on the motherboard 13, the sensor chip 4 is electrically connected to the motherboard 13, and the sensor chip 4 is configured to detect a capacitance value of the first capacitive sensor 11 and a capacitance value of the second capacitive sensor 12.
The sensor chip 4 can be electrically connected to the first capacitive sensor 11 and the second capacitive sensor 12 through a circuit of the main board 13, thereby detecting capacitance values of the first capacitive sensor 11 and the second capacitive sensor 12. And judging whether the earphone is worn by a user or interference is formed by liquid falling on the earphone or not by calculating and comparing the first capacitance value and the second capacitance value.
Optionally, the main board 13 is electrically connected to the first capacitive sensor 11 and the second capacitive sensor 12 through a flexible circuit board 5.
It is easier to run the wires inside the headset through the flexible wiring board 5. Such routing makes it easier for the first capacitive sensor 11 and the second capacitive sensor 12 to form electrical connections with the motherboard 13. The wiring difficulty is reduced.
Optionally, the second capacitive sensor 12 is opposite the grounding zone 2.
The grounding region 2 provides a grounding terminal for the second capacitive sensor 12, and the distance between the grounding region 2 and the second capacitive sensor 12 does not change, so that the second capacitive sensor 12 and the grounding region 2 form a stable electric field. The stability of the capacitance formed by the grounding area 2 and the second capacitive sensor 12 is ensured.
For example, the main board 13 is provided with a plurality of the ground areas 2.
The plurality of ground regions 2 increases the area of the ground region, enabling the second capacitive sensor 12 to form a stable capacitance.
Optionally, a first shielding capacitor plate 6 is further disposed in the accommodating cavity, the first shielding capacitor plate 6 is disposed around the first capacitive sensor 11, and the first shielding capacitor plate 6 is electrically connected to the main board 13.
The first shield capacitor plate 6 is a capacitor. The first shield capacitor plate 6 forms a drive signal having the same phase around the first capacitive sensor 11, and the housing 14 around the first capacitive sensor 11 is kept at an equipotential voltage, thereby preventing the capacitance of the first capacitive sensor 11 from being affected by the contact with a contact object in a region other than the contact region facing the first capacitive sensor 11.
Optionally, a second shielding capacitor plate 7 is further disposed in the accommodating cavity, the second shielding capacitor plate 7 is disposed around the second capacitive sensor 12, and the second shielding capacitor plate 7 is electrically connected to the main board 13.
The working principle of the second shielding capacitor plate 7 is the same as that of the first shielding capacitor plate 6, so that the influence of objects outside the range of the second capacitor sensor 12 on the capacitance value of the second capacitor sensor 12 is avoided.
According to the method, the first capacitance value output by the first capacitance sensor and the second capacitance value obtained by the second capacitance sensor are obtained, and the calculation and comparison are carried out through the method. The influence of external influence factors on the detection accuracy is avoided, and whether the earphone is in a wearing state or not can be detected more accurately.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. The earphone state detection method is applied to earphones, and the earphones comprise a shell, a main board, a first capacitive sensor and a second capacitive sensor, wherein the main board, the first capacitive sensor and the second capacitive sensor are positioned in the shell;
the mainboard is respectively electrically connected with the first capacitive sensor and the second capacitive sensor, and a grounding area is arranged on the mainboard; the first capacitive sensor is located between the housing and the second capacitive sensor; the second capacitive sensor is positioned between the first capacitive sensor and the motherboard;
the method comprises the following steps:
acquiring a first capacitance value output by the first capacitance sensor and a second capacitance value output by the second capacitance sensor;
and determining that the earphone is in a wearing state under the condition that the first capacitance value and the second capacitance value meet a preset condition.
2. The method according to claim 1, wherein determining that the headset is in a wearing state when the first and second capacitance values satisfy a preset condition comprises:
and under the condition that the first capacitance value is larger than a first threshold value, the second capacitance value is larger than a second threshold value, and the difference value between the first capacitance value and the second capacitance value is larger than a third threshold value, determining that the earphone is in a wearing state.
3. The method according to claim 1, wherein determining that the headset is in a wearing state when the first and second capacitance values satisfy a preset condition comprises:
and when a first change value of the first capacitance value in a first time period is larger than a fourth threshold value, a second change value of the second capacitance value in a second time period is larger than a fifth threshold value, and a difference value between the first change value and the second change value is larger than a sixth threshold value, determining that the earphone is in a wearing state.
4. The headphone state detection method according to claim 1, wherein the method comprises:
when the first capacitance value is less than or equal to a first threshold value, the second capacitance value is less than or equal to a second threshold value, or a difference value between the first capacitance value and the second capacitance value is less than or equal to a third threshold value, determining that the earphone is in an unworn state.
5. The headphone state detection method according to claim 4, wherein the method comprises:
and when the first capacitance value is larger than a first threshold value and the second capacitance value is smaller than or equal to a second threshold value, judging that the earphone is interfered by foreign matter contact.
6. The headphone state detection method according to claim 4, wherein the method comprises:
and when the first capacitance value is larger than a first threshold value, the second capacitance value is larger than a second threshold value, and the difference value between the first capacitance value and the second capacitance value is smaller than or equal to a third threshold value, judging that the earphone is interfered by the temperature.
7. The headphone state detection method according to claim 1, the method further comprising:
and shielding the voltage signal outside the sensing area of the first capacitive sensor and the voltage signal outside the sensing area of the second capacitive sensor.
8. The earphone state detection device is applied to an earphone, and the earphone comprises a shell, a main board, a first capacitive sensor and a second capacitive sensor, wherein the main board, the first capacitive sensor and the second capacitive sensor are positioned in the shell;
the mainboard is respectively electrically connected with the first capacitive sensor and the second capacitive sensor, and a grounding area is arranged on the mainboard; the first capacitive sensor is located between the housing and the second capacitive sensor; the second capacitive sensor is positioned between the first capacitive sensor and the motherboard;
the device comprises:
the acquisition module is used for acquiring a first capacitance value output by the first capacitance sensor and a second capacitance value output by the second capacitance sensor;
the determining module is configured to determine that the earphone is in a wearing state when the first capacitance value and the second capacitance value satisfy a preset condition.
9. A headset, comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, carry out the steps of the headset state detection method according to any of claims 1-7.
10. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the headphone state detection method according to any one of claims 1 to 7.
CN202110116105.3A 2021-01-27 2021-01-27 Earphone state detection method and device Pending CN112911484A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110116105.3A CN112911484A (en) 2021-01-27 2021-01-27 Earphone state detection method and device
PCT/CN2022/073442 WO2022161305A1 (en) 2021-01-27 2022-01-24 Earphone state detection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110116105.3A CN112911484A (en) 2021-01-27 2021-01-27 Earphone state detection method and device

Publications (1)

Publication Number Publication Date
CN112911484A true CN112911484A (en) 2021-06-04

Family

ID=76119368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110116105.3A Pending CN112911484A (en) 2021-01-27 2021-01-27 Earphone state detection method and device

Country Status (2)

Country Link
CN (1) CN112911484A (en)
WO (1) WO2022161305A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113759439A (en) * 2021-08-20 2021-12-07 深圳曦华科技有限公司 Wearable device, wearing detection method, wearing detection device and storage medium
WO2022161305A1 (en) * 2021-01-27 2022-08-04 维沃移动通信有限公司 Earphone state detection method and apparatus
WO2023274080A1 (en) * 2021-06-29 2023-01-05 芯海科技(深圳)股份有限公司 State detection method, earphone, and computer readable storage medium
WO2023178869A1 (en) * 2022-03-23 2023-09-28 歌尔股份有限公司 Earbud wearing detection method, earbud and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002373A (en) * 2012-11-19 2013-03-27 青岛歌尔声学科技有限公司 Earphone and method for detecting earphone wearing state
CN107065016A (en) * 2017-03-01 2017-08-18 歌尔科技有限公司 It is a kind of to wear detection method, device and headphone for headphone
CN109328293A (en) * 2018-09-30 2019-02-12 深圳市汇顶科技股份有限公司 Capacitance detecting mould group, method and electronic equipment
CN110447242A (en) * 2019-02-01 2019-11-12 深圳市汇顶科技股份有限公司 Wear detection device, method and earphone
WO2020061761A1 (en) * 2018-09-25 2020-04-02 深圳市汇顶科技股份有限公司 Earphone and method for implementing wearing detection and touch operation
CN111683318A (en) * 2020-06-04 2020-09-18 歌尔科技有限公司 Earphone wearing detection method and device, earphone and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3764657A4 (en) * 2018-12-26 2021-04-28 Shenzhen Goodix Technology Co., Ltd. Wearing detection method and apparatus, wearable device and storage medium
CN112911484A (en) * 2021-01-27 2021-06-04 维沃移动通信有限公司 Earphone state detection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002373A (en) * 2012-11-19 2013-03-27 青岛歌尔声学科技有限公司 Earphone and method for detecting earphone wearing state
CN107065016A (en) * 2017-03-01 2017-08-18 歌尔科技有限公司 It is a kind of to wear detection method, device and headphone for headphone
WO2020061761A1 (en) * 2018-09-25 2020-04-02 深圳市汇顶科技股份有限公司 Earphone and method for implementing wearing detection and touch operation
CN109328293A (en) * 2018-09-30 2019-02-12 深圳市汇顶科技股份有限公司 Capacitance detecting mould group, method and electronic equipment
CN110447242A (en) * 2019-02-01 2019-11-12 深圳市汇顶科技股份有限公司 Wear detection device, method and earphone
CN111683318A (en) * 2020-06-04 2020-09-18 歌尔科技有限公司 Earphone wearing detection method and device, earphone and readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022161305A1 (en) * 2021-01-27 2022-08-04 维沃移动通信有限公司 Earphone state detection method and apparatus
WO2023274080A1 (en) * 2021-06-29 2023-01-05 芯海科技(深圳)股份有限公司 State detection method, earphone, and computer readable storage medium
CN113759439A (en) * 2021-08-20 2021-12-07 深圳曦华科技有限公司 Wearable device, wearing detection method, wearing detection device and storage medium
WO2023178869A1 (en) * 2022-03-23 2023-09-28 歌尔股份有限公司 Earbud wearing detection method, earbud and storage medium

Also Published As

Publication number Publication date
WO2022161305A1 (en) 2022-08-04

Similar Documents

Publication Publication Date Title
CN112911484A (en) Earphone state detection method and device
US20120026123A1 (en) Compensation for Capacitance Change in Touch Sensing Device
EP3435216B1 (en) Method, mobile terminal and non-transitory computer-readable storage medium for response control of damaged touch screen
US9104278B2 (en) Capacitance-type proximity sensor device and electronic apparatus using the same
CN110719348B (en) Intelligent proximity detector
US10139869B2 (en) Capacitive sensors for grip sensing and finger tracking
EP3065035B1 (en) Information processing method and electronic device
CN100538615C (en) A kind of method that prevents the capacitance key false triggering
WO2014127714A1 (en) Method and apparatus for detecting touch on capacitive touch screen
CN110708404A (en) Proximity sensor and mobile wireless device
KR20120082819A (en) Positional information correction device, touch sensor, positional information correction method, and program
CN110784793A (en) Wear detector and wearing formula electronic equipment
CN110286809B (en) Screen-side touch device, screen-side touch method and terminal equipment
US20140225863A1 (en) Touch sensing device and method of identifying a touched position
EP3792737B1 (en) Capacitance detection apparatus and electronic device
CN111324515A (en) Screen-turning control method and device, storage medium and mobile terminal
CN108650409A (en) Display screen repositioning method, electronic equipment and storage medium
CN108801321B (en) Sensor calibration method, electronic device and computer-readable storage medium
CN102859473B (en) Point to location determining device and method, touch panel device, electronic equipment
CN111343781B (en) ESD event processing method, ESD event processing circuit and related product
CN113038320A (en) Capacitance detection method and device and earphone
CN113376701A (en) Antenna module, temperature change detection method and device and related application
CN112882586A (en) Handwriting device, electronic device and control method thereof
CN111726137A (en) Antenna power control method and device and electronic equipment
CN215953876U (en) Antenna module and related electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210604