CN111200767B - Earphone detection method, earphone detection device, terminal and storage medium - Google Patents

Earphone detection method, earphone detection device, terminal and storage medium Download PDF

Info

Publication number
CN111200767B
CN111200767B CN201811386397.7A CN201811386397A CN111200767B CN 111200767 B CN111200767 B CN 111200767B CN 201811386397 A CN201811386397 A CN 201811386397A CN 111200767 B CN111200767 B CN 111200767B
Authority
CN
China
Prior art keywords
level signal
earphone
pin corresponding
ptt
ptt key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811386397.7A
Other languages
Chinese (zh)
Other versions
CN111200767A (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201811386397.7A priority Critical patent/CN111200767B/en
Publication of CN111200767A publication Critical patent/CN111200767A/en
Application granted granted Critical
Publication of CN111200767B publication Critical patent/CN111200767B/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
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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)
  • Telephone Function (AREA)

Abstract

The invention provides an earphone detection method, an earphone detection device, a terminal and a storage medium. The method comprises the following steps: when the earphone is inserted, judging whether the level signal of the pin corresponding to the plug-and-play PTT key is a first level signal; and if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the earphone to detect when the level signal of the pin corresponding to the PTT key is a second level signal. The invention solves the problem of PTT key failure and improves the user experience.

Description

