WO2018076628A1 - 一种usb接口电路、终端、耳机电路及耳机、存储介质 - Google Patents

一种usb接口电路、终端、耳机电路及耳机、存储介质 Download PDF

Info

Publication number
WO2018076628A1
WO2018076628A1 PCT/CN2017/081045 CN2017081045W WO2018076628A1 WO 2018076628 A1 WO2018076628 A1 WO 2018076628A1 CN 2017081045 W CN2017081045 W CN 2017081045W WO 2018076628 A1 WO2018076628 A1 WO 2018076628A1
Authority
WO
WIPO (PCT)
Prior art keywords
pin
usb
usb interface
interface
module
Prior art date
Application number
PCT/CN2017/081045
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 中兴通讯股份有限公司
Publication of WO2018076628A1 publication Critical patent/WO2018076628A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/70Structural association with built-in electrical component with built-in switch
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R2201/00Connectors or connections adapted for particular applications
    • H01R2201/16Connectors or connections adapted for particular applications for telephony

Definitions

  • the present invention relates to the field of mobile devices, and in particular, to a USB interface circuit, a terminal, a headphone circuit, an earphone, and a storage medium.
  • the headset provides more power and more.
  • the LeTV USB Audio audio transmission scheme essentially uses audio PCM (Chinese called pulse code modulation) data as normal data, and connects the earphone as one end of the USB device to the USB interface of the mobile phone; when playing audio: the mobile terminal passes the audio PCM data stream through the USB interface.
  • PCM Chonese called pulse code modulation
  • the received PCM data is extracted by the earphone end, and the converted analog signal is sent to the earphone through digital-to-analog conversion; when recording: the MIC (microphone) of the earphone end converts the analog signal analog-to-digital conversion module into The PCM data is sent to the mobile terminal via the USB interface.
  • the LeTV USB Audio solution uses PCM data as normal data to be transmitted via the USB interface.
  • USB interface is used instead of the 3.5mm audio interface, the design requirements of the headphones are increased, and the compatibility and scalability are limited; Bringing some problems to the headset system on your phone:
  • a 3.5mm audio interface module may be less than 1 yuan, but the price of the digital-to-analog converter and the USB receiver is much larger than the 3.5mm audio interface module, which makes the market price of a normal-quality earphone more than 100 yuan.
  • the design difficulty of the earphone itself is increased, and the compatibility of each manufacturer's support for the earphone interface is reduced.
  • the design space of the earphone itself is limited. After adding some hardware circuits, the earphone becomes bloated and huge. After the main structure of the earphone changes, each manufacturer will choose different hardware design according to its own situation, which will inevitably bring a series of compatibility. problem.
  • the above problems will bring a lot of unnecessary troubles to mobile phone manufacturers and earphone manufacturers.
  • it will bring great inconvenience to users. For example, when a user buys a mobile phone without a USB audio interface, he finds that he can't use the 3.5mm earphone that he has purchased before, or does not use it. Users with the USB interface of the manufacturer will be annoyed when the audio quality is different.
  • the technical problem to be solved by the embodiments of the present invention is to provide a USB interface circuit, a terminal, a headphone circuit, an earphone, and a storage medium, which can reduce the cost of the earphone while ensuring high fidelity and high compatibility of the audio. Good performance.
  • the USB interface circuit includes: a USB interface; an analog circuit switch connected to the USB interface; a codec module and a USB module; wherein the analog circuit switch detects The analog circuit switch is connected to the USB module when the USB interface is not inserted by the USB headset; and the analog circuit switch and the compiling when the codec module detects that the USB interface has a USB headset inserted The codec module is connected; and the codec module is connected to the USB interface through a pull-up resistor.
  • the USB interface includes: a first pin, a second pin, a first ground pin, an ID pin, and a VBUS pin; wherein the analog circuit switch and the first pin, the second A pin is connected to the VBUS pin; the pull-up resistor is connected to the ID pin.
  • the first pin is: a USB-D+ pin
  • the second pin is a USB-D- pin
  • the first pin and the second pin are: a USB-TX1+ pin , USB-TX2+ pin, USB-TX1-pin, USB-TX2-pin, USB-RX1+ pin, USB-RX2+ pin, USB-RX1-pin and USB-RX2-pin One.
  • the USB module has: a third pin and a fourth pin; and when the analog circuit switch detects that the USB interface has no USB earphone insertion, the analog circuit switch and the USB module respectively
  • the third pin is connected to the fourth pin; and the third pin of the USB module is electrically connected to the first pin of the USB interface through the analog circuit switch; the fourth pin of the USB module passes The analog circuit switch is electrically connected to the second pin of the USB interface.
  • the codec module comprises: a digital to analog converter DAC and an analog to digital converter ADC; the digital to analog converter DAC comprises a left channel pin and a right channel pin, the analog to digital converter ADC
  • the first input pin is included; wherein the first input pin is connected to the pull-up resistor; when the codec module detects that the USB interface has a USB headset inserted, the left channel pin Conducting a connection with the first pin of the USB interface through the analog circuit switch;
  • the right channel pin is electrically connected to the second pin of the USB interface through the analog circuit switch.
  • the method further includes: a second ground pin connected to the first ground pin of the USB interface.
  • the codec module detects that the USB interface has a USB headset inserted, by using the formula:
  • the USB interface has a USB headset inserted; wherein, R1 is a USB interface circuit, The resistance value of the pull-up resistor connected in series with the ID pin of the USB interface; R2 is the resistance value of the internal resistor connected in series with the ID pin in the earphone circuit of the inserted USB interface.
  • the present invention also provides a terminal comprising: a USB interface circuit as described above.
  • a headset circuit includes: a USB interface; an earphone insertion circuit connected to the USB interface; and the earphone insertion circuit is connected in series with an internal resistor.
  • the USB interface includes: a first pin, a second pin, a third ground pin, and an ID pin;
  • the earphone insertion circuit includes: a left channel pin, a right channel pin, and a ground lead a first pin and a left channel pin; the second pin is connected to the right channel pin; the third ground pin is The ground pin is connected to the ground; the ID pin is connected to the microphone pin; and the internal resistor is connected in series with the microphone pin.
  • the first pin is: a USB-D+ pin
  • the second pin is a USB-D- pin
  • the first pin and the second pin are: a USB-TX1+ pin , USB-TX2+ pin, USB-TX1-pin, USB-TX2-pin, USB-RX1+ pin, USB-RX2+ pin, USB-RX1-pin and USB-RX2-pin One.
  • an earphone comprising: the earphone circuit as described above.
  • a storage medium comprising a A group instruction that, when executed, causes at least one processor to perform operations including:
  • analog circuit switch is connected to the USB module when the analog circuit switch detects that the USB interface is not plugged into a USB headset; when the codec module detects that the USB interface has a USB headset inserted
  • the analog circuit switch is coupled to the codec module; and the codec module is coupled to the USB interface via a pull-up resistor.
  • the USB interface circuit provided by the embodiment of the present invention has at least the following beneficial effects: by adding an analog circuit switch to the USB interface circuit, it is not necessary to improve the circuit inside the earphone device, and only the earphone is needed.
  • the interface of the device can be changed to a USB interface, which reduces the cost of the earphone, and at the same time achieves high fidelity of audio and high compatibility of the device.
  • FIG. 1 is a schematic structural diagram of a USB interface circuit when a USB interface type is a Micro USB interface according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic structural diagram of a headphone circuit when a USB interface type is a Micro USB interface according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of a USB interface in a USB interface circuit when a USB interface type is a Micro USB interface according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a USB interface in a USB interface circuit when a USB interface type is a Type-C USB interface according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a USB interface circuit and a headphone circuit when a USB interface type is a Micro USB interface according to an embodiment of the present invention.
  • the USB interface type in the USB interface circuit in Embodiment 1 of the present invention is a MicroUSB interface.
  • Embodiment 1 of the present invention provides a USB interface circuit 1 including: a USB interface 11; an analog circuit switch 12 connected to the USB interface 11; a codec module Codec13 and a USB module 14; wherein, in the analog circuit
  • the switch 12 detects that the USB interface 11 does not have a USB headset inserted, the analog circuit switch 12 is connected to the USB module 14; when the codec module Codec13 detects that the USB interface 11 has a USB headset inserted,
  • the analog circuit switch 12 is connected to the codec module Codec13; and the codec module Codec13 is connected to the USB interface 11 via a pull-up resistor 15.
  • the analog circuit switch 12 By adding the analog circuit switch 12 to the USB interface circuit 1, the analog circuit switch 12 is connected to the codec module Codec13 by the level signal returned by the USB interface obtained by the analog circuit switch 12 or the signal returned by the codec module Codec13.
  • the USB module 14 is connected to convert the terminal into a USB function or an audio transceiving function, and the audio data is transmitted to the earphone device through the USB interface 11.
  • the earphone device For the earphone device, it is only necessary to change the original 3.5mm interface to the interface corresponding to the USB interface 11 in the above USB interface circuit, without requiring other improvements to the earphone device, thereby reducing the cost of the earphone device. And to ensure the high compatibility of the headset device and the high fidelity of data transmission.
  • the USB interface 11 includes: a first pin, a second pin, a first ground pin, an ID pin, and a VBUS pin; wherein the analog circuit switch 12 and the The first pin, the second pin and the VBUS pin are connected; the pull-up resistor 15 is connected to the ID pin.
  • the analog circuit switch 12 determines whether a USB device is inserted in the USB interface 11 by detecting a change in the voltage value of the VBUS pin of the USB interface 11, and the USB device is a data line or a charger. Since the charger or data line supplies power to the VBUS pin when the USB device is plugged into the USB interface 11, the level of the VBUS pin is converted from a low level to a high level. When the analog circuit switch 12 senses that the level of the VBUS pin is high, it can be determined that the device inserted into the USB interface 11 is a USB device.
  • the USB module 14 has: a third pin and a fourth pin;
  • the codec module Codec13 includes: a digital-to-analog converter DAC and an analog-to-digital converter ADC;
  • the digital to analog converter DAC includes a left channel pin and a right channel pin;
  • the analog to digital converter ADC includes a first input pin
  • the first input pin is connected to the pull-up resistor 15; when the codec module Codec13 detects that the USB interface 11 has a USB headset inserted, the left channel pin passes the simulation
  • the circuit switch 12 is electrically connected to the first pin of the USB interface 11; the right channel pin is electrically connected to the second pin of the USB interface 11 through the analog circuit switch 12;
  • the analog circuit switch 12 When the analog circuit switch 12 detects that the USB interface 11 has no USB earphone insertion, the analog circuit switch 12 is respectively connected to the third pin and the fourth pin of the USB module 14; and the USB module The third pin of 14 is electrically connected to the first pin of the USB interface 11 through the analog circuit switch 12; the fourth pin of the USB module 14 passes through the analog circuit switch 12 and the USB interface The second pin of 11 is turned on.
  • the analog circuit switch 12 determines that the peripheral device inserted into the USB interface 11 is a USB device according to the level of the VBUS pin of the USB interface, and the analog circuit switch 12 internally switches, so that the third pin of the USB module 14 and the USB are connected.
  • the first pin of the interface 11 is connected through the analog circuit switch 12, and the fourth pin of the USB module 14 and the second pin of the USB interface 11 are connected through the analog circuit switch 12, thereby realizing charging or data to the terminal. transmission.
  • the codec module Codec13 determines whether to insert a USB earphone by detecting a change in the voltage value of the ID pin of the USB interface 11, wherein, compiling The code module of Codec13 detects the voltage value of the ID pin through the analog-to-digital converter ADC.
  • the audio data of the terminal is transmitted to the USB earphone through the connection of the left channel pin to the first pin and the connection of the right channel pin to the second pin, the terminal Audio data stored in After being converted by the digital-to-analog converter DAC, it is transmitted outward through the left channel pin or the right channel pin; when the recording information required to input the USB earphone is stored in the terminal, the USB earphone is obtained through the ID pin of the USB interface 11 The recorded information is converted into an analog-digital converter ADC and stored in the terminal.
  • the type of the USB interface 11 in the USB interface circuit of the embodiment 1 of the present invention includes two types: a Micro USB interface and a Type-C USB interface.
  • the first pin is: USB-D+ pin
  • the second pin is USB-D- pin
  • the USB-D+ pin is the green line D+ pin in FIG. 3
  • USB-D-lead The pin is the white line D- pin in Figure 3
  • the ground pin is the black line GND pin in Figure 3
  • the ID pin is the null ID pin in the figure
  • the VBUS pin is the red line VBUS in Figure 3. Pin.
  • the red line VBUS pin is left floating.
  • the first pin and the second pin are: USB-TX1+ pin, USB-TX2+ reference Any two of the foot, USB-TX1-pin, USB-TX2-pin, USB-RX1+ pin, USB-RX2+ pin, USB-RX1-pin and USB-RX2-pin, among them, USB
  • the TX1+ pin is the TX1+ pin in Figure 4
  • the USB-TX1- pin is the TX1-pin in Figure 4
  • the USB-TX2+ pin is the TX2+ pin in Figure 4
  • the USB-TX2-pin is In Figure 4, the TX2-pin
  • the USB-RX1+ pin is the RX1+ pin in Figure 4
  • the USB-RX2+ pin is the RX2+ pin in Figure 4
  • the USB-RX1- pin is RX1- in Figure 4.
  • the pin, USB-RX2-pin is the RX2- pin in Figure 4.
  • the ID pin of the USB interface 11 is the SBU1 pin or the SBU2 pin in FIG.
  • the VBUS pin in Figure 4 is left floating. This way, the Type-C USB interface can be compatible with USB 2.X or USB 3.X.
  • the first pin and the second pin are any two of the above pins, and the following four cases are First, when the first pin is a USB-TX1+ pin, the second pin is a USB-RX1+ pin; when the first pin is a USB-TX1-pin, the second pin is a USB-RX1-lead When the first pin is a USB-TX2+ pin, the second pin is a USB-RX2+ pin; when the first pin is a USB-TX2- When the pin is used, the second pin is the USB-RX2- pin.
  • the second ground pin is further connected to the first ground pin of the USB interface 11 .
  • the codec module Codec13 detects that the USB interface 11 has a USB headset inserted, and adopts the formula:
  • the resistance of R1 is 2.2K ⁇
  • the voltage of U R1 is 1.8V
  • the resistance of R2 is between 0.628 ⁇ and 22K ⁇ .
  • the resistance is calculated according to the above formula U 1.
  • the voltage value of the first preset threshold is 400 mV
  • the voltage value of the second preset threshold is 1.636V.
  • the detection of the voltage of the ID pin is continuously tested 5 times at intervals of 20 ms, and the average value obtained by 5 measurements is taken as the final voltage value of U 1 .
  • the method for determining whether the external device in the Type-C USB interface is a headset is the same as the above method for determining access to the Micro USB interface.
  • the method of whether the external device is a headset is the same, and is not described here.
  • USB interface circuit 1 provided in Embodiment 1 of the present invention, by improving the internality of the USB interface circuit 1, it is realized that the improvement of the earphone circuit is not required, thereby reducing the production cost of the earphone and ensuring high fidelity in the process of transmitting audio information. Degree and high compatibility of headphones.
  • the present invention also provides a terminal comprising: as described above USB interface circuit 1.
  • the present invention further provides a headphone circuit 2, comprising: a USB interface 21; an earphone insertion circuit 22 connected to the USB interface 21; the earphone insertion circuit 22 and a The internal resistors 23 are connected in series.
  • the USB earphone Through the connection of the earphone circuit 2 and the USB interface circuit 1, the USB earphone obtains the audio data in the terminal through the USB interface 11 inside the USB interface circuit 1 or transmits the audio information to the terminal, thereby achieving the cancellation of the 3.5 mm interface. Reduce the cost of headphones while ensuring high fidelity of audio transmission and high compatibility of headphones.
  • the USB interface 21 includes: a first pin, a second pin, a third ground pin, and an ID pin;
  • the earphone insertion circuit 22 includes: left sound a channel pin, a right channel pin, a ground pin, and a mic pin; the first pin is correspondingly connected to the left channel pin; and the second pin corresponds to the right channel pin
  • the third ground pin is connected to the ground pin; the ID pin is connected to the microphone pin; and the internal resistor is connected in series with the microphone pin.
  • the audio data is transmitted to the USB earphone through the left channel pin and the right channel pin of the digital-to-analog converter DAC; when recording, the microphone pinch through the earphone insertion circuit 22 The foot transmits the recorded voice information to the terminal.
  • the first pin is: a USB-D+ pin
  • the second pin is a USB-D-reference.
  • the first pin and the second pin are: USB-TX1+ pin, USB-TX2+ pin, USB- Any two of the TX1-pin, USB-TX2-pin, USB-RX1+ pin, USB-RX2+ pin, USB-RX1-pin, and USB-RX2-pin.
  • the microphone pin in the earphone insertion circuit 22 is connected to the SBU1 pin or the SBU2 pin in the USB interface 21.
  • the first pin and the second pin of the earphone insertion circuit 22 are any two of the above pins, which means the following In one of four cases, when the first pin is a USB-TX1+ pin, the second pin is a USB-RX1+ pin; when the first pin is a USB-TX1-pin, the second pin is a USB -RX1- Pin; when the first pin is a USB-TX2+ pin, the second pin is a USB-RX2+ pin; when the first pin is a USB-TX2-pin, the second pin is a USB-RX2- Pin.
  • the connection between the earphone circuit 2 and the USB interface circuit 1 is realized, the cost of the earphone is reduced, the high fidelity of the audio data transmission and the high compatibility of the earphone are ensured.
  • the analog circuit switch 12 is firstly based on the USB interface 11 in the USB interface circuit 1.
  • the level of the VBUS pin determines whether a USB device is inserted in the USB interface 11.
  • the analog circuit switch 12 controls the third pin of the USB module 14 and the USB interface.
  • the first pin of the 11 is connected; and the fourth pin of the USB module 14 is connected to the second pin of the USB interface 11; at this time, the third pin of the USB module 14 and the USB-D+ of the USB interface 11 are connected.
  • the conductive connection of the foot and the conduction connection of the fourth pin of the USB module 14 and the USB-D- pin of the USB interface 11 enable data exchange between the terminal and the USB device.
  • the analog circuit switch 12 When the analog circuit switch 12 detects that the level of the VBUS pin of the USB interface 11 in the USB interface circuit 1 is low, the analog-to-digital converter ADC of the codec module Codec13 is based on the voltage value of the ID pin of the USB interface 11. The change determines whether the USB earphone is inserted in the USB interface 11 in the USB interface circuit 1. When it is determined that the USB earphone is inserted into the USB interface 11 in the USB interface circuit 1, the analog circuit switch 12 controls the digital-to-analog conversion of the codec module Codec13.
  • the left channel pin of the DAC is connected to the USB-D+ pin of the USB interface 11
  • the right channel pin of the digital-to-analog converter DAC is connected to the USB-D- pin
  • the audio information in the terminal passes through the left sound.
  • the channel pin and the right channel pin are input to the USB earphone, and the recording information recorded by the USB earphone is transmitted to the analog-to-digital converter ADC through the ID pin and stored in the terminal memory.
  • USB interface 11 in the USB interface circuit 1 and the type of the USB interface 21 in the earphone circuit 2 are Type-C USB interfaces
  • audio information is transmitted to and from the USB headset through the USB interface 11 in the USB interface circuit 1
  • the method of obtaining the recorded information in the earphone is consistent with the method described above, and will not be described here.
  • an earphone comprising: the earphone circuit 2 as described above.
  • a storage medium comprising a set of instructions that, when executed, cause at least one processor to perform operations comprising:
  • analog circuit switch is connected to the USB module when the analog circuit switch detects that the USB interface is not plugged into a USB headset; when the codec module detects that the USB interface has a USB headset inserted
  • the analog circuit switch is coupled to the codec module; and the codec module is coupled to the USB interface via a pull-up resistor.
  • the embodiment of the invention discloses a USB interface circuit, a terminal, a headphone circuit, an earphone and a storage medium.
  • the USB interface circuit comprises: a first USB interface; an analog circuit switch connected to the first USB interface; and a codec module And a USB module; wherein, when the analog circuit switch detects that the first USB interface has no USB headset insertion, the analog circuit switch is connected to the USB module; and the codec module detects the first When a USB interface has a USB headset inserted, the analog circuit switch is connected to the codec module; and the codec module is connected to the first USB interface through a pull-up resistor.
  • USB interface circuit By adding an analog circuit switch to the USB interface circuit, it is not necessary to improve the circuit inside the earphone device, and only need to change the interface of the earphone device to a Micro USB interface or a Type-C USB interface, thereby reducing the cost of the earphone. At the same time, high fidelity of audio and high compatibility of devices can be achieved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Headphones And Earphones (AREA)
  • Telephone Function (AREA)

