CN110442541A - Terminal device and USB interface-based data transmission method - Google Patents

Terminal device and USB interface-based data transmission method Download PDF

Info

Publication number
CN110442541A
CN110442541A CN201910857925.0A CN201910857925A CN110442541A CN 110442541 A CN110442541 A CN 110442541A CN 201910857925 A CN201910857925 A CN 201910857925A CN 110442541 A CN110442541 A CN 110442541A
Authority
CN
China
Prior art keywords
usb
terminal device
transmission channel
usb switch
switch
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
CN201910857925.0A
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910857925.0A priority Critical patent/CN110442541A/en
Publication of CN110442541A publication Critical patent/CN110442541A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The present invention discloses a kind of terminal device and USB interface-based data transmission method.The terminal device includes: USB interface, the first USB switch, the 2nd USB switch, first control unit and the second control unit;Wherein, terminal device is connect by USB interface with external equipment;First USB switch is connect with USB interface, the 2nd USB switch and first control unit respectively, for providing the first transmission channel between USB interface and first control unit or providing the second transmission channel between USB interface and the 2nd USB switch;2nd USB switch is connect with first control unit and the second control unit respectively, for by the second transmission channel, providing the third transmission channel between USB interface and first control unit or the 4th transmission channel between offer USB interface and the second control unit.

Description

