WO2012075786A1 - Method and multi-mode terminal for earphone detection - Google Patents

Method and multi-mode terminal for earphone detection Download PDF

Info

Publication number
WO2012075786A1
WO2012075786A1 PCT/CN2011/075225 CN2011075225W WO2012075786A1 WO 2012075786 A1 WO2012075786 A1 WO 2012075786A1 CN 2011075225 W CN2011075225 W CN 2011075225W WO 2012075786 A1 WO2012075786 A1 WO 2012075786A1
Authority
WO
WIPO (PCT)
Prior art keywords
modem
earphone
command
button
master state
Prior art date
Application number
PCT/CN2011/075225
Other languages
French (fr)
Chinese (zh)
Inventor
冯博
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012075786A1 publication Critical patent/WO2012075786A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • a terminal (especially a mobile terminal, such as a mobile phone, exemplified by a mobile phone as an example) generally supports access of a headset.
  • the so-called ordinary headphones refer to headphones without a microphone (mic).
  • Ordinary headphones have a ⁇ level after inserting the phone because there is no mic, and the headphones with mic are high after being inserted into the phone.
  • a headphone button can be provided on the earphone, and the earphone button is used to implement a certain function, for example, answering a call or hanging up the phone.
  • the mobile phone When the earphone button is pressed, it is also low level, so the mobile phone will mistake the low level after the ordinary earphone is inserted as the earphone button, thus causing a false alarm operation.
  • the usual processing method is: When the earphone is inserted, the module determines that the level changes from a high level to a low level, and is considered to be a normal earphone. , then mask the report of the headset button.
  • the patent "CN200910188779.3” mentions a method for preventing misjudgment of the earphone button detection, but the method only processes the fluctuation of the level during the insertion of the earphone, the level fluctuation after the insertion of the earphone and the ordinary earphone. The situation after the insertion is not involved.
  • a method for preventing the malfunction of the earphone button is also mentioned in the patent "CN200610058166.4". The method detects the change of the headphone signal level within a predetermined length of time by adding an anti-shake process. This method is effective for a single-mode machine, but no matter which of the above methods can solve the multi-mode terminal (for example, a dual-mode terminal) The problem of false positives.
  • a primary object of the present invention is to provide an earphone detecting method and a multimode terminal to solve at least the above problems.
  • a headset detecting method including: a multimode terminal initiating conversion of an audio path from a first baseband processor MODEM to a second MODEM; the multimode terminal transmitting to the second MODEM a first command, wherein the first command is used to notify the second MODEM to obtain a time when the audio channel is turned on; and the second MODEM performs the earphone and/or after obtaining the audio channel according to the time Detection of the headset button.
  • the method further includes: when one of the first MODEM and the second MODEM is in a master state, the multimode terminal sends a second command to the MODEM in a non-master state, where The second command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button, and the master state indicates that the MODEM is in a state of being connected to the audio channel.
  • the detecting, by the second MODEM, the earphone and/or the earphone button after the audio channel is turned on according to the time includes: the second MODEM performing the earphone and/or after a predetermined period of time after obtaining the audio channel is turned on. Detection of the headset button.
  • the detecting, by the second MODEM, the earphone and/or the earphone button comprises: when the second MODEM detects a high level, confirming that the earphone with the microphone is connected, allowing the polling to detect the earphone button of the earphone If the second MODEM detects a low level, it is determined that the earphone with no microphone or the earphone with the microphone button pressed is not allowed to start polling the earphone for detecting the earphone. Whether the button is pressed.
  • the command sent by the multimode terminal to the MODEM is an AT command.
  • the first MODEM is a CDMA MODEM
  • the second MODEM is a GSM MODEM.
  • another headset detecting method including: one of a plurality of MODEMs in a multimode terminal being in a master state, the master state indicating that the MODEM is in an audio path The state of being turned on; the multimode terminal sends a command to the MODEM in the non-master state, wherein the command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button.
  • a multimode terminal including: an application processor AP, a first MODEM, and a second MODEM, the application processor being configured to initiate a MODEM from a first modem to a Sending a first command to the second MODEM when converting the audio path of the MODEM, wherein the first command is used to notify the second MODEM to obtain a time when the audio channel is turned on; and the second MODEM is set to The detection of the earphone and/or the earphone button is performed after the audio channel is turned on according to the time.
  • the multimode terminal AP is further configured to: send a second command to the MODEM in the non-master state, in a case where one of the first MODEM and the second MODEM is in a master state, where The second command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button, and the master state indicates that the MODEM is in a state of being connected to the audio channel.
  • a multimode terminal including: an AP, a plurality of MODEMs, wherein the AP is set to be in a case where one of the plurality of MODEMs is in a master state Sending a command to the MODEM in the non-master state, wherein the command is used to indicate that the MODEM in the non-master state does not perform the detection of the headset button, and the master state indicates that the MODEM is in communication with the audio channel. status.
  • the multimode terminal initiates a conversion of the audio path from the first baseband processor MODEM to the second MODEM; the multimode terminal transmits a first command to the second MODEM, wherein the first command
  • the second MODEM is configured to notify the time when the audio channel is turned on; the second MODEM performs the detection of the earphone and/or the earphone button after the audio channel is turned on according to the time.
  • FIG. 1 is a schematic diagram of a dual mode terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram showing a level condition of a conventional earphone and a mic earphone after insertion according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram showing a situation in which a general-purpose earphone is inserted and a button detection condition according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of the present invention according to the present invention
  • FIG. 6 is a flow chart 2 of an earphone detecting method according to an embodiment of the present invention
  • FIG. 7 is a flowchart of a headphone detecting method according to a preferred embodiment of the present invention.
  • the dual mode terminal includes: an application processor (AP), a CDMA MODEM, and a GSM MODEM, where the application processor is configured to run an application part.
  • AP application processor
  • CDMA MODEM CDMA MODEM
  • GSM MODEM GSM MODEM
  • MODEM is a baseband processor, which is set to run a protocol stack part and a driver part, for example, a CDMA protocol stack or a GSM protocol stack.
  • the CDMA and GSM dual-mode machines in Figure 1 illustrate that after power-on, the CDMA MODEM and the GSM MODEM operate separately, and both parties are detecting the state of the headphones.
  • the earphone plug Since the ordinary earphone has no mic, the earphone plug has a three-section type. When the ordinary earphone is inserted from the insertion to the completion, the level changes through a low, high, and low level, and then it is always at the level. With a mic headset, the headphone plug is a four-section type. When the headphone is plugged in to completion, the level changes by one degree and high, and then it is always high.
  • FIG. 2 is a schematic diagram showing the level of a normal earphone and a mic earphone after insertion according to an embodiment of the present invention.
  • FIG. 2a shows a level change when a normal earphone is inserted, as shown in FIG. 2a.
  • FIG. 3 is a schematic diagram showing the level of the earphone button with the mic earphone according to the embodiment of the present invention. When the earphone button is pressed, it will become a low level; the earphone button bounces and returns to a high level.
  • the analog switch When using the CDMA side call, the analog switch hits the CDMA MODEM side, and the audio path is connected to the CDMA MODEM side (for convenience of description, the state in which the audio path is connected is referred to as the master state), and the CDMA MODEM side detects In the real level situation, the GSM side is a high level simulated by the AP, so the GSM MODEM will not report the headset button message (because it has been detected high level). Similarly, when using the GSM side to make a call, the analog switch hits the GSM side. At this time, the GSM side detects the true level, and the CDMA side is a high level simulated by the AP. The CDMA MODEM side does not receive a message on the 4" headphone button. However, FIG.
  • FIG. 5 is a flowchart 1 of a headset detection method according to an embodiment of the present invention, as shown in FIG.
  • Step S502 The multimode terminal initiates a conversion of an audio path from a first MODEM (eg, CDMA MODEM) to a second MODEM (eg, GSM MODEM); Step S504, the multimode terminal to the second MODEM Sending a first command, wherein the first command is used to notify the second MODEM to obtain the time when the audio channel is turned on; and in step S506, the second MODEM performs the detection of the earphone and/or the earphone button after the audio channel is turned on according to the time.
  • a first MODEM eg, CDMA MODEM
  • a second MODEM eg, GSM MODEM
  • Step S504 the multimode terminal to the second MODEM Sending a first command, wherein the first command is used to notify the second MODEM to obtain the time when the audio channel is turned on
  • step S506 the second MODEM performs the detection of the earphone and/or the earphone button after the audio channel is turned on according to the time.
  • the time for detecting the second MODEM is directly detected after the audio path is turned on, thereby detecting the true low level, thereby shielding the period from the virtual high level to the real low level, thereby solving the false alarm.
  • the compatible processing that is, the time of the anti-shake processing (ie, the predetermined length of time) may be added, and then the determination is made.
  • the second MODEM performs the detection of the earphone and/or the earphone button after a predetermined period of time after the audio channel is turned on.
  • an AT command needs to be extended.
  • the AP uses the AT command to notify the MODEM, so that the MODEM can obtain the exact time when the audio channel is turned on. After this time point, add compatible processing, that is, after removing the anti-shake processing time, judge the actual level value. If it is high level, it is considered to be a headset with mic, and then allow polling to start detecting whether the earphone button has Press. If it is low, it is considered to be a normal earphone, or a headset with a mic but the button is pressed. At this time, it is not allowed to start polling and detecting the earphone button, so there is no case that the earphone is not mistaken. It is manifested that the ordinary earphone can also work normally.
  • FIG. 6 is a flowchart 2 of a headset detection method according to an embodiment of the present invention.
  • the process includes the following steps: Step S602 And one of the plurality of MODEMs in the multimode terminal is in a master state; in step S604, the multimode terminal sends a command to the MODEM in the non-master state, where the command is used to indicate that the mode is in a non-master state.
  • the MODEM below does not detect the headset button.
  • the multimode terminal sends a command to the MODEM in the non-master state, wherein the command is used to indicate that it is in the non-master state.
  • the MODEM in the master control state does not detect the headset button.
  • the AT command can be used to notify the GSM MODEM analog switch on the CDMA MODEM side.
  • the GSM MODEM is not allowed to detect the button of the headset, thus fundamentally solving the headset key false alarm caused by such problems. .
  • a multimode terminal comprising: an application processor AP, a first MODEM and a second MODEM, wherein the application processor is configured to initiate a slave modem (also referred to as a baseband processor) Transmitting a first command to the second MODEM when the MODEM is switched to the audio path of the second MODEM, wherein the first command is used to notify the second MODEM to obtain the time when the audio channel is turned on; the second MODEM is set to be obtained according to time The headphones and/or earphone buttons are detected after the audio channel is turned on.
  • a slave modem also referred to as a baseband processor
  • another terminal including: an AP, multiple MODEMs, where the AP is set to be in a non-master state in a case where one of the plurality of MODEMs is in a master state
  • the MODEM sends a command, where the command is used to indicate that the MODEM in the non-master state does not detect the headset button.
  • FIG. 7 is a flowchart of a method for detecting an earphone according to a preferred embodiment of the present invention. As shown in FIG.
  • Step S701 In the respective MODEM, an AT command is extended for the AP to call when the audio channel is switched; Step S702, when the AP switches the audio channel, the AP is called to notify the MODEM that the analog switch is specifically connected to which MODEM; Step S703 After receiving the AT command, the MODEM delays for a period of time to filter out the change of the level of the earphone during the insertion process; in step S704, the MODEM determines the level value, and if it is the high level, the process goes to step S705.
  • step S706 the MODEM starts polling the state of the earphone button, that is, detects the level change, and if it is low, reports the earphone button to press, and if it is high, reports the earphone button to bounce.
  • step S706 the MODEM considers that it is a normal earphone, and does not poll the state of the earphone button, thereby fundamentally avoiding the false alarm of the earphone button.
  • the AT command is extended, and the AP is notified of the MODEM by the AT command when switching the audio channel.
  • the MODEM is compatible with the level value according to the level value, and achieves compatibility with the ordinary earphone.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Abstract

A method and a multi-mode terminal for earphone detection are provided in the invention. The method includes that: the multi-mode terminal initiates a switch of audio path from a first base band processor MODEM to a second MODEM; the multi-mode terminal sends a first command to the second MODEM, wherein the first command is used to inform the second MODEM about the connection setup time of the audio path; according to the time after which the connection of the audio path is setup, the second MODEM performs the detection of the earphone and/or the key of the earphone. With the present invention, the user experience is improved.

Description

耳才 测方法及多模终端 技术领域 本发明涉及通信领域, 具体而言, 涉及耳机检测方法及多模终端。 背景技术 目前, 终端 (尤其是移动终端, 例如手机, 以下以手机为例进行说明)一 般均支持耳机的接入。 所谓普通耳机, 是指不带麦克 (mic ) 的耳机。 普通耳 机由于没有 mic, 在插入手机后是氐电平, 而带 mic的耳机在插入手机后是高 电平。 并且, 在耳机上还可以提供耳机按键, 该耳机按键用于实现一定的功能, 例如, 接听电话或者挂断电话。 当耳机按键按下时同样是低电平, 所以手机会 把普通耳机插入后的低电平误认为是耳机按键, 因此造成误报的操作。 在单模终端中, 由于手机中的相关模块直接检测耳机的插拔状态, 通常的 处理办法为: 当耳机插入后, 模块判断电平由高电平变化为低电平, 则认为是 普通耳机, 之后屏蔽掉耳机按键的上报。 专利 "CN200910188779.3"中提到一种防止耳机按键检测误判断的方法, 但 是该方法只是在对耳机插入过程中电平的波动变化做了处理, 对耳机插入后的 电平波动和普通耳机插入后的情况未涉及。 专利" CN200610058166.4"中也提到 一种防止耳机按键误操作的方法。 该方法通过加入防抖处理, 在预定时长内检 测所述耳机信号电平变化, 这种方法对于单模机较为有效, 但是, 无论上述哪 种方法均无法解决多模终端 (例如双模终端) 中的误报问题。 发明内容 本发明的主要目的在于提供耳机检测方法及多模终端, 以至少解决上述问 题。 根据本发明的一个方面, 提供了一种耳机检测方法, 包括: 多模终端发起 从第一基带处理器 MODEM到第二 MODEM的音频通路的转换; 所述多模终 端向所述第二 MODEM发送第一命令, 其中, 所述第一命令用于通知所述第二 MODEM获得音频通路接通的时间; 所述第二 MODEM才艮据所述时间在获得 音频通路接通之后进行耳机和 /或耳机按键的检测。 上述方法还包括: 在所述第一 MODEM和所述第二 MODEM中的其中之 一处于主控状态下,所述多模终端向处于非主控状态下的 MODEM发送第二命 令, 其中, 所述第二命令用于指示处于非主控状态下的 MODEM不进行耳机按 键的检测, 所述主控状态表示 MODEM处于与音频通路接通的状态。 所述第二 MODEM根据所述时间在获得音频通路接通之后进行耳机和 /或 耳机按键的检测包括: 所述第二 MODEM在获得音频通路接通之后, 经过预定 的时长, 进行耳机和 /或耳机按键的检测。 所述第二 MODEM进行耳机和 /或耳机按键的检测包括:所述第二 MODEM 检测到高电平的情况下, 确认接入的是带麦克的耳机, 允许开始轮询检测该耳 机的耳机按键是否按下; 所述第二 MODEM检测到低电平的情况下, 确定接入 的是不带麦克的耳机或者是耳机按键按下的带麦克的耳机, 不允许开始轮询检 测该耳机的耳机按键是否按下。 所述多模终端向 MODEM发送的命令为 AT命令。 所述第一 MODEM 为 CDMA MODEM, 所述第二 MODEM 为 GSM MODEM。 根据本发明的另一方面, 还提供了另一种耳机检测方法, 包括: 多模终端 中的多个 MODEM中的其中之一处于主控状态下,所述主控状态表示 MODEM 处于与音频通路接通的状态;所述多模终端向处于非主控状态下的 MODEM发 送命令, 其中, 所述命令用于指示处于非主控状态下的 MODEM不进行耳机按 键的检测。 才艮据本发明的再一个方面, 提供了一种多模终端, 包括, 应用处理器 AP、 第一 MODEM和第二 MODEM, 所述应用处理器, 设置为在发起从第一调制 解调器 MODEM到第二 MODEM的音频通路的转换时向所述第二 MODEM发 送第一命令, 其中, 所述第一命令用于通知所述第二 MODEM获得音频通路接 通的时间; 所述第二 MODEM, 设置为根据所述时间在获得音频通路接通之后 进行耳机和 /或耳机按键的检测。 所述多模终端 AP还设置为, 在所述第一 MODEM和所述第二 MODEM 中的其中之一处于主控状态的情况下,向处于非主控状态下的 MODEM发送第 二命令, 其中, 所述第二命令用于指示处于非主控状态下的 MODEM不进行耳 机按键的检测, 所述主控状态表示 MODEM处于与音频通路接通的状态。 才艮据本发明的再一个方面, 还提供了一种多模终端, 包括: AP、 多个 MODEM, 所述 AP设置为在所述多个 MODEM中的其中之一处于主控状态的 情况下, 向处于非主控状态下的 MODEM发送命令, 其中, 所述命令用于指示 处于非主控状态下的 MODEM 不进行耳机按键的检测, 所述主控状态表示 MODEM处于与音频通路接通的状态。 通过本发明, 釆用多模终端发起从第一基带处理器 MODEM 到第二 MODEM的音频通路的转换; 所述多模终端向所述第二 MODEM发送第一命 令,其中,所述第一命令用于通知所述第二 MODEM获得音频通路接通的时间; 所述第二 MODEM根据所述时间在获得音频通路接通之后进行耳机和 /或耳机 按键的检测。 解决了现有技术中多模终端中耳机检测存在的误报问题, 进而提 高了用户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不 当限定。 在附图中: 图 1是 居本发明实施例的双模终端的示意图; 图 2是根据本发明实施例的普通耳机与带 mic耳机插入后的电平情况的示 意图; 图 3是根据本发明实施例的带 mic耳机的耳机按键按下时的电平情况的示 意图; 图 4是根据本发明实施例的普通耳机插入后的情况及按键检测情况的示意 图; 图 5是才艮据本发明实施例的耳机检测方法的流程图一; 图 6是才艮据本发明实施例的耳机检测方法的流程图二; 图 7是根据本发明优选实施例的耳机检测方法的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不 冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 以下实施例可以应用于多模终端,以下的实施例均以全球移动通信( Global system for Mobile Communication, 简称为 GSM ) 和码分多址 ( Code Division Multiple Access, 简称为 CDMA )的双模终端为例进行说明, 但是并不限于此。 图 1是根据本发明实施例的双模终端的示意图,如图 1所示,该双模终端包括: 应用处理器 (AP )、 CDMA MODEM和 GSM MODEM, 其中, 应用处理器设 置为运行应用部分 (例如 Android系统和用户程序); MODEM为基带处理器, 设置为运行协议栈部分和驱动部分, 例如, CDMA协议栈或 GSM协议栈。 以图 1 中的 CDMA和 GSM双模机来说明, 开机后, CDMA MODEM和 GSM MODEM分别运行, 双方都在检测耳机的状态。 由于普通耳机没有 mic, 耳机插头为三节式, 当普通耳机从插入到完成, 电平经过一个低、 高、 低的变 化, 之后一直是氏电平。 而带 mic耳机, 耳机插头为四节式, 当这种耳机从插 入到完成, 电平经过一个氏、 高的变化, 之后一直是高电平。 此外这种耳机的 按键在按下时, 电平会变为低, 按键弹起时, 电平会变为高, 通过电平的变化 来判断耳机的按键是否有按下。 下面结合图 2和图 3进行说明。 图 2是根据本 发明实施例的普通耳机与带 mic耳机插入后的电平情况的示意图,如图 2所示, 图 2a示出了普通耳机插入时的电平变化情况, 如图 2a所示, 从开始插入到完 成, 电平有一个低、 高、 低的变化; 图 2b示出了带 mic耳机插入时的电平变 化情况, 如图 2b 所示, 从开始插入到完成, 电平有一个低、 高的变化。 图 3 是才艮据本发明实施例的带 mic耳机的耳机按键按下时的电平情况的示意图, 耳 机按键按下, 会变为低电平; 耳机按键弹起, 恢复高电平。 当使用 CDMA侧通话时, 模拟开关打到 CDMA MODEM侧, 音频通路与 CDMA MODEM侧接通(为了描述方便, 将与音频通路接通的状态称为主控状 态), 此时 CDMA MODEM侧检测到真实的电平情况, GSM侧是由 AP模拟的 一个高电平, 所以 GSM MODEM不会上报耳机按键消息 (因为一直检测到的 是高电平)。 同理, 当使用 GSM侧进行通话时, 模拟开关打到 GSM侧, 这时 GSM 侧检测到的是真实电平情况, CDMA 侧是由 AP 模拟的一个高电平。 CDMA MODEM侧不会上 4艮耳机按键的消息。 但是, 图 4 示出了一种情况, 在耳机插入后, 音频通路如果从 CDMA MODEM侧转到 GSM MODEM侧, GSM MODEM检测到的电平由 AP模拟的 高电平突然变为实际的电平值, 如果 jt匕时插入的是普通耳机, GSM MODEM 检测到是低电平, 则认为是耳机按键按下, 这样就产生了误报, 造成的现象就 是无法使用普通耳机。 在本实施例中提供了一种耳机检测方法 (包括耳机检测和 /或耳机按键检 测)可以解决上述问题, 图 5是根据本发明实施例的耳机检测方法的流程图一, 如图 5所示, 该流程包括如下步骤: 步骤 S502, 多模终端发起从第一 MODEM (例如, CDMA MODEM ) 到 第二 MODEM (例如, GSM MODEM ) 的音频通路的转换; 步骤 S504, 多模终端向第二 MODEM发送第一命令, 其中, 第一命令用 于通知第二 MODEM获得音频通路接通的时间; 步骤 S506 , 第二 MODEM根据时间在获得音频通路接通之后进行耳机和 / 或耳机按键的检测。 通过上述步骤,使第二 MODEM进行检测的时间在音频通路接通之后, 直 接检测真实的低电平, 从而屏蔽了从虚拟高电平变化到真实的低电平这一段时 间, 解决上述误报的问题。 优选地, 在实施时, 还可以加入兼容处理, 即防抖处理的时间 (即预定的 时长)后, 再进行判断。 例如, 第二 MODEM在获得音频通路接通之后, 经过 预定的时长, 再进行耳机和 /或耳机按键的检测。 对于使用 AT命令的 AP而言, 在本实施例中需要扩展一条 AT命令, 当音 频通路转换时, AP使用此 AT命令来通知 MODEM, 这样 MODEM就能获得 音频通路接通的确切时间。 在这个时间点后, 加入兼容处理, 即去除防抖处理 的时间后, 判断实际的电平值, 如果是高电平, 就认为是带 mic的耳机, 然后 允许开始轮询检测耳机按键是否有按下。 如果是低电平, 就认为是普通耳机, 或者是带 mic的耳机但是按键是按下状态。此时不允许开始轮询检测耳机按键, 这样就必然没有耳机误 4艮的情况,表现出来就是普通耳机也能正常工作了。 即, 在音频通路进行切换时, AP使用 AT命令来通知 MODEM, 使 MODEM能获 得音频通路转换的确切时间, 从而在这个时间点后加入兼容处理, 既达到了兼 容普通耳机的目的, 又能防止电平波动对耳机按键检测造成的影响。 除上述之外, 还存在一种情况, 当模拟开关打到 CDMA MODEM侧, AP 给 GSM MODEM送的高电平有时也会由于千扰的原因, 出现波动, 这种情况 也会导致耳机按键的误报。 在本实施例中还提供了另外一种耳机检测方法可以解决该问题, 图 6是根 据本发明实施例的耳机检测方法的流程图二, 如图 6所示, 该流程包括如下步 骤: 步骤 S602, 多模终端中的多个 MODEM中的其中之一处于主控状态下; 步骤 S604, 多模终端向处于非主控状态下的 MODEM发送命令, 其中, 该命令用于指示处于非主控状态下的 MODEM不进行耳机按键的检测。 通过上述步骤, 由于通知了非主控状态下的 MOEM不进行耳机按键的检 测, 因此可以解决耳机按键的误报问题。 如果只有两个 MODEM, 那么在第一 MODEM和第二 MODEM中的其中 之一处于主控状态下, 多模终端向处于非主控状态下的 MODEM发送命令, 其 中, 该命令用于指示处于非主控状态下的 MODEM不进行耳机按键的检测。 对于使用 AT命令的 AP而言, 可以使用 AT命令通知 GSM MODEM模拟 开关在 CDMA MODEM侧, GSM MODEM就不允许去检测耳机的按键, 因此 从根本上也解决了这类问题造成的耳机按键误报。 在本实施例中还提供了一种多模终端,包括,应用处理器 AP、第一 MODEM 和第二 MODEM, 其中, 应用处理器, 设置为在发起从第一调制解调器 (也称 为基带处理器)MODEM到第二 MODEM的音频通路的转换时向第二 MODEM 发送第一命令, 其中, 第一命令用于通知第二 MODEM获得音频通路接通的时 间; 第二 MODEM,设置为根据时间在获得音频通路接通之后进行耳机和 /或耳 机按键的检测。 在本实施例中还提供了另一种终端, 包括: AP、 多个 MODEM, 其中 AP 设置为在多个 MODEM中的其中之一处于主控状态的情况下,向处于非主控状 态下的 MODEM 发送命令, 其中, 该命令用于指示处于非主控状态下的 MODEM不进行耳机按键的检测。 图 7是 居本发明优选实施例的耳机检测方法的流程图, 如图 7所示, 该 流程包括如下步骤: 步骤 S701 , 在各自 MODEM中, 扩展一条 AT命令, 供 AP在切换音频通 路时调用; 步骤 S702 , AP在切换音频通路时, 调用此 AT命令通知 MODEM现在模 拟开关具体与哪个 MODEM接通; 步骤 S703 , MODEM在收到 AT命令后, 延迟一段时间, 过滤掉耳机在插 入过程中电平的变化; 步骤 S704, MODEM判断电平值, 如果是高电平, 转向步骤 S705。 如果 是低电平转向步骤 S706; 步骤 S705 , MODEM 开始轮询耳机按键状态, 即检测电平变化, 如果是 低电平就上报耳机按键按下, 如果是高电平, 就上报耳机按键弹起; 步骤 S706, MODEM 认为是普通耳机, 不去轮询耳机按键的状态, 从而 从根本上避免了耳机按键的误报。 通过该流程, 扩展了 AT命令, 让 AP在切换音频通路时通过 AT命令来通 知 MODEM, MODEM在收到 AT命令后, 才艮据电平值故兼容处理, 达到了对 普通耳机的兼容。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以 用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多 个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码 来实现, 从而可以将它们存储在存储装置中由计算装置来执行, 或者将它们分 别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成 电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领 域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之 内。 TECHNICAL FIELD The present invention relates to the field of communications, and in particular to an earphone detection method and a multimode terminal. BACKGROUND At present, a terminal (especially a mobile terminal, such as a mobile phone, exemplified by a mobile phone as an example) generally supports access of a headset. The so-called ordinary headphones refer to headphones without a microphone (mic). Ordinary headphones have a 氐 level after inserting the phone because there is no mic, and the headphones with mic are high after being inserted into the phone. Moreover, a headphone button can be provided on the earphone, and the earphone button is used to implement a certain function, for example, answering a call or hanging up the phone. When the earphone button is pressed, it is also low level, so the mobile phone will mistake the low level after the ordinary earphone is inserted as the earphone button, thus causing a false alarm operation. In a single-mode terminal, since the relevant module in the mobile phone directly detects the plug-in state of the earphone, the usual processing method is: When the earphone is inserted, the module determines that the level changes from a high level to a low level, and is considered to be a normal earphone. , then mask the report of the headset button. The patent "CN200910188779.3" mentions a method for preventing misjudgment of the earphone button detection, but the method only processes the fluctuation of the level during the insertion of the earphone, the level fluctuation after the insertion of the earphone and the ordinary earphone. The situation after the insertion is not involved. A method for preventing the malfunction of the earphone button is also mentioned in the patent "CN200610058166.4". The method detects the change of the headphone signal level within a predetermined length of time by adding an anti-shake process. This method is effective for a single-mode machine, but no matter which of the above methods can solve the multi-mode terminal (for example, a dual-mode terminal) The problem of false positives. SUMMARY OF THE INVENTION A primary object of the present invention is to provide an earphone detecting method and a multimode terminal to solve at least the above problems. According to an aspect of the present invention, a headset detecting method is provided, including: a multimode terminal initiating conversion of an audio path from a first baseband processor MODEM to a second MODEM; the multimode terminal transmitting to the second MODEM a first command, wherein the first command is used to notify the second MODEM to obtain a time when the audio channel is turned on; and the second MODEM performs the earphone and/or after obtaining the audio channel according to the time Detection of the headset button. The method further includes: when one of the first MODEM and the second MODEM is in a master state, the multimode terminal sends a second command to the MODEM in a non-master state, where The second command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button, and the master state indicates that the MODEM is in a state of being connected to the audio channel. The detecting, by the second MODEM, the earphone and/or the earphone button after the audio channel is turned on according to the time includes: the second MODEM performing the earphone and/or after a predetermined period of time after obtaining the audio channel is turned on. Detection of the headset button. The detecting, by the second MODEM, the earphone and/or the earphone button comprises: when the second MODEM detects a high level, confirming that the earphone with the microphone is connected, allowing the polling to detect the earphone button of the earphone If the second MODEM detects a low level, it is determined that the earphone with no microphone or the earphone with the microphone button pressed is not allowed to start polling the earphone for detecting the earphone. Whether the button is pressed. The command sent by the multimode terminal to the MODEM is an AT command. The first MODEM is a CDMA MODEM, and the second MODEM is a GSM MODEM. According to another aspect of the present invention, another headset detecting method is provided, including: one of a plurality of MODEMs in a multimode terminal being in a master state, the master state indicating that the MODEM is in an audio path The state of being turned on; the multimode terminal sends a command to the MODEM in the non-master state, wherein the command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button. According to still another aspect of the present invention, a multimode terminal is provided, including: an application processor AP, a first MODEM, and a second MODEM, the application processor being configured to initiate a MODEM from a first modem to a Sending a first command to the second MODEM when converting the audio path of the MODEM, wherein the first command is used to notify the second MODEM to obtain a time when the audio channel is turned on; and the second MODEM is set to The detection of the earphone and/or the earphone button is performed after the audio channel is turned on according to the time. The multimode terminal AP is further configured to: send a second command to the MODEM in the non-master state, in a case where one of the first MODEM and the second MODEM is in a master state, where The second command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button, and the master state indicates that the MODEM is in a state of being connected to the audio channel. According to still another aspect of the present invention, a multimode terminal is provided, including: an AP, a plurality of MODEMs, wherein the AP is set to be in a case where one of the plurality of MODEMs is in a master state Sending a command to the MODEM in the non-master state, wherein the command is used to indicate that the MODEM in the non-master state does not perform the detection of the headset button, and the master state indicates that the MODEM is in communication with the audio channel. status. With the present invention, the multimode terminal initiates a conversion of the audio path from the first baseband processor MODEM to the second MODEM; the multimode terminal transmits a first command to the second MODEM, wherein the first command The second MODEM is configured to notify the time when the audio channel is turned on; the second MODEM performs the detection of the earphone and/or the earphone button after the audio channel is turned on according to the time. The problem of false alarms in the earphone detection in the multimode terminal in the prior art is solved, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, BRIEF DESCRIPTION OF THE DRAWINGS In the drawings: FIG. 1 is a schematic diagram of a dual mode terminal according to an embodiment of the present invention; FIG. 2 is a schematic diagram showing a level condition of a conventional earphone and a mic earphone after insertion according to an embodiment of the present invention; FIG. 4 is a schematic diagram showing a situation in which a general-purpose earphone is inserted and a button detection condition according to an embodiment of the present invention; FIG. 5 is a schematic diagram of the present invention according to the present invention; FIG. 6 is a flow chart 2 of an earphone detecting method according to an embodiment of the present invention; FIG. 7 is a flowchart of a headphone detecting method according to a preferred embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The following embodiments can be applied to multi-mode terminals. The following embodiments are based on Global System for Mobile Communication (GSM) and Code Division Multiple Access (CDMA) dual-mode terminals. The example will be described, but it is not limited thereto. 1 is a schematic diagram of a dual mode terminal according to an embodiment of the present invention. As shown in FIG. 1, the dual mode terminal includes: an application processor (AP), a CDMA MODEM, and a GSM MODEM, where the application processor is configured to run an application part. (For example, Android system and user program); MODEM is a baseband processor, which is set to run a protocol stack part and a driver part, for example, a CDMA protocol stack or a GSM protocol stack. The CDMA and GSM dual-mode machines in Figure 1 illustrate that after power-on, the CDMA MODEM and the GSM MODEM operate separately, and both parties are detecting the state of the headphones. Since the ordinary earphone has no mic, the earphone plug has a three-section type. When the ordinary earphone is inserted from the insertion to the completion, the level changes through a low, high, and low level, and then it is always at the level. With a mic headset, the headphone plug is a four-section type. When the headphone is plugged in to completion, the level changes by one degree and high, and then it is always high. In addition, when the button of the earphone is pressed, the level will become low, and when the button is raised, the level will become high, and the change of the level determines whether the button of the earphone is pressed. Description will be made below with reference to Figs. 2 and 3. 2 is a schematic diagram showing the level of a normal earphone and a mic earphone after insertion according to an embodiment of the present invention. As shown in FIG. 2, FIG. 2a shows a level change when a normal earphone is inserted, as shown in FIG. 2a. From the beginning of the insertion to the completion, the level has a low, high, low change; Figure 2b shows the level change with the mic headset inserted, as shown in Figure 2b, from the beginning to the completion, the level has A low, high change. FIG. 3 is a schematic diagram showing the level of the earphone button with the mic earphone according to the embodiment of the present invention. When the earphone button is pressed, it will become a low level; the earphone button bounces and returns to a high level. When using the CDMA side call, the analog switch hits the CDMA MODEM side, and the audio path is connected to the CDMA MODEM side (for convenience of description, the state in which the audio path is connected is referred to as the master state), and the CDMA MODEM side detects In the real level situation, the GSM side is a high level simulated by the AP, so the GSM MODEM will not report the headset button message (because it has been detected high level). Similarly, when using the GSM side to make a call, the analog switch hits the GSM side. At this time, the GSM side detects the true level, and the CDMA side is a high level simulated by the AP. The CDMA MODEM side does not receive a message on the 4" headphone button. However, FIG. 4 shows a case where, after the headphone is inserted, if the audio path is switched from the CDMA MODEM side to the GSM MODEM side, the level detected by the GSM MODEM suddenly changes from the AP analog high level to the actual level. Value, if jt匕 is inserted into a normal earphone, GSM MODEM detects a low level, it is considered that the earphone button is pressed, which causes a false alarm, which is caused by the inability to use ordinary headphones. In the embodiment, a headset detection method (including earphone detection and/or earphone button detection) is provided to solve the above problem. FIG. 5 is a flowchart 1 of a headset detection method according to an embodiment of the present invention, as shown in FIG. The process includes the following steps: Step S502: The multimode terminal initiates a conversion of an audio path from a first MODEM (eg, CDMA MODEM) to a second MODEM (eg, GSM MODEM); Step S504, the multimode terminal to the second MODEM Sending a first command, wherein the first command is used to notify the second MODEM to obtain the time when the audio channel is turned on; and in step S506, the second MODEM performs the detection of the earphone and/or the earphone button after the audio channel is turned on according to the time. Through the above steps, the time for detecting the second MODEM is directly detected after the audio path is turned on, thereby detecting the true low level, thereby shielding the period from the virtual high level to the real low level, thereby solving the false alarm. The problem. Preferably, in the implementation, the compatible processing, that is, the time of the anti-shake processing (ie, the predetermined length of time) may be added, and then the determination is made. For example, the second MODEM performs the detection of the earphone and/or the earphone button after a predetermined period of time after the audio channel is turned on. For the AP using the AT command, in this embodiment, an AT command needs to be extended. When the audio channel is switched, the AP uses the AT command to notify the MODEM, so that the MODEM can obtain the exact time when the audio channel is turned on. After this time point, add compatible processing, that is, after removing the anti-shake processing time, judge the actual level value. If it is high level, it is considered to be a headset with mic, and then allow polling to start detecting whether the earphone button has Press. If it is low, it is considered to be a normal earphone, or a headset with a mic but the button is pressed. At this time, it is not allowed to start polling and detecting the earphone button, so there is no case that the earphone is not mistaken. It is manifested that the ordinary earphone can also work normally. That is, when the audio path is switched, the AP uses the AT command to notify the MODEM, so that the MODEM can obtain the exact time of the audio path conversion, thereby adding compatible processing after this time point, which not only achieves the purpose of being compatible with the ordinary earphone, but also prevents it. The effect of level fluctuations on the detection of the earphone button. In addition to the above, there is also a case where when the analog switch hits the CDMA MODEM side, the high level sent by the AP to the GSM MODEM sometimes fluctuates due to the interference, which may also result in the earphone button. False positives. In this embodiment, another headset detection method is provided to solve the problem. FIG. 6 is a flowchart 2 of a headset detection method according to an embodiment of the present invention. As shown in FIG. 6, the process includes the following steps: Step S602 And one of the plurality of MODEMs in the multimode terminal is in a master state; in step S604, the multimode terminal sends a command to the MODEM in the non-master state, where the command is used to indicate that the mode is in a non-master state. The MODEM below does not detect the headset button. Through the above steps, since the MOEM in the non-master state is notified that the detection of the earphone button is not performed, the problem of false alarm of the earphone button can be solved. If there are only two MODEMs, then one of the first MODEM and the second MODEM is in the master state, and the multimode terminal sends a command to the MODEM in the non-master state, wherein the command is used to indicate that it is in the non-master state. The MODEM in the master control state does not detect the headset button. For an AP using the AT command, the AT command can be used to notify the GSM MODEM analog switch on the CDMA MODEM side. The GSM MODEM is not allowed to detect the button of the headset, thus fundamentally solving the headset key false alarm caused by such problems. . Also provided in this embodiment is a multimode terminal, comprising: an application processor AP, a first MODEM and a second MODEM, wherein the application processor is configured to initiate a slave modem (also referred to as a baseband processor) Transmitting a first command to the second MODEM when the MODEM is switched to the audio path of the second MODEM, wherein the first command is used to notify the second MODEM to obtain the time when the audio channel is turned on; the second MODEM is set to be obtained according to time The headphones and/or earphone buttons are detected after the audio channel is turned on. In this embodiment, another terminal is further provided, including: an AP, multiple MODEMs, where the AP is set to be in a non-master state in a case where one of the plurality of MODEMs is in a master state The MODEM sends a command, where the command is used to indicate that the MODEM in the non-master state does not detect the headset button. FIG. 7 is a flowchart of a method for detecting an earphone according to a preferred embodiment of the present invention. As shown in FIG. 7, the process includes the following steps: Step S701: In the respective MODEM, an AT command is extended for the AP to call when the audio channel is switched; Step S702, when the AP switches the audio channel, the AP is called to notify the MODEM that the analog switch is specifically connected to which MODEM; Step S703 After receiving the AT command, the MODEM delays for a period of time to filter out the change of the level of the earphone during the insertion process; in step S704, the MODEM determines the level value, and if it is the high level, the process goes to step S705. If it is a low level, the process goes to step S706; in step S705, the MODEM starts polling the state of the earphone button, that is, detects the level change, and if it is low, reports the earphone button to press, and if it is high, reports the earphone button to bounce. Step S706, the MODEM considers that it is a normal earphone, and does not poll the state of the earphone button, thereby fundamentally avoiding the false alarm of the earphone button. Through this process, the AT command is extended, and the AP is notified of the MODEM by the AT command when switching the audio channel. After receiving the AT command, the MODEM is compatible with the level value according to the level value, and achieves compatibility with the ordinary earphone. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种耳机检测方法, 包括: 1. A method for detecting a headset, comprising:
多模终端发起从第一基带处理器 MODEM到第二 MODEM的音频 通路的转换; 所述多模终端向所述第二 MODEM发送第一命令, 其中, 所述第一 命令用于通知所述第二 MODEM获得音频通路接通的时间;  The multimode terminal initiates a conversion from the first baseband processor MODEM to the audio path of the second MODEM; the multimode terminal sends a first command to the second MODEM, wherein the first command is used to notify the The second MODEM obtains the time when the audio channel is turned on;
所述第二 MODEM 才艮据所述时间在获得音频通路接通之后进行耳 机和 /或耳机按键的检测。  The second MODEM performs the detection of the earphone and/or the earphone button after the audio channel is turned on according to the time.
2. 根据权利要求 1所述的方法, 其中, 还包括: 2. The method according to claim 1, further comprising:
在所述第一 MODEM和所述第二 MODEM中的其中之一处于主控 状态下, 所述多模终端向处于非主控状态下的 MODEM发送第二命令, 其中, 所述第二命令用于指示处于非主控状态下的 MODEM不进行耳机 按键的检测, 所述主控状态表示 MODEM处于与音频通路接通的状态。  When the one of the first MODEM and the second MODEM is in a master state, the multimode terminal sends a second command to the MODEM in the non-master state, where the second command is used The detection of the earphone button is not performed by the MODEM indicating that it is in the non-master state, and the master state indicates that the MODEM is in a state of being connected to the audio channel.
3. 根据权利要求 2所述的方法, 其中, 所述第二 MODEM根据所述时间在 获得音频通路接通之后进行耳机和 /或耳机按键的检测包括: 3. The method according to claim 2, wherein the detecting, by the second MODEM, the earphone and/or the earphone button after the obtaining the audio path is turned on according to the time comprises:
所述第二 MODEM在获得音频通路接通之后, 经过预定的时长, 进 行耳机和 /或耳机按键的检测。  The second MODEM performs the detection of the earphone and/or the earphone button after a predetermined period of time after the audio channel is turned on.
4. 根据权利要求 1或 3所述的方法, 其中, 所述第二 MODEM进行耳机和 /或耳机按键的检测包括: 所述第二 MODEM检测到高电平的情况下,确认接入的是带麦克的 耳机, 允许开始轮询检测该耳机的耳机按键是否按下; The method according to claim 1 or 3, wherein the detecting of the earphone and/or the earphone button by the second MODEM comprises: when the second MODEM detects a high level, confirming that the access is A headset with a microphone that allows polling to detect whether the headset button of the headset is pressed;
所述第二 MODEM检测到低电平的情况下,确定接入的是不带麦克 的耳机或者是耳机按键按下的带麦克的耳机, 不允许开始轮询检测该耳 机的耳机按键是否按下。  When the second MODEM detects a low level, it is determined that the earphone with no microphone or the earphone with the microphone button pressed is not allowed to start polling to detect whether the earphone button of the earphone is pressed. .
5. 根据权利要求 1或 2所述的方法, 其中, 所述多模终端向 MODEM发送 的命令为 AT命令。 The method according to claim 1 or 2, wherein the command sent by the multimode terminal to the MODEM is an AT command.
6. 才艮据权利要求 1 所述的方法, 其中, 所述第一 MODEM 为 CDMA MODEM, 所述第二 MODEM为 GSM MODEM。 6. The method according to claim 1, wherein the first MODEM is a CDMA MODEM, and the second MODEM is a GSM MODEM.
7. —种耳机检测方法, 包括: 7. A method for detecting headphones, including:
多模终端中的多个 MODEM中的其中之一处于主控状态下,所述主 控状态表示 MODEM处于与音频通路接通的状态;  One of the plurality of MODEMs in the multimode terminal is in a master state, and the master state indicates that the MODEM is in a state of being connected to the audio channel;
所述多模终端向处于非主控状态下的 MODEM发送命令, 其中, 所 述命令用于指示处于非主控状态下的 MODEM不进行耳机按键的检测。  The multimode terminal sends a command to the MODEM in the non-master state, wherein the command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button.
8. —种多模终端, 包括, 应用处理器 AP、 第一 MODEM和第二 MODEM, 8. A multimode terminal, comprising: an application processor AP, a first MODEM, and a second MODEM,
所述应用处理器,设置为在发起从第一调制解调器 MODEM到第二 MODEM的音频通路的转换时向所述第二 MODEM发送第一命令,其中, 所述第一命令用于通知所述第二 MODEM获得音频通路接通的时间; 所述第二 MODEM, 设置为才艮据所述时间在获得音频通路接通之后 进行耳机和 /或耳机按键的检测。  The application processor is configured to send a first command to the second MODEM when initiating a transition from the first modem MODEM to the audio path of the second MODEM, wherein the first command is used to notify the second The MODEM obtains the time when the audio channel is turned on; the second MODEM is set to detect the earphone and/or the earphone button after the audio channel is turned on according to the time.
9. 根据权利要求 8所述的多模终端, 其中, 9. The multimode terminal according to claim 8, wherein
所述多模终端 AP 还设置为在所述第一 MODEM 和所述第二 MODEM中的其中之一处于主控状态的情况下, 向处于非主控状态下的 MODEM发送第二命令, 其中, 所述第二命令用于指示处于非主控状态 下的 MODEM不进行耳机按键的检测, 所述主控状态表示 MODEM处 于与音频通路接通的状态。  The multimode terminal AP is further configured to send a second command to the MODEM in the non-master state, in a case where one of the first MODEM and the second MODEM is in a master state, where The second command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button, and the master state indicates that the MODEM is in a state of being connected to the audio channel.
10. —种多模终端, 包括: AP、 多个 MODEM, 所述 AP设置为在所述多个 MODEM中的其中之一处于主控^ I 态的 情况下, 向处于非主控状态下的 MODEM发送命令, 其中, 所述命令用 于指示处于非主控状态下的 MODEM不进行耳机按键的检测, 所述主控 状态表示 MODEM处于与音频通路接通的状态。 10. A multimode terminal, comprising: an AP, a plurality of MODEMs, wherein the AP is configured to be in a non-master state if one of the plurality of MODEMs is in a master state The MODEM sends a command, where the command is used to indicate that the MODEM in the non-master state does not perform the detection of the earphone button, and the master state indicates that the MODEM is in a state of being connected to the audio channel.
PCT/CN2011/075225 2010-12-09 2011-06-02 Method and multi-mode terminal for earphone detection WO2012075786A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010580655.2 2010-12-09
CN201010580655.2A CN102148897B (en) 2010-12-09 2010-12-09 Earphone detection method and multi-mode terminal

Publications (1)

Publication Number Publication Date
WO2012075786A1 true WO2012075786A1 (en) 2012-06-14

Family

ID=44422879

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/075225 WO2012075786A1 (en) 2010-12-09 2011-06-02 Method and multi-mode terminal for earphone detection

Country Status (2)

Country Link
CN (1) CN102148897B (en)
WO (1) WO2012075786A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090136058A1 (en) * 2007-11-28 2009-05-28 Samsung Electronics Co. Ltd. Compatible circuit and method for 4- and 5-pole earphones and portable device using the same
CN101715022A (en) * 2009-11-03 2010-05-26 沈阳晨讯希姆通科技有限公司 Method for switching audio circuit of dual-mode and dual-standby mobile phone
CN101778319A (en) * 2009-12-11 2010-07-14 宇龙计算机通信科技(深圳)有限公司 Method, system and mobile terminal for preventing misjudgment of earphone keystroke detection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090136058A1 (en) * 2007-11-28 2009-05-28 Samsung Electronics Co. Ltd. Compatible circuit and method for 4- and 5-pole earphones and portable device using the same
CN101715022A (en) * 2009-11-03 2010-05-26 沈阳晨讯希姆通科技有限公司 Method for switching audio circuit of dual-mode and dual-standby mobile phone
CN101778319A (en) * 2009-12-11 2010-07-14 宇龙计算机通信科技(深圳)有限公司 Method, system and mobile terminal for preventing misjudgment of earphone keystroke detection