Abstract

一种USB接口电路、终端、耳机电路、耳机及存储介质,该USB接口电路(1)包括:第一USB接口(11);与所述第一USB接口(11)连接的模拟电路开关(12);编译码器模块(13)以及USB模块(14);其中,在所述模拟电路开关(12)检测到所述第一USB接口(11)没有USB耳机插入时,所述模拟电路开关(12)与所述USB模块(14)连接;在所述编译码器模块(13)检测到所述第一USB接口(11)有USB耳机插入时,所述模拟电路开关(12)与所述编译码器模块(13)连接;且所述编译码器模块(13)通过一上拉电阻(15)与所述第一USB接口(11)连接;通过在USB接口电路(1)中增加模拟电路开关(12)后,不需要对耳机设备内部的电路进行改进,只需将耳机设备的接口更改成Micro USB接口或Type-C USB接口即可,降低了耳机的成本,同时还能实现音频的高保真度和设备的高兼容性。

Description

一种USB接口电路、终端、耳机电路及耳机、存储介质
相关申请的交叉引用
本申请基于申请号为201610383551.X、申请日为2016年06月03日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明涉及移动设备领域,具体是一种USB接口电路、终端、耳机电路及耳机、存储介质。
背景技术
近年来,随着智能手机市场竞争的白热化,各大手机厂商为了提高自家产品的竞争力,都提出了很多特有的手机功能,如快速充电、指纹之别、高品质音视频等。最近,苹果公司宣布在最新的iphone7上使用特有的USB lighting接口代替传统的3.5mm音频接口,引来业界一片哗然,但从整个手机结构和市场发展来看,3.5mm音频接口的消失似乎是必然的。主要原因有以下几点:
1、为手机变的更加纤薄轻便提供了可能。3.5mm音频接口一直是手机变纤薄的一个主要技术障碍。
2、优化手机内部设计。去掉3.5mm音频接口模块在寸土寸金的手机内部空间上可以释放出一大块区域使其用于扩大电池容量、优化电路结构等其他功能。
3、降低手机的成本。手机中去掉该模块改用手机原有的USB接口无疑为手机节省了一个模块的成本;即使一个模块的价钱微乎其微,但当手机量产时,节约的成本就很明显了。
4、为手机提供更多的功能扩展,如连接便携式Hi-fi、提高音质、为高 端耳机提供更多动力等。
现在市面上已经有替代3.5mm音频接口的方法,本质都是使用USB接口替代3.5mm音频接口;使用USB接口作为替代端口的一个主要原因是现在通用的手机结构中已无可供音频数据传输的外置接口。乐视USB Audio音频传输方案本质是将音频PCM(中文称脉冲编码调制)数据作为普通数据,将耳机作为USB设备的一端与手机USB接口连接;播放音频时:手机端将音频PCM数据流通过USB接口发送给耳机端,再由耳机端提取接收的PCM数据,经过数模转换,将转换后的模拟信号发送给耳机听筒;录音时:耳机端的MIC(麦克)将模拟信号同行模数转换模块转换为PCM数据,在通过USB接口发送给手机端。
乐视USB Audio方案是将PCM数据当作普通数据通过USB接口进行传输,虽然使用USB接口代替了3.5mm音频接口,但却增加了耳机的设计要求,且兼容性和可扩展性有限;这必然会给手机上的耳机系统带来一些问题:
1、去掉3.5mm音频接口虽然降低了手机成本,但是增加了耳机成本;而且这种耳机与传统耳机相比增加了USB接收器、数模转换器。一个3.5mm的音频接口模块可能不足1元,但数模转换器、USB接收器的价格则远大于3.5mm音频接口模块,进而使得一个普通音质的耳机的市面价格在100元以上。
2、增加了耳机本身的设计难度,降低了各个厂商对耳机接口支持的兼容性。耳机本身的设计空间有限,增加了一些硬件电路后使耳机变得臃肿庞大,且耳机主要结构改变后,各个厂商会根据自身的情况选择不同的硬件设计方案,这必然会带来一系列兼容性问题。
3、增加了使用耳机场景下功耗损耗,原因是耳机上的一些模数转换/数模转换电路需要通过USB作为主控制给其供给一定的电源。比原始的3.5mm耳机驱动电路会消耗更多的功耗。
以上问题一方面会给手机厂商和耳机厂商带来很多不必要的麻烦,另一方面,也会给用户带来极大的不便。例如当用户购买一个没有USB音频接口的手机后,却发现没法使用之前已经购买的3.5mm耳机,或是使用不 同厂商的USB接口的耳机导致音频质量不同时,用户一定会懊恼不已。
发明内容
本发明实施例要解决的技术问题是提供一种USB接口电路、终端、耳机电路、耳机及存储介质,用以实现降低耳机成本的同时,还能保证音频的保真度高、兼容性高的良好性能。
为解决上述技术问题,本发明实施例提供的USB接口电路,包括:USB接口;与所述USB接口连接的模拟电路开关;编译码器模块以及USB模块;其中,在所述模拟电路开关检测到所述USB接口没有USB耳机插入时,所述模拟电路开关与所述USB模块连接;在所述编译码器模块检测到所述USB接口有USB耳机插入时,所述模拟电路开关与所述编译码器模块连接;且所述编译码器模块通过一上拉电阻与所述USB接口连接。
优选地,所述USB接口包括:第一引脚、第二引脚、第一接地引脚、ID引脚以及VBUS引脚;其中,所述模拟电路开关与所述第一引脚、第二引脚和所述VBUS引脚连接;所述上拉电阻与所述ID引脚连接。
优选地,所述第一引脚为:USB-D+引脚,第二引脚为USB-D-引脚;或者所述第一引脚和所述第二引脚为:USB-TX1+引脚、USB-TX2+引脚、USB-TX1-引脚、USB-TX2-引脚、USB-RX1+引脚、USB-RX2+引脚、USB-RX1-引脚和USB-RX2-引脚中的任意两个。
优选地,所述USB模块具有:第三引脚和第四引脚;在所述模拟电路开关检测到所述USB接口没有USB耳机插入时,所述模拟电路开关分别与所述USB模块的第三引脚和第四引脚连接;且所述USB模块的第三引脚通过所述模拟电路开关与所述USB接口的第一引脚导通连接;所述USB模块的第四引脚通过所述模拟电路开关与所述USB接口的第二引脚导通连接。
优选地,所述编译码器模块包括:数字模拟转换器DAC和模数变换器ADC;所述数字模拟转换器DAC包括左声道引脚和右声道引脚,所述模数变换器ADC包括第一输入引脚;其中,所述第一输入引脚与所述上拉电阻连接;在所述编译码器模块检测到所述USB接口有USB耳机插入时,所述左声道引脚通过所述模拟电路开关与所述USB接口的第一引脚导通连接; 所述右声道引脚通过所述模拟电路开关与所述USB接口的第二引脚导通连接。
优选地,还包括:第二接地引脚,与所述USB接口的第一接地引脚连接。
优选地,所述编译码器模块检测所述USB接口有USB耳机插入时,通过公式:
Figure PCTCN2017081045-appb-000001
得到ID引脚的电压值,在所述ID引脚的电压值大于第一预设阈值且小于第二预设阈值时,所述USB接口有USB耳机插入;其中,R1为USB接口电路中,与所述USB接口的ID引脚串联的上拉电阻的电阻值;R2为插入的USB接口的耳机电路中与ID引脚串联的内部电阻的电阻值。
根据本发明的另一方面,本发明还提供了一种终端,包括:如上述的USB接口电路。
根据本发明的另一方面,本发明还提供了一种耳机电路,包括:USB接口;与所述USB接口连接的耳机插入电路;所述耳机插入电路与一内部电阻串联连接。
优选地,所述USB接口包括:第一引脚、第二引脚、第三接地引脚以及ID引脚;所述耳机插入电路包括:左声道引脚、右声道引脚、接地引脚以及麦克引脚;所述第一引脚与所述左声道引脚对应连接;所述第二引脚与所述右声道引脚对应连接;所述第三接地引脚与所述接地引脚对应连接;所述ID引脚与所述麦克引脚对应连接;所述内部电阻与所述麦克引脚串联连接。
优选地,所述第一引脚为:USB-D+引脚,第二引脚为USB-D-引脚;或者所述第一引脚和所述第二引脚为:USB-TX1+引脚、USB-TX2+引脚、USB-TX1-引脚、USB-TX2-引脚、USB-RX1+引脚、USB-RX2+引脚、USB-RX1-引脚和USB-RX2-引脚中的任意两个。
根据本发明的另一方面,本发明还提供了一种耳机,包括:如上述的耳机电路。
根据本发明的另一方面,还提供了一种存储介质,该存储介质包括一 组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:
USB接口;
与所述USB接口连接的模拟电路开关;
编译码器模块以及USB模块;
其中,在所述模拟电路开关检测到所述USB接口没有USB耳机插入时,所述模拟电路开关与所述USB模块连接;在所述编译码器模块检测到所述USB接口有USB耳机插入时,所述模拟电路开关与所述编译码器模块连接;且所述编译码器模块通过一上拉电阻与所述USB接口连接。
与现有技术相比,本发明实施例提供的USB接口电路,至少具有以下有益效果:通过对USB接口电路中增加模拟电路开关后,不需要对耳机设备内部的电路进行改进,只需将耳机设备的接口改成USB接口即可,降低了耳机的成本,同时还能实现音频的高保真度和设备的高兼容性。
附图说明
图1为本发明实施例1所述的USB接口类型为Micro USB接口时,USB接口电路的结构示意图;
图2为本发明实施例2所述的USB接口类型为Micro USB接口时,耳机电路的结构示意图;
图3为本发明实施例所述的USB接口类型为Micro USB接口时,USB接口电路中的USB接口的结构示意图;
图4为本发明实施例所述的USB接口类型为Type-C USB接口时,USB接口电路中的USB接口的结构示意图;
图5为本发明实施例所述的USB接口类型为Micro USB接口时,USB接口电路与耳机电路配合的结构示意图。
具体实施方式
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。在下面的描述中,提供诸如具体的配 置和组件的特定细节仅仅是为了帮助全面理解本发明的实施例。因此,本领域技术人员应该清楚,可以对这里描述的实施例进行各种改变和修改而不脱离本发明的范围和精神。另外,为了清楚和简洁,省略了对已知功能和构造的描述。
参照图1,本发明实施例1中USB接口电路中的USB接口类型为MicroUSB接口。本发明实施例1提供了一种USB接口电路1,包括:USB接口11;与所述USB接口11连接的模拟电路开关12;编译码器模块Codec13以及USB模块14;其中,在所述模拟电路开关12检测到所述USB接口11没有USB耳机插入时,所述模拟电路开关12与所述USB模块14连接;在所述编译码器模块Codec13检测到所述USB接口11有USB耳机插入时,所述模拟电路开关12与所述编译码器模块Codec13连接;且所述编译码器模块Codec13通过一上拉电阻15与所述USB接口11连接。
通过对USB接口电路1中增加模拟电路开关12,模拟电路开关12通过其自身获取到的USB接口返回的电平信号或者编译码器模块Codec13返回的信号具体选择与编译码器模块Codec13连接或者与USB模块14连接,进而将终端转换成USB功能或者音频收发功能,通过USB接口11将音频数据传输给耳机设备。
对于耳机设备,只需要将原有的3.5mm接口更改为与上述USB接口电路中的USB接口11相对应的接口即可,而不需要对耳机设备做其他改进,达到了降低了耳机设备的成本以及保证耳机设备的高兼容性以及数据传输的高保真度的效果。
且进一步的,参照图1,所述USB接口11包括:第一引脚、第二引脚、第一接地引脚、ID引脚以及VBUS引脚;其中,所述模拟电路开关12与所述第一引脚、第二引脚和所述VBUS引脚连接;所述上拉电阻15与所述ID引脚连接。
具体地,模拟电路开关12通过检测USB接口11的VBUS引脚的电压值的变化,判断USB接口11中是否插入USB设备,该USB设备为数据线或充电器。由于USB接口11中在插入USB设备时,充电器或数据线均会给VBUS引脚提供电,因而VBUS引脚的电平会由低电平转换成高电平, 当模拟电路开关12感应到VBUS引脚的电平为高电平时,即可判断为插入USB接口11中的设备为USB设备。
且进一步的,参照图1,本发明实施例1中,
所述USB模块14具有:第三引脚和第四引脚;
所述编译码器模块Codec13包括:数字模拟转换器DAC和模数变换器ADC;
所述数字模拟转换器DAC包括左声道引脚和右声道引脚;
所述模数变换器ADC包括第一输入引脚;
其中,所述第一输入引脚与所述上拉电阻15连接;在所述编译码器模块Codec13检测到所述USB接口11有USB耳机插入时,所述左声道引脚通过所述模拟电路开关12与所述USB接口11的第一引脚导通连接;所述右声道引脚通过所述模拟电路开关12与所述USB接口11的第二引脚导通连接;
在所述模拟电路开关12检测到所述USB接口11没有USB耳机插入时,所述模拟电路开关12分别与所述USB模块14的第三引脚和第四引脚连接;且所述USB模块14的第三引脚通过所述模拟电路开关12与所述USB接口11的第一引脚导通连接;所述USB模块14的第四引脚通过所述模拟电路开关12与所述USB接口11的第二引脚导通连接。
模拟电路开关12根据USB接口的VBUS引脚的电平的高低判断出插入USB接口11中的外设为USB设备时,模拟电路开关12内部进行切换,使得USB模块14的第三引脚与USB接口11的第一引脚通过模拟电路开关12实现连接,以及使得USB模块14的第四引脚与USB接口11的第二引脚通过模拟电路开关12实现连接,进而实现对终端的充电或者数据传输。
当模拟电路开关12检测到USB接口11的VBUS引脚的电平为低电平时,编译码器模块Codec13通过检测USB接口11的ID引脚的电压值的变化判断是否插入USB耳机,其中,编译码器模块Codec13检测ID引脚的电压值是通过模数变换器ADC实现的。当判断出USB接口11中有USB耳机插入时,通过左声道引脚与第一引脚连接以及通过右声道引脚与第二引脚连接实现终端的音频数据传输到USB耳机中,终端中存储的音频数据 通过数字模拟转换器DAC转换后通过左声道引脚或右声道引脚向外传输;在需要对USB耳机录入的录音信息存储到终端中时,通过USB接口11的ID引脚获取USB耳机录入的录音信息,再通过模数变换器ADC进行转换后存储到终端中。
本发明实施例1中USB接口电路中的USB接口11类型包括Micro USB接口和Type-C USB接口两种,参照图3所示,当该USB接口电路中的USB接口11类型为Micro USB接口时,所述第一引脚为:USB-D+引脚,第二引脚为USB-D-引脚,其中,USB-D+引脚为图3中的绿线D+引脚,USB-D-引脚为图3中的白线D-引脚,接地引脚为图3中的黑线GND引脚,ID引脚为图中的空端ID引脚,VBUS引脚为图3中的红线VBUS引脚。
当插入USB接口11中的设备为USB耳机时,红线VBUS引脚悬空。
参照图4所示,当该USB接口电路中的USB接口11类型为Type-C USB接口时,所述第一引脚和所述第二引脚为:USB-TX1+引脚、USB-TX2+引脚、USB-TX1-引脚、USB-TX2-引脚、USB-RX1+引脚、USB-RX2+引脚、USB-RX1-引脚和USB-RX2-引脚中的任意两个,其中,USB-TX1+引脚为图4中的TX1+引脚,USB-TX1-引脚为图4中的TX1-引脚,USB-TX2+引脚为图4中的TX2+引脚,USB-TX2-引脚为图4中的TX2-引脚,USB-RX1+引脚为图4中的RX1+引脚,USB-RX2+引脚为图4中的RX2+引脚,USB-RX1-引脚为图4中的RX1-引脚,USB-RX2-引脚为图4中的RX2-引脚。
并且,当USB接口电路1中的USB接口11类型为Type-C USB接口时,USB接口11的ID引脚为图4中的SBU1引脚或者SBU2引脚。同时,图4中的VBUS引脚悬空,该种方式可以使得Type-C USB接口能够兼容USB2.X或USB3.X。
具体的,当USB接口电路中的USB接口11类型为Type-C USB接口时,所述第一引脚和所述第二引脚为上述引脚中的任意两个是指以下四种情况之一,当第一引脚为USB-TX1+引脚时,第二引脚为USB-RX1+引脚;当第一引脚为USB-TX1-引脚时,第二引脚为USB-RX1-引脚;当第一引脚为USB-TX2+引脚时,第二引脚为USB-RX2+引脚;当第一引脚为USB-TX2- 引脚时,第二引脚为USB-RX2-引脚。
且进一步的,参照图1,本实施例1中,还包括:第二接地引脚,与所述USB接口11的第一接地引脚连接。且进一步的,本实施例1中,当USB接口11的接口类型为Micro USB接口时,所述编译码器模块Codec13检测所述USB接口11有USB耳机插入时,通过公式:
Figure PCTCN2017081045-appb-000002
得到ID引脚的电压值,在所述ID引脚的电压值大于第一预设阈值且小于第二预设阈值时,所述USB接口11有USB耳机插入;其中,R1为USB接口电路1中,与所述USB接口11的ID引脚串联的上拉电阻15的电阻值;R2为插入的USB接口11的耳机电路2中与ID引脚串联的内部电阻23的电阻值。
具体地,本实施例1中,R1的阻值为2.2KΩ,UR1的电压为1.8V,R2的阻值为0.628Ω到22KΩ之间。当耳机插入到USB接口11中,上拉电阻15与耳机的麦克接通,耳机的麦克的电压被上拉电阻15上拉到1.8V,根据上述公式计算出U1的阻值。本实施例1中,第一预设阈值的电压值为400mV,第二预设阈值的电压值为1.636V。当U1的电压值大于400mV小于1.636V时,判断为耳机插入USB接口11中;当U1的电压值大于1.726V时,判断为耳机未插入USB接口11中。
本发明实施例1中,对ID引脚的电压的检测,以20ms的间隔时间连续测试5次,并以5次测量得到的均值作为U1的最终电压值。
本发明中,当USB接口电路中的USB接口11的类型为Type-C USB接口时,判断接入Type-C USB接口中的外部设备是否为耳机的方法同上述判断接入Micro USB接口中的外部设备是否为耳机的方法相同,在此,不在赘述。
通过本发明实施例1中提供的USB接口电路1,通过对USB接口电路1内部的改进,实现了无需对耳机电路的改进,进而降低了耳机的生产成本,保证音频信息传输过程中的高保真度以及耳机的高兼容性。
根据本发明的另一方面,本发明还提供了一种终端,包括:如上述的 USB接口电路1。
参照图2,根据本发明的另一方面,本发明还提供了一种耳机电路2,包括:USB接口21;与所述USB接口21连接的耳机插入电路22;所述耳机插入电路22与一内部电阻23串联连接。
通过耳机电路2与USB接口电路1的连接,实现USB耳机通过USB接口电路1内部的USB接口11获取终端中的音频数据或者向终端传输音频信息,进而在实现取消3.5mm接口的基础上,达到了降低耳机的成本,同时保证音频传输的高保真度和耳机的高兼容性。
且进一步的,参照图2,本实施例中,所述USB接口21包括:第一引脚、第二引脚、第三接地引脚以及ID引脚;所述耳机插入电路22包括:左声道引脚、右声道引脚、接地引脚以及麦克引脚;所述第一引脚与所述左声道引脚对应连接;所述第二引脚与所述右声道引脚对应连接;所述第三接地引脚与接地引脚对应连接;所述ID引脚与所述麦克引脚对应连接;所述内部电阻与所述麦克引脚串联连接。
具体地,在需要播放音频信息时,通过数字模拟转换器DAC的左声道引脚和右声道引脚将音频数据传输至USB耳机中;在进行录音时,通过耳机插入电路22的麦克引脚将录入的语音信息传输到终端中。
且进一步的,本实施例2中,当耳机电路2中的USB接口21类型为Micro USB接口时,所述第一引脚为:USB-D+引脚,第二引脚为USB-D-引脚;当耳机电路2中中的USB接口21类型为Type-C USB接口时,所述第一引脚和所述第二引脚为:USB-TX1+引脚、USB-TX2+引脚、USB-TX1-引脚、USB-TX2-引脚、USB-RX1+引脚、USB-RX2+引脚、USB-RX1-引脚和USB-RX2-引脚中的任意两个。
并且,耳机插入电路22中的麦克引脚与USB接口21中的SBU1引脚或SBU2引脚连接。
此处,当耳机电路2的USB接口21类型为Type-C USB接口时,所述耳机插入电路22的第一引脚和所述第二引脚为上述引脚中的任意两个是指以下四种情况之一,当第一引脚为USB-TX1+引脚时,第二引脚为USB-RX1+引脚;当第一引脚为USB-TX1-引脚时,第二引脚为USB-RX1- 引脚;当第一引脚为USB-TX2+引脚时,第二引脚为USB-RX2+引脚;当第一引脚为USB-TX2-引脚时,第二引脚为USB-RX2-引脚。
通过本发明实施例2提供的耳机电路2,实现了耳机电路2与USB接口电路1的连接,达到了降低耳机的成本,保证音频数据传输的高保真度和耳机的高兼容性。
当USB接口电路1中的USB接口11类型以及耳机电路2中的USB接口21类型均为Micro USB接口时,参照图5所示,模拟电路开关12首先根据USB接口电路1中的USB接口11的VBUS引脚的电平判断USB接口11中是否插入USB设备,当判断出USB接口电路1中的USB接口11中插入USB设备时,模拟电路开关12控制USB模块14的第三引脚与USB接口11的第一引脚连接;并控制USB模块14的第四引脚与USB接口11的第二引脚连接;此时,通过USB模块14的第三引脚与USB接口11的USB-D+引脚的导通连接以及USB模块14的第四引脚与USB接口11的USB-D-引脚的导通连接实现终端与USB设备的数据交换。
当模拟电路开关12检测出USB接口电路1中的USB接口11的VBUS引脚的电平为低电平时,编译码器模块Codec13的模数变换器ADC根据USB接口11的ID引脚的电压值的变化判断USB接口电路1中的USB接口11中是否插入USB耳机,当判断出USB接口电路1中的USB接口11中插入USB耳机时,模拟电路开关12控制编译码器模块Codec13的数字模拟转换器DAC的左声道引脚与USB接口11的USB-D+引脚连接,以及控制数字模拟转换器DAC的右声道引脚与USB-D-引脚连接,终端中的音频信息通过左声道引脚和右声道引脚传入至USB耳机中,USB耳机录入的录音信息通过ID引脚传输到模数变换器ADC后存储至终端存储器中。
对于当USB接口电路1中的USB接口11类型以及耳机电路2中的USB接口21类型均为Type-C USB接口时,通过USB接口电路1中的USB接口11向USB耳机传输音频信息以及从USB耳机中获取录音信息的方法与上述记载的方法相一致,在此,不在赘述。
根据本发明的另一方面,本发明还提供了一种耳机,包括:如上述的耳机电路2。
根据本发明的另一方面,本发明还提供了一种存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:
USB接口;
与所述USB接口连接的模拟电路开关;
编译码器模块以及USB模块;
其中,在所述模拟电路开关检测到所述USB接口没有USB耳机插入时,所述模拟电路开关与所述USB模块连接;在所述编译码器模块检测到所述USB接口有USB耳机插入时,所述模拟电路开关与所述编译码器模块连接;且所述编译码器模块通过一上拉电阻与所述USB接口连接。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
工业实用性
本发明实施例公开了一种USB接口电路、终端、耳机电路、耳机及存储介质,该USB接口电路包括:第一USB接口;与所述第一USB接口连接的模拟电路开关;编译码器模块以及USB模块;其中,在所述模拟电路开关检测到所述第一USB接口没有USB耳机插入时,所述模拟电路开关与所述USB模块连接;在所述编译码器模块检测到所述第一USB接口有USB耳机插入时,所述模拟电路开关与所述编译码器模块连接;且所述编译码器模块通过一上拉电阻与所述第一USB接口连接。通过在USB接口电路中增加模拟电路开关后,不需要对耳机设备内部的电路进行改进,只需将耳机设备的接口更改成Micro USB接口或Type-C USB接口即可,降低了耳机的成本,同时还能实现音频的高保真度和设备的高兼容性。