Terminal device and USB interface-based data transmission method
Technical field
The present invention relates to terminal device technologies, pass in particular to a kind of terminal device and USB interface-based data Transmission method.
Background technique
The data line D+/D- of the USB interface of terminal device (such as smart phone, IPAD) may be coupled to terminal device Application processor (Application Processor, AP), to provide the biography of the data between external equipment and application processor It is defeated.In addition, application processor also supports universal asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/ Transmitter, UART) AccessPort function, it can be by the universal input and output of correspondence (General-purpose input/ Output, GPIO) hardware device by data line D+/D- connecting test point carry out AccessPort.Also, supporting quick charge Terminal device in, it is also necessary to the Handshake Protocol of quick charge is carried out by data line D+/D- and power supply adaptor, with determine with The type of its connected adapter.
And since the data line D+/D- of USB interface only has one, since data line D+/D- may be occupied, and can not be real Existing above-mentioned different functions.
Above- mentioned information are only used for reinforcing the understanding to background of the invention, therefore it disclosed in the background technology part It may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
In view of this, the present invention provides a kind of terminal device and USB interface-based data transmission method.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
According to an aspect of the present invention, a kind of terminal device is provided, comprising: USB interface, the first USB switch, the 2nd USB Switch, first control unit and the second control unit;Wherein, the terminal device is connected by the USB interface and external equipment It connects;The first USB switch is connect with USB interface, the 2nd USB switch and the first control unit respectively, for mentioning For the first transmission channel between the USB interface and the first control unit or provide the USB interface and described second The second transmission channel between USB switch;The 2nd USB switch is controlled with the first control unit and described second respectively Unit connection, for providing the third between the USB interface and the first control unit by second transmission channel The 4th transmission channel between transmission channel or the offer USB interface and second control unit.
According to an embodiment of the present invention, the first control unit is the application processor of the terminal device.
According to an embodiment of the present invention, first transmission channel is for the external equipment and first control Data communication between unit.
According to an embodiment of the present invention, the third transmission channel is for the universal asynchronous of the first control unit The AccessPort of receiving-transmitting transmitter.
According to an embodiment of the present invention, second control unit is the charging control circuit of the terminal device, The external equipment provides device for power supply, and the 4th transmission channel is provided for the charging control circuit and the power supply Data communication between device.
According to an embodiment of the present invention, the first control unit provides institute for controlling the first USB switch The first transmission channel or second transmission channel are stated, and/or control the 2nd USB switch provides the third transmission channel Or the 4th transmission channel.
According to an embodiment of the present invention, the USB interface is minitype USB interface.
According to an embodiment of the present invention, the USB interface is USB Type C interface, the terminal device further include: 3rd USB switch and audio codec;3rd USB switch respectively with the USB interface, the audio codec and First USB switch connection, the 5th transmission channel being used to provide the described between USB interface and the audio codec or The 6th transmission channel between the USB interface and the first USB switch is provided;5th transmission channel is for described outer Audio data transmission between portion's equipment and the audio codec.
According to another aspect of the present invention, a kind of USB interface-based data transmission method is provided, above-mentioned terminal is applied to In equipment, comprising: by the first transmission channel in the terminal device, connect with by USB interface with the terminal device External equipment transmit data;According to the content of transmission data, the type of the external equipment is detected;And according to the outside The type of equipment controls the first USB switch and the 2nd USB switch in the terminal device.
According to an embodiment of the present invention, according to the type of the external equipment, in the terminal device is controlled One USB switch and the 2nd USB switch include: to control the first USB switch when the external equipment is data communications equipment First transmission channel is provided;When the external equipment is AccessPort equipment, the first USB switch and described is controlled 2nd USB switch provides the third transmission channel in the terminal device;When the external equipment provides device for power supply, control The 4th transmission channel in the first USB switch and the 2nd USB switch offer terminal device is provided.
In accordance with a further aspect of the present invention, a kind of USB interface-based data transmission method is provided, is applied to according to above-mentioned In terminal device, comprising: by the first transmission channel in the terminal device, and pass through USB interface and the terminal device The external equipment of connection transmits data;According to the content of transmission data, the type of the external equipment is detected;And according to described The type of external equipment controls the 3rd USB switch in the terminal device, the first USB switch and the 2nd USB and opens It closes.
According to an embodiment of the present invention, according to the type of the external equipment, in the terminal device is controlled Three USB switch, the first USB switch and the 2nd USB switch include: when the external equipment provides device for audio When, the 5th transmission channel in the 3rd USB switch offer charging equipment is provided;When the external equipment is data When communication equipment, controls the 3rd USB switch and the first USB switch provides first transmission channel;When described outer When portion's equipment is AccessPort equipment, controls the 3rd USB switch, the first USB switch and the 2nd USB switch and mention For the third transmission channel in the terminal device;When the external equipment provides device for power supply, the 3rd USB is controlled Switch, the first USB switch and the 2nd USB switch provide the 4th transmission channel in the terminal device.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium is provided, being stored thereon with computer can hold Row instruction, realizes such as any one of the above method when the executable instruction is executed by processor.
The terminal device that embodiment provides according to the present invention, providing one kind can be with the more of multiplexing USB data line D+/D- Functional switch switching circuit, can more flexible ground using terminal equipment USB interface, while meet data communication, The multiple functions such as UART serial ports mode, power supply adaptor type negotiation.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Invention.
Detailed description of the invention
Its example embodiment is described in detail by referring to accompanying drawing, above and other target of the invention, feature and advantage will It becomes more fully apparent.
Fig. 1 is a kind of block diagram of terminal device shown according to an illustrative embodiments.
Fig. 2 is the block diagram of another terminal device shown according to an illustrative embodiments.
Fig. 3 is a kind of flow chart of USB interface-based data transmission method shown according to an illustrative embodiments.
Fig. 4 is the process according to the USB interface-based data transmission method of another kind shown in an illustrative embodiments Figure.
Fig. 5 is a kind of schematic diagram of computer readable storage medium shown according to an illustrative embodiments.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Attached drawing is only the present invention Schematic illustrations, be not necessarily drawn to scale.Identical appended drawing reference indicates same or similar part in figure, thus Repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In mode.In the following description, many details are provided to provide and fully understand to embodiments of the present invention.So And it will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced and omit one in the specific detail Or more, or can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes Known features, method, apparatus, realization or operation are to avoid a presumptuous guest usurps the role of the host and each aspect of the present invention is made to thicken.
In the present invention unless specifically defined or limited otherwise, the terms such as term " connected ", " connection " should do broad sense reason Solution, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connection, be also possible to electricity Connection can be with communication connection;It can be directly connected, can also can also be two elements indirectly connected through an intermediary The interaction relationship of internal connection or two elements.It for the ordinary skill in the art, can be according to specific Situation understands the concrete meaning of above-mentioned term in the present invention.
In addition, in the description of the present invention, "and/or" describes the incidence relation of affiliated partner, indicate may exist three kinds Relationship, such as A and/or B can indicate individualism A, individualism B and exist simultaneously tri- kinds of situations of A and B.Symbol "/" one As indicate forward-backward correlation object be a kind of "or" relationship.Term " first ", " second " are used for description purposes only, and cannot understand For indication or suggestion relative importance or implicitly indicate the quantity of indicated technical characteristic.Define as a result, " first ", The feature of " second " can explicitly or implicitly include one or more of the features.
Fig. 1 is a kind of block diagram of terminal device shown according to an illustrative embodiments.
Terminal device 10 as shown in Figure 1 for example can be terminal or communication terminal, the terminal or communication terminal include but It is not limited to be configured to connect via Wireline, such as via Public Switched Telephone Network (public switched Telephone network, PSTN), it is digital subscriber line (digital subscriber line, DSL), digital cable, straight Connect cable connection and/or another data connection/network and/or via for example, for cellular network, WLAN (wireless local area network, WLAN), such as hand-held digital video broadcast (digital video Broadcasting handheld, DVB-H) network digital TV network, satellite network, AM/FM amplitude modulation/frequency modulation (amplitude Modulation-frequency modulation, AM-FM) broadcasting transmitter and/or another communication terminal wirelessly connect Mouth reception/transmission signal of communication device.It is configured to that " channel radio can be referred to as by the communication terminal of radio interface communication Letter terminal ", " wireless terminal " and/or " mobile terminal ".The example of mobile terminal includes, but are not limited to satellite or honeycomb electricity Words;It can be with the PCS Personal Communications System of combination cellular radio telephone and data processing, fax and communication ability (personal communication system, PCS) terminal;It may include radio telephone, pager, internet/inline Net access, Web browser, memo pad, calendar and/or global positioning system (global positioning system, GPS) the personal digital assistant (Personal Digital Assistant, PDA) of receiver;And conventional laptop and/or Palmtop receiver or other electronic devices including radiotelephone transceiver.In addition, the terminal can also include but unlimited In equipment such as E-book reader, intelligent wearable devices.
With reference to Fig. 1, terminal device 10 includes: usb 1 01, the first USB switch 102, the 2nd USB switch 103, first Control unit 104 and the second control unit 105.
Wherein, terminal device 10 is connect by usb 1 01 with external equipment 1.
Usb 1 01 for example can be 2.0 interface of USB, micro USB (Micro USB) interface or Type C (TYPE-C) Interface.In some embodiments, usb 1 01 can also be lightning interface or the serial ports of any other type.
First USB switch 102 is connect with usb 1 01, the 2nd USB switch 103 and first control unit 104 respectively, is used The first transmission channel S1 between offer usb 1 01 and first control unit 104, or usb 1 01 and second is provided The second transmission channel S2 between USB switch 103.
2nd USB switch 103 is connect with first control unit and the second control unit respectively, for logical by the second transmission Road S2, provides the third transmission channel S3 between usb 1 01 and first control unit 104, or provides usb 1 01 and the The 4th transmission channel S4 between two control units.
In some embodiments, first control unit 104 for example can be the application processor of terminal device 10.
First USB switch 102 such as may include first end P11, second end P12 and third end P13.First USB switch 102 It is connect by its first end P11 with usb 1 01, is connect by its second end P12 and the data transmission of first control unit 104 Mouth I1 (such as can be BC1.2 interface) is connected, and is connect by its third end P13 with the 2nd USB switch 103.
Wherein, data, the first USB switch 102 and the first control transmitted between usb 1 01 and the first USB switch 102 Between the data and the first USB switch 102 and the 2nd USB switch 103 transmitted between the data transmission interface I1 of unit 104 processed The data of transmission, such as it is based on USB D+/D- protocol communication.
Wherein, the data transmission interface I1 of the first transmission channel S1 connection usb 1 01 and first control unit 104, is used Data communication between external equipment 1 and first control unit 104.
Second transmission channel S2 connection usb 1 01 and the 2nd USB switch 103.
2nd USB switch 103 is as equally may include first end P21, second end P22 and third end P23.2nd USB is opened It closes 103 to connect by its first end P21 and the first USB switch, passes through the UART of its second end P22 and first control unit 104 Interface I2 connection is connect by its third end P23 with the second control unit 105.
Wherein, the data example transmitted between the 2nd USB switch unit 103 and the UART interface I2 of first control unit 104 Such as it is based on UART RX/TX protocol communication.
Wherein, pass through the second transmission channel S2, third transmission channel S3 connection usb 1 01 and first control unit 104 UART interface I2, the AccessPort of the UART for first control unit.
By the second transmission channel S2, the 4th transmission channel S4 connection usb 1 01 and the second control unit 105 are used for Data communication between second control unit 105 and external equipment 1.In some embodiments, external equipment 1 be, for example, and terminal Equipment 10 provides device (such as power supply adaptor, mobile power source equipment) by the power supply that cable is connected, by cable by power supply The electric energy that device provides is provided and is transmitted to terminal device 10, for the charging of terminal device 10.
Second control unit 105 for example can be the charging control circuit of terminal device 10, for example micro-control unit (Micro Control Unit, MCU).The data example transmitted between 2nd USB switch unit 103 and the second control unit 105 MCU D+/D- protocol communication can be such as based on.
In the related art, charging system can usually provide two kinds of " normal charging mode " and " fast charge mode " and fill Power mode.Normal charging mode refers to that adapter exports relatively small current value (usually less than 2.5A) or with relatively small Power (usually less than 15W) charge to the battery in charging equipment.Want to fill completely under normal charging mode Full a larger capacity batteries (such as batteries of 3000 milliampere hour capacity), it usually needs spend several hours time.Quick charge Mode then refer to adapter can export relatively large electric current (typically larger than 2.5A, such as 4.5A, 5A are even higher) or It is charged with relatively large power (typically larger than be equal to 15W) to the battery in charging equipment.Compared to commonly filling For power mode, charging rate of the adapter under fast charge mode faster, is completely filled with required for identical capacity batteries Charging time can be obviously shortened.
It can be general type adapter that power supply, which provides device, and for example, peak power output is 10W (5V/2A), uses Above-mentioned normal charging mode is the power supply adaptor that charging equipment charges;Alternatively, power supply, which provides device, to be the One type quick charge adapter, for example, peak power output be 20W (5V/4A), use above-mentioned fast charge mode for The large power supply adapter that charging equipment charges;Again alternatively, it can also be that Second Type is quick that power supply, which provides device, The High Power Adapter of charging adapter, for example, 50W (10V/5A), uses above-mentioned fast charge mode for charging equipment It charges.
In order to determine that power supply provides the type of device, it usually needs pass through USB data line D+/D- and the second control unit 105 are communicated, such as handshake communication, provide the type of device to negotiate power supply, determine whether to open above-mentioned quick Charge mode.
In practical applications, the first USB switch 102 can be according to corresponding USB interface with the type selecting of the 2nd USB switch 103 Communication protocol selected, invention is not limited thereto.
In some embodiments, for example, can be controlled by first control unit 104 the first USB switch 102 provide first Transmission channel S1 provides the second transmission channel S2, and/or the 2nd USB switch 103 of control offer third transmission channel S3 or the Four transmission channel S4.
Such as at the beginning, the first USB switch 102 can default conducting usb 1 01 and first control unit 104 it Between the first transmission channel S1.In practical applications, such as the VBUS bleeder circuit in terminal device 10 can be connected to first The enabled foot of USB switch 102, the first USB switch 102 of Lai Shixian default conducting usb 1 01 and first control unit 104 it Between the first transmission channel S1.It is logical by the first transmission after external equipment 1 is connect by usb 1 01 with terminal device 10 Road S1 is communicated with first control unit 104, and first control unit 104 can remove identification external equipment according to existing related protocol 1 type is that data communications equipment (such as personal computer equipment) or AccessPort equipment or power supply provide device (such as electricity Source adapter) etc..
Alternatively, can also be by the power management integrated circuit (Power Management IC, PMIC) in terminal device 10 There is provided the first transmission channel S1 or offer the second transmission channel S2 to control the first USB switch 102, and/or the 2nd USB of control is opened It closes 103 and third transmission channel S3 or the 4th transmission channel S4 is provided.
The terminal device that embodiment provides according to the present invention, providing one kind can be with the more of multiplexing USB data line D+/D- Functional switch switching circuit, can more flexible ground using terminal equipment USB interface, while meet data communication, The multiple functions such as UART serial ports mode, power supply adaptor type negotiation.
It will be clearly understood that the present disclosure describe how being formed and using particular example, but the principle of the present invention is not limited to These exemplary any details.On the contrary, the introduction based on present disclosure, these principles can be applied to many other Embodiment.
Fig. 2 is the block diagram of another terminal device shown according to an illustrative embodiments.
Compared to terminal device 10 shown in FIG. 1, terminal device 20 shown in Fig. 2 be can further include: the 3rd USB Switch 201 and audio codec 202.
In order to support that audio data transfer function, usb 1 01 are, for example, the TYPE-C that audio data can be supported to transmit Interface.
As shown in Fig. 2, the 3rd USB switch 201 is switched with usb 1 01, audio codec 202 and the first USB respectively 102 connections, for providing the 5th transmission channel S5 between usb 1 01 and audio codec 202 or providing USB interface 101 and the first the 6th transmission channel S6 between USB switch 102.
Wherein the 5th transmission channel S5 is for the sound between external equipment 1 (such as audio frequency apparatus) and audio codec 202 Frequency is according to transmission.
It should be noted that first transmission channel S1 need to pass through the 6th transmission channel in terminal device 20 shown in Fig. 2 S6 provides the connection between usb 1 01 and the data transmission interface I1 of first control unit 104, and the second transmission channel S2 is needed The connection between usb 1 01 and the 2nd USB switch 103 is provided by the 6th transmission channel S6, third transmission channel S3 need to lead to Cross the 6th transmission channel S6, the second transmission channel S2 provide usb 1 01 and first control unit 104 UART interface I2 it Between connection, the 4th transmission channel S4 then need by the 6th transmission channel S6, the second transmission channel S2 provide usb 1 01 with Connection between second control unit 105.
3rd USB switch 201 such as may include first end P31, second end P32 and third end P33.3rd USB switch 201 Connect by its first end P31 with usb 1 01, connect by its second end P32 with audio codec 202, by its Three end P33 are connect with the first end P11 of the first USB switch 102.
Other connection types of first USB switch 102 and the 2nd USB switch 103 are identical as shown in Fig. 1, herein not It repeats again.
The terminal device that embodiment provides according to the present invention, it is defeated can to further realize the audio based on USB TYPE-C Function out.
It should be noted that above-mentioned block diagram shown in the drawings is functional entity, not necessarily must with physically or logically Independent entity is corresponding.Can realize these functional entitys using software form, or in one or more hardware modules or These functional entitys are realized in integrated circuit, or are realized in heterogeneous networks and/or processor device and/or microcontroller device These functional entitys.
Following is embodiment of the present invention method, be can be applied in apparatus of the present invention embodiment.For the method for the present invention reality Undisclosed details in example is applied, apparatus of the present invention embodiment is please referred to.
Fig. 3 is a kind of flow chart of USB interface-based data transmission method shown according to an illustrative embodiments.
USB interface-based data transmission method 30 shown in Fig. 3 such as can be applied in above-mentioned terminal device 10, It is mainly used in first control unit 104, a kind of controlling party to the first USB switch 102, the 2nd USB switch 103 is provided Method.
With reference to Fig. 3, USB interface-based data transmission method 30 includes:
In step s 302, it by the first transmission channel in terminal device, is connect with by USB interface with terminal device External equipment transmit data.
In step s 304, according to the content of transmission data, the type of external equipment is detected.
In step S306, according to the type of external equipment, the first USB in controlling terminal equipment is switched and the 2nd USB Switch.
In some embodiments, step S306 can further include: when external equipment is data communications equipment, control It makes the first USB switch and the first transmission channel is provided;When external equipment is AccessPort equipment, the first USB of control switch and the Two USB switch provides the third transmission channel in terminal device;When external equipment provides device for power supply, the first USB is controlled Switch and the 2nd USB switch provide the 4th transmission channel in terminal device.
The USB interface-based data transmission method that embodiment provides according to the present invention, it is further provided how right The control method of each USB switch in above-mentioned terminal device 10 or 20, so as to allow the USB interface of terminal device to use more Add flexibly.
Fig. 4 is the process according to the USB interface-based data transmission method of another kind shown in an illustrative embodiments Figure.
Similarly, USB interface-based data transmission method 40 shown in Fig. 4 such as can be applied to above-mentioned terminal device In 20, which are mainly applied in first control unit 104, provide it is a kind of to the first USB switch 102, the 2nd USB switch 103 and The control method of 3rd USB switch 201.
With reference to Fig. 4, USB interface-based data transmission method 40 includes:
In step S402, by the first transmission channel in terminal device, it is connect with by USB interface with terminal device External equipment transmit data.
In step s 404, according to the content of transmission data, the type of external equipment is detected.
In step S406, according to the type of external equipment, the 3rd USB switch, the first USB in controlling terminal equipment are opened It closes and the 2nd USB is switched.
In some embodiments, step S406 can further include: when external equipment provides device for audio, control The 5th transmission channel in 3rd USB switch offer charging equipment is provided;When external equipment is data communications equipment, control the Three USB switch and the first USB switch provide the first transmission channel;When external equipment is AccessPort equipment, the 3rd USB is controlled Switch, the first USB switch and the 2nd USB switch provide the third transmission channel in terminal device;When external equipment mentions for power supply When for device, it is logical that the 3rd USB of control switch, the first USB switch and the 2nd USB switch provide the 4th transmission in terminal device Road.
It should be noted that above-mentioned attached drawing is only processing included by the method for illustrative embodiments according to the present invention It schematically illustrates, rather than limits purpose.It can be readily appreciated that above-mentioned processing shown in the drawings does not indicate or limits these processing Time sequencing.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Fig. 5 is a kind of schematic diagram of computer readable storage medium shown according to an illustrative embodiments.
Refering to what is shown in Fig. 5, describing the program product for being set as realizing the above method of embodiment according to the present invention 900, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on smart phone, PC.However, program product of the invention is without being limited thereto, and in this document, readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by one When the equipment executes, so that the computer-readable medium realizes function as illustrated in fig. 1 or fig. 2.
It is particularly shown and described exemplary embodiments of the present invention above.It should be appreciated that the present invention is unlimited In detailed construction described herein, set-up mode or implementation method;On the contrary, it is intended to cover included in appended claims Spirit and scope in various modifications and equivalence setting.

Claims (13)

1. a kind of terminal device characterized by comprising USB interface, the first USB switch, the 2nd USB switch, the first control are single Member and the second control unit;
Wherein, the terminal device is connect by the USB interface with external equipment;
The first USB switch is connect with USB interface, the 2nd USB switch and the first control unit respectively, for mentioning For the first transmission channel between the USB interface and the first control unit or provide the USB interface and described second The second transmission channel between USB switch;
The 2nd USB switch is connect with the first control unit and second control unit respectively, for by described Second transmission channel provides the third transmission channel between the USB interface and the first control unit or provides the USB The 4th transmission channel between interface and second control unit.
2. terminal device according to claim 1, which is characterized in that the first control unit is the terminal device Application processor.
3. terminal device according to claim 2, which is characterized in that first transmission channel is used for the external equipment With the data communication between the first control unit.
4. terminal device according to claim 2, which is characterized in that the third transmission channel is for first control The AccessPort of the universal asynchronous receiving-transmitting transmitter of unit.
5. terminal device according to claim 2, which is characterized in that second control unit is the terminal device Charging control circuit, the external equipment provide device for power supply, and the 4th transmission channel is used for the charging control circuit The data communication between device is provided with the power supply.
6. terminal device according to claim 2, which is characterized in that the first control unit is for controlling described first USB switch provides first transmission channel or second transmission channel, and/or control the 2nd USB switch provides institute State third transmission channel or the 4th transmission channel.
7. terminal device according to claim 1, which is characterized in that the USB interface is minitype USB interface.
8. terminal device according to claim 1-6, which is characterized in that the USB interface is that USB Type C connects Mouthful, the terminal device further include: the 3rd USB switch and audio codec;3rd USB switch respectively with the USB Interface, the audio codec and the first USB switch connection, are used to provide the described USB interface and the audio is compiled and solved The 6th transmission channel between the 5th transmission channel or the offer USB interface between code device and the first USB switch;Institute The 5th transmission channel is stated for the audio data transmission between the external equipment and the audio codec.
9. a kind of USB interface-based data transmission method, sets applied to terminal according to claim 1-7 It is standby characterized by comprising
By the first transmission channel in the terminal device, set with the outside being connect by USB interface with the terminal device Standby transmission data;
According to the content of transmission data, the type of the external equipment is detected;And
According to the type of the external equipment, the first USB switch and the 2nd USB switch in the terminal device are controlled.
10. according to the method described in claim 9, it is characterized in that, controlling the terminal according to the type of the external equipment The first USB switch and the 2nd USB switch in equipment include:
When the external equipment is data communications equipment, controls the first USB switch and first transmission channel is provided;
When the external equipment is AccessPort equipment, controls the first USB switch and the 2nd USB switch provides institute State the third transmission channel in terminal device;
When the external equipment provides device for power supply, controls the first USB switch and the 2nd USB switch provides institute State the 4th transmission channel in terminal device.
11. a kind of USB interface-based data transmission method is applied to terminal device according to claim 8, feature It is, comprising:
By the first transmission channel in the terminal device, set with the outside being connect by USB interface with the terminal device Standby transmission data;
According to the content of transmission data, the type of the external equipment is detected;And
According to the type of the external equipment, control in the terminal device the 3rd USB switch, the first USB switch and The 2nd USB switch.
12. according to the method for claim 11, which is characterized in that according to the type of the external equipment, control the end The 3rd USB switch, the first USB switch and the 2nd USB switch in end equipment include:
When the external equipment provides device for audio, controls the 3rd USB switch and provide in the charging equipment 5th transmission channel;
When the external equipment is data communications equipment, controls the 3rd USB switch and the first USB switch provides institute State the first transmission channel;
When the external equipment is AccessPort equipment, the 3rd USB switch is controlled, the first USB is switched and described 2nd USB switch provides the third transmission channel in the terminal device;
When the external equipment provides device for power supply, the 3rd USB switch is controlled, the first USB is switched and described 2nd USB switch provides the 4th transmission channel in the terminal device.
13. a kind of computer readable storage medium, is stored thereon with computer executable instructions, which is characterized in that described to hold Row instruction realizes such as the described in any item methods of claim 9-12 when being executed by processor.
CN201910857925.0A 2019-09-09 2019-09-09 Terminal device and USB interface-based data transmission method Pending CN110442541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910857925.0A CN110442541A (en) 2019-09-09 2019-09-09 Terminal device and USB interface-based data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910857925.0A CN110442541A (en) 2019-09-09 2019-09-09 Terminal device and USB interface-based data transmission method