Also Published As

Publication number Publication date
CN102148897B (en) 2015-06-24
CN102148897A (en) 2011-08-10

Similar Documents

Publication Publication Date Title
WO2017181708A1 (en) Audio switching method and device for terminal, and electronic device
CN112055349B (en) Wireless communication method and Bluetooth device
WO2018082335A1 (en) Method, apparatus, system, and device for connecting bluetooth device
CN109547897B (en) Wireless earphone connection method, device and system and wireless earphone box
CN110933738B (en) Mode switching method and system of wireless earphone and TWS earphone system
CN108810697B (en) Wireless earphone pairing method and device and wireless earphone
WO2014110937A1 (en) Operation method and apparatus of mobile terminal
JP2011125015A (en) Apparatus and method for recognizing earphone mounting in portable terminal
JP2013066149A (en) Portable terminal, earphone identification program, and earphone identification method
EP3820168B1 (en) Microphone hole blockage detection method and related product
CN104980884A (en) Information transmission method and information transmission device
CN104065832A (en) Method and device for preventing mobile terminals from missing calls
CN111510899A (en) Bluetooth transmission method and device
JP6364834B2 (en) Wireless device and short-range wireless communication method
CN111510902B (en) Bluetooth device and Bluetooth state switching method and device thereof
CN109041141B (en) Transmission link switching control method and related product
CN110602683A (en) Bluetooth control method, device, mobile terminal and storage medium
WO2014059803A1 (en) Communication processing method and device
CN109117111B (en) Transmission link switching control method and related product
WO2012075786A1 (en) Method and multi-mode terminal for earphone detection
JP2017504988A (en) Earphone interface adapter device connection switching method and terminal
CN109121172B (en) Transmission link switching control method and related product
CN109151934B (en) Transmission link switching control method and related product
CN109121171B (en) Transmission link switching control method and related product
US7551600B2 (en) Telephone terminal, call system, internet terminal and terminal control program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11847722

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11847722

Country of ref document: EP

Kind code of ref document: A1