CN113934665A - Universal sequence bus interface detection module - Google Patents

Universal sequence bus interface detection module Download PDF

Info

Publication number
CN113934665A
CN113934665A CN202010673298.8A CN202010673298A CN113934665A CN 113934665 A CN113934665 A CN 113934665A CN 202010673298 A CN202010673298 A CN 202010673298A CN 113934665 A CN113934665 A CN 113934665A
Authority
CN
China
Prior art keywords
usb interface
pin
usb
switch
detecting 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
CN202010673298.8A
Other languages
Chinese (zh)
Other versions
CN113934665B (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.)
Primax Electronics Ltd
Original Assignee
Primax Electronics 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 Primax Electronics Ltd filed Critical Primax Electronics Ltd
Priority to CN202010673298.8A priority Critical patent/CN113934665B/en
Publication of CN113934665A publication Critical patent/CN113934665A/en
Application granted granted Critical
Publication of CN113934665B publication Critical patent/CN113934665B/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/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • 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)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a universal serial bus interface detection module, which comprises a detection unit and a switching device used for being electrically connected between a first device and a second device, wherein the switching device changes the voltage value of a configuration channel pin by utilizing the switching of a ground source pin and a field effect tube switch according to the difference of the interface specification of the first device, so that the second device can obtain the interface specification of a connection part of the first device.

Description

