[go: up one dir, main page]

CN104254027A - A method and system for using earphones compatible with round hole interface and USB interface - Google Patents

A method and system for using earphones compatible with round hole interface and USB interface Download PDF

Info

Publication number
CN104254027A
CN104254027A CN201310335982.5A CN201310335982A CN104254027A CN 104254027 A CN104254027 A CN 104254027A CN 201310335982 A CN201310335982 A CN 201310335982A CN 104254027 A CN104254027 A CN 104254027A
Authority
CN
China
Prior art keywords
interface
earphone
usb
round hole
usb interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310335982.5A
Other languages
Chinese (zh)
Inventor
费翔
李博宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201310335982.5A priority Critical patent/CN104254027A/en
Publication of CN104254027A publication Critical patent/CN104254027A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a method for using an earphone compatible with a round hole interface and a USB interface, which is based on a mobile terminal with the round hole interface and the USB interface and comprises the following steps: detecting whether the USB interface has an insertion event; if yes, judging whether the event is a USB wire insertion event or an earphone wire insertion event; if the event is a USB line insertion event, starting a USB task; if the earphone wire is inserted into the event, the audio channel of the earphone is opened, so that the audio signal is output from the USB interface. The invention realizes the purpose that the round hole interface and the USB interface output audio signals simultaneously, enables the USB earphone and the round hole earphone to be used simultaneously, is convenient for two earphones to enjoy music playing, radio, video playing and the like simultaneously, and reduces the defect supported by only one earphone interface.

Description

一种兼容圆孔接口和USB接口的耳机使用方法及系统A method and system for using earphones compatible with round hole interface and USB interface

技术领域 technical field

    本发明涉及一种能够兼容圆孔接口和USB接口的耳机使用方法及其系统,具体地说是在手机、平板电脑等移动终端上能够同时插装和接通使用圆孔接口耳机和USB接口耳机。   The invention relates to a method and system for using an earphone compatible with a round hole interface and a USB interface, in particular, the earphone with the round hole interface and the earphone with the USB interface can be plugged and connected at the same time on mobile terminals such as mobile phones and tablet computers .

背景技术 Background technique

    随着科技的发展,手机等大部分移动终端的功能越来越丰富和强大,耳机已经成为手机等大部分移动终端产品不可缺少的外接设备。手机的音质越来越好,而且现在的大屏智能手机还能够方便的进行电视、电影等视频的观看。为了不影响他人,用户通常都会在移动终端上插上耳机进行声音的听取。目前大部分手机上的耳机接口都为圆孔接口,该类手机上虽然具有USB接口,但该USB接口却无法成为耳机通道,即使插装上相应接口的耳机也不能进行声音的传输。少数移动终端上的耳机接口为USB接口,此类手机就不再具有圆孔接口,致使圆孔接口的耳机又无法插装在该类手机上。只有一个耳机接口的移动终端,在使用上具有一定的局限性。     With the development of science and technology, the functions of most mobile terminals such as mobile phones are becoming more and more abundant and powerful, and earphones have become an indispensable external device for most mobile terminal products such as mobile phones. The sound quality of mobile phones is getting better and better, and the current large-screen smart phones can also conveniently watch TV, movies and other videos. In order not to affect others, the user usually plugs in earphones on the mobile terminal to listen to the sound. At present, the earphone jacks on most mobile phones are all round hole interfaces. Although these mobile phones have USB interfaces, the USB interfaces cannot become earphone channels, even if the earphones with corresponding interfaces are plugged in, the transmission of sound cannot be carried out. Earphone jacks on a small number of mobile terminals are USB interfaces, and this type of mobile phone no longer has a round hole interface, so that the earphones of the round hole interface cannot be plugged into this type of mobile phone. A mobile terminal with only one earphone interface has certain limitations in use.

发明内容 Contents of the invention

本发明要解决的技术问题是提供一种兼容圆孔接口和USB接口的耳机使用方法及系统,使USB式耳机和圆孔耳机能够同时在手机、平板电脑等移动终端上使用。 The technical problem to be solved by the present invention is to provide a method and system for using earphones compatible with the round hole interface and the USB interface, so that the USB earphone and the round hole earphone can be used on mobile terminals such as mobile phones and tablet computers at the same time.

为了解决上述技术问题,本发明提供一种兼容圆孔接口和USB接口的耳机使用方法,包括以下步骤: In order to solve the above-mentioned technical problems, the present invention provides a method for using an earphone compatible with a round hole interface and a USB interface, comprising the following steps:

一种兼容圆孔接口和USB接口的耳机使用方法,该方法基于具有圆孔接口和USB接口的移动终端,包括以下步骤: A method for using an earphone compatible with a round hole interface and a USB interface, the method is based on a mobile terminal with a round hole interface and a USB interface, comprising the following steps:

检测USB接口是否有插入事件; Detect whether there is an insertion event on the USB interface;

若有,判断是USB线插入事件还是耳机线插入事件; If so, determine whether it is a USB cable insertion event or a headphone cable insertion event;

若是USB线插入事件,则开启USB任务;若是耳机线插入事件,则开启耳机音频通道,使音频信号从USB接口输出。  If it is a USB line insertion event, then start the USB task; if it is an earphone line insertion event, then open the earphone audio channel so that the audio signal is output from the USB interface. the

所述检测到USB接口有耳机插入事件时,判断圆孔接口是否已经插入有耳机;若是,则音频信号从圆孔接口和USB接口并列输出;若否,则音频信号只从USB接口输出。 When an earphone insertion event is detected at the USB interface, it is judged whether an earphone has been inserted into the round hole interface; if so, the audio signal is output side by side from the round hole interface and the USB interface; if not, the audio signal is only output from the USB interface.

所述USB接口有耳机插入事件后,检测到圆孔接口有耳机插入事件,则音频信号从圆孔接口和USB接口并列输出。 After the earphone insertion event of the USB interface is detected, the earphone insertion event of the round hole interface is detected, and the audio signal is output from the round hole interface and the USB interface in parallel.

本发明还提供了一种兼容圆孔接口和USB接口的耳机使用系统,包括检测单元,用于检测圆孔接口和USB接口是否有耳机插入事件; The present invention also provides an earphone use system compatible with the round hole interface and the USB interface, including a detection unit for detecting whether there is an earphone insertion event at the round hole interface and the USB interface;

判断单元,用于判断USB接口内插入的是USB线还是耳机线; A judging unit for judging whether a USB cable or an earphone cable is inserted into the USB interface;

控制单元,用于控制音频信号的输出。 The control unit is used for controlling the output of the audio signal.

本发明实现在同一部移动终端上同时使用圆孔耳机和USB耳机的功能,提高使用性,能够方便两人同时享用该移动设备的音乐播放、收音机、视频播放等,并且减少了只有一种耳机接口支持的弊端。 The present invention realizes the function of simultaneously using the round-hole earphone and the USB earphone on the same mobile terminal, improves usability, can facilitate two people to enjoy the music playing, radio, video playing, etc. of the mobile device at the same time, and reduces the need for only one earphone Drawbacks of interface support.

附图说明 Description of drawings

附图1为发明方法流程示意图; Accompanying drawing 1 is the schematic flow chart of inventive method;

附图2为本发明系统原理框图。 Accompanying drawing 2 is the functional block diagram of the system of the present invention.

具体实施方式 Detailed ways

为了便于本领域技术人员的理解,下面结合附图对本发明作进一步的描述。 In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the accompanying drawings.

