CN111294699A - Earphone detection method and device for preventing liquid misjudgment - Google Patents

Earphone detection method and device for preventing liquid misjudgment Download PDF

Info

Publication number
CN111294699A
CN111294699A CN201811636031.0A CN201811636031A CN111294699A CN 111294699 A CN111294699 A CN 111294699A CN 201811636031 A CN201811636031 A CN 201811636031A CN 111294699 A CN111294699 A CN 111294699A
Authority
CN
China
Prior art keywords
earphone
circuit detection
detection voltage
left circuit
socket
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811636031.0A
Other languages
Chinese (zh)
Other versions
CN111294699B (en
Inventor
陈澌
程剑平
李孟璋
鲁文先
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shenzhen Co ltd
Original Assignee
Spreadtrum Communications Shenzhen 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 Spreadtrum Communications Shenzhen Co ltd filed Critical Spreadtrum Communications Shenzhen Co ltd
Priority to CN201811636031.0A priority Critical patent/CN111294699B/en
Publication of CN111294699A publication Critical patent/CN111294699A/en
Application granted granted Critical
Publication of CN111294699B publication Critical patent/CN111294699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to an earphone detection method and device for preventing liquid misjudgment. The method comprises the following steps: judging whether the left circuit detection voltage of the earphone socket meets earphone insertion conditions corresponding to the working mode or not according to the working mode of the earphone socket; when the left circuit detection voltage meets the earphone insertion condition corresponding to the working mode, determining the type of the earphone inserted into the earphone socket; the type of the headset is transmitted to the terminal where the headset jack is provided. The earphone detection method and device for preventing liquid misjudgment provided by the embodiment of the disclosure can accurately and quickly judge the insertion of the earphone in the earphone socket under the two conditions of certain impedance liquid or no liquid in the earphone socket, and have wide application range.

Description

Earphone detection method and device for preventing liquid misjudgment
Technical Field
The present disclosure relates to the field of electronic circuit technologies, and in particular, to an earphone detection method and apparatus for preventing liquid misjudgment.
Background
With the continuous progress of science and technology, terminal devices such as mobile phones and computers are developed. The user can play audio and video resources through the terminal equipment. In order to meet the requirements of users for playing audio and video resources in different environments, an earphone socket (also called an earphone jack, an earphone interface, etc.) is usually disposed on the terminal device. In the related art, when liquid enters the earphone socket, the method for detecting whether the earphone is inserted into or pulled out of the earphone socket is not only low in accuracy, but also long in time consumption.
Disclosure of Invention
In view of this, the present disclosure provides an earphone detection method and device for preventing liquid misjudgment, so as to solve the problems of low accuracy and long time consumption of earphone insertion detection when liquid enters an earphone socket.
According to a first aspect of the present disclosure, there is provided a method of detecting a liquid misjudgment-proof earphone, the method comprising:
judging whether a left circuit detection voltage of the earphone socket meets earphone insertion conditions corresponding to the working mode or not according to the working mode of the earphone socket;
when the left circuit detection voltage meets earphone insertion conditions corresponding to the working mode, determining the type of an earphone inserted into the earphone socket;
and sending the type of the earphone to a terminal provided with the earphone socket.
For the above method, in one possible implementation, the method further includes:
judging whether the left circuit detection voltage meets a liquid entering condition or not, and determining that liquid enters the earphone socket when the left circuit detection voltage meets the liquid entering condition;
the prompt of the liquid entering is sent out,
wherein the liquid entry conditions include: the left circuit detection voltage is greater than or equal to a second voltage threshold and less than or equal to a third voltage threshold.
For the above method, in one possible implementation, the method further includes:
when the earphone is determined to be inserted into the earphone socket, judging whether the left circuit detection voltage meets an earphone pull-out condition corresponding to the working mode;
and when the left circuit detection voltage meets the earphone pull-out condition, sending an earphone pull-out prompt.
For the above method, in a possible implementation manner, the earphone unplugging condition corresponding to the earphone socket in the normally open operating mode includes: the left circuit detection voltage is greater than a fourth voltage threshold;
the earphone pull-out condition corresponding to the earphone socket in the normally closed working mode includes: the left circuit detection voltage is less than a first voltage threshold.
For the above method, in one possible implementation manner, the earphone insertion condition corresponding to the earphone socket in the normally open operating mode includes: the left circuit detection voltage is less than or equal to a first voltage threshold;
the earphone insertion condition corresponding to the earphone socket of the normally closed operation mode includes: the left circuit detection voltage is greater than or equal to a first voltage threshold.
According to a second aspect of the present disclosure, there is provided an earphone detection device for preventing liquid misjudgment, the device comprising:
the insertion judging module is used for judging whether the left circuit detection voltage of the earphone socket meets earphone insertion conditions corresponding to the working mode or not according to the working mode of the earphone socket;
the type judgment module is used for determining the type of the earphone inserted into the earphone socket when the left circuit detection voltage meets the earphone insertion condition corresponding to the working mode;
and the type sending module is used for sending the type of the earphone to a terminal provided with the earphone socket.
For the above apparatus, in one possible implementation manner, the apparatus further includes:
the liquid judgment module is used for judging whether the left circuit detection voltage meets a liquid entering condition or not, and when the left circuit detection voltage meets the liquid entering condition, determining that liquid enters the earphone socket;
a liquid prompting module for sending out a prompt of liquid entering,
wherein the liquid entry conditions include: the left circuit detection voltage is greater than or equal to a second voltage threshold and less than or equal to a third voltage threshold.
For the above apparatus, in one possible implementation manner, the apparatus further includes:
the pulling-out judging module is used for judging whether the left circuit detection voltage meets the earphone pulling-out condition corresponding to the working mode or not when the earphone is determined to be inserted into the earphone socket;
and the pulling prompt module sends out a pulling prompt of the earphone when the left circuit detection voltage meets the earphone pulling condition.
For the above device, in a possible implementation manner, the earphone pulling-out condition corresponding to the earphone socket in the normally open operating mode includes: the left circuit detection voltage is greater than a fourth voltage threshold;
the earphone pull-out condition corresponding to the earphone socket in the normally closed working mode includes: the left circuit detection voltage is less than a first voltage threshold.
For the above device, in one possible implementation manner, the earphone insertion condition corresponding to the earphone socket in the normally open operating mode includes: the left circuit detection voltage is less than or equal to a first voltage threshold;
the earphone insertion condition corresponding to the earphone socket of the normally closed operation mode includes: the left circuit detection voltage is greater than or equal to a first voltage threshold.
The earphone detection method and device for preventing liquid misjudgment provided by the embodiment of the disclosure comprise the following steps: judging whether the left circuit detection voltage of the earphone socket meets earphone insertion conditions corresponding to the working mode or not according to the working mode of the earphone socket; when the left circuit detection voltage meets the earphone insertion condition corresponding to the working mode, determining the type of the earphone inserted into the earphone socket; the type of the headset is transmitted to the terminal where the headset jack is provided. The earphone detection method and the device for preventing the liquid misjudgment provided by the embodiment of the disclosure can accurately and quickly judge whether the earphone is inserted into the earphone socket or not under the two conditions of certain impedance liquid or no liquid in the earphone socket, and have a wide application range.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flowchart of an earphone detection method for preventing liquid misjudgment according to an embodiment of the present disclosure.
Fig. 2a shows a circuit configuration diagram of an earphone jack and a peripheral power supply circuit according to an embodiment of the present disclosure.
Fig. 2b and 2c show timing diagrams of the insertion of the earphone into the earphone jack according to an embodiment of the present disclosure.
Fig. 2d shows a schematic flow chart of an earphone detection method for preventing liquid misjudgment according to an embodiment of the present disclosure.
Fig. 3 shows a block diagram of an earphone detection device for preventing liquid misjudgment according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 shows a flowchart of an earphone detection method for preventing liquid misjudgment according to an embodiment of the present disclosure. As shown in fig. 1, the method includes steps S11 through S13.
In step S11, it is determined whether or not the left circuit detection voltage of the earphone jack satisfies the earphone insertion condition corresponding to the operation mode, based on the operation mode of the earphone jack.
In step S12, when the left circuit detection voltage satisfies the earphone insertion condition corresponding to the operation mode, the type of the earphone inserted into the earphone jack is determined.
In step S13, the type of the headphone is transmitted to the terminal where the headphone jack is set.
Among them, the Earphones (english names ear Earphones, heads, Head-sets, earthings) are a pair of conversion units, which receive the electric signal sent by the media player or receiver and convert it into audible sound wave by the speaker near the ear. The earphone socket is a device which is arranged on a terminal of a mobile phone, a computer and the like and can be connected with an earphone in a matching way. The earphone sockets can be divided into a Normally Closed earphone socket (Normally open Headset Jack) and a Normally Closed earphone socket (Normally Closed Headset Jack) according to different operation modes.
In this embodiment, the operation mode of the earphone jack may be determined according to the configuration parameters of the earphone jack and the like. Because the voltage states of the elastic pieces (or called as connecting terminals and the like) on the earphone socket in different working modes are different under the state that the earphone is not inserted into the earphone, the working mode of the earphone socket can be determined according to the voltage value of the elastic pieces on the earphone socket.
In this embodiment, the earphone insertion condition can be determined according to the variation of the left path detection voltage of the earphone socket in different working modes before and after the earphone is inserted in the normal no-liquid state and before and after the earphone is inserted in the liquid state.
In one possible implementation, since the normally open working mode earphone jack has a ground detection spring, a ground detection voltage can be detected. For the earphone socket in the normally open operation mode, step S11 may include: and when the left circuit detection voltage of the earphone socket meets the earphone insertion condition corresponding to the working mode and the ground detection voltage meets the ground detection condition, determining that the earphone is inserted into the earphone socket. The ground detection condition may be that the ground detection voltage is less than or equal to a ground voltage threshold. Because when the earphone is inserted into the earphone socket, the voltage value of the grounding detection voltage is close to the ground level voltage, the value of the grounding voltage threshold value can be small, and the identification of the liquid with smaller impedance can be facilitated.
The earphone detection method for preventing liquid misjudgment provided by the embodiment of the disclosure can accurately and quickly judge whether the earphone is inserted into the earphone socket or not under the two conditions of certain impedance liquid or no liquid in the earphone socket, and has a wide application range.
Therefore, the earphone socket in the normally open working mode can be prevented from mistakenly identifying the condition that the earphone is inserted due to the influence of liquid entering, and the earphone in the normally closed socket working mode can be prevented from mistakenly identifying the condition that the earphone is pulled out due to the liquid entering.
In one possible implementation manner, the operation mode includes a normally open operation mode and a normally closed operation mode, wherein the earphone insertion condition corresponding to the earphone socket of the normally open operation mode may include: the left circuit detection voltage is less than or equal to the first voltage threshold. The earphone insertion condition corresponding to the earphone socket of the normally-closed operation mode may include: the left circuit detection voltage is greater than or equal to a first voltage threshold.
In this implementation manner, for the earphone sockets in different working modes, the first voltage threshold may be determined according to the value of the left-path detection voltage in the normally open state of the earphone socket.
In one possible implementation, the method may further include:
judging whether the left circuit detection voltage meets a liquid entering condition or not, and determining that liquid enters the earphone socket when the left circuit detection voltage meets the liquid entering condition;
and sending a liquid entering prompt.
Wherein the liquid entry conditions may include: the left circuit detection voltage is greater than or equal to the second voltage threshold and less than or equal to the third voltage threshold.
In this implementation, the second voltage threshold and the third voltage threshold may be determined according to a predicted value of the left path detection voltage when the liquid enters the earphone jack. The liquid entering the earphone socket can be water, beverage and other liquids. Wherein the second voltage threshold may be greater than or equal to the first voltage threshold.
In the implementation mode, the terminal where the earphone socket is located can be controlled to send out the prompt of liquid entering through one or more of sound, vibration, light, characters, pictures and the like on the display screen of the terminal.
By the aid of the mode, the user can determine that liquid exists in the earphone socket based on the liquid entering prompt, and further processing is facilitated. And moreover, the terminal can respond in time based on the condition that liquid enters the earphone socket.
In one possible implementation, the method may further include:
when the earphone is inserted into the earphone socket, judging whether the left circuit detection voltage meets the earphone pull-out condition corresponding to the working mode;
and when the left circuit detection voltage meets the earphone pulling-out condition, sending an earphone pulling-out prompt.
Therefore, the user can accurately judge whether the earphone in the earphone socket is pulled out or not, and the normal use requirement of the user is ensured. Meanwhile, the terminal can determine the current state of the earphone socket according to the earphone pull-out prompt and timely respond.
In one possible implementation, the earphone unplugging condition corresponding to the earphone socket in the normally open operation mode may include: the left circuit detects that the voltage is greater than the fourth voltage threshold. The earphone unplugging conditions corresponding to the normally closed operating mode earphone jack may include: the left circuit detects that the voltage is less than the first voltage threshold.
Wherein the fourth voltage threshold may be determined according to a value of a left path detection voltage after the earphone is inserted.
In the implementation mode, the terminal where the earphone socket is located can be controlled to send out the earphone pulling-out prompt through one or more of the sound, vibration, light, characters, pictures and the like on the display screen of the terminal.
In one possible implementation, for the earphone socket in the normally open operating mode, the earphone pull-out condition may be: and detecting that the terminal provided with the earphone socket plays the audio file and the left circuit detection voltage of the earphone socket is greater than or equal to a third voltage threshold. Or the earphone pull-out condition may be: and detecting that the terminal provided with the earphone socket does not play the audio file and the left circuit detection voltage of the earphone socket is greater than a fourth voltage threshold value.
In this embodiment, the voltage threshold values are, from small to large, the fourth voltage threshold value, the first voltage threshold value, the second voltage threshold value and the third voltage threshold value in this order.
In a possible implementation manner, the device that can be inserted into the earphone socket, such as a sound box, a selfie stick, and the like, may be inserted into the earphone socket in addition to the earphone, and the device that is inserted into the earphone socket, such as the earphone, the sound box, and the like, is inserted into the earphone socket through its own pin, adapter, and the like, so as to implement connection with the earphone socket. The device plugged into the earphone socket can be set by those skilled in the art according to actual needs, and the present disclosure does not limit this.
It should be noted that, although the above-mentioned embodiments are taken as examples to describe the earphone detection method for preventing liquid misjudgment, those skilled in the art can understand that the disclosure should not be limited thereto. In fact, the user can flexibly set each step according to personal preference and/or actual application scene, as long as the technical scheme of the disclosure is met.
Application example
An application example according to the embodiment of the present disclosure is given below in combination with "earphone detection for preventing liquid misjudgment for an earphone socket on a mobile phone" as an exemplary application scenario, so as to facilitate understanding of a flow of the earphone detection method for preventing liquid misjudgment. It is to be understood by those skilled in the art that the following application examples are for the purpose of facilitating understanding of the embodiments of the present disclosure only and are not to be construed as limiting the embodiments of the present disclosure.
Fig. 2a shows a circuit block diagram of a headset jack and peripheral related power supply circuitry according to an embodiment of the present disclosure. As shown in fig. 2a, the earphone socket is a normally open earphone socket. The normally open typeThe earphone socket comprises a grounding detection elastic sheet G _ DET, a microphone input elastic sheet MIC _ IN, a right sound channel elastic sheet HP _ R, a left sound channel elastic sheet HP _ L, a left circuit detection elastic sheet L _ DET and a grounding elastic sheet GND. The arrangement of part of the earphones does not need the grounding detection elastic sheet G _ DET, and the socket grounding detection elastic sheet G _ DET and the grounding elastic sheet GND are in short circuit. The voltage of the left circuit detection spring plate L _ DET is the left circuit detection voltage. Wherein, I1、I2To connect to a current source of a socket of the headset, I1、I2And power is respectively supplied to the left detection elastic sheet L _ DET and the ground detection elastic sheet G _ DET. I is1、I2The power is kept before and after the earphone is inserted into the earphone socket. HEADMIC _ BIAS is a power supply and is used for electrifying the microphone input spring MIC _ IN according to control. R1For microphone input spring MIC _ IN pull-up resistor, R2Pull-down resistors for the right channel and the left channel. It should be noted that the earphone socket shown in fig. 2a is only one example of a plurality of earphone sockets to which the method for detecting insertion of an earphone for preventing liquid misjudgment provided by the embodiment of the present disclosure is applicable, and the present disclosure does not limit the type of the earphone socket.
Fig. 2b and 2c show timing diagrams of earphone insertion according to an embodiment of the present disclosure. As shown in fig. 2b and 2c, taking the earphone inserted into the earphone socket as an example of a four-segment earphone, a timing chart of earphone insertion detection when there is no liquid in the earphone socket and earphone insertion detection when there is water drop (liquid) in the earphone socket is given. Here, "GDET" indicates whether or not the ground detection voltage satisfies the corresponding ground detection condition, and low level is not satisfied and high level is satisfied. "LDET _ L" indicates that it is determined whether the left circuit detection voltage is less than or equal to a first voltage threshold (in this example, the first voltage threshold is the same as the second voltage threshold), the high level is that the left circuit detection voltage is less than or equal to the first voltage threshold, and the low level is that the left circuit detection voltage is greater than the first voltage threshold. "LDET _ H" represents a determination result of determining whether the left circuit detection voltage is less than or equal to the third voltage threshold, where a high level is that the left circuit detection voltage is less than or equal to the third voltage threshold, and a low level is that the left circuit detection voltage is greater than the third voltage threshold. The normally open type earphone socket is an earphone socket with a normally open working mode, and the normally closed type earphone socket is an earphone socket with a normally closed working mode.
Normally open type earphone socket (with G _ DET)
As shown in fig. 2b and 2c, for the normally open type earphone socket with the ground detection elastic sheet G _ DET, before the earphone is inserted into the earphone socket, the ground detection elastic sheet G _ DET and the left circuit detection elastic sheet L _ DET are both at a high level, the voltage of each elastic sheet does not reach the requirement of level inversion, and after judgment, it is determined that GDET, LDET _ L and LDET _ H are both in a low level state. Under normal conditions (no water droplets entering), from T1The earphone is inserted into the earphone socket at the beginning, the left sound channel wiring of the earphone pin is inserted into the earphone socket, so that the grounding detection elastic sheet G _ DET of the earphone socket is contacted with the grounding elastic sheet GND, the voltage of the grounding detection elastic sheet G _ DET is reduced to be less than or equal to the grounding voltage threshold value, and GDET is turned to be at a high level. From T2At the beginning of the moment, the grounding elastic piece GND is disconnected from the grounding detection elastic piece G _ DET due to the contact with the insulation ring between the left channel connection and the right channel connection of the earphone, and the GDET is inverted to a low level. From T3And at the beginning of the moment, the second section of right channel wiring of the earphone is inserted into the earphone socket, so that the grounding detection elastic piece G _ DET is continuously contacted with the grounding elastic piece GND, and the GDET is turned to be at a high level. From T4At the beginning of the moment, one of the grounding detection elastic piece G _ DET and the grounding elastic piece GND is disconnected due to the contact with the insulating ring between the earphone right channel connection and the grounding connection, so that the voltage of the grounding detection elastic piece G _ DET is pulled up to be larger than the grounding voltage threshold value, and GDET is turned over to be a low level. From T5At the beginning, with the continuous insertion of the earphone, the left channel wiring of the earphone makes the left circuit detection elastic sheet L _ DET of the earphone socket contact with the left channel elastic sheet HP _ L, so that the voltage of the left circuit detection elastic sheet L _ DET is reduced to be less than or equal to the first voltage threshold, and the LDET _ H, LDET _ L is turned to the high level after the judgment. From T6At the beginning of the moment, the ground connection of the earphone enables the ground detection elastic piece G _ DET of the earphone socket to be in contact with the ground elastic piece GND, after the judgment, GDET is turned over to be at a high level (meeting the ground detection condition), and after the judgment, LDET _ H, LDET _ L are all at a high level (meeting the earphone insertion condition), at the moment, the earphone can be determined to be completely inserted, and the type of inserting the earphone can be further determined.
When water drops enter the earphone socket, the water drops are at T0The voltage of the left detection elastic piece L _ DET is pulled to a certain voltage value due to the existence of water drop impedance when the earphone socket is entered, and the LDET _ H behind the judgment module is turned to a high level. But will reach T due to the limitation of LDET _ L and GDET5The LDET _ L can be turned to be at a high level when the earphone is inserted at any time, and the condition of misjudgment caused by liquid can not occur. Up to T6The time is consistent with the condition of no water drop, when the GDET is at a high level (meeting the grounding detection condition) and the LDET _ H, LDET _ L is at a high level (meeting the earphone insertion condition), the earphone can be determined to be completely inserted, and the type of the earphone can be further determined.
Normally open type earphone socket (No G _ DET)
As shown in fig. 2b and 2c, for the normally open type earphone socket without the grounding detection elastic piece G _ DET, before the earphone is inserted into the earphone socket, each elastic piece does not reach the level requirement, and after determination, it is determined that both LDET _ L and LDET _ H are in the low level state. Under normal conditions (no water droplets entering), from T1The earphone is inserted into the earphone socket from time to time until T5At this moment, with the continuous insertion of the earphone, the left channel wiring of the earphone enables the left circuit detection elastic sheet L _ DET of the earphone socket to be in contact with the left channel elastic sheet HP _ L, the voltage of the left circuit detection elastic sheet L _ DET is reduced to be smaller than or equal to the first voltage threshold, LDET _ H, LDET _ L is turned over to be at a high level, and the situation that misjudgment is caused by existing liquid can be avoided. To T5At the moment, the LDET _ L is at a high level, so that the earphone insertion condition is met, and the type of the earphone can be further judged. Up to T6At that moment, the voltage of the left detection spring L _ DET is pulled down to be less than or equal to the fourth voltage threshold, and the earphone is completely plugged.
When water drops enter the earphone socket, the water drops are at T0And (3) entering the earphone socket at the moment, and leading the voltage of the left detection elastic sheet L _ DET to be reduced to be less than or equal to a third voltage threshold value by water drops, so that the LDET _ H is turned into a high level. Due to the limitation of LDET _ L, the LDET _ L will be turned to high level, i.e. T5At any moment, the earphone insertion condition is met, and the insertion misjudgment caused by the existence of liquid can be avoided. Until time T5The condition is consistent with the condition without water drops, and the type of the earphone can be further judged. Up to T6At the moment, the voltage of the left detection spring L _ DET is reduced to be less than or equal to the fourth voltage threshold value, and the earphone is completely plugged.
Normally closed earphone socket (No G _ DET)
As shown in fig. 2b and 2c, before the earphone is inserted into the earphone jack, the left detection spring L _ DET maintains a contact state with the left channel spring HP _ L, so that LDET _ H, LDET _ L is in a high level state after the determination. Under normal conditions (no water droplets entering), from T1The earphone is inserted into the earphone socket from time to time until T5At any moment, the left circuit detection elastic sheet L _ DET of the earphone socket is disconnected with the left channel elastic sheet HP _ L along with the continuous insertion of the earphone, the voltage of the left circuit detection elastic sheet L _ DET is pulled high, the LDET _ H, LDET _ L is turned into a low level after judgment, the earphone insertion condition is met, the type of the earphone can be further judged, and the earphone can be further judged until T6At all times, the headset is fully plugged.
When water drops enter the earphone socket, the LDET _ H, LDET _ L is in a high level state because the left channel detection spring L _ DET is in a contact state with the left channel spring HP _ L. Water dropping on T0The voltage entering the earphone socket at any time has no influence on the voltage of the left-path detection elastic sheet L _ DET, and only T is reached5At the moment, the earphone enables the left circuit detection elastic sheet L _ DET of the earphone socket to be disconnected from the left channel elastic sheet HP _ L, the voltage of the left circuit detection elastic sheet L _ DET is pulled to be higher than the first voltage, the voltage of the left circuit detection elastic sheet L _ DET is smaller than or equal to the third voltage threshold due to the existence of water drops, the judged LDET _ H can be kept at the high level continuously, the LDET _ L can be turned into the low level, the earphone insertion condition is met, and the type of the earphone can be further judged. To T6At all times, the headset is fully plugged.
In practical use, since the left and right channel resistances of the earphone are generally on the order of tens of ohms (e.g., 32 ohms), the current value of the current source connected to the earphone jack is generally on the order of microamperes in order to reduce the noise of the earphone. The voltage on the left hand detection spring L _ DET is typically a few tens of microvolts. When a small drop of water (liquid) enters the earphone socket, the impedance of the liquid is typically in the order of kilohms. When each elastic sheet in the earphone socket is contacted by a water drop, the impedance of the left circuit detection elastic sheet L _ DET is different from the impedance caused by the insertion of the earphone, and the left circuit detection voltage is also different. And the different types of the inserted earphones can change the level inversion of the determined 'GDET', 'LDET _ L' and 'LDET _ H'. The first voltage threshold, the second voltage threshold, the third voltage threshold, the fourth voltage threshold, and the ground voltage threshold may be set based on the above-described case.
Fig. 2d shows a schematic flow chart of an earphone detection method for preventing liquid misjudgment according to an embodiment of the present disclosure. As shown in fig. 2d, the process of whether or not the earphone is inserted into the earphone is as follows, step S100, step S201 to step S205, step S301 to step S305.
In step S100, the operation mode of the earphone jack is determined according to the setting of the earphone jack, and when the earphone jack is in the normally open operation mode, step S201 and step S203 are executed. When the operation mode of the earphone jack is the normally closed operation mode, step S301 and step S303 are executed.
In step S201, the left detection voltage V of the earphone jack is determinedL_DETWhether or not it is less than or equal to the first voltage threshold VTH1. At VL_DET≤VTH1Then, step S202 is executed. At VL_DET>VTH1Then, step S205 is executed.
In step S203, the left detection voltage V of the earphone socket is determinedL_DETWhether or not it is greater than or equal to the second voltage threshold VTH2And is less than or equal to the third voltage threshold VTH3. At VTH2≤VL_DET≤VTH3Then, step S204 is executed. Otherwise, if VL_DET≤VTH1Step S202 is executed; if VL_DET>VTH3Or VTH1<VL_DET<VTH2Then step S205 is performed.
In step S204, a liquid entry prompt is issued, and the process proceeds to step S205.
In step S205, the monitoring of the left detection voltage V of the earphone socket is continuedL_DETAnd the left path of the detected voltage V is obtained by monitoringL_DETAfter that, step S201 is continuously performed.
In step S202, it is determined that the earphone is inserted into the earphone jack, and the type of the earphone may be further determined. And sending the determined type of the earphone to a terminal provided with an earphone socket so that the terminal can play audio files for the user according to the type of the earphone.
In step S301, the left detection voltage V of the earphone socket is determinedL_DETWhether or not it is greater than or equal to the first voltage threshold VTH1. At VL_DET≥VTH1Then, step S302 is executed. At VL_DET<VTH1Then, step S305 is executed.
In step S303, the left detection voltage V of the earphone socket is determinedL_DETWhether or not it is greater than or equal to the second voltage threshold VTH2And is less than or equal to the third voltage threshold VTH3. At VTH2≤VL_DET≤VTH3Then, step S304 is executed. Otherwise, if VL_DET≤VTH1Step S302 is executed; if VL_DET>VTH3Or VTH1<VL_DET<VTH2Then step S305 is performed.
In step S304, a liquid entry prompt is issued, and step S302 is executed.
In step S305, the monitoring of the left detection voltage V of the earphone socket is continuedL_DETAnd the left path of the detected voltage V is obtained by monitoringL_DETAfter that, the process proceeds to step S301.
In step S302, it is determined that an earphone is inserted into the earphone jack, and the type of the earphone may be further determined. And sending the determined type of the earphone to a terminal provided with an earphone socket so that the terminal can play audio files for the user according to the type of the earphone.
After the earphone is inserted into the earphone socket, the left circuit detection voltage of the earphone socket is continuously monitored, whether the left circuit detection voltage meets the earphone extraction condition corresponding to the working mode or not is judged, and when the left circuit detection voltage meets the earphone extraction condition, an earphone extraction prompt is sent.
The above steps are referred to the above description of the corresponding steps.
The earphone detection method for preventing liquid misjudgment provided by the embodiment of the disclosure can accurately and quickly judge whether the earphone is inserted or pulled out from the earphone socket under the two conditions of certain impedance liquid or no liquid in the earphone socket, and has a wide application range.
Fig. 3 shows a block diagram of an earphone detection device for preventing liquid misjudgment according to an embodiment of the present disclosure. As shown in fig. 3, the apparatus includes an insertion judgment module 51, a type judgment module 52, and a type transmission module 53.
The insertion judgment module 51 judges whether the left circuit detection voltage of the earphone socket meets the earphone insertion condition corresponding to the working mode according to the working mode of the earphone socket.
The type determining module 52 determines the type of the earphone inserted into the earphone jack when the left circuit detection voltage satisfies the earphone insertion condition corresponding to the working mode.
And a type transmitting module 53 for transmitting the type of the headset to the terminal where the headset jack is provided.
In a possible implementation manner, the device may further include a liquid judging module and a liquid prompting module. The liquid judgment module is used for judging whether the left circuit detection voltage meets the liquid entering condition or not, and when the left circuit detection voltage meets the liquid entering condition, the liquid entering in the earphone socket is determined. The liquid prompting module is used for sending out liquid entering prompts. Wherein the liquid entry conditions may include: the left circuit detection voltage is greater than or equal to the second voltage threshold and less than or equal to the third voltage threshold.
In a possible implementation manner, the device may further include a pulling-out judging module and a pulling-out prompting module. The extraction judging module is used for judging whether the voltage detected by the left circuit meets the earphone extraction condition corresponding to the working mode when the earphone is inserted into the earphone socket. The extraction prompt module is used for sending out an earphone extraction prompt when the left circuit detection voltage meets the earphone extraction condition.
In one possible implementation, the earphone unplugging condition corresponding to the earphone socket in the normally open operation mode may include: the left circuit detects that the voltage is greater than the fourth voltage threshold. The earphone unplugging condition corresponding to the earphone jack of the normally open operation mode may include: the left circuit detects that the voltage is less than the first voltage threshold.
In one possible implementation, the operating modes include a normally open operating mode and a normally closed operating mode. Wherein, the earphone inserting condition corresponding to the earphone socket of the normally open working mode may include: the left circuit detection voltage is less than or equal to the first voltage threshold. The earphone insertion condition corresponding to the earphone socket of the normally-closed operation mode may include: the left circuit detection voltage is greater than or equal to a first voltage threshold.
The earphone detection device for preventing liquid misjudgment provided by the embodiment of the disclosure can accurately and quickly judge whether the earphone is inserted into or pulled out from the earphone socket or not under two conditions of liquid with certain impedance or no liquid in the earphone socket, and has a wide application range.
It should be noted that, although the above-mentioned embodiments are described as examples of the earphone detection device for preventing liquid misjudgment, those skilled in the art can understand that the disclosure should not be limited thereto. In fact, the user can flexibly set each module according to personal preference and/or actual application scene, as long as the technical scheme of the disclosure is met.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method for detecting a liquid misjudgment-proof earphone, the method comprising:
judging whether a left circuit detection voltage of the earphone socket meets earphone insertion conditions corresponding to the working mode or not according to the working mode of the earphone socket;
when the left circuit detection voltage meets earphone insertion conditions corresponding to the working mode, determining the type of an earphone inserted into the earphone socket;
and sending the type of the earphone to a terminal provided with the earphone socket.
2. The method of claim 1, further comprising:
judging whether the left circuit detection voltage meets a liquid entering condition or not, and determining that liquid enters the earphone socket when the left circuit detection voltage meets the liquid entering condition;
the prompt of the liquid entering is sent out,
wherein the liquid entry conditions include: the left circuit detection voltage is greater than or equal to a second voltage threshold and less than or equal to a third voltage threshold.
3. The method of claim 1, further comprising:
when the earphone is determined to be inserted into the earphone socket, judging whether the left circuit detection voltage meets an earphone pull-out condition corresponding to the working mode;
and when the left circuit detection voltage meets the earphone pull-out condition, sending an earphone pull-out prompt.
4. The method of claim 3,
the earphone pull-out condition corresponding to the earphone socket in the normally open working mode includes: the left circuit detection voltage is greater than a fourth voltage threshold;
the earphone pull-out condition corresponding to the earphone socket in the normally closed working mode includes: the left circuit detection voltage is less than a first voltage threshold.
5. The method according to any one of claims 1 to 4,
the earphone insertion condition corresponding to the earphone socket of the normally open operation mode includes: the left circuit detection voltage is less than or equal to a first voltage threshold;
the earphone insertion condition corresponding to the earphone socket of the normally closed operation mode includes: the left circuit detection voltage is greater than or equal to a first voltage threshold.
6. An earphone detection device that prevents liquid false positives, the device comprising:
the insertion judging module is used for judging whether the left circuit detection voltage of the earphone socket meets earphone insertion conditions corresponding to the working mode or not according to the working mode of the earphone socket;
the type judgment module is used for determining the type of the earphone inserted into the earphone socket when the left circuit detection voltage meets the earphone insertion condition corresponding to the working mode;
and the type sending module is used for sending the type of the earphone to a terminal provided with the earphone socket.
7. The apparatus of claim 6, further comprising:
the liquid judgment module is used for judging whether the left circuit detection voltage meets a liquid entering condition or not, and when the left circuit detection voltage meets the liquid entering condition, determining that liquid enters the earphone socket;
a liquid prompting module for sending out a prompt of liquid entering,
wherein the liquid entry conditions include: the left circuit detection voltage is greater than or equal to a second voltage threshold and less than or equal to a third voltage threshold.
8. The apparatus of claim 6, further comprising:
the pulling-out judging module is used for judging whether the left circuit detection voltage meets the earphone pulling-out condition corresponding to the working mode or not when the earphone is determined to be inserted into the earphone socket;
and the pulling prompt module sends out a pulling prompt of the earphone when the left circuit detection voltage meets the earphone pulling condition.
9. The apparatus of claim 8,
the earphone pull-out condition corresponding to the earphone socket in the normally open working mode includes: the left circuit detection voltage is greater than a fourth voltage threshold;
the earphone pull-out condition corresponding to the earphone socket in the normally closed working mode includes: the left circuit detection voltage is less than a first voltage threshold.
10. The apparatus according to any one of claims 6 to 9,
the earphone insertion condition corresponding to the earphone socket of the normally open operation mode includes: the left circuit detection voltage is less than or equal to a first voltage threshold;
the earphone insertion condition corresponding to the earphone socket of the normally closed operation mode includes: the left circuit detection voltage is greater than or equal to a first voltage threshold.
CN201811636031.0A 2018-12-29 2018-12-29 Earphone detection method and device for preventing liquid misjudgment Active CN111294699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811636031.0A CN111294699B (en) 2018-12-29 2018-12-29 Earphone detection method and device for preventing liquid misjudgment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811636031.0A CN111294699B (en) 2018-12-29 2018-12-29 Earphone detection method and device for preventing liquid misjudgment

Publications (2)

Publication Number Publication Date
CN111294699A true CN111294699A (en) 2020-06-16
CN111294699B CN111294699B (en) 2021-12-03

Family

ID=71024144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811636031.0A Active CN111294699B (en) 2018-12-29 2018-12-29 Earphone detection method and device for preventing liquid misjudgment

Country Status (1)

Country Link
CN (1) CN111294699B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201789630U (en) * 2010-09-08 2011-04-06 中兴通讯股份有限公司 Headset plugging detection circuit
CN103686534A (en) * 2012-09-11 2014-03-26 三星电子株式会社 Method and apparatus for detecting insertion of external audio outputting device in electronic device
CN204928957U (en) * 2015-09-23 2015-12-30 上海华掌通信技术有限公司 A circuit that is used for beautiful mark earphone automated inspection of smart mobile phone eu standard
CN106210948A (en) * 2016-06-22 2016-12-07 维沃移动通信有限公司 A kind of on-off circuit, earphone socket, mobile terminal and method
CN206627597U (en) * 2017-03-04 2017-11-10 维沃移动通信有限公司 One kind detection USB socket water inlet open circuit potential
CN108322882A (en) * 2017-01-17 2018-07-24 联芯科技有限公司 Earphone plug detection circuit, headset detection device and audio frequency apparatus
CN110213686A (en) * 2019-05-28 2019-09-06 维沃移动通信有限公司 A kind of detection method and terminal of earphone socket

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201789630U (en) * 2010-09-08 2011-04-06 中兴通讯股份有限公司 Headset plugging detection circuit
CN103686534A (en) * 2012-09-11 2014-03-26 三星电子株式会社 Method and apparatus for detecting insertion of external audio outputting device in electronic device
CN204928957U (en) * 2015-09-23 2015-12-30 上海华掌通信技术有限公司 A circuit that is used for beautiful mark earphone automated inspection of smart mobile phone eu standard
CN106210948A (en) * 2016-06-22 2016-12-07 维沃移动通信有限公司 A kind of on-off circuit, earphone socket, mobile terminal and method
CN108322882A (en) * 2017-01-17 2018-07-24 联芯科技有限公司 Earphone plug detection circuit, headset detection device and audio frequency apparatus
CN206627597U (en) * 2017-03-04 2017-11-10 维沃移动通信有限公司 One kind detection USB socket water inlet open circuit potential
CN110213686A (en) * 2019-05-28 2019-09-06 维沃移动通信有限公司 A kind of detection method and terminal of earphone socket

Also Published As

Publication number Publication date
CN111294699B (en) 2021-12-03

Similar Documents

Publication Publication Date Title
US20180220230A1 (en) Audio i o headset plug and plug detection circuitry
KR101267047B1 (en) Apparatus and method for detecting earphone
US9877126B2 (en) Apparatus, systems and methods for detecting insertion or removal of an audio accessory from an electronic device
KR101946486B1 (en) Ear-phone Operation System and Ear-phone Operating Method, and Portable Device supporting the same
US8095716B2 (en) Method and system for communicating capability information from an accessory to a media player
KR101941509B1 (en) Apparatus and method for preventing error recognition in earjack
KR100871260B1 (en) Apparatus for detecting the earjack plug
KR20140047201A (en) Device and method for detecting insertion of ear-mic phone in terminal
US10782361B2 (en) Circuit for monitoring a socket
US8497603B2 (en) Portable electronic apparatus and connection method therefor
KR20150045638A (en) Earjack and electronic device having the same
US9848270B2 (en) Electronic device, earphone, and electronic device system
CN109713511B (en) Detection circuit, earphone socket, method and mobile terminal
US20140068113A1 (en) Data transmission between a portable electronic device and various accessory devices via respective dedicated connection interfaces
CN111031435A (en) Audio circuit, head-mounted display equipment and head-mounted display system
CN111294699B (en) Earphone detection method and device for preventing liquid misjudgment
CN103813235A (en) Information processing method and device
CN104954939A (en) Power amplifier of earphone and method for controlling power amplifier of earphone
TWI774396B (en) State detection apparatus for use in an audio interface
CN109586125A (en) Type-C adapter, terminal and electronic equipment
EP2770748A1 (en) Apparatus, systems and methods for detecting insertion or removal of an audio accessory from an electronic device
CN103974169B (en) Apparatus for processing audio and audio-frequency processing method
CN112345981B (en) Detection jig and method for detecting audio socket
CN109144933B (en) USB Type-C interface circuit and electronic equipment
US11203039B2 (en) Acoustic-electric transducer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant