CN106502939A - A kind of USB adapters and data transmission set - Google Patents

A kind of USB adapters and data transmission set Download PDF

Info

Publication number
CN106502939A
CN106502939A CN201610846879.0A CN201610846879A CN106502939A CN 106502939 A CN106502939 A CN 106502939A CN 201610846879 A CN201610846879 A CN 201610846879A CN 106502939 A CN106502939 A CN 106502939A
Authority
CN
China
Prior art keywords
equipment
port
usb
data
circuit module
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.)
Granted
Application number
CN201610846879.0A
Other languages
Chinese (zh)
Other versions
CN106502939B (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610846879.0A priority Critical patent/CN106502939B/en
Publication of CN106502939A publication Critical patent/CN106502939A/en
Application granted granted Critical
Publication of CN106502939B publication Critical patent/CN106502939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

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

Abstract

The invention discloses a kind of USB adapters and data transmission set, belong to technical field of data transmission.The USB adapters include:Adapter body, the USB circuit module for being formed in adapter body interior and the control module for being formed in adapter body interior.The disclosure is electrically connected with USB circuit module by control module, control module is used for detecting and judge that equipment that second port is connected by data cable to be main equipment still from equipment, and according to judged result control USB circuit module mode of operation be charge mode, non- OTG data-transmission modes or OTG data-transmission modes, the USB adapters that embodiment of the disclosure is provided are coordinated with data wire realizes that passing through main equipment is charging of mobile devices or carries out non-OTG data transfers between main equipment and mobile device, also can and OTG lines coordinate and realize in mobile device and from carrying out OTG data transfers between equipment.

Description

A kind of USB adapters and data transmission set
Technical field
It relates to data transmission set field, more particularly to a kind of USB (Universal Serial Bus, general Universal serial bus) adapter and data transmission set.
Background technology
The USB interface of smart mobile phone bottom be used for for smart mobile phone charge or carry out data transmission, with smart mobile phone light The development trend of thinning, Type-C interfaces are arisen at the historic moment, and support that data wire positive and negative can be inserted into and relatively thin advantage by which, Adopted by each brand smart mobile phone newly developed.But the regular hour is needed as product completes thoroughly to update, The USB interface of the smart mobile phone that sells in the market still based on Micro USB interfaces, the popularization dynamics of Type-C interfaces Also very big deficiency, in order to avoid because forget carry Type-C interfaces data wire when cannot to smart mobile phone charge or enter line number According to transmission, user is frequently used Type-C adapters connection smart mobile phone and the data wire using Micro USB interfaces, by adopting Coordinated with Type-C adapters with the data wire of MicroUSB interfaces, realize charging the smart mobile phone using Type-C interfaces or Non- OTG data transfers.
Current USB Type-C adapters include adapter body and are formed in the USB circuit mould of adapter body interior Block, adapter body include that Micro USB sockets end and Type-C plug ends, the pin of USB circuit module are formed in Micro USB socket end and Type-C plug ends, Micro USB sockets end are used for being connected with the data wire using Micro USB interfaces, lead to The data wire connection main equipment such as power supply or computer using Micro USB interfaces is crossed, is connected by by Type-C plug ends The smart mobile phone of Type-C interfaces, makes the main equipments such as power supply or computer charge smart mobile phone by USB circuit module, or in electricity Brain etc. carries out non-OTG data transfers between main equipment and smart mobile phone.
Content of the invention
For overcoming problem present in correlation technique, the disclosure to provide a kind of USB adapters and data transmission set.
In a first aspect, the embodiment of the present disclosure provides a kind of USB adapters, the USB adapters include:Adapter sheet Body, the USB circuit module for being formed in the adapter body interior and it is formed in the control module of the adapter body interior;
The adapter body includes that first port and second port, the first port are used for connecting mobile device, institute Second port is stated for by data cable connection main equipment or from equipment;
The pin of the USB circuit module is formed at the first port and at the second port;
The control module is electrically connected with the USB circuit module, for detecting and judging the second port by number According to cable connect equipment be main equipment still from equipment;
When the control module judges equipment that the second port connected by data cable for main equipment, the control It is charge mode or non-OTG data-transmission modes that molding block controls the mode of operation of the USB circuit module;
When it is from equipment by the equipment that data cable connects that the control module judges the second port, the control It is OTG data-transmission modes that molding block controls the mode of operation of the USB circuit module.
Alternatively, the control module includes detector unit and switch switching unit;
The detector unit is electrically connected with the USB circuit module, and the detector unit is used for detecting and judging described the The equipment that Two-port netwerk is connected by data cable is main equipment still from equipment;
The switch switching unit is electrically connected with the detector unit and the USB circuit module, for according to described The testing result of detector unit controls the mode of operation of the USB circuit module.
Alternatively, the USB circuit module includes that power line, ground wire, malleation data wire, negative pressure data wire, configuration are logical Road, ID lines and ID control circuits;
The two ends of the power line, the ground wire, the malleation data wire and the negative pressure data wire are respectively described Pin is formed at first port and at the second port;
One end of the collocation channel forms collocation channel pin at the first port, and the other end is cut with the switch Change unit electrical connection;
One end of the ID lines forms ID pins at the second port, and the ID pins are electrically connected with the detector unit Connect, the other end of the ID lines is electrically connected with the ground wire by the ID control circuits, the ID control circuits are used for When the equipment that the second port is connected by data cable is main equipment, the company between the ID lines and the ground wire is controlled Disconnection is connect, when it is from equipment that the second port is by the equipment that data cable connects, the ID lines and the ground connection is controlled Connection is kept between line.
Alternatively, the detector unit includes detection part and judgment sub-unit;
The detection part is electrically connected with the ID pins, for detect the ID pins to ground impedance;
The judgment sub-unit is electrically connected with the detection part and the switch switching unit respectively, for according to described To ground impedance, ID pins judge that equipment that the second port is connected by data cable is main equipment still from equipment.
Preferably, when the ID pins to ground impedance are more than the first preset resistive value, the judgment sub-unit judges institute It is main equipment that second port is stated by the equipment that data cable connects;
Second preset resistive value is less than first preset resistive value, when the ID pins to ground impedance are less than described second pre- During handicapping value, the judgment sub-unit judges that the second port is from equipment by the equipment that data cable connects.
Preferably, first preset resistive value is 100 kilohms, and second preset resistive value is 10 ohm.
Alternatively, the switch switching unit includes switch switching circuit, pull-up resistor and pull down resistor;
The switch switching circuit is electrically connected with the detector unit and the collocation channel respectively, the pull-up resistor with The power line electrical connection, the pull down resistor is electrically connected with the ground wire, and the pull-up resistor and the pull down resistor Electrically connect with the switch switching circuit respectively, the pull-up resistor and the drop-down electricity are controlled by the switch switching circuit One of resistance is connected with the collocation channel;
When the detector unit judges equipment that the second port connected by data cable for main equipment, described open Close the switching circuit control pull-up resistor to connect with the collocation channel, the voltage high of the collocation channel pin makes The mode of operation for obtaining the USB circuit module is charge mode or non-OTG data-transmission modes;
When it is from equipment by the equipment that data cable connects that the detector unit judges the second port, described open Close the switching circuit control pull down resistor to connect with the collocation channel, the voltage pull-down of the collocation channel pin makes The mode of operation for obtaining the USB circuit module is OTG data-transmission modes.
Preferably, the resistance of the pull-up resistor is 56 ± 11.2 kilohms, the resistance of the pull down resistor is 5.1 ± 1.02 kilohm.
Preferably, the control module is integrated on the chip of the adapter body interior.
Preferably, the first port is Type-C plugs, and the second port is Micro USB sockets.
Second aspect, the another embodiment of the disclosure provide a kind of data transmission set, and the data transmission set includes Described USB adapters.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:
The disclosure is electrically connected with USB circuit module by control module, and control module is used for detecting and judging second port The equipment connected by data cable be main equipment still from equipment, and the work according to judged result control USB circuit module Pattern is charge mode, non-OTG data-transmission modes or OTG data-transmission modes so that the USB that embodiment of the disclosure is provided Adapter can be coordinated with data wire to be realized entering for charging of mobile devices or between main equipment and mobile device by main equipment The non-OTG data transfers of row, also can and OTG lines coordinate and realize in mobile device and from carrying out OTG data transfers between equipment.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement for meeting the disclosure Example, and the principle for being used for explaining the disclosure together with specification.
Fig. 1 is the electrical block diagram of the USB adapters according to an exemplary embodiment;
Fig. 2 is the use state schematic diagram of the USB adapters according to an exemplary embodiment.
Wherein:
1 adapter body,
11 first ports,
12 second ports,
2 control modules,
21 detector units, 211 detection parts, 212 judgment sub-units,
22 switch switching units, 221 circuit handover modules, 222 pull-up resistors, 222 pull down resistors,
3USB circuit modules, 31 power lines, 32 ground wires, 33 malleation data wires, 34 negative pressure data wires, 35 collocation channels, 36ID lines, 37ID control circuits,
4 mobile devices,
5 data cables,
The equipment that 6 second ports are connected by data cable.
Specific embodiment
Purpose, technical scheme and advantage for making the disclosure is clearer, below in conjunction with accompanying drawing to disclosure embodiment party Formula is described in further detail.
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with as appended by The example of consistent apparatus and method in terms of some that described in detail in claims, the disclosure.
The USB circuit module of existing Type-C adapters includes power line, ground wire, malleation data wire, negative pressure data Line and collocation channel, power line, ground wire, malleation data wire and negative pressure data wire are inserted in Type-C plug ends and Micro USB Seat end is correspondingly formed power pins, grounding pin, malleation data pin and negative pressure data pin, and collocation channel is in Type-C plugs End forms collocation channel pin, and collocation channel is electrically connected with power line by pull-up circuit, by Type-C plug ends and intelligence Type-C interfaces connection on mobile phone.When existing Type-C adapters are by its Micro USB socket and Micro USB interfaces Data wire connect when, smart mobile phone as from the main equipments such as equipment, power supply or computer by power line to Type-C adapters Power supply, makes collocation channel pull up the voltage of collocation channel pin, on the collocation channel pin on adapter and smart mobile phone There is voltage difference between collocation channel pin, enter for smart mobile phone charging or between computer and smart mobile phone so as to pass through power supply The non-OTG data transfers of row, wherein, non-OTG data transfers refer to there is computer etc between two equipment for carrying out data transmission Main frame when, the data transfer carried out between main frame and mobile device.
When being coordinated with OTG lines using existing Type-C adapters, OTG lines cannot change the electricity of collocation channel pin Pressure, causes the voltage on collocation channel pin realize OTG data-transformation facilities in pull-up state all the time, wherein, OTG When data transfer refers to the main frame between two equipment for carrying out data transmission without computer etc, in two mobile devices Person serves as main frame, the data transfer carried out between two mobile devices.
It will be understood by those skilled in the art that the main equipment described in the either exemplary embodiment of the disclosure, including The acquiescence such as computer, charger or portable power source serves as the equipment of main frame, includes mouse, keyboard, USB flash disk or portable hard drive etc. from equipment Acquiescence serves as equipment from equipment, mobile device, including smart mobile phone, digital camera, MP3, MP4, MP5 or panel computer etc. both Main frame can be served as and can serve as mobile terminal device from equipment again, data-interface thereon possesses OTG data-transformation facilities With non-OTG data-transformation facilities, and the data-interface on the mobile device can be USB port, Micro USB ports or USB Type-C mouths etc., the data-interface in an exemplary embodiment of the disclosure, with mobile device as smart mobile phone, on mobile device For illustrating as a example by Type-C interfaces, when the data-interface on mobile device be Type-C interfaces when, the disclosure exemplary The first port of the USB adapters that embodiment is provided is Type-C plugs, and second port is Micro USB sockets, in the disclosure Exemplary embodiment in, the particular type of mobile device and data interface type thereon are not limited.
As shown in figure 1, and illustrate with reference to Fig. 2, an exemplary embodiment of the disclosure is transferred there is provided a kind of USB Head, the USB adapters include:Adapter body 1, the USB circuit module 3 being formed in inside adapter body 1 and be formed in turn Control module 2 inside joint body 1;
Adapter body 1 includes that first port 11 and second port 12, first port 11 are used for connecting mobile device 4, the Two-port netwerk 12 is used for connecting main equipment or from equipment by data cable 5;
The pin of USB circuit module 3 is formed at first port 11 and at second port 12;
Control module 2 is electrically connected with USB circuit module 3, for detecting and judging that second port 12 is connected by data cable 5 The equipment 6 for connecing be main equipment still from equipment;
When control module 2 judges equipment 6 that second port 12 connected by data cable 5 for main equipment, control module 2 The mode of operation for controlling USB circuit module 3 is charge mode or non-OTG data-transmission modes;
When it is from equipment that control module 2 judges the equipment 6 that second port 12 is connected by data cable 5, control module 2 The mode of operation for controlling USB circuit module 3 is OTG data-transmission modes.
In an exemplary embodiment of the disclosure, data cable 5 includes data wire and OTG lines, and data wire is used for connection the Two-port netwerk 12 and main equipment, OTG lines are used for connecting second port 12 and from equipment.When second port 12 is by data wire connection master During equipment, mobile device 4 serves as from equipment, and the mode of operation of USB circuit module 3 is charge mode or non-OTG data transfers mould Formula, wherein, it will be understood by those skilled in the art that non-OTG data-transmission modes are generally accompanied by charge mode.If main equipment is Charger or portable power source, then the mode of operation of USB circuit module 3 is charge mode, and main equipment can pass through USB circuit module 3 Charge for mobile device 4;If main equipment is computer, the mode of operation of USB circuit module 3 is charge mode or non-OTG data Transmission mode, main equipment can be charged for mobile device 4 by USB circuit module 3, or enter between main equipment and mobile device 4 While row non-OTG data transfers, main equipment is charged for mobile device 4 by USB circuit module 3.
When second port 12 is connected from equipment by OTG lines, mobile device 4 serves as main equipment, and control module 2 is controlled The mode of operation of USB circuit module 3 is OTG data-transmission modes, it will be understood by those skilled in the art that in OTG data transfers Under pattern, the equipment for serving as main equipment is to serve as to power from the equipment of equipment, therefore, in an exemplary embodiment of the disclosure, When the mode of operation that control module 2 controls USB circuit module 3 is OTG data-transmission modes, mobile device 4 passes through USB circuit Module 3 is to power from equipment, while can be in mobile device 4 and from carrying out OTG data transfers between equipment.
Wherein, main equipment and the particular type from equipment are judged by mobile device 4.
The disclosure is electrically connected with USB circuit module 3 by control module 2, and control module 2 is used for detecting and judging the second end Mouthfuls 12 by the equipment 6 that data cable 5 connects be main equipment still from equipment, and according to judged result control USB circuit module 3 Mode of operation be charge mode, non-OTG data-transmission modes or OTG data-transmission modes so that embodiment of the disclosure is carried For USB adapters can with data wire coordinate realize charge for mobile device 4 by main equipment or main equipment with move set Non- OTG data transfers are carried out between standby 4, also can and OTG lines coordinate and realize in mobile device and from carrying out OTG data between equipment Transmission.
Referring to Fig. 2, in the further example embodiment of the disclosure, control module 2 can be integrated in adapter body 1 On the chip in portion, which includes detector unit 21 and switch switching unit 22;
Detector unit 21 is electrically connected with USB circuit module 3, and detector unit 21 is used for detecting and judging that second port 12 passes through Data cable 5 connection equipment 6 be main equipment still from equipment;
Switch switching unit 22 is electrically connected with detector unit 21 and USB circuit module 3, for according to detector unit 21 The mode of operation of judged result control USB circuit module 3.
In the further example embodiment of the disclosure, when detector unit 21 judges that second port 12 passes through data cable 5 The equipment 6 of connection be main equipment when, switch switching unit 22 by the mode of operation of USB circuit module 3 switch to charge mode or Non- OTG data-transmission modes;When detector unit 21 judges that the equipment 6 that second port 12 is connected by data cable 5 is from equipment When, the mode of operation of USB circuit module 3 is switched to OTG data-transmission modes by switch switching unit 22.
As shown in figure 1, in the further example embodiment of the disclosure, USB circuit module 3 includes power line 31, ground connection Line 32, malleation data wire 33, negative pressure data wire 34, collocation channel 35, ID lines 36 and ID control circuits 37;
The two ends of power line 31, ground wire 32, malleation data wire 33 and negative pressure data wire 34 are respectively at first port 11 With formation pin at second port 12;
One end of collocation channel 35 forms collocation channel pin, the other end and switch switching unit 22 at first port 11 Electrical connection;
One end of ID lines 36 forms ID pins at second port 12, and ID pins are electrically connected with detector unit 21, ID lines 36 The other end be connected with ground wire 32 by ID control circuits 37, ID control circuits 37 be used for second port 12 pass through data wire When the equipment 6 of the connection of cable 5 is main equipment, the connection controlled between ID lines 36 and ground wire 32 disconnects, and passes through in second port 12 The equipment 6 of the connection of data cable 5 be from equipment when, keep connecting between control ID lines 36 and ground wire 32.
Wherein, it is this that power line 31 and ground wire 32 are used for by mobile device 4 or the equipment 6 being connected with second port 12 The USB adapters that disclosed exemplary embodiment is provided provide 3.3V voltage-stabilized power supplies, think that the USB adapters are powered, malleation number It is used for data transfer according to line 33 and negative pressure data wire 34, collocation channel 35 is used for the mode of operation for determining USB circuit module, ID lines 36 are used for determining mobile device 4 and main equipment or from the master slave relation between equipment that ID control circuits 37 to be used for controlling ID lines 36 Whether connect between ground wire 32, power line 31, ground wire 32, malleation data wire 33 and negative pressure data wire 34 can bases Type-C agreements or Micro usb protocols are arranged, reduce the exploitation of the USB adapters that the exemplary embodiment of the disclosure is provided into Sheet and development amount.
In an exemplary embodiment of the disclosure, the mode of operation of USB circuit module 3 can be defaulted as OTG data transfers Pattern, namely when the equipment 6 that second port 12 is connected by data cable 5 is from equipment, switch switching unit 22 is failure to actuate, The mode of operation of USB circuit module remains charge mode or non-OTG data transfers, when being connected from equipment with mobile device 4 Afterwards, the USB adapters that provide of exemplary embodiment by mobile device 4 for the disclosure are powered, with by the example of the disclosure Property embodiment provide USB adapters be charged or non-OTG data transfers work;When second port 12 passes through data cable 5 When the equipment 6 of connection is main equipment, main equipment makes switch switching unit 22 by the mode of operation of USB circuit module 3 by OTG data Transmission mode switches to charge mode or non-OTG data-transmission modes, with the USB provided by the exemplary embodiment of the disclosure Adapter carries out OTG data transfer work.
As shown in figure 1, in the further example embodiment of the disclosure, detector unit 21 includes detection part 211 and sentences Disconnected subelement 212;
Detection part 211 is electrically connected with ID pins, for detect ID pins to ground impedance;
Judgment sub-unit 212 is electrically connected with detection part 211 and switch switching unit 22 respectively, for according to ID pins It is main equipment still from equipment to judge that second port 12 passes through the equipment 6 that connects of data cable 5 to ground impedance.
In an exemplary embodiment of the disclosure, the other end of ID lines 36 is electrically connected with ground wire 32 by ID control circuits 37 Connect, acquiescence ID pin ground connection, when second port 12 is main equipment by the equipment 6 that data cable 5 connects, the main equipment passes through Data cable 5 is input into a rising edge signal, the control ID of ID control circuits 37 lines 36 and ground wire 32 to ID control circuits 37 Connection disconnects, and ID pins are hanging so that ID pins big to ground resistance resistance, in the company for disconnecting second port 12 and data cable 5 When connecing, main equipment is input into a trailing edge signal by data cable 5 to ID control circuits 37, and ID control circuits 37 control ID lines 36 are connected with ground wire 32, and ID pins are grounded;And when the equipment 6 that second port 12 is connected by data cable 5 is from equipment, Due to being powered to the USB adapters that the exemplary embodiment of the disclosure is provided by data cable from equipment, ID control electricity Road 37 is failure to actuate, and ID lines 36 are remained and are connected with ground wire 32, ID pins keep ground connection, ID pins less to ground impedance, Therefore can by detect ID pins to ground impedance judge second port 12 pass through the equipment 6 that connects of data cable 5 for main equipment also It is from equipment.
Wherein, according to ID pins to ground impedance, judgment sub-unit 212 judges that second port 12 is connected by data cable 5 Equipment 6 be main equipment or specifically include from equipment:
When ID pins to ground impedance are more than the first preset resistive value, judgment sub-unit 212 judges that second port 12 passes through The equipment 6 of the connection of data cable 5 is main equipment;
Second preset resistive value is less than the first preset resistive value, when ID pins to ground impedance are less than the second preset resistive value, sentences Disconnected subelement 212 judges that the equipment 6 that second port 12 is connected by data cable 5 is from equipment.
In an exemplary embodiment of the disclosure, the first preset resistive value is 100 kilohms, and the second preset resistive value is 10 Europe Nurse, when detection part 211 detects when being more than 100 kilohms to ground impedance of ID pins, shows that ID pins are suspended, judges son Unit 212 judges equipment 6 that second port 12 connected by data cable 5 for main equipment, and control USB is electric for switch switching unit 22 The mode of operation of road module 3 is charge mode or non-OTG data-transmission modes;When detection part 211 detects arriving for ID pins When ground impedance is less than 10 ohm, show that ID pins are grounded, judgment sub-unit 212 judges that second port 12 is connected by data cable 5 The equipment 6 for connecing is that it is OTG data-transmission modes that switch switching unit 22 controls the mode of operation of USB circuit module 3 from equipment.
In the further example embodiment of the disclosure, if detector unit 21 detect ID pins to ground impedance be more than 10 Ohm and during less than 100 kilohms, judgment sub-unit 212 can determine whether that the equipment 6 that second port 12 is connected by data cable 5 is Non-standard equipment, switch switching unit 22 can not make any process.
As shown in figure 1, in the further example embodiment of the disclosure, switch switching unit 22 includes switch switching circuit 221st, pull-up resistor 222 and pull down resistor 223;
Switch switching circuit 221 is electrically connected with detector unit 21 and collocation channel 35 respectively, pull-up resistor 222 and power line 31 electrical connections, pull down resistor 223 are electrically connected with ground wire 32, and pull-up resistor 222 and pull down resistor 223 are switched with switch respectively Circuit 221 is electrically connected, and controls one of pull-up resistor 222 and pull down resistor 223 by switch switching circuit 221 logical with configuration Connect in road 35;
When detector unit 21 judges equipment 6 that second port 12 connected by data cable 5 for main equipment, switch switches The control pull-up resistor 222 of circuit 221 is connected with collocation channel 35, by the voltage high of collocation channel pin so that USB circuit mould The mode of operation of block 3 is charge mode or non-OTG data-transmission modes;
When it is from equipment that detector unit 21 judges the equipment 6 that second port 12 is connected by data cable 5, switch switching The control pull down resistor 223 of circuit 221 is connected with collocation channel 35, by the voltage pull-down of collocation channel pin so that USB circuit mould The mode of operation of block 3 is OTG data-transmission modes.
In the further example embodiment of the disclosure, switch switching circuit 221 is set by movement with judgment sub-unit 212 Standby 4 with main equipment or serve as one of main equipment power supply (power supply circuits not shown in figure) from equipment, give tacit consent to pull down resistor 223 Remain up with collocation channel 35, and pull-up resistor 222 is disconnected with collocation channel 35, switch switching circuit 221 and detector unit 21 judgment sub-unit 212 is electrically connected, when judgment sub-unit 212 judges the equipment 6 that second port 12 is connected by data cable 5 For main equipment when, the control pull-up resistor 222 of switch switching circuit 221 is connected with collocation channel 35, and is made pull down resistor 223 and is matched somebody with somebody Put, the voltage pull-up of collocation channel pin is caused so as to pass through main equipment and data cable 5, now Detection program inside mobile device 4 judges the particular type of main equipment according to the voltage of collocation channel pin, and controls its number Voltage according to the collocation channel pin of interface is drop-down so that on main equipment and the connection of mobile device 4, and then can pass through main equipment Charge for mobile device 4 or non-OTG data transfers are carried out between main equipment and mobile device 4.And work as judgment sub-unit 212 and sentence The equipment 6 that disconnected second port 12 is connected by data cable 5 be from equipment when, switch switching circuit 221 is failure to actuate, mobile device The voltage pull-up of the collocation channel pin at 4 data-interface so that mobile device 4 is connected with from equipment, and then can pass through Mobile device 4 is to power from equipment and in mobile device 4 and from carrying out OTG data transfers between equipment.
Certainly, skilled person will appreciate that, when the disclosure exemplary embodiment provide USB adapters inside arrange During for voltage source, switch switching circuit 221 and judgment sub-unit 212 and this electrically connect for voltage source, can now give tacit consent to pull-up Disconnect between resistance 222 and pull down resistor 223 and collocation channel 35, when judgment sub-unit 212 judges second port 12 When the equipment 6 connected by data cable 5 is main equipment, switch switching circuit 221 controls pull-up resistor 222 and collocation channel 35 Connect, pull down resistor 223 is failure to actuate, the voltage pull-up of collocation channel pin is caused so as to pass through main equipment and data cable 5, is made Main device is connected with mobile device 4;And work as judgment sub-unit 212 and judge what second port 12 was connected by data cable 5 Equipment 6 be from equipment when, switch switching circuit 221 control pull down resistor 223 connect with collocation channel 35, pull-up resistor 222 is not Action, so that the voltage of collocation channel pin is drop-down so that mobile device 4 is connected with from equipment.
Wherein, the resistance of pull-up resistor 222 is 56 ± 11.2 kilohms, and the resistance of pull down resistor 223 is 5.1 ± 1.02 thousand Ohm, according to OTG Protocol Designs so that the USB adapters standardization that the exemplary embodiment of the disclosure is provided, general geological coodinate system compared with High.
And it will be understood by those skilled in the art that can be by pull-up resistor 222 or pull down resistor 223 are connected to malleation number According to line 33 or negative pressure data wire 34, transfer rate when carrying out non-OTG data transfers or OTG data transfers is selected, is specifically included Following four kinds of situations:
First, when pull-up resistor 222 is connected to malleation data wire 33, it is that the full speed between main equipment and mobile device 4 is non- OTG data transfers;
2nd, when pull down resistor 223 is connected to malleation data wire 33, it is mobile device 4 and from full speed OTG between equipment Data transfer;
3rd, when pull-up resistor 222 is connected to negative pressure data wire 34, it is that the low speed between main equipment and mobile device 4 is non- OTG data transfers;
4th, when pull down resistor 223 is connected to negative pressure data wire 34, it is mobile device 4 and from the low speed OTG between equipment Data transfer.
Embodiment two
The another embodiment of the disclosure provides a kind of data transmission set, described in the data transmission set embodiment one USB adapters, the structural representation of the USB adapters is as shown in figure 1, and can be found in Fig. 2 and illustrate.
The disclosure is electrically connected with USB circuit module 3 by control module 2, and control module 2 is used for detecting and judging the second end Mouthfuls 12 by the equipment 6 that data cable 5 connects be main equipment still from equipment, and according to judged result control USB circuit module 3 Mode of operation be charge mode, non-OTG data-transmission modes or OTG data-transmission modes so that embodiment of the disclosure is carried For USB adapters can with data wire coordinate realize charge for mobile device 4 by main equipment or main equipment with move set Non- OTG data transfers are carried out between standby 4, also can and OTG lines coordinate and realize in mobile device and from carrying out OTG data between equipment Transmission.
Embodiment three
The another embodiment of the disclosure provides a kind of USB adapters, and the USB adapters include adapter body and USB electricity Road module, the adapter body include first port, second port and the 3rd port;
The pin of USB circuit module is formed in first port, second port and the 3rd port, and first port is used for connecting Mobile device, is Type-C plugs, and second port and the 3rd port are Micro USB sockets, and second port is used for by number According to main equipments such as cable connection computer, charger and portable power sources, the 3rd port is used for connecting mouse, key by data cable Disk, USB flash disk and portable hard drive etc. are from equipment.
Wherein, USB circuit module includes power line, ground wire, malleation data wire, negative pressure data wire and collocation channel, electricity Source line, ground wire, malleation data wire and negative pressure data wire are respectively formed pin in first port, second port and the 3rd port, Collocation channel forms the power supply wire pin of collocation channel pin, the pull-up circuit of collocation channel and second port at first port Electrical connection, pull-down circuit are electrically connected with the ground connection wire pin of the 3rd port.
When second port is connected with main equipment, main equipment passes through pull-up circuit by the collocation channel pin of first port Voltage is pulled up, and when the connection of the 3rd port is from equipment, passes through pull-down circuit by the pin of the collocation channel of second port from equipment Voltage drop-down.Wherein, it will be understood by those skilled in the art that second port and the 3rd port can not work simultaneously.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments be considered only as exemplary, the true scope of the disclosure and spirit by above Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a kind of general-purpose serial bus USB adapter, it is characterised in that the USB adapters include:Adapter body, formation USB circuit module and the control module for being formed in the adapter body interior in the adapter body interior;
The adapter body includes first port and second port, and the first port is used for connecting mobile device, described the Two-port netwerk is used for connecting main equipment or from equipment by data cable;
The pin of the USB circuit module is formed at the first port and at the second port;
The control module is electrically connected with the USB circuit module, for detecting and judging that the second port passes through data wire Cable connection equipment be main equipment still from equipment;
When the control module judges equipment that the second port connected by data cable for main equipment, the control mould It is charge mode or non-OTG data-transmission modes that block controls the mode of operation of the USB circuit module;
When it is from equipment by the equipment that data cable connects that the control module judges the second port, the control mould It is OTG data-transmission modes that block controls the mode of operation of the USB circuit module.
2. USB adapters according to claim 1, it is characterised in that the control module includes detector unit and switch Switch unit;
The detector unit is electrically connected with the USB circuit module, and the detector unit is used for detecting and judging second end Mouthful equipment connected by data cable is main equipment still from equipment;
The switch switching unit is electrically connected with the detector unit and the USB circuit module, for according to the detection The judged result of unit controls the mode of operation of the USB circuit module.
3. USB adapters according to claim 2, it is characterised in that the USB circuit module includes power line, ground connection Line, malleation data wire, negative pressure data wire, collocation channel, ID lines and ID control circuits;
The two ends of the power line, the ground wire, the malleation data wire and the negative pressure data wire are respectively described first Pin is formed at port and the second port;
One end of the collocation channel forms collocation channel pin at the first port, and the other end is single with the switch switching Unit's electrical connection;
One end of the ID lines forms ID pins at the second port, and the ID pins are electrically connected with the detector unit, The other end of the ID lines is electrically connected with the ground wire by the ID control circuits, and the ID control circuits are used for described When the equipment that second port is connected by data cable is main equipment, the connection controlled between the ID lines and the ground wire is broken Open, when it is from equipment that the second port is by the equipment that data cable connects, control the ID lines and the ground wire it Between keep connection.
4. USB adapters according to claim 3, it is characterised in that the detector unit includes detection part and judgement Subelement;
The detection part is electrically connected with the ID pins, for detect the ID pins to ground impedance;
The judgment sub-unit is electrically connected with the detection part and the switch switching unit respectively, for being drawn according to the ID To ground impedance, pin judges that equipment that the second port is connected by data cable is main equipment still from equipment.
5. USB adapters according to claim 4, it is characterised in that when the ID pins to ground impedance are more than first During preset resistive value, the judgment sub-unit judges equipment that the second port connected by data cable for main equipment;
Second preset resistive value is less than first preset resistive value, when the ID pins to ground impedance are less than the described second pre- handicapping During value, the judgment sub-unit judges that the second port is from equipment by the equipment that data cable connects.
6. USB adapters according to claim 5, it is characterised in that first preset resistive value is 100 kilohms, institute The second preset resistive value is stated for 10 ohm.
7. USB adapters according to claim 3, it is characterised in that the switch switching unit includes switch switching electricity Road, pull-up resistor and pull down resistor;
The switch switching circuit is electrically connected with the detector unit and the collocation channel respectively, the pull-up resistor with described Power line is electrically connected, and the pull down resistor is electrically connected with the ground wire, and the pull-up resistor and pull down resistor difference Electrically connect with the switch switching circuit, controlled in the pull-up resistor and the pull down resistor by the switch switching circuit One of with the collocation channel connect;
When the detector unit judges equipment that the second port connected by data cable for main equipment, the switch is cut Change the circuit control pull-up resistor to connect with the collocation channel, by the voltage high of the collocation channel pin so that institute The mode of operation for stating USB circuit module is charge mode or non-OTG data-transmission modes;
When it is from equipment by the equipment that data cable connects that the detector unit judges the second port, the switch is cut Change the circuit control pull down resistor to connect with the collocation channel, by the voltage pull-down of the collocation channel pin so that institute The mode of operation for stating USB circuit module is OTG data-transmission modes.
8. USB adapters according to claim 7, it is characterised in that the resistance of the pull-up resistor is 56 ± 11.2 thousand Ohm, the resistance of the pull down resistor is 5.1 ± 1.02 kilohms.
9. USB adapters according to claim 1-8 any one claim, it is characterised in that the control module set Into on the chip in the adapter body interior.
10. USB adapters according to claim 1-8 any one claim, it is characterised in that the first port is Type-C plugs, the second port are Micro USB sockets.
11. a kind of data transmission sets, it is characterised in that the data transmission set includes claim 1-10 any one right Require described USB adapters.
CN201610846879.0A 2016-09-23 2016-09-23 USB adapter and data transmission equipment Active CN106502939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610846879.0A CN106502939B (en) 2016-09-23 2016-09-23 USB adapter and data transmission equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610846879.0A CN106502939B (en) 2016-09-23 2016-09-23 USB adapter and data transmission equipment

Publications (2)

Publication Number Publication Date
CN106502939A true CN106502939A (en) 2017-03-15
CN106502939B CN106502939B (en) 2020-01-10

Family

ID=58289966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610846879.0A Active CN106502939B (en) 2016-09-23 2016-09-23 USB adapter and data transmission equipment

Country Status (1)

Country Link
CN (1) CN106502939B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106992372A (en) * 2017-05-31 2017-07-28 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN108023376A (en) * 2017-11-08 2018-05-11 卓尔悦欧洲控股有限公司 Charging wire, charging assembly, charging method and device
CN108233130A (en) * 2017-08-01 2018-06-29 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN108963673A (en) * 2018-09-30 2018-12-07 北京亮亮视野科技有限公司 Based on OTG function charge and discharge settable data line and data transmission system
CN109510045A (en) * 2018-12-05 2019-03-22 北京阿法龙科技有限公司 A kind of USB data line of auxiliary power supply
CN109766307A (en) * 2019-01-14 2019-05-17 深圳市至壹科技开发有限公司 A kind of terminal called system and its application method
CN111145519A (en) * 2019-11-25 2020-05-12 上海智汇电器有限公司 Intelligent remote control and charging method and system
CN111404538A (en) * 2019-01-03 2020-07-10 瑞昱半导体股份有限公司 Connection circuit and connection method thereof
CN111522767A (en) * 2020-05-13 2020-08-11 硅谷数模(苏州)半导体有限公司 USB-C device and electronic device
CN111651387A (en) * 2020-05-25 2020-09-11 维沃移动通信有限公司 Interface circuit and electronic equipment
CN111817386A (en) * 2020-07-14 2020-10-23 维沃移动通信有限公司 Data line and charging equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102969632A (en) * 2012-11-27 2013-03-13 惠州Tcl移动通信有限公司 Adaptor connector and connecting device
CN103455465A (en) * 2013-09-05 2013-12-18 锐思设计有限公司 USB (universal serial bus) device
CN104615569A (en) * 2014-12-31 2015-05-13 小米科技有限责任公司 Electronic equipment and data transmission system
CN105224494A (en) * 2015-10-28 2016-01-06 小米科技有限责任公司 Method for handover control and device
CN105281060A (en) * 2014-06-24 2016-01-27 李新亚 Multifunctional accessory
CN105375207A (en) * 2015-11-05 2016-03-02 罗勇进 USB cable
CN205282794U (en) * 2015-08-05 2016-06-01 庄忆芳 USBType -C conversion module
US20160191313A1 (en) * 2014-12-24 2016-06-30 Intel Corporation Type-c retimer state machine and a protocol for inband control and configuration
US20160190794A1 (en) * 2014-12-24 2016-06-30 Texas Instruments Incorporated Overvoltage protection circuit for usb interface

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102969632A (en) * 2012-11-27 2013-03-13 惠州Tcl移动通信有限公司 Adaptor connector and connecting device
CN103455465A (en) * 2013-09-05 2013-12-18 锐思设计有限公司 USB (universal serial bus) device
CN105281060A (en) * 2014-06-24 2016-01-27 李新亚 Multifunctional accessory
US20160191313A1 (en) * 2014-12-24 2016-06-30 Intel Corporation Type-c retimer state machine and a protocol for inband control and configuration
US20160190794A1 (en) * 2014-12-24 2016-06-30 Texas Instruments Incorporated Overvoltage protection circuit for usb interface
CN104615569A (en) * 2014-12-31 2015-05-13 小米科技有限责任公司 Electronic equipment and data transmission system
CN205282794U (en) * 2015-08-05 2016-06-01 庄忆芳 USBType -C conversion module
CN105224494A (en) * 2015-10-28 2016-01-06 小米科技有限责任公司 Method for handover control and device
CN105375207A (en) * 2015-11-05 2016-03-02 罗勇进 USB cable

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
易建勋: "《计算机维修技术(第3版)》", 31 January 2014, 北京:清华大学出版社 *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106992372A (en) * 2017-05-31 2017-07-28 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN106992372B (en) * 2017-05-31 2023-07-07 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN108233130A (en) * 2017-08-01 2018-06-29 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN108233130B (en) * 2017-08-01 2019-11-15 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN108023376B (en) * 2017-11-08 2021-10-22 卓尔悦欧洲控股有限公司 Charging wire, charging assembly, charging method and device
CN108023376A (en) * 2017-11-08 2018-05-11 卓尔悦欧洲控股有限公司 Charging wire, charging assembly, charging method and device
CN108963673A (en) * 2018-09-30 2018-12-07 北京亮亮视野科技有限公司 Based on OTG function charge and discharge settable data line and data transmission system
CN108963673B (en) * 2018-09-30 2024-03-15 北京亮亮视野科技有限公司 Data line and data transmission system capable of being set based on OTG function charge and discharge
CN109510045A (en) * 2018-12-05 2019-03-22 北京阿法龙科技有限公司 A kind of USB data line of auxiliary power supply
CN111404538A (en) * 2019-01-03 2020-07-10 瑞昱半导体股份有限公司 Connection circuit and connection method thereof
CN111404538B (en) * 2019-01-03 2023-07-14 瑞昱半导体股份有限公司 Connection circuit and connection method thereof
CN109766307A (en) * 2019-01-14 2019-05-17 深圳市至壹科技开发有限公司 A kind of terminal called system and its application method
CN109766307B (en) * 2019-01-14 2023-06-30 深圳市至壹科技开发有限公司 Terminal communication system and application method thereof
CN111145519A (en) * 2019-11-25 2020-05-12 上海智汇电器有限公司 Intelligent remote control and charging method and system
CN111522767A (en) * 2020-05-13 2020-08-11 硅谷数模(苏州)半导体有限公司 USB-C device and electronic device
CN111651387A (en) * 2020-05-25 2020-09-11 维沃移动通信有限公司 Interface circuit and electronic equipment
US12013803B2 (en) 2020-05-25 2024-06-18 Vivo Mobile Communication Co., Ltd. Interface circuit and electronic device
CN111817386A (en) * 2020-07-14 2020-10-23 维沃移动通信有限公司 Data line and charging equipment
CN111817386B (en) * 2020-07-14 2023-06-20 维沃移动通信有限公司 Data line and charging device
JP7425255B2 (en) 2020-07-14 2024-01-30 維沃移動通信有限公司 Data line and charging equipment

Also Published As

Publication number Publication date
CN106502939B (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN106502939A (en) A kind of USB adapters and data transmission set
WO2021057528A1 (en) Type a-type c cable and cable chip thereof
US10746766B2 (en) Devices and methods for detecting USB devices attached to a USB charging port
CN111817380B (en) Charger, data line, charging equipment and electronic equipment
CN108666826B (en) Adapter, terminal equipment and adapter system
CN106716389B (en) Method for fast USB charging, electronic device and charger device
CN110275855B (en) Signal transmission direction adjusting method and device and bidirectional signal repeater integrated circuit
CN106301342B (en) Interface circuit and terminal device
CN210129644U (en) Type A-Type C cable and cable chip thereof
US10236697B2 (en) Charge storage and power routing for dongles and adapters
CN103124134A (en) Determining circuit
US20110016334A1 (en) Auto-Detect Polling for Correct Handshake to USB Client
CN104272216A (en) Electronic device and control method therefor
EP2860638B1 (en) Serial communication over communication control pin
US20190361056A1 (en) Interface circuitry for bidirectional power connector
KR20160030261A (en) Apparatus and method to change current limit
JP7445821B2 (en) Chargers, data lines and charging equipment
CN103618356A (en) Charging system for mobile terminal and charging method thereof
CN108206444A (en) Data line and data transmission method
CN204576500U (en) A kind of usb communication circuit of compatible I2C communication and system
US10404088B2 (en) Power distribution using bidirectional power connector
CN105161941A (en) Single-input multi-output quick-charge cable and quick charger
JP2017033461A (en) Detection circuit and detection method for reversible cable, and dual roll device of host device using the same
CN108563537A (en) A kind of USB principals and subordinates detection device and method
CN107819344A (en) Charging control circuit, charge control method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant