Embodiments of the disclosure relate to the field of electronic technology, particularly to user equipment with a USB TYPE-C interface and a method for data transmission, and besides being useful for a USB data transmission, the USB TYPE-C interface can also be compatible with an audio transmission of an analog headphone.
Computers have gained popularity, which fully influences people's daily lives. They have plentiful interfaces: a serial port, a parallel port, a HDMI, a SATA and the like, wherein the most widely used is a universal serial bus interface, commonly called USB. It can not only connect storage equipment, but also serve as a universal expansion interface. As technology advances, the speed of a USB interface becomes faster and faster, and the USB interface can be compatible with more and more equipments. Meanwhile, the shape of the USB interface is also going through changes, from TYPE A to MINI then to MICRO B. Today, the most popular USB shape is TYPE-C. It not only has a fast speed and transmits a large current, but also supports a reciprocal plug. It is convenient and easy to use.
In the process of realizing this disclosure, the inventor finds that there are at least the following issues in related technologies: today, there are a USB digital interface and an analogue headphone interface on a phone typically.
In view of this, the purpose of the embodiments of the disclosure is to provide a new analog audio transmission scheme to overcome the aforesaid deficiencies in the prior art, so that the user equipment can be designed more portable.
The embodiments according to the disclosure provide user equipment, which includes: a USB Type-C interface, which is compatible with USB signal delivery and analog audio peripherals; a USB physical layer, which is configured to connect with the USB Type-C interface to realize the transmission of a USB signal; an audio codec, which is configured to connect with the USB Type-C interface to realize the transmission of an analog audio, wherein a left channel terminal and a right channel terminal of the audio codec and a data transmission terminal of the USB physical layer multiplex D+ and D− pins of the USB Type-C interface; and a first analog switch device, which is configured to achieve the multiplexing. The first analog switch device is configured to, when detecting that an analog audio cable is inserted into the USB Type-C interface, switch the D+ and D− pins of the USB Type-C interface to connect with the left channel terminal and the right channel terminal of the audio codec respectively, and is configured to, when detecting that a USB cable is inserted into the USB Type-C interface, switch the D+ and D− pins of the USB Type-C interface to connect with the data transmission terminal of the USB physical layer respectively.
In one embodiment, the first analog switch device or the second analog switch device is configured to judge the type of the cable inserted into the USB Type-C interface by detecting a resistance value of a CC1 pin and/or CC2 pin of the USB Type-C interface.
Further, the first analog switch device is configured to determine that an analog audio cable is inserted into the USB Type-C interface, when detecting that the resistance value between the CC1 pin and a GND pin and the resistance value between the CC2 pin and the GND pin are both less than 1 kΩ.
In one embodiment, the user equipment further includes the second analog switch device, which is configured to achieve the microphone data transmission of the audio codec by utilizing a SBU1 pin or a SBU2 pin of the USB Type-C interface.
Further, the second analog switch device is configured to judge whether the analog audio cable inserted into the USB Type-C interface supports a microphone by detecting the resistance value of the SBU1 pin or the SBU2 pin of the USB Type-C interface.
In one embodiment, the user equipment can be a smart phone, a portable computer, a tablet computer, a desktop computer or other appropriate user equipments having the USB Type-C interface and supporting an analog audio output.
Another embodiment of the present disclosure provides a method for data transmission, which is applied to the user equipment, the method including: judging the type of the cable inserted into the USB Type-C interface of the user equipment, when detecting that an analog audio cable is inserted into the USB Type-C interface, switch the D+ and D− pins of the USB Type-C interface to connect with the left channel terminal and the right channel terminal of the audio codec respectively, and when detecting that a USB cable is inserted into the USB Type-C interface, switch the D+ and D− pins of the USB Type-C interface to connect with the data transmission terminal of the USB physical layer respectively; wherein the USB Type-C interface is compatible with USB signal delivery and analog audio peripherals; the USB physical layer is connected with the USB Type-C interface to realize the transmission of a USB signal; the audio codec is connected with the USB Type-C interface to realize the transmission of an analog audio.
In one embodiment, judging the type of the cable inserted into the USB Type-C interface of the user equipment, includes: judge the type of the cable inserted into the USB Type-C interface by detecting a resistance value of a CC1 pin and/or CC2 pin of the USB Type-C interface.
In one embodiment, judging the type of the cable inserted into the USB Type-C interface of the user equipment, includes: determine that an analog audio cable is inserted into the USB Type-C interface, when detecting that the resistance value between the CC1 pin and a GND pin of the USB Type-C interface and the resistance value between the CC2 pin and the GND pin of the USB Type-C interface are both less than 1 kΩ.
In one embodiment, the method further includes: achieve the microphone data transmission of the audio codec by utilizing a SBU1 pin or a SBU2 pin of the USB Type-C interface.
In one embodiment, the method further includes: judge whether the analog audio cable inserted into the USB Type-C interface supports a microphone by detecting the resistance value of the SBU1 pin or the SBU2 pin of the USB Type-C interface.
According to embodiments of the disclosure, the USB Type-C interface can be directly used to achieve an analog audio transmission function, thus a traditional analog audio outlet, such as a 3.5 mm audio outlet, can be omitted. Further, the printed circuit board space of the user equipment may be further saved, thus the user equipment may be manufactured to be more portable.
One or more embodiments are illustrated by way of example, and not by limitation, in the figures of the accompanying drawings, wherein elements having the same reference numeral designations represent like elements throughout. The drawings are not to scale, unless otherwise disclosed.
Part of the reference numerals and meanings thereof are as follows:
The exemplary embodiments of the present disclosure will be described in more detail hereinafter with reference to the accompanying figures. Although the exemplary embodiments of the present disclosure are shown in the accompanying figures, it should be understood that the present disclosure can be embodied in various forms, and should not be limited by embodiments set forth herein. Conversely, these embodiments are provided so that the disclosure will be better understood, and the scope of the present disclosure will be fully conveyed to those skilled in the art.
USB Developer Forum (USB-IF) issued Universal Serial Bus Type-C Cable and Connector Specification (version 1.0) on 11 Aug. 2014 and defined 24 pins and allocation thereof of a Type-C socket interface.
According to the USB Type-C specification, CC1 and CC2 are two key pins and have many functions, such as detecting connection, front and back face distinguishing, VBUS pin configuration, configuration of other modes (for example, audio accessory connection and PCIE) and the like. Two groups of TX/RX differential signal pairs are used for a data transmission of a USB3.1 standard, and D+/D− differential signal pairs are used for being compatible with a data transmission of a USB2.0 standard. SBU1 and SBU2 pins are the reserved pins conforming to the Type-C specification and used for extension function. The USB Type-C interface further includes four grounding pins and four power supply pins.
The first analog switch device SW1 is configured to, when detecting that an analog audio cable is inserted into the USB Type-C interface 41, switch the D+ and D− pins of the USB Type-C interface to connect with the left channel terminal L and the right channel terminal R of the audio codec 43 respectively. The first analog switch device SW1 is further configured to, when detecting that a USB cable is inserted into the USB Type-C interface, switch the D+ and D− pins of the USB Type-C interface to connect with the data transmission terminal of the USB physical layer 42 respectively.
The second analog switch device SW2 is configured to achieve a microphone data transmission of the audio codec 43 by utilizing the SBU1 pin or the SBU2 pin of the USB Type-C interface 41. As shown in the
As shown in the
According to the embodiment of the disclosure, the type of the cable inserted into the USB Type-C interface can be judged by judging the using states of other pins except the above-mentioned pins (D+, D−, SBU1 and SBU2) in the USB Type-C interface 41.
In one embodiment, when the plugged cable is the analog audio cable, many pins except the above-mentioned pins in the USB Type-C interface 41 are all in a “suspended” high-resistance-value state. As an example, the type of the cable inserted into the USB Type-C interface, namely the USB Type-C cable or the analog audio cable, can be judged by detecting the resistance values of the CC1 and/or CC2 pins of the USB Type-C interface.
In another embodiment, an analog audio cable interface used for being matched with the USB Type-C interface 41 of the user equipment can be configured so that the first analog switch device SW1 and/or the second analog switch device SW2 can detect the type of the plugged cable. For example, when the CC1 and CC2 pins and a GND pin of the USB Type-C interface of the user equipment are used, the GND pin is used for being connected with the GND of the analog audio cable interface, and the analog audio cable interface is configured to be provided with a resistor between the CC1 and CC2 of the USB Type-C interface of the user equipment and the GND inside the interface, and the resistance value of the resistor and resistance (generally 5.1 kΩ) of the CC1 and CC2 pins of the standard USB Type-C interface (for example a USB plug). Accordingly, the SW1 can judge the type of the cable inserted into the USB Type-C interface (for example, a USB socket) by detecting the resistance between the CC1 and CC2 pins and the GND. For example, the SW can be configured to determine that the analog audio cable is inserted into the USB Type-C interface, when detecting the resistance value between the CC1 pin and the GND pin of the USB Type-C interface and the resistance value between the CC2 pin and the GND pin of the USB Type-C interface are both less than 1 kΩ.
According to the embodiment of the disclosure, the reserved SBU1 and SBU2 pins conforming to the Type-C specification are used for transmission of the MIC signals of the audio codec. However, it should be understood that the second analog switch device SW2 shown in the
In one embodiment, the MIC connecting line of the analog audio cable interface matched with the SBU1 or the SBU2 of the USB Type-C interface 41 of the user equipment can be configured so that the second analog switch device SW2 can detect whether the plugged analog audio cable supports the MIC or not. For example, whether the MIC connecting line of the analog audio cable interface is connected or not can be judged by detecting whether the SBU1 or the SBU2 pin is in an unconnected “suspended” state or not. As an example, if it is detected that the SBU1 pin is in a used state while the SBU2 pin is still in the unused “suspended” state, the SW2 can switch the SBU1 pin to be connected with the MIC terminal of the CODEC so as to switch the SBU1 pin to be connected with a grounding point. For example, the “suspended” state of the SBU1 or the SBU2 pin can be obtained by detecting the resistance value between the pin and the grounding point.
Alternatively, a resistance value between the MIC connecting line of the analog audio cable interface configured to be matched with the SBU1 or the SBU2 of the USB Type-C interface 41 of the user equipment and the ground point may be configured to be in a specified range, and then, a pin that supports MIC signal transmission may be detected by detecting whether the resistance value between the SBU1 or the SBU2 of the USB Type-C interface of the user equipment and the ground point is in the specified range.
According to an embodiment of the disclosure, the USB Type-C interface of the user equipment may be directly utilized to achieve the analog audio transmission function, so as to omit the traditional analog audio outlet, for example, a 3.5 mm audio outlet. If the user equipment is a cell phone, the cell phone may be designed to have no headphone socket, which makes the cell phone thinner. Also, the area occupied by the printed circuit board is reduced to achieve more functions. For example, the clearance space of a cell phone antenna may be increased to improve the cell phone signals, or the battery space of the cell phone may be increased to extend the standby time of the cell phone and the like.
It should be understood that the user equipment described in the embodiments of the disclosure can be a smart phone, a portable computer, a tablet computer, a desktop computer or other suitable user equipments having a USB Type-C interface for supporting an analog audio output.
wherein the USB Type-C interface is compatible with USB signal delivery and analog audio peripherals; the USB physical layer is connected with the USB Type-C interface to realize the transmission of a USB signal; the audio codec is connected with the USB Type-C interface to realize the transmission of an analog audio.
Wherein judging the type of the cable inserted into the USB Type-C interface of the user equipment, includes: judge the type of the cable inserted into the USB Type-C interface by detecting a resistance value of a CC1 pin and/or CC2 pin of the USB Type-C interface.
wherein judging the type of the cable inserted into the USB Type-C interface of the user equipment, includes: determine that an analog audio cable is inserted into the USB Type-C interface, when detecting that the resistance value between the CC1 pin and a GND pin of the USB Type-C interface and the resistance value between the CC2 pin and the GND pin of the USB Type-C interface are both less than 1 MΩ.
In one embodiment, the method further includes: achieve the microphone data transmission of the audio codec by utilizing a SBU1 pin or a SBU2 pin of the USB Type-C interface.
In one embodiment, the method further includes: judge whether the analog audio cable inserted into the USB Type-C interface supports a microphone by detecting the resistance value of the SBU1 pin or the SBU2 pin of the USB Type-C interface.
Wherein the user equipment described in the embodiments of the disclosure can be a smart phone, a portable computer, a tablet computer, a desktop computer or other suitable user equipments having a USB Type-C interface for supporting an analog audio output.
According to an embodiment of the disclosure, the USB Type-C interface of the user equipment may be directly utilized to achieve the analog audio transmission function, so as to omit the traditional analog audio outlet. If the user equipment is a cell phone, the cell phone may be designed to have no headphone socket, which makes the cell phone thinner. Also, the area occupied by the printed circuit board is reduced to achieve more functions.
It shall be noted that the above embodiments are disclosed to explain technical solutions of the present disclosure, but not for limiting purposes. While the present disclosure has been described in detail with reference to the above embodiments, those skilled in this art shall understand that the technical solutions in the above embodiments can be modified, or a part of technical features can be equivalently substituted, and such modifications or substitutions will not make the essence of the technical solutions depart from the spirit or scope of the technical solutions of various embodiments in the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2016101770633 | Mar 2016 | CN | national |
The present application is a continuation of PCT application which has an application number of PCT/CN2016/088660 and was filed on Jul. 5, 2016. The present application claims the priority of Chinese patent application No. 201610177063.3, entitled “User Equipment”, filed with the State Intellectual Property Office of the People's Republic of China on Mar. 25, 2016, which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2016/088660 | Jul 2016 | US |
Child | 15240163 | US |