WO2015070643A1 - 耳机接口适配设备的连接切换方法及终端 - Google Patents

耳机接口适配设备的连接切换方法及终端 Download PDF

Info

Publication number
WO2015070643A1
WO2015070643A1 PCT/CN2014/083456 CN2014083456W WO2015070643A1 WO 2015070643 A1 WO2015070643 A1 WO 2015070643A1 CN 2014083456 W CN2014083456 W CN 2014083456W WO 2015070643 A1 WO2015070643 A1 WO 2015070643A1
Authority
WO
WIPO (PCT)
Prior art keywords
call
interface
headphone
signal
audio signal
Prior art date
Application number
PCT/CN2014/083456
Other languages
English (en)
French (fr)
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 深圳光启创新技术有限公司
Priority to JP2016531683A priority Critical patent/JP2017504988A/ja
Priority to KR1020167014190A priority patent/KR20160077184A/ko
Priority to EP14862391.1A priority patent/EP3070913A4/en
Publication of WO2015070643A1 publication Critical patent/WO2015070643A1/zh
Priority to US15/153,261 priority patent/US9635165B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • 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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/737Characterised by transmission of electromagnetic waves other than radio waves, e.g. infrared waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method for switching a connection of a headphone interface adaptation device and a terminal for performing the method.
  • a headphone interface adapter device connected to a headphone jack of an electronic device such as a mobile phone is one of them.
  • Some earphone interface adapter devices are not used for voice calls, but are used to implement other functions, such as having an audio connector.
  • the optical communication adapter end can realize two-way communication with the receiving end, and can be used for implementing functions such as access control identification, photon payment, and photon ticketing.
  • a method for switching a connection of a headphone interface adaptation device includes: monitoring a state of a phone, determining whether a call is required; and determining a signal connection of the audio signal and the earphone interface when determining that a call is required; The call ends; when it is judged that the call ends, the signal connection of the audio signal to the headphone interface is turned on.
  • a terminal for performing a connection switching method of a headphone interface adaptation device includes: a call state monitoring module configured to monitor a phone state, determine whether a call is required, and determine whether the call ends;
  • the switching module is configured to cut off the signal connection between the audio signal and the earphone interface when determining that the call is needed according to the judgment result of the call state monitoring module, and connect the signal connection of the audio signal and the earphone interface when determining that the call ends.
  • connection state of the headphone interface adapting device is switched by monitoring the state of the telephone, so that when the headphone interface is used to adapt the device, the user can also make a normal call without having to The headphone interface adapter device is pulled out, which improves the convenience of use.
  • FIG. 2 is a schematic flowchart of a connection switching method of a headphone interface adapter device in Embodiment 2;
  • FIG. 4 is a schematic diagram of a module structure of a terminal in Embodiment 4;
  • FIG. 5 is a block diagram of a terminal in Embodiment 5;
  • FIG. 6 is a block diagram of a terminal in Embodiment 6. schematic diagram.
  • Embodiment 1 An implementation manner of a connection switching method of a headphone interface adaptation device according to an embodiment of the present invention may be referred to a figure.
  • a terminal device with a call function controls and uses various functions through a built-in operating system.
  • Common operating systems include Symbian, Linux Windows Mobiles, Android (Andr 0 id), and IOS. And WP and so on.
  • Various mobile operating systems can provide query or monitoring of the call status.
  • the Android system is taken as an example in the embodiment, and other types of operating systems may be implemented in a similar manner.
  • the specific operating system type does not limit the embodiment of the present invention.
  • the Telephony Manager can provide query and monitoring of mobile phone module information. It is therefore possible to send a query status request or a registration listener to the telephony service manager to obtain the phone status.
  • the state of the phone is learned by registering the phone call state change event by the phone service manager.
  • the mobile phone may have a vibration, sound or image prompt.
  • the user needs to trigger a dialing operation through a button, a touch screen, a voice, etc., so that the related processing module can also be monitored.
  • S102. Determine if a call is needed. If yes, go to step S103, if otherwise continue to monitor the phone status.
  • determining whether the call is needed is specifically determining whether there is an incoming call and determining whether to make a call, and monitoring the call status to learn the incoming call and the outgoing call event.
  • the audio cable can be disconnected by the audioManager.setWiredHeadsetOn (; false) command. At this time, the voice of the call will be input from the microphone on the terminal device, and output from the handset on the main body. The call is over.
  • step S105 if else, wait for the call to end.
  • the end of the call state is known by monitoring the state of the phone. In other embodiments, it is also possible to know the state of the end of the call by monitoring an operation related to the end of the call, such as hanging up.
  • the audio signal can be connected to the signal of the earphone through the audioManager.setWiredHeadsetOn (; true) command.
  • the headphone interface adapter device plugged into the headphone jack can continue to be used.
  • the connection state of the headphone interface adapting device is switched by monitoring the state of the phone, so that when the device is adapted by using the headphone interface, the user can also perform the call normally without having to Pulling out the headphone interface adapter device improves the convenience of use.
  • Embodiment 2 Another embodiment of the connection switching method of the earphone interface adaptation device according to the embodiment of the present invention can refer to FIG. 2.
  • the main difference compared with the embodiment 1 is that the earphone interface is determined before the earphone signal connection is cut off. Whether the device is inserted, the method includes the steps:
  • step S201 Monitor the phone status. 5202. Determine if a call is required. If yes, step S203 is performed, if otherwise, the phone state is continuously monitored.
  • steps S201-S202 can be performed by referring to corresponding steps in S101-S102, and details are not described herein.
  • step S204 the process is terminated. In other embodiments, the phone status may continue to be monitored if not.
  • the insertion of the headphone interface adapter device can be detected by determining whether the return value of audioManager.isWiredHeadSetOnO is true. If true, it is inserted, otherwise, it is not inserted.
  • step S206 Determine if the call ends. If yes, step S206 is performed, if otherwise, the call is terminated.
  • the terminal device activates the corresponding answering mode according to the insertion information returned by the audio interface manager, such as closing the handset and microphone of the device body, the earpiece and the microphone for enabling the earphone cable, and the like. Therefore, before performing the step of disconnecting the signal connection between the audio signal and the headphone interface, it is first determined whether or not the headphone interface adapter device is inserted, thereby avoiding unnecessary disconnection operations.
  • the detection of whether the headset interface adaptation device is inserted is performed after the call state determination, and in other embodiments, it may also be performed before the call determination.
  • the earphone interface adaptation device involved in the embodiment of the present invention may be various peripheral devices that perform functions by connecting with the earphone interface of the electronic device, for example, may be an adapter end of contactless communication, and the communication of the contactless communication is referred to.
  • the medium is selected from at least one of the following: visible light, infrared light, ultraviolet light, infrasound wave, audible wave, ultrasonic wave.
  • the so-called headphone interface adapting device is a light bar
  • the so-called light bar is a two-way optical communication device having a visible light emitter (such as a light emitting diode LED) that is connected to the left and right channels of the earphone interface and is set to
  • An infrared receiver connected to the microphone channel of the headphone jack is inserted into the headphone jack through an audio connector that is shaped to match the headphone interface.
  • the visible light emitter is arranged to output a signal to the light receiving end device; the infrared light receiver is arranged to receive the signal, that is to say infrared light.
  • Example 3 Another embodiment of the connection switching method of the earphone interface adaptation device according to the embodiment of the present invention can refer to FIG. 3.
  • the main difference compared with the embodiment 1 is that the earphone interface adaptation device is also determined before the connection of the earphone signal is turned on. Whether it has been inserted, the method includes the steps:
  • S301 Monitor the phone status.
  • S302. Determine if a call is needed. If yes, go to step S303, if otherwise continue to monitor the phone status.
  • step S301-S304 Determine if the call ends. If yes, go to step S305, if else, wait for the call to end.
  • steps S301-S304 can be performed by referring to the corresponding steps in S101-S104, and details are not described herein again.
  • step S306 is performed, if otherwise, the process is terminated. In other embodiments, the phone status may continue to be monitored if not.
  • the insertion of the headphone interface adapter device can be detected by determining whether the return value of audioManager.isWiredHeadSetOnO is true. If true, it is inserted, otherwise, it is not inserted.
  • connection switching method of the earphone interface adaptation device may be completed by using hardware related to the program instruction, and the foregoing program may be stored in a computer readable storage medium, when the program is executed
  • the foregoing steps include the steps of the foregoing method embodiments.
  • the foregoing storage medium includes: a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes.
  • ROM read only memory
  • RAM random access memory
  • Embodiment 4 An embodiment of a terminal according to an embodiment of the present invention may be referred to FIG. 4.
  • the terminal 400 may be used to perform a connection switching method of a headset interface adaptation device in Embodiment 1, where the terminal includes a call state monitoring module 401 and a state.
  • the switching module 402 wherein: the call state monitoring module 401 is configured to monitor the phone state, determine whether a call is needed, and determine whether the call ends.
  • the state switching module 402 is configured to cut off the signal connection between the audio signal and the earphone interface when determining that the call is needed according to the judgment result of the call state monitoring module 401, and to connect the signal connection of the audio signal and the earphone interface when determining that the call ends.
  • the terminal in this embodiment may specifically be a mobile terminal device with a call function, such as a mobile phone, a personal digital assistant, and a tablet computer.
  • connection state of the headphone interface adapter device is switched by monitoring the state of the phone, so that when the headset interface is used to adapt the device, the user can also perform the call normally without having to pull out the headset interface adapter device. , improve the convenience of use.
  • Embodiment 5 Another embodiment of a terminal according to an embodiment of the present invention may be referred to FIG. 5, where the terminal 500 is configured to perform a connection switching method of the headset interface adaptation device in Embodiment 2, where the terminal includes a call state monitoring module 501, The state switching module 502 and the earphone port access detecting module 503, wherein: the call state monitoring module 501 is configured to monitor the phone state, determine whether a call is needed, and determine whether the call ends.
  • the headphone port access detecting module 503 is configured to detect whether a headphone interface adapting device is inserted into the headphone jack.
  • the state switching module 502 is configured to determine, according to the judgment result of the call state monitoring module 501, according to the headphone port. The detection result of the access detection module 503 is processed. If the headphone interface adaptation device is inserted into the earphone interface, the signal connection between the audio signal and the earphone interface is cut off. If the signal connection between the audio signal and the earphone interface is not cut off, the judgment is made. At the end of the call, turn on the signal connection of the audio signal to the headphone jack.
  • Embodiment 6 Another embodiment of the terminal according to the embodiment of the present invention may be referred to FIG. 6.
  • the terminal 600 may be used to perform the connection switching method of the headset interface adaptation device in Embodiment 3.
  • the terminal includes a call state monitoring module 601.
  • the earphone port access detecting module 603 is configured to detect whether the earphone interface adapting device is inserted into the earphone interface.
  • the state switching module 602 is configured to cut off the audio signal when determining that the call is needed according to the judgment result of the call state monitoring module 601.
  • the signal connection with the earphone interface is processed according to the detection result of the earphone port access detecting module 603 when the call ends, and if the earphone interface adapting device is inserted into the earphone interface, the signal of the audio signal and the earphone interface is turned on. Connect, if not, connect the audio signal to the signal connection of the headphone jack.
  • the terminal of the embodiment before the step of performing the signal connection of the audio signal to the headphone interface, it is determined whether or not the headphone interface adapter device is inserted, thereby avoiding unnecessary connection operations.
  • the above embodiments are intended to be illustrative of the principles and embodiments of the present invention. It is understood that the above embodiments are only intended to aid the understanding of the invention and are not to be construed as limiting. Variations to the above-described embodiments may be made by those skilled in the art in light of the concept of the invention. Industrial applicability
  • the embodiment of the invention switches the connection state of the earphone interface adaptation device by monitoring the state of the phone, so that when the headset interface is used to adapt the device, the user can also perform the call normally without having to unplug the earphone interface adapter device, thereby improving Convenience of use.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