Claims (13)

  1. 一种USB接口电路,包括:
    USB接口;
    与所述USB接口连接的模拟电路开关;
    编译码器模块以及USB模块;
    其中,在所述模拟电路开关检测到所述USB接口没有USB耳机插入时,所述模拟电路开关与所述USB模块连接;在所述编译码器模块检测到所述USB接口有USB耳机插入时,所述模拟电路开关与所述编译码器模块连接;且所述编译码器模块通过一上拉电阻与所述USB接口连接。
  2. 根据权利要求1所述的USB接口电路,其中,所述USB接口包括:第一引脚、第二引脚、第一接地引脚、ID引脚以及VBUS引脚;
    其中,所述模拟电路开关与所述第一引脚、第二引脚和所述VBUS引脚连接;
    所述上拉电阻与所述ID引脚连接。
  3. 根据权利要求2所述的USB接口电路,其中,
    所述第一引脚为:USB-D+引脚,第二引脚为USB-D-引脚;或者
    所述第一引脚和所述第二引脚为:USB-TX1+引脚、USB-TX2+引脚、USB-TX1-引脚、USB-TX2-引脚、USB-RX1+引脚、USB-RX2+引脚、USB-RX1-引脚和USB-RX2-引脚中的任意两个。
  4. 根据权利要求2或3所述的USB接口电路,其中,所述USB模块具有:第三引脚和第四引脚;
    在所述模拟电路开关检测到所述USB接口没有USB耳机插入时,所述模拟电路开关分别与所述USB模块的第三引脚和第四引脚连接;
    且所述USB模块的第三引脚通过所述模拟电路开关与所述USB接口的第一引脚导通连接;
    所述USB模块的第四引脚通过所述模拟电路开关与所述USB接口的第二引脚导通连接。
  5. 根据权利要求2或3所述的USB接口电路,其中,所述编译码器模块包括:数字模拟转换器和模数变换器;
    所述数字模拟转换器包括左声道引脚和右声道引脚,所述模数变换器包括第一输入引脚;
    其中,所述第一输入引脚与所述上拉电阻连接;
    在所述编译码器模块检测到所述USB接口有USB耳机插入时,所述左声道引脚通过所述模拟电路开关与所述USB接口的第一引脚导通连接;
    所述右声道引脚通过所述模拟电路开关与所述USB接口的第二引脚导通连接。
  6. 根据权利要求2所述的USB接口电路,其中,还包括:第二接地引脚,与所述USB接口的第一接地引脚连接。
  7. 根据权利要求1所述的USB接口电路,其中,所述编译码器模块检测所述USB接口有USB耳机插入时,通过公式:
    Figure PCTCN2017081045-appb-100001
    得到ID引脚的电压值,在所述ID引脚的电压值大于第一预设阈值且小于第二预设阈值时,所述USB接口有USB耳机插入;
    其中,R1为USB接口电路中,与所述USB接口的ID引脚串联的上拉电阻的电阻值;
    R2为插入的USB接口的耳机电路中与ID引脚串联的内部电阻的电阻值。
  8. 一种终端,包括:如权利要求1-7任一项所述的USB接口电路。
  9. 一种耳机电路,包括:
    USB接口;
    与所述USB接口连接的耳机插入电路;
    所述耳机插入电路与一内部电阻串联连接。
  10. 根据权利要求9所述的耳机电路,其中,
    所述USB接口包括:第一引脚、第二引脚、第三接地引脚以及ID引脚;
    所述耳机插入电路包括:左声道引脚、右声道引脚、接地引脚以及麦克引脚;
    所述第一引脚与所述左声道引脚对应连接;
    所述第二引脚与所述右声道引脚对应连接;
    所述第三接地引脚与所述接地引脚对应连接;
    所述ID引脚与所述麦克引脚对应连接;
    所述内部电阻与所述麦克引脚串联连接。
  11. 根据权利要求10所述的耳机电路,其中,
    所述第一引脚为:USB-D+引脚,第二引脚为USB-D-引脚;或者
    所述第一引脚和所述第二引脚为:USB-TX1+引脚、USB-TX2+引脚、USB-TX1-引脚、USB-TX2-引脚、USB-RX1+引脚、USB-RX2+引脚、USB-RX1-引脚和USB-RX2-引脚中的任意两个。
  12. 一种耳机,包括:如权利要求9至11任一项所述的耳机电路。
  13. 一种存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:
    USB接口;
    与所述USB接口连接的模拟电路开关;
    编译码器模块以及USB模块;
    其中,在所述模拟电路开关检测到所述USB接口没有USB耳机插入时,所述模拟电路开关与所述USB模块连接;在所述编译码器模块检测到所述 USB接口有USB耳机插入时,所述模拟电路开关与所述编译码器模块连接;且所述编译码器模块通过一上拉电阻与所述USB接口连接。
PCT/CN2017/081045 2016-10-28 2017-04-19 一种usb接口电路、终端、耳机电路及耳机、存储介质 WO2018076628A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610962559.1 2016-10-28
CN201610962559.1A CN108023235A (zh) 2016-10-28 2016-10-28 一种usb接口电路、终端、耳机电路及耳机

Publications (1)

Publication Number Publication Date
WO2018076628A1 true WO2018076628A1 (zh) 2018-05-03

Family

ID=62024436

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081045 WO2018076628A1 (zh) 2016-10-28 2017-04-19 一种usb接口电路、终端、耳机电路及耳机、存储介质

Country Status (2)

Country Link
CN (1) CN108023235A (zh)
WO (1) WO2018076628A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235687A (zh) * 2020-09-02 2021-01-15 北京握奇智能科技有限公司 一种通过usb接口的音频电路

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218880A (zh) * 2018-07-26 2019-01-15 上海与德通讯技术有限公司 耳机充电二合一电路及控制方法、终端
CN111586549B (zh) * 2020-05-14 2022-03-15 昆明闻泰通讯有限公司 一种耳机插入检测电路
CN113672534B (zh) * 2021-07-13 2023-03-24 荣耀终端有限公司 终端设备和开关电路
CN113473315B (zh) * 2021-07-31 2022-06-28 展讯通信(上海)有限公司 可提升耳机输出性能的电子装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014211A (zh) * 2007-01-12 2007-08-08 颜聪裕 具有usb接口的5.1声道耳机
US20090104799A1 (en) * 2007-10-22 2009-04-23 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Adapter for usb and audio interface
CN101931674A (zh) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 一种共用Micro-USB接口的方法及装置
CN201699935U (zh) * 2010-06-18 2011-01-05 深圳市奥尼电子工业有限公司 具有触摸控制单元的usb接口耳机
CN202444597U (zh) * 2011-11-09 2012-09-19 广东欧珀移动通信有限公司 一种耳机共用Micro USB接口电路
CN104035357A (zh) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 基于usb插座的耳机、充电和otg设备的电路设计

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014211A (zh) * 2007-01-12 2007-08-08 颜聪裕 具有usb接口的5.1声道耳机
US20090104799A1 (en) * 2007-10-22 2009-04-23 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Adapter for usb and audio interface
CN201699935U (zh) * 2010-06-18 2011-01-05 深圳市奥尼电子工业有限公司 具有触摸控制单元的usb接口耳机
CN101931674A (zh) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 一种共用Micro-USB接口的方法及装置
CN202444597U (zh) * 2011-11-09 2012-09-19 广东欧珀移动通信有限公司 一种耳机共用Micro USB接口电路
CN104035357A (zh) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 基于usb插座的耳机、充电和otg设备的电路设计

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235687A (zh) * 2020-09-02 2021-01-15 北京握奇智能科技有限公司 一种通过usb接口的音频电路

Also Published As

Publication number Publication date
CN108023235A (zh) 2018-05-11

Similar Documents

Publication Publication Date Title
WO2018076628A1 (zh) 一种usb接口电路、终端、耳机电路及耳机、存储介质
US20060046656A1 (en) Bluetooth headset and bluetooth device connectable to audio equipment
CN110235115B (zh) 音频传送
WO2017161746A1 (zh) 用户设备
US20060062400A1 (en) Bluetooth headset device capable of processing both audio and digital data signals
TWI507974B (zh) 電子裝置、配件和偵測配件的方法
US20090047905A1 (en) Stereo bluetooth headset
CN210579152U (zh) 一种tws耳机充电盒及tws耳机
US11431181B2 (en) Wireless sound output device with charging function
WO2018014471A1 (zh) 终端、终端外设、信号发送及接收方法、数据传输系统
CN101841588A (zh) 音频接口装置及使用该音频接口装置的电子装置
CN109660894B (zh) 终端外设及音频信号的传输方法
CN212517830U (zh) 多功能转接装置
CN111247781B (zh) 一种基于智能终端的音频电路及音频播放系统
CN105228044A (zh) 一种无损音质耳机
CN113411703B (zh) 音频播放方法以及耳机盒、无线耳机和耳机套件
CN113949755A (zh) 电子设备和有线耳机
CN111987752A (zh) 一种转接设备
CN206100377U (zh) 耳机装置
CN109218914B (zh) 音频播放装置及音频传输电路
KR20160033490A (ko) 4극 오디오 플러그-잭 커넥터 방식 액세서리 장치 및 전원공급방법
CN101478707A (zh) 带读卡和mp3播放功能的蓝牙耳机
CN216017133U (zh) 一种蓝牙耳机充电盒及耳机系统
CN115604388B (zh) 电子设备的耳机接口的接入检测方法、电子设备及介质
CN219372568U (zh) 一种带双接口多功能发射器的耳机

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

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

Country of ref document: EP

Kind code of ref document: A1