Universal sequence bus interface detection module
Technical Field
The invention relates to the field of universal serial buses, in particular to a universal serial bus interface detection module.
Background
With the development of information, portable electronic devices are becoming more popular, and because computer systems have huge multimedia processing functions, many portable electronic devices can be directly connected to the computer systems to perform various data transmission operations, wherein a Universal Serial Bus (USB) is one of the most commonly used connection interfaces between the portable electronic devices and the computer systems, because the USB interface has many advantages of plug and play, hot plug (hot plug), fast data transmission speed, and the like.
In particular, the usb also has a function of transmitting current, so that the computer system can provide power to the portable electronic device, so that the portable electronic device can obtain the power required for operation, or perform a charging operation on a lithium battery of the portable electronic device. Generally, when the USB interface is a USB2.0 interface, the computer system can provide the portable electronic device with a current of about 500 milliamperes (mA), and when the USB interface is a USB3.0 interface, the computer system can provide the portable electronic device with a current of about 900 milliamperes (mA). Therefore, when the computer system has the interface specification of USB3.0, the lithium battery in the portable electronic device will have a preferred charging speed.
Furthermore, when the portable electronic device is connected with the computer system through the USB cable, the interface specification of the computer system is firstly judged so as to request the computer system to provide corresponding current. In a conventional method, the portable electronic device first transmits an inquiry signal to the computer system through the USB bus, the computer system outputs a feedback signal to the portable electronic device in response to the inquiry signal, and then the portable electronic device determines the interface specification of the computer system according to the feedback signal, and if the interface specification of the computer system is determined to be the USB3.0 interface, the portable electronic device requests the computer system to provide a current of 900 milliamperes (mA), and if the interface specification of the computer system is the USB2.0 interface, the portable electronic device only requests the computer system to provide a current of 500 milliamperes (mA).
Based on the above description, the portable electronic device needs to output an inquiry signal to the computer system first, and then can determine the interface specification of the computer system after obtaining the feedback signal of the computer system, so the conventional determination method requires a long determination time, and in order to implement the conventional determination method, the portable electronic device needs to be provided with a complicated integrated circuit and wiring, which also increases the manufacturing cost.
Disclosure of Invention
The present invention is directed to a usb interface test module with a switch device, which has the advantages of fast determination time, no need of complex integrated circuit and wiring, and low manufacturing cost.
In a preferred embodiment, the present invention provides a usb interface detection module, including:
a switching device, including a first switching part, a second switching part and a circuit unit, wherein the first switching part and the second switching part respectively have a first ground source pin (GND _ DRAIN) and a Configuration Channel pin (Configuration Channel, CC), and the circuit unit includes a field effect transistor (MOS) switch electrically connected between the first ground source pin and the Configuration Channel pin; and
a detection unit for electrically connecting to the configuration channel pins; when two ends of a first universal serial bus cable are respectively plugged in a first device connecting part and a first switching part of a first device and two ends of a second universal serial bus cable are respectively plugged in a second switching part and a second device connecting part of a second device, the detection unit is used for detecting a voltage value corresponding to the configuration channel pin and judging the interface specification of the first device connecting part.
Drawings
FIG. 1: the present invention is a conceptual diagram of an embodiment of a usb detection module according to the present invention.
FIG. 2: a conceptual diagram of a preferred embodiment of the first adapter of the adapter device shown in fig. 1 is shown.
FIG. 3: a conceptual diagram of the second adapter of the adapter device shown in fig. 1 according to a preferred embodiment is shown.
FIG. 4: is a conceptual diagram illustrating a first device connection of a first device in a first usage situation.
FIG. 5: is a conceptual diagram illustrating the use of a first device connection of a first device in a first-second use scenario.
The reference numerals are explained below:
1 universal serial bus interface detection module
2 first universal sequence bus cable
3 second universal serial bus cable 4 first device
5 second device 11 switching device
12 detection unit 41 first device connection part
51 second device connection 52 microprocessor
111 first transfer part 112 second transfer part
113 circuit unit 121 detection terminal
411 power pin 412 second ground pin
413 first ground source pin 1111 first ground source pin
1112 second ground pin 1113 Power pin
1121 configuration channel pin Q FET switch
Q0 box electrode Q1 first electrode
Q2 second electrode R1 first resistance
R2 second resistor
Detailed Description
Embodiments of the invention will be further explained by the following in conjunction with the associated drawings. Wherever possible, the same reference numbers will be used throughout the drawings and the description to refer to the same or like parts. In the drawings, the shape and thickness may be exaggerated for simplicity and convenience. It is to be understood that elements not specifically shown in the drawings or described in the specification are of a type well known to those of ordinary skill in the art. Many variations and modifications may be made by one of ordinary skill in the art in light of the teachings of the present invention.
Referring to fig. 1 to 3, fig. 1 is a conceptual diagram of a usb interface detection module according to a preferred embodiment of the present invention, fig. 2 is a conceptual diagram of a first adaptor of the adaptor shown in fig. 1 according to a preferred embodiment, and fig. 3 is a conceptual diagram of a second adaptor of the adaptor shown in fig. 1 according to a preferred embodiment. The usb interface detecting module 1 includes a switching device 11 and a detecting unit 12, wherein the switching device 11 includes a first switching portion 111, a second switching portion 112 and a circuit unit 113, and the circuit unit 113 is electrically connected between the first switching portion 111 and the second switching portion 112 and at least includes a fet switch Q and a first resistor R1. The fet switch Q of the circuit unit 113 has a box Q0, a first electrode Q1 and a second electrode Q2, and the first switch 111 of the switch device 11 has a plurality of pins including at least a first ground source pin 1111, a second ground source pin (GND)1112 and a power supply pin (VBUS)1113, and the second switch 112 also has a plurality of pins including at least a configuration channel pin 1121.
Furthermore, the box Q0 of the fet switch Q is electrically connected to the first ground pin 1111 of the first switch portion 111, the first electrode Q1 of the fet switch Q is electrically connected between the power pin 1113 of the first switch portion 111 and the configuration channel pin 1121 of the second switch portion 112, and the second electrode Q2 of the fet switch Q is grounded, for example, by being electrically connected to the second ground pin 1112 of the first switch portion 111. In addition, two ends of the first resistor R1 of the circuit unit 113 are electrically connected to the first electrode Q1 of the fet switch Q and the power pin 1113 of the first switch 111, respectively, and the first electrode Q1 and the second electrode Q2 of the fet switch Q are respectively a drain and a source, that is, the fet switch Q is an nmos type fet switch, but the present invention is not limited thereto, and for example, the fet switch Q may also be a pmos type fet switch.
In the preferred embodiment, the first adaptor portion 111 of the adaptor device 11 is used for the first USB cable 2 to be plugged thereon, and the interface specification of the first adaptor portion 111 is USB3.0, and the second adaptor portion 112 of the adaptor device 11 is used for the second USB cable 3 to be plugged thereon, and the interface specification of the second adaptor portion 112 is C-Type (Type-C) USB interface. When the two ends of the first usb cable 2 are respectively plugged into the first switch portion 111 of the switch device 11 and the first device connecting portion 41 of the first device 4, the switch device 11 is electrically connected to the first device 4, and when the two ends of the second usb cable 3 are respectively plugged into the second switch portion 112 of the switch device 11 and the second device connecting portion 51 of the second device 5, the switch device 11 is electrically connected to the second device 5. In addition, the first device 4 may be, for example, a computer system, the second device 5 may be, for example, a keyboard device, a mouse device or other portable electronic devices provided with a rechargeable battery, and the interface specification of the second device connecting portion 51 is also a C-type usb interface, but not limited thereto.
In the preferred embodiment, the detecting unit 12 is disposed in the second device 5 and is electrically connected to the configuration channel pins 1121 of the second switching portion 112 when two ends of the second universal serial bus cable 3 are respectively plugged into the second switching portion 112 of the switching device 11 and the second device connecting portion 51 of the second device 5, and further, when two ends of the first universal serial bus cable 2 are respectively plugged into the first device connecting portion 41 of the first device 4 and the first switching portion 111 of the switching device 11 and two ends of the second universal serial bus cable 3 are respectively plugged into the second switching portion 112 of the switching device 11 and the second device connecting portion 51 of the second device 5, the detecting unit 12 can determine the interface specification of the first device connecting portion 41 of the first device 4 by detecting a voltage value corresponding to the configuration channel pins 1121. In addition, the detecting unit 12 includes a second resistor R2, one end of the second resistor R2 is grounded, and the other end of the second resistor R2 is electrically connected to the configuration channel pin 1121 of the second switching portion 112 when the second device 5 is electrically connected to the switching device 11 through the second universal serial bus cable 3. Preferably, the detecting end 121 of the detecting unit 12 can be disposed in the microprocessor 52 of the second device 5, but not limited thereto.
Next, how the usb interface detecting module 1 of the present disclosure detects the interface specification of the first device connecting portion 41 of the first device 4 will be described in detail. Referring to fig. 1 to 4, fig. 4 is a conceptual diagram illustrating a first device connection portion of a first device in a first usage situation. In this usage scenario, the interface specification of the first device connection 41 of the first device 4 is USB2.0, which has the power pin 411 and the second ground pin 412 but does not have the first ground pin, so when two ends of the first USB cable 2 are plugged into the first device connection 41 of the first device 4 and the first adaptor 111 of the adaptor 11, respectively, the power pin 1113 and the second ground pin 1112 of the first adaptor 111 are electrically connected to the power pin 411 and the second ground pin 412 of the first device connection 41, respectively, and the first ground pin 1111 of the first adaptor 111 is in a floating state (floating), so as to drive the first electrode Q1 of the fet switch Q of the circuit unit 113 and the second electrode Q2 to form a conducting state, and at this time, the voltage value of the configuration channel pin 1121 of the second adaptor 112 is 0V. Therefore, when the voltage value detected by the detection terminal 121 of the detection unit 12 in the second device 5 is 0V, the second device 5 can determine that the interface specification of the first device connecting part 41 of the first device 4 is USB 2.0.
Referring to fig. 1 to 3 and fig. 5 in a synchronous manner, fig. 5 is a conceptual diagram illustrating a first device connecting portion of a first device in a first-second usage situation. In this usage scenario, the interface specification of the first device connection 41 of the first device 4 is USB3.0, which has the first ground pin 413, the second ground pin 412 and the power pin 411, so that when two ends of the first USB cable 2 are plugged into the first device connection 41 of the first device 4 and the first switch 111 of the switch device 11, respectively, the first ground pin 1111, the second ground pin 1112 and the power pin 1113 of the first switch 111 are electrically connected to the first ground pin 413, the second ground pin 412 and the power pin 411 of the first device connection 41, respectively, so as to make the first electrode Q1 and the second electrode Q2 of the fet switch Q of the circuit unit 113 to be in a non-conductive state, at this time, the configured channel pin 1121 of the second switch 112 has a voltage value, so that, when the voltage value detected by the detection terminal 121 of the detection unit 12 in the second device 5 is greater than 0V, the second device 5 can determine that the interface specification of the first device connecting portion 41 of the first device 4 is USB 3.0.
Still further, when the interface specification of the first device connector 41 of the first device 4 is USB3.0, the voltage value detected by the detection terminal 121 of the detection unit 12 in the second device 5 is determined according to the resistance value of the first resistor R1 of the circuit unit 113 and the resistance value of the second resistor R2 of the detection unit 12, that is, the voltage value detected by the detection terminal 121 of the detection unit 12 in the second device 5 should be "the voltage value of the power supply pin 411 of the first device connector 41 (also the voltage value of the power supply pin 1113 of the first switch 111) × the resistance value of the second resistor R2/(the resistance value of the first resistor R1 + the resistance value of the second resistor R2)". Preferably, but not limited thereto, the usb interface detecting module 1 of the present disclosure may adjust the resistance of the first resistor R1 and/or the resistance of the second resistor R2 to make the voltage value detected by the detecting terminal 121 of the detecting unit 12 in the second device 5 smaller than the operating voltage of the second device 5.
Based on the above description, it can be seen that, in response to the difference of the interface specification of the first device connection portion 41 of the first device 4, the usb interface detecting module 1 of the present disclosure utilizes the ground source pin 1111 to match with the switching of the fet switch Q to change the voltage value of the configuration channel pin 1121, so that the second device 5 can obtain the interface specification of the first device connection portion 41.
The above description is only a preferred embodiment of the present invention and is not intended to limit the claims of the present invention, so that other equivalent changes or modifications without departing from the concept disclosed in the present invention should be included in the claims of the present disclosure.

Claims (15)

1. A universal serial bus interface detection module, comprising:
the switching device comprises a first switching part, a second switching part and a circuit unit, wherein the first switching part and the second switching part are respectively provided with a first ground source pin and a configuration channel pin, the circuit unit comprises a field effect tube switch, and the field effect tube switch is electrically connected between the first ground source pin and the configuration channel pin; and
a detection unit for electrically connecting to the configuration channel pins; when two ends of a first universal serial bus cable are respectively plugged in a first device connecting part and a first switching part of a first device and two ends of a second universal serial bus cable are respectively plugged in a second switching part and a second device connecting part of a second device, the detection unit is used for detecting a voltage value corresponding to the configuration channel pin and judging the interface specification of the first device connecting part.
2. The USB interface test module of claim 1, wherein a box pole of the FET switch is electrically connected to the first ground source pin.
3. The USB interface detecting module of claim 2, wherein the FET switch is turned on when two ends of the first USB cable are respectively plugged into the first device connecting portion and the first switch portion and the interface specification of the first device connecting portion is USB 2.0.
4. The USB interface detecting module of claim 2, wherein the FET switch is not turned on when two ends of the first USB cable are respectively plugged into the first device connecting portion and the first switch portion and the interface specification of the first device connecting portion is USB 3.0.
5. The USB interface detecting module of claim 2, wherein the first switch portion further has a power pin, and a first electrode of the FET switch is electrically connected between the power pin and the configuration channel pin, and a second electrode of the FET switch is grounded.
6. The USB interface detecting module of claim 5, wherein one of the first and second electrodes of the FET switch is a drain and the other of the first and second electrodes of the FET switch is a source.
7. The USB interface detecting module of claim 5, wherein the circuit unit further comprises a first resistor electrically connected between the first electrode of the FET switch and the power pin.
8. The USB interface detecting module of claim 7, wherein the detecting unit comprises a second resistor, one end of the second resistor is electrically connected to the configuration channel pin, and the other end of the second resistor is grounded.
9. The USB interface detecting module of claim 8, wherein the first resistor and the second resistor are configured to make the voltage value detected by the detecting unit smaller than an operating voltage of the second device.
10. The USB interface detecting module of claim 1, wherein the detecting unit is disposed in the second device.
11. The USB interface detecting module of claim 1, wherein the second device is a keyboard device or a mouse device.
12. The USB interface detecting module of claim 1, wherein the interface specification of the first adapter is USB 3.0.
13. The USB interface detecting module of claim 1, wherein the interface specification of the second switch unit is a type-C USB interface.
14. The USB interface detecting module of claim 1, wherein the detecting unit determines that the interface specification of the first device connecting portion is USB2.0 when the detecting unit detects that the voltage value corresponding to the configuration channel pin is 0V.
15. The USB interface detecting module of claim 1, wherein the detecting unit determines that the interface specification of the first device connecting portion is USB3.0 when the detecting unit detects that the voltage value corresponding to the configuration channel pin is greater than 0V.
CN202010673298.8A 2020-07-14 2020-07-14 Universal serial bus interface detection module Active CN113934665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010673298.8A CN113934665B (en) 2020-07-14 2020-07-14 Universal serial bus interface detection module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010673298.8A CN113934665B (en) 2020-07-14 2020-07-14 Universal serial bus interface detection module

Publications (2)

Publication Number Publication Date
CN113934665A true CN113934665A (en) 2022-01-14
CN113934665B CN113934665B (en) 2023-11-24

Family

ID=79273877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010673298.8A Active CN113934665B (en) 2020-07-14 2020-07-14 Universal serial bus interface detection module

Country Status (1)

Country Link
CN (1) CN113934665B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10108131A1 (en) * 2001-02-21 2002-09-05 Infineon Technologies Ag Semiconductor circuit for power supply grid has a control circuit with a load which is switchable over time
CN101861574A (en) * 2007-11-15 2010-10-13 诺基亚公司 Power connection between serial interfaces
CN101894085A (en) * 2009-05-18 2010-11-24 索尼计算机娱乐公司 Signal conditioning package
CN102064582A (en) * 2010-12-28 2011-05-18 鸿富锦精密工业(深圳)有限公司 Terminal capable of supplying power for outside
TW201445320A (en) * 2013-05-17 2014-12-01 Primax Electronics Ltd USB interface detection device
CN110808572A (en) * 2018-08-06 2020-02-18 富士电机株式会社 Switching device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10108131A1 (en) * 2001-02-21 2002-09-05 Infineon Technologies Ag Semiconductor circuit for power supply grid has a control circuit with a load which is switchable over time
CN101861574A (en) * 2007-11-15 2010-10-13 诺基亚公司 Power connection between serial interfaces
CN101894085A (en) * 2009-05-18 2010-11-24 索尼计算机娱乐公司 Signal conditioning package
CN102064582A (en) * 2010-12-28 2011-05-18 鸿富锦精密工业(深圳)有限公司 Terminal capable of supplying power for outside
TW201445320A (en) * 2013-05-17 2014-12-01 Primax Electronics Ltd USB interface detection device
CN110808572A (en) * 2018-08-06 2020-02-18 富士电机株式会社 Switching device