本发明揭示了一种兼容圆孔接口和USB接口的耳机使用系统,如附图2所示,该系统包括检测单元,用于检测圆孔接口和USB接口是否有耳机插入事件;判断单元,用于判断USB接口内插入的是USB线还是耳机线;控制单元,用于控制音频通道的开启和关闭,控制音频信号的输出。圆孔接口的耳机线路与USB接口的耳机线路采用并联电路,圆孔接口的耳机线路有HPOUTR、HPOUTL、HP_DET_INT和HP_MIC四根信号线,USB接口的耳机线路也有HPOUTR、HPOUTL、HP_DET_INT13、H_MIC_P四根信号线,将它们右声道信号线与右声道信号线并联,左声道信号线与左声道信号线并联,HP_DET_INT与HP_DET_INT13并联,HP_MIC与H_MIC_P并联,而并联信号线中是否加隔离视具体线路干扰灵活设定。HPOUTR为耳机的右声道信号线,HPOUTL为耳机的左声道信号线,HP_DET_INT HP_DET_INT13为耳机中断信号线,HP_MIC H_MIC_P为耳机mic信号线。 The present invention discloses a headphone use system compatible with a round hole interface and a USB interface. As shown in Figure 2, the system includes a detection unit for detecting whether there is an earphone insertion event at the round hole interface and the USB interface; the judging unit uses It is used to judge whether a USB cable or an earphone cable is inserted into the USB interface; the control unit is used to control the opening and closing of the audio channel, and control the output of the audio signal. The headphone line of the round hole interface and the headphone line of the USB interface adopt a parallel circuit. The headphone line of the round hole interface has four signal lines: HPOUTR, HPOUTL, HP_DET_INT and HP_MIC, and the headphone line of the USB interface also has four signal lines: HPOUTR, HPOUTL, HP_DET_INT13, and H_MIC_P Signal lines, connect their right channel signal line in parallel with the right channel signal line, connect the left channel signal line in parallel with the left channel signal line, connect HP_DET_INT in parallel with HP_DET_INT13, connect HP_MIC in parallel with H_MIC_P, and whether to add isolation to the parallel signal line Specific line interference can be set flexibly. HPOUTR is the right channel signal line of the earphone, HPOUTL is the left channel signal line of the earphone, HP_DET_INT HP_DET_INT13 is the earphone interrupt signal line, HP_MIC H_MIC_P is the earphone mic signal line.

如附图1所示,本发明兼容圆孔接口和USB接口的耳机使用方法,包括以下步骤: As shown in accompanying drawing 1, the earphone usage method of the present invention compatible round hole interface and USB interface comprises the following steps:

步骤S1,检测USB接口是否有插入事件,即检测USB接口是否有线插入,如果检测到有,则在系统内形成插入事件。 Step S1, detecting whether there is an insertion event at the USB interface, that is, detecting whether the USB interface is plugged in with a cable, and if it is detected, an insertion event is generated in the system.

步骤S2,若有插入事件,则判断是USB线插入事件还是耳机线插入事件,即判断USB接口内插入的是USB数据线还是耳机线。 Step S2, if there is an insertion event, it is determined whether it is a USB cable insertion event or an earphone cable insertion event, that is, it is determined whether a USB data cable or an earphone cable is inserted into the USB interface.

步骤S3,若是USB线插入事件,则开启USB任务,进行常规的数据连接或者充电。若是耳机线插入事件,则开启耳机音频通道,使音频信号从USB接口输出。  Step S3, if it is a USB cable insertion event, start the USB task to perform regular data connection or charging. If the earphone cable is plugged in, the audio channel of the earphone is turned on so that the audio signal is output from the USB interface. the

步骤S4,检测到USB接口有耳机插入事件时,判断圆孔接口是否已经插入有耳机;若是,则音频信号从圆孔接口和USB接口并列输出;若否,则音频信号只从USB接口输出。即,圆孔接口中已经有耳机插入,然后再在USB接口中插入耳机,此情况下则实现了两个耳机同时收听的效果。如果USB中插入的是数据线,则音频信号只从圆孔接口输出。 Step S4, when an earphone insertion event is detected at the USB interface, it is determined whether an earphone has been inserted into the round hole interface; if yes, the audio signal is output from the round hole interface and the USB interface in parallel; if not, the audio signal is only output from the USB interface. That is, if an earphone is already inserted into the round hole interface, and then the earphone is inserted into the USB interface, in this case, the effect of listening to two earphones at the same time is realized. If a data cable is inserted into the USB, the audio signal is only output from the round hole interface.

步骤S5,检测到USB接口有耳机插入事件后,检测到圆孔接口有耳机插入事件,则音频信号从圆孔接口和USB接口并列输出。即,先插入USB耳机,然后再插入圆孔耳机,此时也是同时向圆孔接口和USB接口并列输出音频信号。若USB接口中先插入的是数据线,则音频信号只从圆孔接口输出。 Step S5 , after detecting the earphone insertion event at the USB interface, and detecting the earphone insertion event at the round hole interface, the audio signal is output in parallel from the round hole interface and the USB interface. That is, if the USB earphone is inserted first, and then the round-hole earphone is inserted, the audio signal is simultaneously output to the round-hole interface and the USB interface in parallel. If the data cable is first inserted into the USB interface, the audio signal is only output from the round hole interface.