Publications (1)

Publication Number Publication Date
CN110442541A true CN110442541A (en) 2019-11-12

Family

ID=68439893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910857925.0A Pending CN110442541A (en) 2019-09-09 2019-09-09 Terminal device and USB interface-based data transmission method

Country Status (1)

Country Link
CN (1) CN110442541A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199311A (en) * 2020-09-25 2021-01-08 深圳市诚芯微科技有限公司 Multi-channel power supply and data transmission switching circuit and data line

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090007892A (en) * 2007-07-16 2009-01-21 주식회사 현대오토넷 An av system and a control method having usb/uart common connector
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN102158575A (en) * 2011-02-21 2011-08-17 深圳桑菲消费通信有限公司 Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface
CN102546869A (en) * 2012-01-06 2012-07-04 海能达通信股份有限公司 USB (Universal Serial Bus) interface multiplexing interphone and control method thereof
CN102929824A (en) * 2012-10-15 2013-02-13 天地融科技股份有限公司 System for multiplexing USB (Universal Serial Bus) interface transmission data
CN106301342A (en) * 2016-08-09 2017-01-04 广东欧珀移动通信有限公司 Interface circuit and terminal unit
CN107613126A (en) * 2017-09-26 2018-01-19 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090007892A (en) * 2007-07-16 2009-01-21 주식회사 현대오토넷 An av system and a control method having usb/uart common connector
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN102158575A (en) * 2011-02-21 2011-08-17 深圳桑菲消费通信有限公司 Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface
CN102546869A (en) * 2012-01-06 2012-07-04 海能达通信股份有限公司 USB (Universal Serial Bus) interface multiplexing interphone and control method thereof
CN102929824A (en) * 2012-10-15 2013-02-13 天地融科技股份有限公司 System for multiplexing USB (Universal Serial Bus) interface transmission data
CN106301342A (en) * 2016-08-09 2017-01-04 广东欧珀移动通信有限公司 Interface circuit and terminal unit
CN107613126A (en) * 2017-09-26 2018-01-19 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199311A (en) * 2020-09-25 2021-01-08 深圳市诚芯微科技有限公司 Multi-channel power supply and data transmission switching circuit and data line