耳机接口适配设备的连接切换方法及终端,其中方法包括:监听电话状态,在判断需要通话时,切断音频信号与耳机接口的信号连接,在判断通话结束时,接通音频信号与耳机接口的信号连接。依据本发明的耳机接口适配设备的连接切换方法,通过监听电话的状态来切换耳机接口适配设备的连接状态,使得在使用耳机接口适配设备时,用户也能正常的进行通话而不必将耳机接口适配设备拔出。

Description

耳机接口适配设备的连接切换方法及终端 技术领域 本发明涉及电子技术领域, 具体涉及耳机接口适配设备的连接切换方法及执行该 方法的终端。 背景技术 随着电子技术的不断发展, 围绕着手机等电子设备产生了各种功能多样的适配设 备, 为用户提供丰富的功能和各种便利。 连接在手机等电子设备的耳机接口上的耳机 接口适配设备是其中的一种, 有些耳机接口适配设备并非用于语音通话的耳机, 而是 用来实现其它的功能, 例如具有音频接头的光通信适配端, 其能够实现与接收端的双 向通信, 可用于实现门禁识别、 光子支付、 光子票务等功能。 当耳机接口适配设备插入到电子设备的耳机接口后, 电子设备会转入耳机接听的 状态, 用户如果要进行通话, 需要将耳机接口适配设备从耳机接口中拔出, 操作不便。 发明内容 依据本发明的一方面提供一种耳机接口适配设备的连接切换方法, 包括: 监听电 话状态, 判断是否需要通话; 在判断需要通话时, 切断音频信号与耳机接口的信号连 接; 判断是否通话结束; 在判断通话结束时, 接通音频信号与耳机接口的信号连接。 依据本发明的另一方面提供一种用于执行耳机接口适配设备的连接切换方法的终 端, 包括: 通话状态监听模块, 设置为监听电话状态, 判断是否需要通话, 以及判断 是否通话结束; 状态切换模块, 设置为根据通话状态监听模块的判断结果, 在判断需 要通话时, 切断音频信号与耳机接口的信号连接, 在判断通话结束时, 接通音频信号 与耳机接口的信号连接。 依据本发明的耳机接口适配设备的连接切换方法, 通过监听电话的状态来切换耳 机接口适配设备的连接状态, 使得在使用耳机接口适配设备时, 用户也能正常的进行 通话而不必将耳机接口适配设备拔出, 提高了使用的便捷性。 以下结合附图, 对依据本发明的具体示例进行详细说明。 简明起见, 各实施例中 的同类结构将使用相同的标记。 附图说明 图 1是实施例 1中耳机接口适配设备的连接切换方法的流程示意图; 图 2是实施例 2中耳机接口适配设备的连接切换方法的流程示意图; 图 3是实施例 3中耳机接口适配设备的连接切换方法的流程示意图; 图 4是实施例 4中终端的模块结构示意图; 图 5是实施例 5中终端的模块结构示意图; 图 6是实施例 6中终端的模块结构示意图。 具体实施方式 实施例 1 依据本发明实施例的耳机接口适配设备的连接切换方法的一种实施方式可参考图
1, 包括步骤:
S101. 监听电话状态。 通常, 具有通话功能的终端设备 (例如手机) 通过内置的操作系统来完成各项功 能的控制和使用, 常见的操作系统包括塞班 (Symbian)、 Linux Windows Mobiles, 安卓 (Andr0id)、 IOS及 WP等。 各种手机操作系统均可提供对通话状态的查询或监 听。 简明起见, 本实施例中以安卓系统为例进行说明, 其他类型的操作系统可以采取 类似的方法来实现, 具体操作系统类型不构成对本发明实施例的限定。 在安卓系统中, 电话服务管理器 (TelephonyManager) 可以提供手机模块信息的 查询和监听。 因此可以向电话服务管理器发送查询状态请求或注册监听来获得电话状 态。 本实施例中, 采用通过电话服务管理器注册手机通话状态改变事件的监听的方式 来获知电话状态。 在其他实施方式中, 当有来电时, 手机会有振动、 声音或图像提示, 当拨打电话 时, 用户需要通过按键、 触屏、 语音等触发拨号的操作, 因此亦可以通过监视相关的 处理模块的动作来获知电话状态。 S102. 判断是否需要通话。 若是则执行步骤 S103, 若否则继续监听电话状态。 本实施例中, 判断是否需要通话具体为判断是否有来电以及判断是否拨出电话, 通过监听电话状态来获知来电和去电事件。 在其他实施例中, 也可以根据通话接通过 程中的其他阶段来进行是否需要通话的判断, 只要在通信双方进行通话前作出判断即 可。 例如, 对于来电, 还可以判断是否接听来电, 以用户是否接听作为是否需要通话 的判断结果, 对于去电, 还可以判断是否收到回铃音或者对方是否接听, 并以之作为 是否需要通话的判断结果。
5103. 切断音频信号与耳机接口的信号连接。 对于安卓系统, 可通过 audioManager.setWiredHeadsetOn (; false)指令, 将耳机线的 接入切断, 此时通话的语音会从终端设备本体上的话筒输入, 从本体上的听筒输出, 用户即可正常进行通话了。
5104. 判断是否通话结束。 若是则执行步骤 S105, 若否则等待通话结束。 本实施例中, 通过监听电话状态来获知通话状态结束。 在其他实施例中, 也可以 是通过监视与通话结束相关的操作, 例如挂机等来获知通话结束的状态。
5105. 接通音频信号与耳机接口的信号连接。 对于安卓系统, 可通过 audioManager.setWiredHeadsetOn (; true)指令,将音频信号与 耳机的信号连接导通, 此时插在耳机接口上的耳机接口适配设备就可以继续使用了。 依据本实施例的耳机接口适配设备的连接切换方法, 通过监听电话的状态来切换 耳机接口适配设备的连接状态, 使得在使用耳机接口适配设备时, 用户也能正常的进 行通话而不必将耳机接口适配设备拔出, 提高了使用的便捷性。 实施例 2 依据本发明实施例的耳机接口适配设备的连接切换方法的另一种实施方式可参考 图 2, 与实施例 1相比主要区别在于在切断耳机信号连接前, 还判断耳机接口适配设 备是否已插入, 方法包括步骤:
S201. 监听电话状态。 5202. 判断是否需要通话。 若是则执行步骤 S203, 若否则继续监听电话状态。 上述步骤 S201- S202可参照 S101- S102中相应的步骤执行, 不再赘述。
5203. 检测是否有耳机接口适配设备插入到耳机接口中。 若是则执行步骤 S204, 若否则终止流程。 在其他实施例中, 若否时也可继续监听电话状态。 对于安卓系统,可通过判断 audioManager.isWiredHeadSetOnO的返回值是否为 true 来检测耳机接口适配设备的插入, 如果为 true, 则说明已插入, 反之, 则未插入。
5204. 切断音频信号与耳机接口的信号连接。
5205. 判断是否通话结束。 若是则执行步骤 S206, 若否则等待通话结束。
5206. 接通音频信号与耳机接口的信号连接。 上述步骤 S204- S206可参照 S103- S105中相应的步骤执行, 不再赘述。 由于当耳机接口适配设备插入到耳机接口后, 终端设备才会根据音频接口管理器 返回的插入信息, 启动相应的接听模式, 如关闭设备本体的听筒和话筒、 启用耳机线 的听筒和话筒等; 因此, 在执行切断音频信号与耳机接口的信号连接的步骤之前, 先 判断是否有耳机接口适配设备插入, 可避免不必要的切断操作。 本实施例中, 对耳机 接口适配设备是否插入的检测是在通话状态判断之后执行, 在其他实施方式中, 也可 以在通话判断之前执行。 本发明实施例中涉及的耳机接口适配设备可以是各种通过与电子设备的耳机接口 连接来完成功能的周边设备, 例如可以是非接触式通信的适配端, 所称非接触式通信 的通信媒介选自如下集合的至少一种: 可见光, 红外光, 紫外光, 次声波, 可听波, 超声波。 特别地, 所称耳机接口适配设备为光棒, 所称光棒是一种双向光通信设备, 具有 设置为与耳机接口的左右声道连接的可见光发射器(例如发光二极管 LED)和设置为 与耳机接口的话筒通道连接的红外线接收器, 通过形状与耳机接口相适配的音频接头 插入到耳机接口中。 可见光发射器设置为向光接收端设备输出信号; 红外线接收器则 设置为接收信号, 也就是红外光线。 当音频接头插入到电子设备的音频接口时, 通过 相应软件的控制, 可以实现与光接收端的双向通信, 如用于门禁系统的光钥匙等。 实施例 3 依据本发明实施例的耳机接口适配设备的连接切换方法的另一种实施方式可参考 图 3, 与实施例 1相比主要区别在于在接通耳机信号连接前, 还判断耳机接口适配设 备是否已插入, 方法包括步骤:
S301. 监听电话状态。 S302. 判断是否需要通话。 若是则执行步骤 S303, 若否则继续监听电话状态。
5303. 切断音频信号与耳机接口的信号连接。
5304. 判断是否通话结束。 若是则执行步骤 S305, 若否则等待通话结束。 上述步骤 S301- S304可参照 S101- S104中相应的步骤执行, 不再赘述。
5305. 检测是否有耳机接口适配设备插入到耳机接口中。 若是则执行步骤 S306, 若否则终止流程。 在其他实施例中, 若否时也可继续监听电话状态。 对于安卓系统,可通过判断 audioManager.isWiredHeadSetOnO的返回值是否为 true 来检测耳机接口适配设备的插入, 如果为 true, 则说明已插入, 反之, 则未插入。
5306. 接通音频信号与耳机接口的信号连接。此步骤可参照 S105执行,不再赘述。 由于只有当耳机接口适配设备插入到耳机接口后, 才需要将终端设备的音频信号 与耳机接口连通; 因此, 在执行接通音频信号与耳机接口的信号连接的步骤之前, 先 判断是否有耳机接口适配设备插入, 可避免不必要的连接操作。 依据本发明实施例的耳机接口适配设备的连接切换方法的全部或部分步骤可通过 程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存储介质中, 该 程序在执行时, 执行包括上述方法实施例的步骤, 前述的存储介质包括: 只读存储器 (ROM), 随机存取存储器 (RAM), 磁盘或者光盘等各种可以存储程序代码的介质。 实施例 4 依据本发明实施例的终端的一种实施方式可参考图 4, 该终端 400可用于执行实 施例 1中的耳机接口适配设备的连接切换方法, 终端包括通话状态监听模块 401和状 态切换模块 402, 其中: 通话状态监听模块 401, 设置为监听电话状态, 判断是否需要通话, 以及判断是 否通话结束。 状态切换模块 402, 设置为根据通话状态监听模块 401 的判断结果, 在判断需要 通话时, 切断音频信号与耳机接口的信号连接, 在判断通话结束时, 接通音频信号与 耳机接口的信号连接。 本实施例终端具体可以是手机、 个人数字助理、 平板电脑等具有通话功能的移动 终端设备。 依据本实施例的终端,通过监听电话的状态来切换耳机接口适配设备的连接状态, 使得在使用耳机接口适配设备时, 用户也能正常的进行通话而不必将耳机接口适配设 备拔出, 提高了使用的便捷性。 实施例 5 依据本发明实施例的终端的另一种实施方式可参考图 5, 该终端 500可用于执行 实施例 2中的耳机接口适配设备的连接切换方法, 终端包括通话状态监听模块 501、 状态切换模块 502和耳机口接入检测模块 503, 其中: 通话状态监听模块 501, 设置为监听电话状态, 判断是否需要通话, 以及判断是 否通话结束。 耳机口接入检测模块 503, 设置为检测是否有耳机接口适配设备插入到耳机接口 中; 状态切换模块 502, 设置为根据通话状态监听模块 501 的判断结果, 在判断需要 通话时, 根据耳机口接入检测模块 503的检测结果进行处理, 若有耳机接口适配设备 插入到耳机接口中, 则切断音频信号与耳机接口的信号连接, 若否则不切断音频信号 与耳机接口的信号连接, 在判断通话结束时, 接通音频信号与耳机接口的信号连接。 依据本实施例的终端, 在执行切断音频信号与耳机接口的信号连接之前, 先判断 是否有耳机接口适配设备插入, 可避免不必要的切断操作。 实施例 6 依据本发明实施例的终端的另一种实施方式可参考图 6, 该终端 600可用于执行 实施例 3 中的耳机接口适配设备的连接切换方法, 终端包括通话状态监听模块 601、 状态切换模块 602和耳机口接入检测模块 603, 其中: 通话状态监听模块 601, 设置为监听电话状态, 判断是否需要通话, 以及判断是 否通话结束。 耳机口接入检测模块 603, 设置为检测是否有耳机接口适配设备插入到耳机接口 中; 状态切换模块 602, 设置为根据通话状态监听模块 601 的判断结果, 在判断需要 通话时, 切断音频信号与耳机接口的信号连接, 在判断通话结束时, 根据耳机口接入 检测模块 603的检测结果进行处理, 若有耳机接口适配设备插入到耳机接口中, 则接 通音频信号与耳机接口的信号连接, 若否则不接通音频信号与耳机接口的信号连接。 依据本实施例的终端, 在执行接通音频信号与耳机接口的信号连接的步骤之前, 先判断是否有耳机接口适配设备插入, 可避免不必要的连接操作。 以上应用具体个例对本发明的原理及实施方式进行了阐述, 应该理解, 以上实施 方式只是用于帮助理解本发明, 而不应理解为对本发明的限制。 对于本领域的一般技 术人员, 依据本发明的思想, 可以对上述具体实施方式进行变化。 工业实用性
本发明实施例通过监听电话的状态来切换耳机接口适配设备的连接状态, 使得在 使用耳机接口适配设备时,用户也能正常的进行通话而不必将耳机接口适配设备拔出, 提高了使用的便捷性。