Claims (4)

1.一种兼容圆孔接口和USB接口的耳机使用方法,该方法基于具有圆孔接口和USB接口的移动终端,包括以下步骤: 1. A method for using an earphone compatible with a round hole interface and a USB interface, the method is based on a mobile terminal with a round hole interface and a USB interface, comprising the following steps: 检测USB接口是否有插入事件; Detect whether there is an insertion event on the USB interface; 若有,判断是USB线插入事件还是耳机线插入事件; If so, determine whether it is a USB cable insertion event or a headphone cable insertion event; 若是USB线插入事件,则开启USB任务;若是耳机线插入事件,则开启耳机音频通道,使音频信号从USB接口输出。 If it is a USB line insertion event, then start the USB task; if it is an earphone line insertion event, then open the earphone audio channel so that the audio signal is output from the USB interface. 2.根据权利要求1所述的兼容圆孔接口和USB接口的耳机使用方法,其特征在于,所述检测到USB接口有耳机插入事件时,判断圆孔接口是否已经插入有耳机; 2. The method for using an earphone compatible with a round hole interface and a USB interface according to claim 1, wherein when an earphone insertion event is detected at the USB interface, it is judged whether the earphone has been inserted into the round hole interface; 若是,则音频信号从圆孔接口和USB接口并列输出;若否,则音频信号只从USB接口输出。 If yes, the audio signal is output from the round hole interface and the USB interface in parallel; if not, the audio signal is only output from the USB interface. 3.根据权利要求1所述的兼容圆孔接口和USB接口的耳机使用方法,其特征在于,所述USB接口有耳机插入事件后,检测到圆孔接口有耳机插入事件,则音频信号从圆孔接口和USB接口并列输出。 3. The method for using earphones compatible with the round hole interface and the USB interface according to claim 1, characterized in that, after the USB interface has an earphone insertion event, it is detected that the round hole interface has an earphone insertion event, and the audio signal is transmitted from the round hole to the earphone. Hole interface and USB interface parallel output. 4.一种兼容圆孔接口和USB接口的耳机使用系统,其特征在于,包括:检测单元,用于检测圆孔接口和USB接口是否有耳机插入事件; 4. A headphone use system compatible with a round hole interface and a USB interface, characterized in that it includes: a detection unit for detecting whether there is an earphone insertion event at the round hole interface and the USB interface; 判断单元,用于判断USB接口内插入的是USB线还是耳机线; The judging unit is used to judge whether a USB cable or an earphone cable is inserted into the USB interface; 控制单元,用于控制音频信号的输出。 The control unit is used for controlling the output of the audio signal.
CN201310335982.5A 2013-08-05 2013-08-05 A method and system for using earphones compatible with round hole interface and USB interface Pending CN104254027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310335982.5A CN104254027A (en) 2013-08-05 2013-08-05 A method and system for using earphones compatible with round hole interface and USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310335982.5A CN104254027A (en) 2013-08-05 2013-08-05 A method and system for using earphones compatible with round hole interface and USB interface

Publications (1)

Publication Number Publication Date
CN104254027A true CN104254027A (en) 2014-12-31

Family

ID=52188500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310335982.5A Pending CN104254027A (en) 2013-08-05 2013-08-05 A method and system for using earphones compatible with round hole interface and USB interface

Country Status (1)