Also Published As

Publication number Publication date
CN113934665B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
TWI764195B (en) Usb interface detection module
US8756358B2 (en) Method and device for identifying universal serial bus (USB) insertion or charger insertion of mobile terminal
US7711870B2 (en) Interface detecting circuit and interface detecting method
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
CN101894085B (en) Information processing apparatus
EP2584471A1 (en) Method and terminal for selecting internal circuit according to USB interface status
CN107465060A (en) USB Type-C switching module and starting method thereof
CN102055223A (en) USB special charger recognition circuit
KR20090011171A (en) Mobile phone and method for charging through discernment charging cable
CN103208822A (en) Universal serial bus (USB) charging control circuit
US20110244728A1 (en) Universal serial bus connector and adaptor of the connector
CN103905955A (en) Method and apparatus for detecting insertion of earphones, and interface circuit
TWI501085B (en) Usb interface detection device
US20150169491A1 (en) Electronic device using usb socket to load firmware and firmware loading method thereof
US8266348B2 (en) System and method of communicating with portable devices
US20120096286A1 (en) Charging management method, charging control circuit and the host apparatus having the same
CN113452102A (en) Charging device and method thereof
JP2004507834A (en) Recognition of device connection status in USB
CN113934665B (en) Universal serial bus interface detection module
TWI817862B (en) Computer assembly and control method therefor
KR100700532B1 (en) A method for recognizing device connected to universal serial bus port and universal serial bus adaptor
CN115145524A (en) Double-blind-insertion display control circuit, device and method based on single group of CCs
CN112086830B (en) Data line circuit communicating with iOS device
US10754805B1 (en) USB adapter
KR20060112053A (en) Connection detecting method of usb device and the same processing portable terminal

Legal Events

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