Claims

权 利 要 求 书
1. 一种耳机接口适配设备的连接切换方法, 包括: 监听电话状态,
判断是否需要通话;
在判断需要通话时, 切断音频信号与耳机接口的信号连接; 判断是否通话结束; 在判断通话结束时, 接通音频信号与耳机接口的信号连接。
2. 如权利要求 1所述的方法,其中,在切断音频信号与耳机接口的信号连接之前, 还包括: 检测是否有耳机接口适配设备插入到耳机接口中, 若是则执行所述切断音 频信号与耳机接口的信号连接的步骤, 若否则不执行所述切断音频信号与耳机 接口的信号连接的步骤。
3. 如权利要求 1所述的方法,其中,在接通音频信号与耳机接口的信号连接之前, 还包括:
检测是否有耳机接口适配设备插入到耳机接口中, 若是则执行所述接通音 频信号与耳机接口的信号连接的步骤, 若否则不执行所述接通音频信号与耳机 接口的信号连接的步骤。
4. 如权利要求 1-3任一项所述的方法, 其中, 所述判断是否需要通话具体为选自 如下集合的至少一种: 判断是否有来电, 判断是否接听来电, 判断是否拨出电 话。
5. 如权利要求 1-3任一项所述的方法, 其中, 所述耳机接口适配设备为非接触式 通信的适配端, 所述非接触式通信的通信媒介选自如下集合的至少一种: 可见 光, 红外光, 紫外光, 次声波, 可听波, 超声波。
6. 一种用于执行耳机接口适配设备的连接切换方法的终端, 包括:
通话状态监听模块, 设置为监听电话状态, 判断是否需要通话, 以及判断 是否通话结束; 状态切换模块, 设置为根据所述通话状态监听模块的判断结果, 在判断需 要通话时, 切断音频信号与耳机接口的信号连接, 在判断通话结束时, 接通音 频信号与耳机接口的信号连接。 如权利要求 6所述的终端, 其中, 还包括: 耳机口接入检测模块, 设置为检测是否有耳机接口适配设备插入到耳机接 口中;
所述状态切换模块还设置为, 在判断需要通话时, 根据所述耳机口接入检 测模块的检测结果进行处理, 若有耳机接口适配设备插入到耳机接口中, 则执 行所述切断音频信号与耳机接口的信号连接的步骤, 若否则不执行所述切断音 频信号与耳机接口的信号连接的步骤。 如权利要求 6所述的终端, 其中, 还包括: 耳机口接入检测模块, 设置为检测是否有耳机接口适配设备插入到耳机接 口中;
所述状态切换模块还设置为, 在判断通话结束时, 根据所述耳机口接入检 测模块的检测结果进行处理, 若有耳机接口适配设备插入到耳机接口中, 则执 行所述接通音频信号与耳机接口的信号连接的步骤, 若否则不执行所述接通音 频信号与耳机接口的信号连接的步骤。 如权利要求 6或 7所述的终端, 其中, 所述耳机接口适配设备为非接触式通信 的适配端, 所述非接触式通信的通信媒介选自如下集合的至少一种: 可见光, 红外光, 紫外光, 次声波, 可听波, 超声波。 如权利要求 9所述的终端, 其中, 所述耳机接口适配设备为光棒, 所述光棒具 有设置为与耳机接口的左右声道连接的可见光发射器和设置为与耳机接口的话 筒通道连接的红外线接收器。
PCT/CN2014/083456 2013-11-15 2014-07-31 耳机接口适配设备的连接切换方法及终端 WO2015070643A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2016531683A JP2017504988A (ja) 2013-11-15 2014-07-31 イヤホンインタフェースアダプタデバイスの接続切替方法及び端末
KR1020167014190A KR20160077184A (ko) 2013-11-15 2014-07-31 이어폰포트 어댑터 설비의 연결 전환 방법 및 단말기
EP14862391.1A EP3070913A4 (en) 2013-11-15 2014-07-31 Method and terminal for connection switchover for headphone jack adaptor device
US15/153,261 US9635165B2 (en) 2013-11-15 2016-05-12 Method and terminal for connection switchover for headphone jack adaptor device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310569139.3 2013-11-15
CN201310569139.3A CN103795853B (zh) 2013-11-15 2013-11-15 耳机接口适配设备的连接切换方法及终端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/153,261 Continuation US9635165B2 (en) 2013-11-15 2016-05-12 Method and terminal for connection switchover for headphone jack adaptor device