Earphone detection method, earphone detection device, terminal and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for detecting an earphone, a terminal, and a storage medium.
Background
Currently, a way to set a Push-to-Talk (PTT) button on a specific headphone line of a stereo headphone to obtain a PTT headphone is proposed, and the specific headphone line may be a right-channel headphone line, for example.
In the prior art, the terminal may detect whether the earphone is a PTT earphone or a stereo earphone based on the impedance of the particular earphone line of the inserted earphone. Specifically, when the impedance of the specific earphone line is high impedance, the detection result of the earphone is a PTT earphone, and when the impedance of the specific earphone line is low impedance, the detection result of the earphone is a stereo earphone.
However, the prior art has the problem that the PTT key is disabled.
Disclosure of Invention
The invention provides a method, a device, a terminal and a storage medium for detecting an earphone, which are used for solving the problem of the failure of a PTT key in the prior art.
In a first aspect, the present invention provides a method for detecting a headphone, including:
when the earphone is inserted, judging whether the level signal of the pin corresponding to the plug-and-play PTT key is a first level signal;
and if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the earphone to detect when the level signal of the pin corresponding to the PTT key is a second level signal.
In a possible implementation, if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the detection of the earphone when the level signal of the pin corresponding to the PTT key is a second level signal includes:
if the level signal of the pin corresponding to the PTT key is a first level signal, setting identification information as a preset value;
when the level signal of the pin corresponding to the PTT key is a second level signal, judging whether the identification information is the preset value;
and if the identification information is the preset value, triggering the earphone to be detected.
In one possible implementation, the method further comprises:
and judging whether the level signal of the pin corresponding to the PTT key is a second level signal within a preset time length range.
In one possible implementation, the triggering detecting the headset includes:
and triggering an interrupt processing program, wherein the interrupt processing program is used for detecting the earphone.
In one possible implementation, the first level signal is a low level signal and the second level signal is a high level signal.
In a second aspect, the present invention provides an earphone detection apparatus, including:
the judgment module is used for judging whether the level signal of the pin corresponding to the plug-and-play PTT key is a first level signal or not when the earphone is inserted;
and the triggering module is used for triggering the earphone to be detected when the level signal of the pin corresponding to the PTT key is a second level signal if the level signal of the pin corresponding to the PTT key is a first level signal.
In one possible implementation, the triggering module is specifically configured to:
if the level signal of the pin corresponding to the PTT key is a first level signal, setting identification information as a preset value;
when the level signal of the pin corresponding to the PTT key is a second level signal, judging whether the identification information is the preset value;
and if the identification information is the preset value, triggering the earphone to be detected.
In a possible implementation, the determining module is further configured to determine whether the level signal of the pin corresponding to the PTT key is the second level signal within a preset time range.
In a possible implementation, the triggering module is configured to trigger detection of the earphone, and specifically includes:
and triggering an interrupt processing program, wherein the interrupt processing program is used for detecting the earphone.
In one possible implementation, the first level signal is a low level signal and the second level signal is a high level signal.
In a third aspect, the present invention provides a terminal, including:
a processor and a memory for storing computer instructions; the processor executes the computer instructions to perform the method of any of the first aspects described above.
In a fourth aspect, the present invention provides a non-transitory computer readable storage medium having instructions which, when executed by a processor of a terminal, enable the terminal to perform the method of any of the first aspects above.
According to the earphone detection method, the device, the terminal and the storage medium, whether the level signal of the pin corresponding to the PTT key is the first level signal or not is judged when the earphone is inserted, if the level signal of the pin corresponding to the PTT key is the first level signal, the earphone is triggered to be detected when the level signal of the pin corresponding to the PTT key is the second level signal, and when the PTT key bounces, the earphone is triggered to be detected to realize correct detection of the PTT earphone, so that the problem that the PTT key is invalid due to the fact that the PTT earphone is mistakenly detected as a stereo earphone is solved, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an earphone detection method according to an embodiment of the present invention;
fig. 2 is a flowchart of a headphone detection method according to another embodiment of the present invention;
fig. 3 is a flowchart of a headphone detection method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an earphone detection device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Fig. 1 is a flowchart of a method for detecting a headset according to an embodiment of the present invention, where an execution main body of the method of this embodiment may be a terminal, such as a private network handset supporting PTT communication. As shown in fig. 1, the method of this embodiment may include:
step 101, when the earphone is inserted, judging whether the level signal of the pin corresponding to the PTT key is the first level signal.
In this step, optionally, when the headset is plugged in, the interrupt may be triggered to detect the level signal of the pin corresponding to the PTT key, and determine whether the level signal of the pin corresponding to the PTT key is the first level signal. It should be noted that the present invention is not limited to the specific manner of detecting the level signal of the corresponding pin of the PTT button.
When the earphone is a stereo earphone, the level signal of the pin corresponding to the PTT key can be a first level signal; or, when the earphone is a PTT earphone and the PTT button is pressed, the level signal of the pin corresponding to the PTT button may be a first level signal.
The pin corresponding to the PTT button may be a pin corresponding to a specific earphone line of the stereo earphone. Optionally, the specific headphone cable may specifically be a left channel headphone cable or a right channel headphone cable.
Optionally, the first level signal may be a low level signal.
It should be noted that, the PTT earphone of the present invention, which is obtained by arranging the PTT button on a specific earphone line of the stereo earphone, may be, for example, a 3.5mm PTT earphone with an earphone jack of 3.5 millimeters (mm).
It should be noted that the PTT button in the present invention may be a PTT button provided on a PTT earphone, or a PTT button provided on a terminal.
In the prior art, when an earphone is inserted, the earphone is detected, and the earphone can be determined as a stereo earphone according to the fact that the level signal of the pin corresponding to the PTT key is the first level signal. Therefore, there is a problem that when the inserted earphone is a PTT earphone and a PTT button of the earphone is pressed during the insertion, the inserted PTT earphone can be erroneously detected as a stereo earphone, resulting in a failure of the PTT button.
And 102, if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the earphone to detect when the level signal of the pin corresponding to the PTT key is a second level signal.
In this step, when the PTT button pops up, the level signal of the pin corresponding to the PTT button may be the second level signal. When the level signal of the pin corresponding to the PTT key can be the second level signal, the earphone is triggered to be detected, and if the earphone is the PTT earphone, the level signal of the pin corresponding to the PTT key is the first level signal, so the earphone can be detected as the PTT earphone after the earphone is detected.
Wherein the second level signal is a level signal different from the first level signal. Optionally, the second level signal may be a high level signal.
It should be noted that, in the present invention, the earphone is detected based on the interval principle that if the level signal of the pin corresponding to the PTT button is the first level signal, the earphone is a stereo earphone, and if the level signal of the pin corresponding to the PTT button is the second level signal, the earphone is a PTT earphone.
According to the earphone detection method provided by the embodiment, whether the level signal of the pin corresponding to the PTT key is the first level signal or not is judged when the earphone is inserted, if the level signal of the pin corresponding to the PTT key is the first level signal, the earphone is triggered to be detected when the level signal of the pin corresponding to the PTT key is the second level signal, and when the PTT key bounces, the earphone is triggered to be detected so as to realize correct detection of the PTT earphone, so that the problem that the PTT key fails due to the fact that the PTT earphone is mistakenly detected as a stereo earphone is solved, and user experience is improved.
Fig. 2 is a flowchart of a headphone detection method according to another embodiment of the present invention, and this embodiment mainly describes an alternative implementation manner of step 102 on the basis of the embodiment of the method shown in fig. 1. As shown in fig. 2, the method of this embodiment may include:
step 201, when the earphone is inserted, it is determined whether the level signal of the pin corresponding to the PTT button is the first level signal.
It should be noted that step 201 is similar to step 101, and is not described herein again.
Step 202, if the level signal of the pin corresponding to the PTT button is the first level signal, setting the identification information to a preset value.
In this step, the identification information is a preset value, which may indicate that a level signal of a pin corresponding to the PTT key is a first level signal when the earphone is inserted. Specifically, the identification information may be initialized to a default value other than the preset value before step 201. The preset value may be 1, for example, and the default value may be 0, for example.
Step 203, when the level signal of the pin corresponding to the PTT button is a second level signal, determining whether the identification information is the preset value.
In this step, the identification information being the preset value may indicate that when the earphone is inserted, the level signal of the pin corresponding to the PTT key is the first level signal, that is, there is a situation that the inserted earphone is a PTT earphone and the PTT key is pressed down during the insertion process. The fact that the identification information is not the preset value can indicate that when the earphone is inserted, the level signal of the pin corresponding to the PTT button is not the first level signal, that is, there is no situation that the inserted earphone is the PTT earphone and the PTT button is pressed in the inserting process, but the inserted earphone is a stereo earphone.
Optionally, the following steps may be further included before step 203: and judging whether the level signal of the pin corresponding to the PTT key is a second level signal within a preset time length range. Considering that the pressing of the PTT key in the inserting process of the earphone is misoperation of a user, the duration is short, and from the viewpoint of saving the calculation amount, whether the level signal of the corresponding pin of the PTT key is the second level signal can be judged only within the preset time length range.
Alternatively, an interruption that the level signal of the pin corresponding to the PTT key is changed from the first level signal to the second level signal may be set, and whether the identification information is the preset value may be further determined based on the interruption.
And 204, if the identification information is the preset value, triggering to detect the earphone.
In this step, since the identification information is the preset value, it can indicate that when the earphone is inserted, the level signal of the pin corresponding to the PTT key is the first level signal, that is, there is a situation that the inserted earphone is the PTT earphone and the PTT key is pressed down during the insertion process, and therefore, after the level signal of the pin corresponding to the PTT key is the second level signal, the detection of the earphone is triggered, and the correct detection of the PTT earphone can be achieved.
Optionally, in order to improve the timeliness of earphone detection, step 204 may specifically include: and if the identification information is the preset value, triggering an interrupt processing program, wherein the interrupt processing program is used for detecting the earphone.
Optionally, after step 204, further, the identification information may be set to a default value.
According to the earphone detection method provided by the embodiment, when the earphone is inserted, whether the level signal of the pin corresponding to the PTT key is the first level signal is judged, if the level signal of the pin corresponding to the PTT key is the first level signal, the identification information is set to be the preset value, whether the identification information is the preset value is judged when the level signal of the pin corresponding to the PTT key is the second level signal, and when the identification information is the preset value, the earphone is triggered to be detected, so that the earphone is triggered to be detected to realize correct detection of the PTT earphone when the PTT key is bounced, the problem that the PTT key is invalid due to the fact that the PTT earphone is mistakenly detected to be a stereo earphone is solved, and user experience is improved.
Fig. 3 is a flowchart of a method for detecting a PTT headset according to another embodiment of the present invention, which mainly describes a PTT headset detection process based on the embodiment of the method shown in fig. 2. As shown in fig. 3, the method of this embodiment may include:
step 301, when the earphone is inserted, triggering the earphone to be detected.
Step 302, in the process of detecting the earphone, judging whether the level signal of the pin corresponding to the PTT key is a first level signal.
Step 303, if the level signal of the pin corresponding to the PTT button is the second level signal, determining that the earphone is a PTT earphone.
Here, there is no case where the PTT headset is erroneously detected as a stereo headset.
It should be noted that step 303 ends after being executed.
And 304, if the level signal of the pin corresponding to the PTT key is the first level signal, determining that the earphone is a stereo earphone, and setting the identification information as a preset value.
Step 305, when the level signal of the pin corresponding to the PTT button is a second level signal, determining whether the identification information is the preset value.
It should be noted that, if the preset value is not the preset value, it indicates that there is no situation that the PTT earphone is erroneously detected as a stereo earphone, and the PTT earphone is correctly detected as a PTT earphone.
And step 306, if the identification information is the preset value, triggering to detect the earphone.
And 307, in the process of detecting the earphone, determining that the earphone is a PTT earphone according to the fact that the level signal of the pin corresponding to the PTT key is a second level signal.
In the method for detecting the headset provided by the embodiment, when the headset is inserted, the headset is triggered to be detected, in the process of detecting the headset, if the level signal of the pin corresponding to the PTT key is the first level signal, the headset is determined to be a stereo headset, the identification information is set to be the preset value, and when the level signal of the pin corresponding to the PTT key is the second level signal and the identification information is the preset value, the headset is triggered to be detected again, so that even if the PTT key is pressed down in the process of inserting the PTT headset to cause that the PTT headset is falsely detected as the stereo headset, the PTT headset can be correctly detected as the PTT headset when the PTT key is bounced, the problem of failure of the PTT key is solved, and the user experience is improved.
Fig. 4 is a schematic structural diagram of an earphone detection device according to an embodiment of the present invention, where the device provided in this embodiment can be applied to the foregoing method embodiment to implement the function of the terminal thereof. As shown in fig. 4, the apparatus of the present embodiment may include: a decision block 41 and a trigger block 42. Wherein,
the judging module 41 is configured to judge whether a level signal of a pin corresponding to the plug-and-play PTT key is a first level signal when the earphone is plugged;
and the triggering module 42 is configured to trigger the detection of the earphone when the level signal of the pin corresponding to the PTT key is a second level signal if the level signal of the pin corresponding to the PTT key is a first level signal.
In one possible implementation, the triggering module 42 is specifically configured to:
if the level signal of the pin corresponding to the PTT key is a first level signal, setting identification information as a preset value;
when the level signal of the pin corresponding to the PTT key is a second level signal, judging whether the identification information is the preset value;
and if the identification information is the preset value, triggering the detection of the earphone.
In a possible implementation, the determining module 41 is further configured to determine whether the level signal of the pin corresponding to the PTT key is the second level signal within a preset time range.
In a possible implementation, the triggering module 42 is configured to trigger the detection of the earphone, and specifically includes:
and triggering an interrupt processing program, wherein the interrupt processing program is used for detecting the earphone.
In one possible implementation, the first level signal is a low level signal and the second level signal is a high level signal.
The apparatus of this embodiment may be used to implement the technical solutions of the above method embodiments, and its implementation principles and technical effects are similar, and are not described herein again.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 5, the terminal according to the embodiment may include: a processor 51 and a memory 52 for storing computer instructions.
Wherein the processor 51 executes the computer instructions to perform the following method:
when the earphone is inserted, judging whether the level signal of the pin corresponding to the plug-and-play PTT key is a first level signal;
and if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the earphone to detect when the level signal of the pin corresponding to the PTT key is a second level signal.
In a possible implementation, if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the detection of the earphone when the level signal of the pin corresponding to the PTT key is a second level signal includes:
if the level signal of the pin corresponding to the PTT key is a first level signal, setting identification information as a preset value;
when the level signal of the pin corresponding to the PTT key is a second level signal, judging whether the identification information is the preset value;
and if the identification information is the preset value, triggering the earphone to be detected.
In one possible implementation, the method further comprises:
and judging whether the level signal of the pin corresponding to the PTT key is a second level signal within a preset time length range.
In one possible implementation, the triggering detecting the headset includes:
and triggering an interrupt processing program, wherein the interrupt processing program is used for detecting the earphone.
In one possible implementation, the first level signal is a low level signal and the second level signal is a high level signal.
An embodiment of the present invention further provides a storage medium, where instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform a method for detecting a headset, where the method includes:
when the earphone is inserted, judging whether the level signal of the pin corresponding to the plug-and-play PTT key is a first level signal;
and if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the earphone to detect when the level signal of the pin corresponding to the PTT key is a second level signal.
In a possible implementation, if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the detection of the earphone when the level signal of the pin corresponding to the PTT key is a second level signal includes:
if the level signal of the pin corresponding to the PTT key is a first level signal, setting identification information as a preset value;
when the level signal of the pin corresponding to the PTT key is a second level signal, judging whether the identification information is the preset value;
and if the identification information is the preset value, triggering the earphone to be detected.
In one possible implementation, the method further comprises:
and judging whether the level signal of the pin corresponding to the PTT key is a second level signal within a preset time length range.
In one possible implementation, the triggering detecting the headset includes:
and triggering an interrupt processing program, wherein the interrupt processing program is used for detecting the earphone.
In one possible implementation, the first level signal is a low level signal and the second level signal is a high level signal.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for headset detection, comprising:
when the earphone is inserted, judging whether the level signal of the pin corresponding to the plug-and-play PTT key is a first level signal;
if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the earphone to detect when the level signal of the pin corresponding to the PTT key is a second level signal;
if the level signal of the pin corresponding to the PTT key is a first level signal, triggering the earphone to detect when the level signal of the pin corresponding to the PTT key is a second level signal, including: if the level signal of the pin corresponding to the PTT key is a first level signal, setting identification information as a preset value; when the level signal of the pin corresponding to the PTT key is a second level signal, judging whether the identification information is the preset value; if the identification information is the preset value, triggering the earphone to be detected;
the triggering detecting the headset, comprising:
and triggering an interrupt processing program, wherein the interrupt processing program is used for detecting the earphone.
2. The method of claim 1, further comprising:
and judging whether the level signal of the pin corresponding to the PTT key is a second level signal within a preset time length range.
3. The method according to claim 1 or 2, wherein the first level signal is a low level signal and the second level signal is a high level signal.
4. An earphone detection apparatus, comprising:
the judgment module is used for judging whether the level signal of the pin corresponding to the plug-and-play PTT key is a first level signal or not when the earphone is inserted;
the trigger module is used for triggering the earphone to detect when the level signal of the pin corresponding to the PTT key is a second level signal if the level signal of the pin corresponding to the PTT key is a first level signal;
the trigger module is specifically configured to: if the level signal of the pin corresponding to the PTT key is a first level signal, setting identification information as a preset value; when the level signal of the pin corresponding to the PTT key is a second level signal, judging whether the identification information is the preset value; if the identification information is the preset value, triggering the earphone to be detected;
the trigger module is further specifically configured to: and triggering an interrupt processing program, wherein the interrupt processing program is used for detecting the earphone.
5. The apparatus of claim 4, wherein the determining module is further configured to determine whether the level signal of the pin corresponding to the PTT button is a second level signal within a preset time range.
6. A terminal, comprising:
a processor and a memory for storing computer instructions; the processor executes the computer instructions to perform the method of any of claims 1-3.
7. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the method of any of claims 1-3.
CN201811386397.7A 2018-11-20 2018-11-20 Earphone detection method, earphone detection device, terminal and storage medium Active CN111200767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811386397.7A CN111200767B (en) 2018-11-20 2018-11-20 Earphone detection method, earphone detection device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811386397.7A CN111200767B (en) 2018-11-20 2018-11-20 Earphone detection method, earphone detection device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111200767A CN111200767A (en) 2020-05-26
CN111200767B true CN111200767B (en) 2022-06-03

