CN106502939B - USB adapter and data transmission equipment - Google Patents

USB adapter and data transmission equipment Download PDF

Info

Publication number
CN106502939B
CN106502939B CN201610846879.0A CN201610846879A CN106502939B CN 106502939 B CN106502939 B CN 106502939B CN 201610846879 A CN201610846879 A CN 201610846879A CN 106502939 B CN106502939 B CN 106502939B
Authority
CN
China
Prior art keywords
port
usb
pull
data transmission
equipment
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.)
Active
Application number
CN201610846879.0A
Other languages
Chinese (zh)
Other versions
CN106502939A (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

Images

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 utility model discloses a USB adapter and data transmission equipment belongs to data transmission technical field. This USB adapter includes: the adapter comprises an adapter body, a USB circuit module formed in the adapter body and a control module formed in the adapter body. This is disclosed to be connected through control module and USB circuit module electricity, control module is used for detecting and judging whether the equipment that the second port passes through the data cable and connects is master equipment or slave unit, and the mode of operation according to judgement result control USB circuit module is the charge mode, non-OTG data transmission mode or OTG data transmission mode, make the USB adapter that this disclosed embodiment provided can realize charging for mobile device or carrying out non-OTG data transmission between master equipment and mobile device through the master equipment with the data line cooperation, also can realize carrying out OTG data transmission between mobile device and slave unit with the cooperation of OTG line.

Description

USB adapter and data transmission equipment
Technical Field
The present disclosure relates to the field of data transmission devices, and in particular, to a USB (Universal Serial Bus) adapter and a data transmission device.
Background
The USB interface at the bottom of the smart phone is used for charging the smart phone or transmitting data, and along with the development trend of smart phone lightness and thinness, the Type-C interface comes up and comes up, and the USB interface is adopted by newly developed smart phones of various brands by virtue of the advantage that the USB interface supports the front and back sides of a data line to be insertable and thinner. However, the product needs a certain time for complete update and update, the USB interface of the smart phone sold in the market at present is mainly the Micro USB interface, the popularization of the Type-C interface is not enough, in order to avoid that the smart phone cannot be charged or data transmission cannot be carried out when a data line of the Type-C interface is forgotten to be carried, a user often uses the Type-C adapter to connect the smart phone and the data line of the Micro USB interface, and the charging or non-OTG data transmission of the smart phone adopting the Type-C interface is realized by matching the data line of the Micro USB interface with the Type-C adapter.
Current USB Type-C adapter includes the adapter body and forms the USB circuit module in the adapter body inside, the adapter body includes Micro USB socket end and Type-C plug end, USB circuit module's pin forms at Micro USB socket end and Type-C plug end, Micro USB socket end is used for being connected with the data line that adopts the Micro USB interface, main equipment such as power or computer is connected through the data line that adopts the Micro USB interface, connect the smart mobile phone that adopts the Type-C interface through Type-C plug end, make main equipment such as power or computer charge to smart mobile phone through USB circuit module, or carry out non-OTG data transmission between main equipment such as computer and smart mobile phone.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a USB adapter and a data transmission device.
In a first aspect, an embodiment of the present disclosure provides a USB adapter, where the USB adapter includes: the USB adapter comprises an adapter body, a USB circuit module formed in the adapter body and a control module formed in the adapter body;
the adapter body comprises a first port and a second port, the first port is used for connecting mobile equipment, and the second port is used for connecting master equipment or slave equipment through a data cable;
pins of the USB circuit module are formed at the first port and the second port;
the control module is electrically connected with the USB circuit module and is used for detecting and judging whether the equipment connected with the second port through the data cable is the master equipment or the slave equipment;
when the control module judges that the equipment connected with the second port through the data cable is the main equipment, the control module controls the working mode of the USB circuit module to be a charging mode or a non-OTG data transmission mode;
when the control module judges that the device connected with the second port through the data cable is a slave device, the control module controls the working mode of the USB circuit module to be an OTG data transmission mode.
Optionally, the control module includes a detection unit and a switch switching unit;
the detection unit is electrically connected with the USB circuit module and is used for detecting and judging whether the equipment connected with the second port through the data cable is main equipment or slave equipment;
the switch switching unit is electrically connected with the detection unit and the USB circuit module and is used for controlling the working mode of the USB circuit module according to the detection result of the detection unit.
Optionally, the USB circuit module includes a power line, a ground line, a positive voltage data line, a negative voltage data line, a configuration channel, an ID line, and an ID control circuit;
pins are formed at the first port and the second port at two ends of the power line, the grounding line, the positive voltage data line and the negative voltage data line respectively;
one end of the configuration channel forms a configuration channel pin at the first port, and the other end of the configuration channel is electrically connected with the switch switching unit;
one end of the ID wire forms an ID pin at the second port, the ID pin is electrically connected with the detection unit, the other end of the ID wire is electrically connected with the grounding wire through the ID control circuit, the ID control circuit is used for controlling the connection disconnection between the ID wire and the grounding wire when the equipment connected with the second port through the data cable is the main equipment, and controlling the connection between the ID wire and the grounding wire when the equipment connected with the second port through the data cable is the slave equipment.
Optionally, the detection unit comprises a detection component and a judgment subunit;
the detection component is electrically connected with the ID pin and is used for detecting the impedance to the ground of the ID pin;
the judging subunit is electrically connected to the detecting component and the switch switching unit, and is configured to judge, according to the impedance to ground of the ID pin, whether the device to which the second port is connected through the data cable is a master device or a slave device.
Preferably, when the impedance to ground of the ID pin is greater than a first preset resistance value, the determining subunit determines that the device connected to the second port through the data cable is a master device;
and when the impedance to ground of the ID pin is smaller than the second preset resistance value, the judging subunit judges that the equipment connected with the second port through the data cable is slave equipment.
Preferably, the first preset resistance value is 100 kilo ohms, and the second preset resistance value is 10 ohms.
Optionally, the switch switching unit includes a switch switching circuit, a pull-up resistor, and a pull-down resistor;
the switch switching circuit is respectively and electrically connected with the detection unit and the configuration channel, the pull-up resistor is electrically connected with the power line, the pull-down resistor is electrically connected with the grounding line, the pull-up resistor and the pull-down resistor are respectively and electrically connected with the switch switching circuit, and one of the pull-up resistor and the pull-down resistor is controlled to be connected with the configuration channel through the switch switching circuit;
when the detection unit judges that the device connected with the second port through the data cable is a main device, the switch switching circuit controls the pull-up resistor to be connected with the configuration channel, and pulls up the voltage of the pin of the configuration channel, so that the working mode of the USB circuit module is a charging mode or a non-OTG data transmission mode;
when the detection unit judges that the device connected with the second port through the data cable is a slave device, the switch switching circuit controls the pull-down resistor to be connected with the configuration channel, and pulls down the voltage of the pin of the configuration channel, so that the working mode of the USB circuit module is an OTG data transmission mode.
Preferably, the resistance value of the pull-up resistor is 56 +/-11.2 kilo-ohms, and the resistance value of the pull-down resistor is 5.1 +/-1.02 kilo-ohms.
Preferably, the control module is integrated on a chip inside the adapter body.
Preferably, the first port is a Type-C plug, and the second port is a Micro USB socket.
In a second aspect, a further embodiment of the present disclosure provides a data transmission device, where the data transmission device includes the USB adapter.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
this is disclosed to be connected through control module and USB circuit module electricity, control module is used for detecting and judging whether the equipment that the second port passes through the data cable and connects is master equipment or slave unit, and the mode of operation according to judgement result control USB circuit module is the charge mode, non-OTG data transmission mode or OTG data transmission mode, make the USB adapter that this disclosed embodiment provided can realize charging for mobile device or carrying out non-OTG data transmission between master equipment and mobile device through the master equipment with the data line cooperation, also can realize carrying out OTG data transmission between mobile device and slave unit with the cooperation of OTG line.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic circuit diagram of a USB adapter according to an exemplary embodiment;
fig. 2 is a schematic diagram illustrating a usage state of the USB adapter according to an exemplary embodiment.
Wherein:
1, a connector body is connected with the connector body,
11 a first port of the first type of the valve,
12 of the second end of the first port,
2, controlling the module to be controlled,
21 detection unit, 211 detection unit, 212 judgment subunit,
22 switch switching unit, 221 circuit switching module, 222 pull-up resistor, 223 pull-down resistor,
3 USB circuit module, 31 power line, 32 grounding line, 33 positive voltage data line, 34 negative voltage data line, 35 configuration channel, 36 ID line, 37 ID control circuit,
4, moving the equipment to the mobile equipment,
5 a data cable for the data cable,
6 the second port is connected with the equipment through a data cable.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The USB circuit module of current Type-C adapter includes the power cord, the earth connection, the malleation data line, negative pressure data line and configuration passageway, the power cord, the earth connection, malleation data line and negative pressure data line correspond at Type-C plug end and Micro USB socket end and form power pin, ground connection pin, malleation data pin and negative pressure data pin, the configuration passageway forms the configuration passageway pin at Type-C plug end, the configuration passageway is connected with the power cord electricity through pull-up circuit, through Type-C plug end and the Type-C interface connection on the smart mobile phone. When the existing Type-C adapter is connected with a data line of a Micro USB interface through a Micro USB socket of the existing Type-C adapter, the smart phone serves as a slave device, a power supply or a host device such as a computer supplies power to the Type-C adapter through a power line, so that a configuration channel pulls up the voltage of a configuration channel pin, and a voltage difference exists between the configuration channel pin on the adapter and the configuration channel pin on the smart phone, so that the smart phone is charged through the power supply or non-OTG data transmission is performed between the computer and the smart phone, wherein the non-OTG data transmission refers to data transmission performed between the host and a mobile device when a host such as a computer exists between two devices for data transmission.
When using current Type-C adapter and the cooperation of OTG line, the unable voltage that changes configuration channel pin of OTG line leads to the voltage on the configuration channel pin to be in the pull-up state all the time and can't realize OTG data transmission function, and wherein, OTG data transmission indicates when there is not the host computer such as computer between two equipment that carry out data transmission, and one of two mobile device acts as the host computer, the data transmission who carries out between two mobile device.
Those skilled in the art can understand that, in any exemplary embodiment of the present disclosure, the master device includes a device that serves as a host by default, such as a computer, a charger, or a mobile power supply, the slave device includes a device that serves as a slave by default, such as a mouse, a keyboard, a USB disk, or a mobile hard disk, and the mobile device includes a mobile terminal device that serves as a slave by default, such as a smart phone, a digital camera, an MP3, an MP4, an MP5, or a tablet computer, and the like, which can serve as both a host and a slave device, a data interface on the mobile device has an OTG data transmission function and a non-OTG data transmission function, and a data interface on the mobile device can be a USB port, a Micro USB port, or a USB port, a Type-C port, and the like, in the exemplary embodiment of the present disclosure, the mobile device is taken as an example, and when the data interface on the mobile device is a Type-C interface, in the exemplary embodiment of the present disclosure, the first port of the USB adapter is a Type-C plug, and the second port is a Micro USB socket.
As shown in fig. 1 and described in conjunction with fig. 2, an exemplary embodiment of the present disclosure provides a USB adapter, including: the adapter comprises an adapter body 1, a USB circuit module 3 formed inside the adapter body 1 and a control module 2 formed inside the adapter body 1;
the adapter body 1 comprises a first port 11 and a second port 12, wherein the first port 11 is used for connecting the mobile device 4, and the second port 12 is used for connecting the master device or the slave device through the data cable 5;
the pins of the USB circuit module 3 are formed at the first port 11 and at the second port 12;
the control module 2 is electrically connected with the USB circuit module 3 and is used for detecting and judging whether the equipment 6 connected with the second port 12 through the data cable 5 is a master equipment or a slave equipment;
when the control module 2 determines that the device 6 connected to the second port 12 through the data cable 5 is a master device, the control module 2 controls the working mode of the USB circuit module 3 to be a charging mode or a non-OTG data transmission mode;
when the control module 2 determines that the device 6 connected to the second port 12 through the data cable 5 is a slave device, the control module 2 controls the working mode of the USB circuit module 3 to be an OTG data transmission mode.
In an exemplary embodiment of the present disclosure, the data cable 5 includes a data line for connecting the second port 12 and the master device and an OTG line for connecting the second port 12 and the slave device. When the second port 12 is connected to the host device through the data line, the mobile device 4 serves as a slave device, and the operating mode of the USB circuit module 3 is a charging mode or a non-OTG data transmission mode, where the non-OTG data transmission mode is usually accompanied by the charging mode, as can be understood by those skilled in the art. If the main device is a charger or a mobile power supply, the working mode of the USB circuit module 3 is a charging mode, and the main device can charge the mobile device 4 through the USB circuit module 3; if the host device is a computer, the operating mode of the USB circuit module 3 is a charging mode or a non-OTG data transmission mode, and the host device can charge the mobile device 4 through the USB circuit module 3, or the host device charges the mobile device 4 through the USB circuit module 3 while performing non-OTG data transmission between the host device and the mobile device 4.
When the second port 12 is connected to the slave device through the OTG line, the mobile device 4 serves as a master device, and the control module 2 controls the operating mode of the USB circuit module 3 to be an OTG data transmission mode, and it can be understood by those skilled in the art that in the OTG data transmission mode, the device serving as the master device supplies power to the device serving as the slave device, so in an exemplary embodiment of the present disclosure, when the control module 2 controls the operating mode of the USB circuit module 3 to be the OTG data transmission mode, the mobile device 4 supplies power to the slave device through the USB circuit module 3, and meanwhile, OTG data transmission can be performed between the mobile device 4 and the slave device.
Wherein the specific types of master and slave devices are determined by the mobile device 4.
This is disclosed to be connected with USB circuit module 3 electricity through control module 2, control module 2 is used for detecting and judging whether the equipment 6 that second port 12 passes through data cable 5 and connects is primary device or slave unit, and the working mode according to judgement result control USB circuit module 3 is the charge mode, non-OTG data transmission mode or OTG data transmission mode, make the USB adapter that this disclosed embodiment provided can realize charging for mobile device 4 through the primary device with the data line cooperation or carry out non-OTG data transmission between primary device and mobile device 4, also can realize carrying out OTG data transmission between mobile device and slave unit with the cooperation of OTG line.
Referring to fig. 2, in a further exemplary embodiment of the present disclosure, the control module 2 may be integrated on a chip inside the adapter body 1, which includes a detection unit 21 and a switch switching unit 22;
the detection unit 21 is electrically connected with the USB circuit module 3, and the detection unit 21 is configured to detect and determine whether the device 6 connected to the second port 12 through the data cable 5 is a master device or a slave device;
the switch switching unit 22 is electrically connected to the detecting unit 21 and the USB circuit module 3, and is configured to control the operating mode of the USB circuit module 3 according to the determination result of the detecting unit 21.
In still another exemplary embodiment of the present disclosure, when the detection unit 21 determines that the device 6 to which the second port 12 is connected through the data cable 5 is a master device, the switch switching unit 22 switches the operating mode of the USB circuit module 3 to the charging mode or the non-OTG data transmission mode; when the detection unit 21 determines that the device 6 connected to the second port 12 through the data cable 5 is a slave device, the switch switching unit 22 switches the operating mode of the USB circuit module 3 to the OTG data transmission mode.
As shown in fig. 1, in still another exemplary embodiment of the present disclosure, the USB circuit module 3 includes a power supply line 31, a ground line 32, a positive voltage data line 33, a negative voltage data line 34, a configuration channel 35, an ID line 36, and an ID control circuit 37;
two ends of the power line 31, the ground line 32, the positive voltage data line 33 and the negative voltage data line 34 form pins at the first port 11 and the second port 12, respectively;
one end of the configuration channel 35 forms a configuration channel pin at the first port 11, and the other end is electrically connected to the switch switching unit 22;
one end of the ID wire 36 forms an ID pin at the second port 12, the ID pin is electrically connected to the detection unit 21, the other end of the ID wire 36 is connected to the ground line 32 through an ID control circuit 37, and the ID control circuit 37 is configured to control the connection between the ID wire 36 and the ground line 32 to be disconnected when the device 6 to which the second port 12 is connected through the data cable 5 is a master device, and to control the connection between the ID wire 36 and the ground line 32 to be maintained when the device 6 to which the second port 12 is connected through the data cable 5 is a slave device.
The power line 31 and the ground line 32 are used for providing a 3.3V regulated power supply for the USB adapter provided by the exemplary embodiment of the present disclosure through the mobile device 4 or the device 6 connected to the second port 12 to supply power to the USB adapter, the positive voltage data line 33 and the negative voltage data line 34 are used for data transmission, the configuration channel 35 is used for determining an operation mode of the USB circuit module, the ID line 36 is used for determining a master-slave relationship between the mobile device 4 and a master device or a slave device, the ID control circuit 37 is used for controlling whether the ID line 36 is communicated with the ground line 32, and the power line 31, the ground line 32, the positive voltage data line 33 and the negative voltage data line 34 may be set according to a Type-C protocol or a Micro USB protocol, so as to reduce development cost and development workload of the USB adapter provided by the exemplary embodiment of the present disclosure.
In the exemplary embodiment of the present disclosure, the operation mode of the USB circuit module 3 may default to the OTG data transmission mode, that is, when the device 6 connected to the second port 12 through the data cable 5 is a slave device, the switch switching unit 22 does not act, the operation mode of the USB circuit module remains in the charging mode or the non-OTG data transmission mode, and after the slave device is connected to the mobile device 4, the mobile device 4 supplies power to the USB adapter provided in the exemplary embodiment of the present disclosure, so as to perform charging or non-OTG data transmission through the USB adapter provided in the exemplary embodiment of the present disclosure; when the device 6 connected to the second port 12 through the data cable 5 is a master device, the master device enables the switch switching unit 22 to switch the operating mode of the USB circuit module 3 from the OTG data transmission mode to the charging mode or the non-OTG data transmission mode, so as to perform the OTG data transmission operation through the USB adapter provided in the exemplary embodiment of the present disclosure.
As shown in fig. 1, in still another exemplary embodiment of the present disclosure, the detection unit 21 includes a detection part 211 and a judgment subunit 212;
the detection part 211 is electrically connected to the ID pin for detecting impedance to ground of the ID pin;
the judgment subunit 212 is electrically connected to the detection component 211 and the switch switching unit 22, respectively, and is configured to judge whether the device 6 to which the second port 12 is connected through the data cable 5 is a master device or a slave device according to the impedance to ground of the ID pin.
In the exemplary embodiment of the present disclosure, the other end of the ID line 36 is electrically connected to the ground line 32 through the ID control circuit 37, the default ID pin is grounded, when the device 6 to which the second port 12 is connected through the data cable 5 is a master device, the master device inputs a rising edge signal to the ID control circuit 37 through the data cable 5, the ID control circuit 37 controls the ID line 36 to be disconnected from the ground line 32, the ID pin is floated so that the resistance to ground of the ID pin is increased, when the second port 12 is disconnected from the data cable 5, the master device inputs a falling edge signal to the ID control circuit 37 through the data cable 5, the ID control circuit 37 controls the ID line 36 to be connected to the ground line 32, and the ID pin is grounded; on the other hand, when the device 6 connected to the second port 12 via the data cable 5 is a slave device, since the slave device cannot supply power to the USB adaptor provided in the exemplary embodiment of the present disclosure via the data cable, the ID control circuit 37 does not operate, the ID line 36 is always connected to the ground line 32, the ID pin is grounded, and the impedance to ground of the ID pin is small, it is possible to determine whether the device 6 connected to the second port 12 via the data cable 5 is a master device or a slave device by detecting the impedance to ground of the ID pin.
The determining subunit 212, according to the impedance to ground of the ID pin, determines whether the device 6 connected to the second port 12 through the data cable 5 is a master device or a slave device, specifically including:
when the impedance to ground of the ID pin is greater than a first preset resistance value, the judging subunit 212 judges that the device 6 to which the second port 12 is connected through the data cable 5 is the master device;
the second preset resistance value is smaller than the first preset resistance value, and when the impedance to ground of the ID pin is smaller than the second preset resistance value, the determining subunit 212 determines that the device 6 connected to the second port 12 through the data cable 5 is a slave device.
In an exemplary embodiment of the present disclosure, the first preset resistance is 100 kohms, the second preset resistance is 10 kohms, when the detection component 211 detects that the impedance to ground of the ID pin is greater than 100 kohms, which indicates that the ID pin is suspended, the determination subunit 212 determines that the device 6 connected to the second port 12 through the data cable 5 is a master device, and the switch switching unit 22 controls the operating mode of the USB circuit module 3 to be the charging mode or the non-OTG data transmission mode; when the detection component 211 detects that the impedance to ground of the ID pin is less than 10 ohms, which indicates that the ID pin is grounded, the determination subunit 212 determines that the device 6 connected to the second port 12 through the data cable 5 is a slave device, and the switch switching unit 22 controls the operation mode of the USB circuit module 3 to be the OTG data transmission mode.
In still another exemplary embodiment of the present disclosure, if the detection unit 21 detects that the impedance to ground of the ID pin is greater than 10 ohms and less than 100 kilo ohms, the determination subunit 212 may determine that the device 6 connected to the second port 12 through the data cable 5 is a non-standard device, and the switch switching unit 22 may not perform any processing.
As shown in fig. 1, in still another exemplary embodiment of the present disclosure, the switch switching unit 22 includes a switch switching circuit 221, a pull-up resistor 222, and a pull-down resistor 223;
the switch switching circuit 221 is electrically connected with the detection unit 21 and the configuration channel 35, the pull-up resistor 222 is electrically connected with the power line 31, the pull-down resistor 223 is electrically connected with the grounding line 32, the pull-up resistor 222 and the pull-down resistor 223 are electrically connected with the switch switching circuit 221, and one of the pull-up resistor 222 and the pull-down resistor 223 is controlled to be connected with the configuration channel 35 through the switch switching circuit 221;
when the detection unit 21 determines that the device 6 connected to the second port 12 through the data cable 5 is a master device, the switch switching circuit 221 controls the pull-up resistor 222 to be connected to the configuration channel 35, and pulls up the voltage of the configuration channel pin, so that the working mode of the USB circuit module 3 is a charging mode or a non-OTG data transmission mode;
when the detection unit 21 determines that the device 6 connected to the second port 12 through the data cable 5 is a slave device, the switch switching circuit 221 controls the pull-down resistor 223 to be connected to the configuration channel 35, and pulls down the voltage of the configuration channel pin, so that the operating mode of the USB circuit module 3 is the OTG data transmission mode.
In still another exemplary embodiment of the present disclosure, the switch switching circuit 221 and the determining subunit 212 are powered by the mobile device 4 and one of the master device or the slave device serving as the master device (the power supply circuit is not shown in the figure), the default pull-down resistor 223 is kept on with the configuration channel 35, the pull-up resistor 222 is disconnected with the configuration channel 35, the switch switching circuit 221 is electrically connected with the determining subunit 212 of the detecting unit 21, when the determining subunit 212 determines that the device 6 connected to the second port 12 through the data cable 5 is the master device, the switch switching circuit 221 controls the pull-up resistor 222 to be connected with the configuration channel 35, and disconnects the pull-down resistor 223 from the configuration channel 35, so as to pull up the voltage of the configuration channel pin through the master device and the data cable 5, at this time, a detecting program inside the mobile device 4 determines the specific type of the master device according to the voltage of the configuration channel pin, and controlling the voltage pull-down of a configuration channel pin at a data interface thereof, so that the main device is connected with the mobile device 4, and further, the mobile device 4 can be charged through the main device or non-OTG data transmission can be performed between the main device and the mobile device 4. When the determining subunit 212 determines that the device 6 connected to the second port 12 through the data cable 5 is a slave device, the switch switching circuit 221 does not act, and the voltage of the configuration channel pin at the data interface of the mobile device 4 is pulled up, so that the mobile device 4 is connected to the slave device, and further, the slave device can be powered through the mobile device 4 and OTG data transmission can be performed between the mobile device 4 and the slave device.
Of course, as can be known by those skilled in the art, when a voltage supply source is set inside the USB adapter provided in the exemplary embodiment of the present disclosure, the switch switching circuit 221 is electrically connected to both the determining subunit 212 and the voltage supply source, and at this time, it may be default that the pull-up resistor 222 and the pull-down resistor 223 are both disconnected from the configuration channel 35, and when the determining subunit 212 determines that the device 6 connected to the second port 12 through the data cable 5 is a master device, the switch switching circuit 221 controls the pull-up resistor 222 to be connected to the configuration channel 35, and the pull-down resistor 223 does not operate, so that the voltage of the configuration channel pin is pulled up through the master device and the data cable 5, and the master device is connected to the mobile device 4; when the determining subunit 212 determines that the device 6 connected to the second port 12 via the data cable 5 is a slave device, the switch switching circuit 221 controls the pull-down resistor 223 to be connected to the configuration channel 35, and the pull-up resistor 222 does not operate, so that the voltage of the configuration channel pin is pulled down, and the mobile device 4 is connected to the slave device.
The resistance value of the pull-up resistor 222 is 56 ± 11.2 kilo ohms, the resistance value of the pull-down resistor 223 is 5.1 ± 1.02 kilo ohms, and the USB adapter provided by the exemplary embodiment of the present disclosure is standardized and has a high universality according to the design of the OTG protocol.
And those skilled in the art can understand that the transmission rate for non-OTG data transmission or OTG data transmission can be selected by connecting the pull-up resistor 222 or the pull-down resistor 223 to the positive voltage data line 33 or the negative voltage data line 34, and specifically includes the following four situations:
first, when the pull-up resistor 222 is connected to the positive voltage data line 33, it is full-speed non-OTG data transmission between the host device and the mobile device 4;
second, when the pull-down resistor 223 is connected to the positive voltage data line 33, full-speed OTG data transmission between the mobile device 4 and the slave device is performed;
thirdly, when the pull-up resistor 222 is connected to the negative voltage data line 34, the low-speed non-OTG data transmission between the main device and the mobile device 4 is performed;
and fourthly, when the pull-down resistor 223 is connected to the negative voltage data line 34, the low-speed OTG data transmission between the mobile device 4 and the slave device is realized.
Example two
A further embodiment of the present disclosure provides a data transmission device, where a structural schematic diagram of the USB adapter in the first embodiment of the data transmission device is shown in fig. 1, and can be described with reference to fig. 2.
This is disclosed to be connected with USB circuit module 3 electricity through control module 2, control module 2 is used for detecting and judging whether the equipment 6 that second port 12 passes through data cable 5 and connects is primary device or slave unit, and the working mode according to judgement result control USB circuit module 3 is the charge mode, non-OTG data transmission mode or OTG data transmission mode, make the USB adapter that this disclosed embodiment provided can realize charging for mobile device 4 through the primary device with the data line cooperation or carry out non-OTG data transmission between primary device and mobile device 4, also can realize carrying out OTG data transmission between mobile device and slave unit with the cooperation of OTG line.
EXAMPLE III
Another embodiment of the present disclosure provides a USB adapter, including an adapter body and a USB circuit module, where the adapter body includes a first port, a second port, and a third port;
the pin of USB circuit module forms in first port, second port and third port department, and first port is used for connecting the mobile device, and for Type-C plug, second port and third port are Micro USB socket, and the second port is used for connecting main equipment such as computer, charger and portable power source through the data cable, and the third port is used for connecting slave units such as mouse, keyboard, USB flash disk and portable hard drive through the data cable.
The USB circuit module comprises a power line, a grounding line, a positive voltage data line, a negative voltage data line and a configuration channel, pins are formed on the power line, the grounding line, the positive voltage data line and the negative voltage data line at a first port, a second port and a third port, the configuration channel forms a configuration channel pin at the first port, a pull-up circuit of the configuration channel is electrically connected with the power line pin of the second port, and a pull-down circuit is electrically connected with the grounding line pin of the third port.
When the second port is connected with the master device, the master device pulls up the voltage of the configuration channel pin of the first port through the pull-up circuit, and when the third port is connected with the slave device, the slave device pulls down the voltage of the configuration channel pin of the second port through the pull-down circuit. Wherein the second port and the third port cannot operate simultaneously, as will be appreciated by those skilled in the art.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. The utility model provides a universal serial bus USB adapter, its characterized in that, USB adapter includes: the USB adapter comprises an adapter body, a USB circuit module formed in the adapter body and a control module formed in the adapter body;
the adapter body comprises a first port and a second port, the first port is used for connecting mobile equipment, and the second port is used for connecting master equipment or slave equipment through a data cable; pins of the USB circuit module are formed at the first port and the second port; the control module is electrically connected with the USB circuit module and is used for detecting and judging whether the equipment connected with the second port through the data cable is the master equipment or the slave equipment;
the USB circuit module comprises a power line, a grounding line, a positive voltage data line, a negative voltage data line and an ID line; one end of the ID line forms an ID pin at the second port; the control module comprises a detection unit and a switch switching unit; the detection unit comprises a detection component and a judgment subunit; the detection component is electrically connected with the ID pin and is used for detecting the impedance to the ground of the ID pin; the judging subunit is respectively electrically connected with the detection component and the switch switching unit, and is used for judging whether the equipment connected with the second port through the data cable is the master equipment or the slave equipment according to the impedance to ground of the ID pin; the switch switching unit is also electrically connected with the USB circuit module and is used for controlling the working mode of the USB circuit module according to the judgment result of the judgment subunit;
when the judging subunit judges that the device connected with the second port through the data cable is a main device, the switch switching unit switches the working mode of the USB circuit module to a charging mode or a non-OTG data transmission mode; when the judging subunit judges that the device connected with the second port through the data cable is a slave device, the switch switching unit switches the working mode of the USB circuit module to the OTG data transmission mode; the first port is a Type-C plug, and the second port is a Micro USB socket;
the switch switching unit comprises a pull-up resistor and a pull-down resistor; when the pull-up resistor is connected to the positive-voltage data line, full-speed non-OTG data transmission between the main device and the mobile device is performed; when the pull-down resistor is connected to the positive-voltage data line, performing full-speed OTG data transmission between the mobile device and the slave device; when the pull-up resistor is connected to the negative voltage data line, the low-speed non-OTG data transmission between the main device and the mobile device is carried out; when the pull-down resistor is connected to the negative voltage data line, the low-speed OTG data transmission between the mobile device and the slave device is realized.
2. The USB adapter according to claim 1, wherein the USB circuit module further comprises a configuration channel and an ID control circuit;
pins are formed at the first port and the second port at two ends of the power line, the grounding line, the positive voltage data line and the negative voltage data line respectively;
one end of the configuration channel forms a configuration channel pin at the first port, and the other end of the configuration channel is electrically connected with the switch switching unit;
the ID pin is electrically connected with the detection component, the other end of the ID wire is electrically connected with the grounding wire through the ID control circuit, the ID control circuit is used for controlling the connection disconnection between the ID wire and the grounding wire when the equipment of which the second port is connected through the data cable is a main equipment, and controlling the connection between the ID wire and the grounding wire when the equipment of which the second port is connected through the data cable is a slave equipment.
3. The USB adapter according to claim 1, wherein the determining subunit determines that the device connected to the second port via the data cable is a master device when the impedance to ground of the ID pin is greater than a first preset resistance value;
and when the impedance to ground of the ID pin is smaller than the second preset resistance value, the judging subunit judges that the equipment connected with the second port through the data cable is slave equipment.
4. The USB adapter according to claim 3, wherein the first predetermined resistance is 100 kilo ohms and the second predetermined resistance is 10 ohms.
5. The USB adapter according to claim 2, wherein the switch switching unit further comprises a switch switching circuit;
the switch switching circuit is respectively and electrically connected with the detection unit and the configuration channel, the pull-up resistor is electrically connected with the power line, the pull-down resistor is electrically connected with the grounding line, the pull-up resistor and the pull-down resistor are respectively and electrically connected with the switch switching circuit, and one of the pull-up resistor and the pull-down resistor is controlled to be connected with the configuration channel through the switch switching circuit;
when the judging subunit judges that the device connected to the second port through the data cable is a main device, the switch switching circuit controls the pull-up resistor to be connected with the configuration channel, and pulls up the voltage of the pin of the configuration channel, so that the working mode of the USB circuit module is a charging mode or a non-OTG data transmission mode;
when the judging subunit judges that the device connected to the second port through the data cable is a slave device, the switch switching circuit controls the pull-down resistor to be connected to the configuration channel, and pulls down the voltage of the pin of the configuration channel, so that the working mode of the USB circuit module is an OTG data transmission mode.
6. The USB adapter according to claim 5, wherein the pull-up resistor has a resistance of 56 ± 11.2 kilo ohms, and the pull-down resistor has a resistance of 5.1 ± 1.02 kilo ohms.
7. A USB adapter according to any one of claims 1 to 6, wherein the control module is integrated on a chip within the adapter body.
8. A data transfer device, characterized in that the data transfer device comprises a USB adapter according to any of claims 1-7.
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 CN106502939A (en) 2017-03-15
CN106502939B true 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)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106992372B (en) * 2017-05-31 2023-07-07 珠海市魅族科技有限公司 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
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
CN111404538B (en) * 2019-01-03 2023-07-14 瑞昱半导体股份有限公司 Connection circuit and connection method thereof
CN109766307B (en) * 2019-01-14 2023-06-30 深圳市至壹科技开发有限公司 Terminal communication system and application method thereof
CN111145519B (en) * 2019-11-25 2022-04-26 上海智汇电器有限公司 Intelligent remote control and charging method and system
CN111522767B (en) * 2020-05-13 2021-12-14 硅谷数模(苏州)半导体有限公司 USB-C device and electronic device
CN111651387B (en) 2020-05-25 2022-02-15 维沃移动通信有限公司 Interface circuit and electronic equipment
CN111817386B (en) * 2020-07-14 2023-06-20 维沃移动通信有限公司 Data line and charging device

Citations (7)

* 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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9559905B2 (en) * 2014-12-24 2017-01-31 Intel Corporation Type-C retimer state machine and a protocol for inband control and configuration
US10148084B2 (en) * 2014-12-24 2018-12-04 Texas Instruments Incorporated Overvoltage protection circuit for USB interface

Patent Citations (7)

* 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
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

Also Published As

Publication number Publication date
CN106502939A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106502939B (en) USB adapter and data transmission equipment
US10746766B2 (en) Devices and methods for detecting USB devices attached to a USB charging port
US11646585B2 (en) Methods, electronic devices, and charger apparatus for quick USB charging
CN108666826B (en) Adapter, terminal equipment and adapter system
CN104978296B (en) For determining the method and apparatus in the direction of power conveying
CN105281398B (en) Portable equipment, CA cable assembly and USB system
CN110829523B (en) Electronic equipment and reverse charging method
EP2879014B1 (en) Tablet interface extension method and device
WO2022012527A1 (en) Charger, data cable, charging device, and electronic device
CN108988431B (en) Multi-protocol charging device and multi-protocol charging method
WO2021135687A1 (en) Electronic device and accessory having both quick charging function and audio transmission function
TW201014052A (en) Detachable host accessory and portable system
WO2017063459A1 (en) Usb control apparatus and device
KR20160030261A (en) Apparatus and method to change current limit
TWI554889B (en) Electric system
CN109861038B (en) USB connection port capable of automatically switching connection mode and control method thereof
CN106856289B (en) Electronic equipment and circuit thereof, switching equipment and circuit thereof and signal processing system
TW201216070A (en) Host apparatus, management method and control circuit for universal serial bus
TW201543222A (en) Universal serial bus and mobile electronic device
TW201814543A (en) Apparatus and method for USB charge and communication
CN112086830B (en) Data line circuit communicating with iOS device
CN210577869U (en) Charging and power conversion circuit and connector thereof
TW202332159A (en) Power delivery device and control method of power supply path
CN212542917U (en) Multi-joint data line device
CN214151544U (en) Interactive flat plate

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