Publications (1)

Publication Number Publication Date
WO2015070643A1 true WO2015070643A1 (zh) 2015-05-21

Family

ID=50671114

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/083456 WO2015070643A1 (zh) 2013-11-15 2014-07-31 耳机接口适配设备的连接切换方法及终端

Country Status (6)

Country Link
US (1) US9635165B2 (zh)
EP (1) EP3070913A4 (zh)
JP (1) JP2017504988A (zh)
KR (1) KR20160077184A (zh)
CN (1) CN103795853B (zh)
WO (1) WO2015070643A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795853B (zh) 2013-11-15 2016-01-20 深圳光启智能光子技术有限公司 耳机接口适配设备的连接切换方法及终端
US10057716B1 (en) * 2017-04-18 2018-08-21 International Business Machines Corporation Monitoring a status of a disconnected device by a mobile device and an audio analysis system in an infrastructure
CN107124512B (zh) * 2017-04-28 2019-11-08 北京小米移动软件有限公司 音频播放模式的切换方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2308775A (en) * 1995-12-28 1997-07-02 Nec Corp Portable telephone set and entertainment unit having wireless headset
CN1325250A (zh) * 2000-05-18 2001-12-05 日本电气株式会社 便携式终端
CN1516950A (zh) * 2000-10-13 2004-07-28 ���µ�����ҵ��ʽ���� 具有音乐再现功能的移动电话、具有音乐再现功能的移动电话的音乐数据再现方法及其程序
CN103795853A (zh) * 2013-11-15 2014-05-14 深圳光启创新技术有限公司 耳机接口适配设备的连接切换方法及终端

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001197583A (ja) * 2000-01-13 2001-07-19 Tdk Corp 音楽再生装置及びそれに用いるイヤホン
KR100395933B1 (ko) * 2001-03-31 2003-09-03 주식회사 니오스 적외선 송신기 및 무선 헤드폰
CN2489525Y (zh) * 2001-06-01 2002-05-01 黄建南 手提电话音响转换器
CN2492026Y (zh) * 2001-06-21 2002-05-15 王茂森 可自行切断汽车音响电源的移动电话接收装置
JP2003032333A (ja) * 2001-07-12 2003-01-31 Toshiba Corp 携帯端末装置
JP2003174408A (ja) * 2001-12-07 2003-06-20 Nec Tokin Corp 音声装置
KR20040090577A (ko) * 2003-04-17 2004-10-26 주식회사 팬택앤큐리텔 무선통신 단말기의 스트로보 자동 감지 장치 및 그 방법
JP2007235767A (ja) * 2006-03-03 2007-09-13 Casio Hitachi Mobile Communications Co Ltd 携帯電話装置及びプログラム
KR100754825B1 (ko) * 2006-06-30 2007-09-04 삼성전자주식회사 휴대 단말기에서 모바일 커머스 제공 장치 및 방법
US7920903B2 (en) * 2007-01-04 2011-04-05 Bose Corporation Microphone techniques
JP2010119019A (ja) * 2008-11-14 2010-05-27 Sony Ericsson Mobilecommunications Japan Inc 携帯端末、音声出力制御方法及び音声出力制御プログラム

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2308775A (en) * 1995-12-28 1997-07-02 Nec Corp Portable telephone set and entertainment unit having wireless headset
CN1325250A (zh) * 2000-05-18 2001-12-05 日本电气株式会社 便携式终端
CN1516950A (zh) * 2000-10-13 2004-07-28 ���µ�����ҵ��ʽ���� 具有音乐再现功能的移动电话、具有音乐再现功能的移动电话的音乐数据再现方法及其程序
CN103795853A (zh) * 2013-11-15 2014-05-14 深圳光启创新技术有限公司 耳机接口适配设备的连接切换方法及终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3070913A4 *