Family

ID=70747232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811386397.7A Active CN111200767B (en) 2018-11-20 2018-11-20 Earphone detection method, earphone detection device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111200767B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757202B (en) * 2020-06-22 2022-05-27 环鸿电子(昆山)有限公司 Earphone recognition device, sound playing device and earphone recognition method
CN113507680B (en) * 2021-06-17 2023-05-16 闻泰通讯股份有限公司 Type-C earphone identification method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143262A (en) * 2010-02-03 2011-08-03 深圳富泰宏精密工业有限公司 Electronic device and method for switching audio input channel thereof
CN102546869A (en) * 2012-01-06 2012-07-04 海能达通信股份有限公司 USB (Universal Serial Bus) interface multiplexing interphone and control method thereof
CN106412760A (en) * 2015-07-30 2017-02-15 成都鼎桥通信技术有限公司 Earphone compatible apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111699A (en) * 2011-03-11 2011-06-29 华为终端有限公司 Terminal and method for realizing compatibility of talkback headset and stereo headset at terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143262A (en) * 2010-02-03 2011-08-03 深圳富泰宏精密工业有限公司 Electronic device and method for switching audio input channel thereof
CN102546869A (en) * 2012-01-06 2012-07-04 海能达通信股份有限公司 USB (Universal Serial Bus) interface multiplexing interphone and control method thereof
CN106412760A (en) * 2015-07-30 2017-02-15 成都鼎桥通信技术有限公司 Earphone compatible apparatus