Country Link
CN (1) CN104254027A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263076A (en) * 2015-10-21 2016-01-20 广东欧珀移动通信有限公司 Balanced headphone based on USB-C plug and mobile terminal
CN106034273A (en) * 2015-03-19 2016-10-19 联想(北京)有限公司 Control method and device and electronic equipment
CN106358125A (en) * 2016-09-09 2017-01-25 北京小米移动软件有限公司 Method and device for audio output
CN110324749A (en) * 2019-07-30 2019-10-11 北京小米移动软件有限公司 The method of conversion equipment and converting audio data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1496166A (en) * 2002-09-19 2004-05-12 Lg������ʽ���� USB communication equipment and method using mobile communication terminal earphone jack
CN101645300A (en) * 2009-05-15 2010-02-10 上海闻泰电子科技有限公司 Multimedia shared mobile terminal supporting double-interface
CN101990144A (en) * 2009-07-31 2011-03-23 沈阳晨讯希姆通科技有限公司 Double earphone adapter, main board and method for detecting double earphones
TW201115161A (en) * 2009-10-21 2011-05-01 High Tech Comp Corp Electronic device and method thereof for identifying electronic accessory
CN102082846A (en) * 2010-12-02 2011-06-01 惠州Tcl移动通信有限公司 Terminal equipment with plurality of externally arranged shared interfaces
CN202444597U (en) * 2011-11-09 2012-09-19 广东欧珀移动通信有限公司 A kind of headphone sharing Micro USB interface circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1496166A (en) * 2002-09-19 2004-05-12 Lg������ʽ���� USB communication equipment and method using mobile communication terminal earphone jack
CN101645300A (en) * 2009-05-15 2010-02-10 上海闻泰电子科技有限公司 Multimedia shared mobile terminal supporting double-interface
CN101990144A (en) * 2009-07-31 2011-03-23 沈阳晨讯希姆通科技有限公司 Double earphone adapter, main board and method for detecting double earphones
TW201115161A (en) * 2009-10-21 2011-05-01 High Tech Comp Corp Electronic device and method thereof for identifying electronic accessory
CN102082846A (en) * 2010-12-02 2011-06-01 惠州Tcl移动通信有限公司 Terminal equipment with plurality of externally arranged shared interfaces
CN202444597U (en) * 2011-11-09 2012-09-19 广东欧珀移动通信有限公司 A kind of headphone sharing Micro USB interface circuit

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106034273A (en) * 2015-03-19 2016-10-19 联想(北京)有限公司 Control method and device and electronic equipment
CN106034273B (en) * 2015-03-19 2019-06-25 联想(北京)有限公司 Control method, device and electronic equipment
CN105263076A (en) * 2015-10-21 2016-01-20 广东欧珀移动通信有限公司 Balanced headphone based on USB-C plug and mobile terminal
CN105263076B (en) * 2015-10-21 2018-04-03 广东欧珀移动通信有限公司 A kind of balanced type earphone and mobile terminal based on USB C plugs
CN106358125A (en) * 2016-09-09 2017-01-25 北京小米移动软件有限公司 Method and device for audio output
CN110324749A (en) * 2019-07-30 2019-10-11 北京小米移动软件有限公司 The method of conversion equipment and converting audio data

Similar Documents

Publication Publication Date Title
CN103258548B (en) Audio playback device and control method thereof
CN105100330B (en) The method and mobile terminal of a kind of equipment effects,sound optimization
CN106126159B (en) Audio stream processing method and mobile terminal
US20130101132A1 (en) Method and Device for Earphone and USB to Share Micro-USB Interface
TWI633486B (en) Headphone interface state detection system and method
WO2017181708A1 (en) Audio switching method and device for terminal, and electronic device
CN107087072A (en) A kind of audio playing method and mobile terminal
CN105741862B (en) A kind of method and apparatus and mobile terminal of audio frequency of mobile terminal typing
CN103118191A (en) Using control method and mobile terminal for iPhone wire control earphone
CN101938546A (en) Earphone microphone detection method based on mobile phone and mobile phone
WO2020029835A1 (en) Application program playback method and system, readable storage medium, and intelligent terminal
CN103324459A (en) Method and system for implementing USB (universal serial bus) headset devices
CN104113816A (en) Electronic device and earphone detection method
CN104254027A (en) A method and system for using earphones compatible with round hole interface and USB interface
CN105741863B (en) The method and apparatus and mobile terminal that a kind of audio frequency of mobile terminal plays
US10509554B2 (en) Method for outputting target content and terminal therefor
CN103997704A (en) Audio playing device and Bluetooth loudspeaker box
CN106358125A (en) Method and device for audio output
CN202750204U (en) USB headset microphone unit
CN101466009B (en) Electronic equipment and method for sharing same transmission interface for audio and video signal
CN105516844A (en) Earphone device, electronic device provided with earphone device, and control method thereof
CN105159648A (en) Voice information output method and electronic equipment
CN102970637A (en) Interactive system of electroacoustic product and audio and video playing device
CN106331356B (en) A volume control method and terminal
CN101854423B (en) Shared interface deice of CMMB (China Mobile Multimedia Broadcasting) antenna and earphone and identifying method thereof

Legal Events

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

Application publication date: 20141231

RJ01 Rejection of invention patent application after publication