Also Published As

Publication number Publication date
JP2017504988A (ja) 2017-02-09
CN103795853B (zh) 2016-01-20
EP3070913A1 (en) 2016-09-21
US9635165B2 (en) 2017-04-25
CN103795853A (zh) 2014-05-14
EP3070913A4 (en) 2017-07-19
KR20160077184A (ko) 2016-07-01
US20160261732A1 (en) 2016-09-08

Similar Documents

Publication Publication Date Title
US8588849B2 (en) System and method for resuming media
US9781240B2 (en) Method and user terminal for performing call using voice recognition
WO2018201944A1 (zh) 一种设备控制方法及装置
CN113411793A (zh) 一种蓝牙通信的方法及终端
WO2015188327A1 (zh) 快速启动应用服务的方法和终端
JP5275928B2 (ja) 近距離無線通信装置
US20190089823A1 (en) Information processing device
TWI502954B (zh) 電話忙線處理系統及方法
CN103188372B (zh) 移动终端的通话方法、系统及移动终端
CN103167123A (zh) 基于距离传感器实现手机来电自动接听的系统及方法
US7417980B2 (en) Internet telephone system
CN115190197A (zh) 基于蓝牙耳机的通话方法、装置及存储介质
US9635165B2 (en) Method and terminal for connection switchover for headphone jack adaptor device
CN104023117B (zh) 一种信息处理的方法及电子设备
WO2018201943A1 (zh) 一种设备控制方法、装置及系统
WO2014059803A1 (zh) 通信处理方法及装置
WO2018058875A1 (zh) 一种终端的通话切换方法、系统及终端、计算机存储介质
CN107124512B (zh) 音频播放模式的切换方法和装置
CN104539803A (zh) 一种信息处理方法及电子设备
US20120034936A1 (en) Associated communication apparatus
WO2014169676A1 (en) Method and apparatus for information transmission
CN104796488A (zh) 信息推送方法、装置、终端及服务器
US7551600B2 (en) Telephone terminal, call system, internet terminal and terminal control program
WO2013125273A1 (ja) 携帯端末装置、通信システム、通信方法及び通信プログラム
KR100559039B1 (ko) 이동 통신 단말기의 음성 처리 장치 및 방법

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: 14862391

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014862391

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014862391

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016531683

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20167014190

Country of ref document: KR

Kind code of ref document: A