Also Published As

Publication number Publication date
CN111200767A (en) 2020-05-26

Similar Documents

Publication Publication Date Title
KR101544424B1 (en) Accessory detection circuit with improved functionality
US9794708B2 (en) Apparatus and method for detecting insertion anomaly of an audio jack
KR101267047B1 (en) Apparatus and method for detecting earphone
CN111200767B (en) Earphone detection method, earphone detection device, terminal and storage medium
CN105120388A (en) Identification method and device of selfie stick
WO2020155445A1 (en) Antenna switching method and device
US12075216B2 (en) Wireless earphone synchronization detection method, apparatus, wireless earphones and storage medium
CN103974163B (en) Earphone compatible method and device and mobile terminal
US20110091063A1 (en) Method and apparatus for preventing wrong recognition of earphone insertion
CN110636485B (en) Bluetooth automatic connection method and method for initiating Bluetooth connection
CN110933738A (en) Mode switching method and system of wireless headset and TWS headset system
CN107295153B (en) Management method and terminal for switching login accounts
US9584893B2 (en) Apparatus and method for recovering from partial insertion of an audio jack
CN115086827A (en) Earphone in-box detection method and device, earphone and storage medium
KR20160096646A (en) Method and device for managing blacklist
CN104850203A (en) Electronic apparatus reset method and electronic apparatus
US10101864B2 (en) Touch screen terminal and near field communication method, apparatus and system thereof
CN107742518B (en) Information processing method and electronic equipment
JP2017085253A (en) Information processing apparatus
CN105407221A (en) Method and system for palm rejection when using self timer
CN111866644B (en) Bluetooth headset, detection method and device of Bluetooth headset and storage medium
KR20160096169A (en) Circuit for detecting button-pressing action of earphone, terminal, and earphone
CN109413527B (en) Audio device control method and device, earphone and electronic device
CN106775848B (en) Starting method, device and terminal
KR100690853B1 (en) Apparatus for detecting hook switch of mobile communications terminal and method thereof

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