Similar Documents

Publication Publication Date Title
CN108695921B (en) Data backup method, wireless charging device, mobile terminal and storage medium
US7346368B2 (en) Method and mobile device for operating in different data transfer modes
CN101237256B (en) Electronic device and NFC-control method based on other electronic device
US8725110B2 (en) Mobile communication terminal and method for managing SIM cards
US8335870B2 (en) Method of controlling mobile terminal on external device basis and external device operating system using the same
CN103475077B (en) With the mobile phone wireless recharging base of data sending function and the described pedestal method to the transmission data of wireless charging mobile phone
CN202167034U (en) Peripheral application device and mobile terminal system
KR102052443B1 (en) System for performing charging and data communication
KR20150066876A (en) Method for controlling an user interface and an electronic device
CN103092658A (en) Intelligent mobile communication terminal application program installation method and system
CN102202132B (en) Method, system and equipment for initializing networking equipment
CN106170926A (en) The method of mobile payment, device and near-field communication equipment
CN110442541A (en) Terminal device and USB interface-based data transmission method
CN101420709B (en) Method for displaying operator file, mobile terminal and background software equipment
CN101111020A (en) Portable electronic communication device system
CN117318221A (en) Charging chip, charging device and mobile terminal
CN216979751U (en) Multifunctional docking station
CN216625389U (en) Wireless charging equipment
CN112713627B (en) Voltage control method, voltage control device, storage medium, and electronic apparatus
CN105577855A (en) Mobile terminal system and mobile terminal implementing method
CN212304801U (en) Multifunctional charger
CN218998085U (en) ESIM communication bus structure and terminal
CN117440060B (en) Communication conversion device, electronic equipment, system and method
CN106681437A (en) Carrying equipment and electronic equipment accessory
CN201788440U (en) Mobile information terminal

Legal Events

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

Application publication date: 20191112