CN113190488A - Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof - Google Patents

Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof Download PDF

Info

Publication number
CN113190488A
CN113190488A CN202110512609.7A CN202110512609A CN113190488A CN 113190488 A CN113190488 A CN 113190488A CN 202110512609 A CN202110512609 A CN 202110512609A CN 113190488 A CN113190488 A CN 113190488A
Authority
CN
China
Prior art keywords
key
power supply
pin
usb type
mode
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
CN202110512609.7A
Other languages
Chinese (zh)
Other versions
CN113190488B (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110512609.7A priority Critical patent/CN113190488B/en
Publication of CN113190488A publication Critical patent/CN113190488A/en
Application granted granted Critical
Publication of CN113190488B publication Critical patent/CN113190488B/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
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R1/00Details of instruments or arrangements of the types included in groups G01R5/00 - G01R13/00 and G01R31/00
    • G01R1/02General constructional details
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • 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/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H13/00Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch
    • H01H13/50Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch having a single operating member
    • H01H13/64Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch having a single operating member wherein the switch has more than two electrically distinguishable positions, e.g. multi-position push-button switches
    • 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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a circuit capable of dynamically configuring a USBType-C working mode and a using method and a device thereof, belonging to the field of USB.A key A or a key B is pressed when the USBType-C power supply tester working mode is an active mode, and a first configuration channel pin bit line CC1 or a second configuration channel pin bit line CC2 is grounded, so that a power supply communication pin is pulled down, and the USBType-C power supply tester becomes a powered device; changing the key A or the key B from a pull-down key of a power supply communication pin to other operation keys through a key mode conversion unit; when the working mode of the USBType-C power supply tester is a direct-through mode, releasing the key A and the key B to serve as detection equipment; and changing the key A and the key B from a pull-down key of a power supply communication pin to other operation keys through a key mode conversion unit. The invention can dynamically configure the working mode of the USBType-C power supply tester, reduces the number of keys of the tester and is easy to integrate.

Description

Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof
Technical Field
The invention relates to the field of USB, in particular to a circuit capable of dynamically configuring a USB Type-C working mode and a using method and device thereof.
Background
USB Type-C is an emerging interface specification in recent years that uses the Power Delivery protocol for Power negotiation. The PD protocol requires the power receiving device (Sink) to pull down two power supply communication pins (hereinafter referred to as CC pins) of the Type-C port to GND with a specific resistance value, and the power supply device (Source) can start to supply power after detecting that. In the power supply process, the Source and the Sink also need to communicate through the CC pin at any time.
To test a USB Type-C powered device, a USB Type-C power tester needs to be used. The common tester for the Type-C power supply is provided with a Type-C female port and a male port, and the two ports are directly communicated through PCB wiring.
A common high-end USB Type-C power tester has two test modes: a pass-through mode and an active mode. Under the direct mode, the instrument needs to disconnect the pull-down resistor of the CC pin from the instrument, a user inserts the instrument between a power supply line and the tested device, and the tested device pulls down the CC pin, so that the detection and display of the charging current/voltage/protocol can be realized. Under the initiative mode, insert the instrument single-end and charge the head, with the CC pull-down circuit of instrument and link into its inside logic to as the powered device, test the power supply capacity that charges the head.
In order to realize the switching between the two modes, the instrument on the market at present generally has a physical change-over switch, and the change-over switch is switched to an on gear, namely, a CC line is connected into the logic of the CC line, the CC line enters an active mode, and the change-over switch is switched to an off gear, namely, the CC line is disconnected from the internal logic of the CC line, and the CC line enters a direct connection mode. The independent physical switch can only be used for triggering power supply, corresponding keys are required to be added when the instrument is operated in other modes, the number of the keys is large, and the toggle switch occupies a large volume and is not beneficial to being integrated into the instrument with a small volume.
Disclosure of Invention
The invention aims to solve the problem caused by switching the working mode of a USB Type-C power supply tester by using a physical switch in the prior art, and provides a circuit capable of dynamically configuring the USB Type-C working mode, a using method and a device.
The purpose of the invention is realized by the following technical scheme:
the utility model provides a circuit that can dynamic configuration USB Type-C mode of operation sets up inside USB Type-C power tester for the mode of operation of configuration USB Type-C power tester, USB Type-C power tester includes:
the protocol communication chip is used for communicating with the external equipment; the protocol communication chip is internally provided with a pull-down function and is provided with a power supply communication pin;
the USB Type-C power tester comprises a Type-C port and a USB Type-C port, wherein the Type-C port comprises a male port and a female port which are respectively arranged on the USB Type-C power tester, the male port and the female port both comprise at least one power supply communication pin, and the Type-C port connects the USB Type-C power tester with external equipment through the power supply communication pin;
the main control unit is connected with the protocol communication chip;
the circuit comprises:
one end of the configuration channel pin bit line is connected with a power supply communication pin, and the other end of the configuration channel pin bit line is connected with the external equipment;
the anode of the diode is connected with a common connection point between the configuration channel pin bit line and the power supply communication pin, and the cathode of the diode is connected with one end of a resistor; the other end of the resistor is grounded through the key;
the key state monitoring unit is used for detecting the pressing condition of the key;
the key mode conversion unit is connected to a common connection point between the diode and the resistor and is used for configuring the working mode of the key; the key mode conversion unit configures the operating modes of the keys to include:
when the key mode conversion unit is not powered on, the action of the key controls the pull-down operation of the power supply communication pin, and when the key mode conversion unit is powered on, the action of the key does not control the pull-down operation of the power supply communication pin;
the main control unit is respectively connected with the key state monitoring unit and the key mode conversion unit, and the keys are push type keys.
Preferably, the female port includes pin CC1 and pin CC2, and the circuit includes:
a first configuration channel pin bit line CC1 and a second configuration channel pin bit line CC2, the pin CC1 being connected to the first configuration channel pin bit line CC1, the pin CC2 being connected to the second configuration channel pin bit line CC 2;
a first diode having an anode connected to the first configuration channel pin bit line CC1 and a cathode connected to one end of a first resistor; the other end of the first resistor is grounded through a key A;
a second diode having an anode connected to the second configuration channel pin bit line CC2 and a cathode connected to one end of a second resistor; the other end of the second resistor is grounded through a key B; the key A and the key B are both push type keys;
the key state monitoring unit respectively detects the pressing conditions of the key A and the key B; one end of the key mode conversion unit is connected to a common connection point between the first diode and the first resistor, and the other end of the key mode conversion unit is connected to a common connection point between the second diode and the second resistor.
Preferably, the key mode conversion unit includes a third diode, a fourth diode and a start pin BOOTED, an anode of the third diode is connected to an anode of the fourth diode, a cathode of the third diode is connected to a common connection point between a cathode of the first diode and the first resistor, and a cathode of the fourth diode is connected to a common connection point between a cathode of the second diode and the second resistor;
the starting pin BOOTED is connected to a connecting line of the third diode and the fourth diode, the starting pin BOOTED is connected with the main control unit, and the starting pin BOOTED controls whether the key mode conversion unit is powered on or not.
Preferably, the key state monitoring unit includes:
a KEY _ A _ O line connected to a common connection point between the first pull-down resistor and the KEY A;
a KEY _ B _ O line connected to a common connection point between the second pull-down resistor and the KEY B;
the KEY _ A _ O line and the KEY _ B _ O line are respectively connected with the main control unit.
Preferably, a first detection resistor is disposed on the KEY _ a _ O line, and a second detection resistor is disposed on the KEY _ B _ O line.
The method is used for configuring the working mode of the USB Type-C power supply tester, the working mode of the USB Type-C power supply tester comprises an active mode and a direct-through mode, and the external equipment comprises power supply equipment and/or detected equipment;
when the working mode of the USB Type-C power supply tester is an active mode, the channel pin bit line is configured through key control to be pulled down and grounded to serve as a powered device, and the method comprises the following steps:
the USB Type-C power supply tester is directly connected with the power supply equipment through a power supply communication pin on a male port, and the male port is provided with a power supply communication pin;
or the USB Type-C power tester passes through the power supply communication pin on the female port and the power supply unit connects:
the female port is provided with two power supply communication pins, two configuration channel pin bit lines are arranged corresponding to the two power supply communication pins, and the two configuration channel pin bit lines are connected with power supply equipment through cables;
after the USB Type-C power supply tester is connected with the power supply equipment, the main control unit controls the key mode conversion unit to be powered on;
when the working mode of the USB Type-C power supply tester is a direct-through mode, the channel pin line is configured through key control and is not pulled down and grounded to serve as detection equipment, and the method comprises the following steps:
connect USB Type-C power tester between power supply unit and equipment under test, the equipment under test control configuration passageway pin position line is pulled down.
Preferably, when USB Type-C power tester passes through the power supply communication pin on the female port with power supply unit connects, include:
pressing key a or key B to ground either the first configuration channel pin bit line CC1 or the second configuration channel pin bit line CC 2; and when the key state monitoring unit detects that the key A or the key B is pressed, the key A or the key B is changed into other operation keys from a pull-down key of a power supply communication pin through the key mode conversion unit.
Preferably, when the operation mode of the USB Type-C power tester is the direct mode, the method includes:
and when the key state monitoring unit detects that the key A and the key B are not pressed down, the key A and the key B are changed into other operation keys from a pull-down key of a power supply communication pin through the key mode conversion unit.
Preferably, the main control unit controls the voltage value of the start pin BOOTED to be pulled down or pulled up, when the voltage value of the start pin BOOTED is pulled up, the main control unit controls the key mode conversion unit to be powered on, and when the voltage value of the start pin BOOTED is 0V, the main control unit controls the key mode conversion unit not to be powered on;
the main control unit acquires the state of the KEY A through a KEY _ A _ O line, and the main control unit acquires the state of the KEY B through a KEY _ B _ O line.
The present invention also provides an apparatus comprising a circuit as claimed in any one of claims 1 to 5 for dynamically configuring a USB Type-C mode of operation.
It should be further noted that the technical features corresponding to the above-mentioned system options can be combined with each other or replaced to form a new technical solution.
Compared with the prior art, the invention has the beneficial effects that:
(1) when the key mode conversion unit is powered on, the key action controls the pull-down operation of the non-power supply communication pin, the key is converted into a key for other operations of the instrument, one key is multipurpose, the independent design of the key for realizing other functions is avoided, the number of the keys is reduced, and the key is a push type switch and has a smaller volume compared with a toggle type switch; the instrument is not provided with a physical switch or a key specially designed for controlling the power supply communication pin to be pulled down, occupies a small PCB (printed circuit board) volume and is easy to integrate;
(2) pressing a key A or a key B to ground the first configuration channel pin bit line CC1 or the second configuration channel pin bit line CC2, so that the power supply communication pin is pulled down, and the USB Type-C power supply tester becomes a powered device; and simultaneously, the key A and the key B are released to be used as detection equipment, so that the working modes are conveniently switched.
(3) Make USB Type-C power tester under the circumstances of disect insertion power supply unit (like the head that charges, the package that charges), through pressing the button, can make power supply unit begin to supply power, simple and convenient.
Drawings
FIG. 1 is a schematic circuit diagram of the present invention;
FIG. 2 is a schematic diagram of the internal connections of the USB Type-C power tester of the present invention;
FIG. 3 is a detailed block diagram of the present invention;
FIG. 4 is a schematic circuit diagram of the key mode converting unit of the present invention when not powered;
FIG. 5 is a schematic circuit diagram of the key mode converting unit according to the present invention when it is powered on.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that directions or positional relationships indicated by "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like are directions or positional relationships described based on the drawings, and are only for convenience of description and simplification of description, and do not indicate or imply that the device or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly stated or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The invention mainly controls the working modes of the key A and the key B by the matching of the diodes through the key mode conversion unit, thereby achieving the purpose of dynamically configuring the USB Type-C working mode.
Example 1
In an exemplary embodiment, as shown in fig. 1, a circuit capable of dynamically configuring USB Type-C operation mode is provided, disposed inside a USB Type-C power tester, for configuring the operation mode of the USB Type-C power tester, where the USB Type-C power tester includes:
the protocol communication chip is used for communicating with the external equipment; the protocol communication chip is internally provided with a pull-down function and is provided with a power supply communication pin;
the USB Type-C power tester comprises a Type-C port and a USB Type-C port, wherein the Type-C port comprises a male port and a female port which are respectively arranged on the USB Type-C power tester, the male port and the female port both comprise at least one power supply communication pin, and the Type-C port connects the USB Type-C power tester with external equipment through the power supply communication pin;
the main control unit is connected with the protocol communication chip;
the circuit comprises:
one end of the configuration channel pin bit line is connected with a power supply communication pin, and the other end of the configuration channel pin bit line is connected with the external equipment;
the anode of the diode is connected with a common connection point between the configuration channel pin bit line and the power supply communication pin, and the cathode of the diode is connected with one end of a resistor; the other end of the resistor is grounded through the key;
the key state monitoring unit is used for detecting the pressing condition of the key;
the key mode conversion unit is connected to a common connection point between the diode and the resistor and is used for configuring the working mode of the key; the key mode conversion unit configures the operating modes of the keys to include:
when the key mode conversion unit is not powered on, the action of the key controls the pull-down operation of the power supply communication pin, and when the key mode conversion unit is powered on, the action of the key does not control the pull-down operation of the power supply communication pin;
the main control unit is respectively connected with the key state monitoring unit and the key mode conversion unit, and the keys are push type keys.
Specifically, before equipment is started, the main control unit of the USB Type-C power supply tester is in a non-powered-on state, the key mode conversion unit is not powered on at the same time, the action of the key controls the pull-down operation of the power supply communication pin, at the moment, the key is pressed down, the pin bit line of the configuration channel is grounded, the power supply communication pin is pulled down, and when the power supply communication pin of the protocol communication chip is pulled down, the USB Type-C power supply tester receives the power supply of the power supply equipment
In one exemplary embodiment, the key pressing type key is operated manually, and therefore is small in occupied size and easy to integrate, and in another exemplary embodiment, the key is a toggle switch, and although the toggle switch is large in occupied size, the function can be achieved.
The USB Type-C power tester is used as a normal powered device at the moment, and after the device is started by means of a key, a PD protocol is used for communicating with a power supply device to perform power supply negotiation.
After the USB Type-C power supply tester receives power supply starting of the power supply equipment, the main control unit is in a power-on state, the key mode conversion unit connected with the main control unit is also powered on, at the moment, the action of the key does not control the power supply communication pin pull-down operation, and the key is converted into an operation key for controlling other functions of the USB Type-C power supply tester.
The multifunctional push button switch has the advantages that one key is multipurpose, independent key design for realizing other functions is avoided, the number of keys is reduced, in one exemplary embodiment, the push button type keys only need to be manually operated, compared with toggle switches, an instrument does not have a physical switch or a key specially designed for CC pull-down, the occupied PCB size is small, and integration is easy. The volume is small, and the integration is easy, and in another exemplary embodiment, the key is a toggle switch, and although the toggle switch has a large volume, the pull-down function can also be realized.
In practical use, the circuit can comprise one, two or more configuration channel pin bit lines, when the public port is used for being connected with external equipment, as the public port only has one power supply communication pin, only any one key is required to be pressed down, and power supply can be triggered; when the female port is used for being connected with external equipment, the configuration channel pin bit line needs to be connected with the external equipment through a cable, only one power supply communication line is arranged in the cable, and only one corresponding configuration channel pin bit line is connected with the power supply communication line, so that the pressing condition of a key needs to be judged through the key state monitoring unit, and the corresponding configuration channel pin bit line is known to be connected for supplying power.
After the power is turned on, the push button loses the pull-down function, however, the PD protocol requires that the powered device always pull down one configuration channel pin bit line, and meanwhile, PD communication is also performed on this line, otherwise, power supply is stopped. At this time, the pull-down task is handed to the protocol communication chip to be completed. The main control unit reads the current key pressing state, and after knowing which configuration channel pin line is connected, the protocol communication chip is controlled to carry out corresponding configuration.
Furthermore, the key is not pressed down, the power supply communication pin of the protocol communication chip is not pulled down, the USB Type-C power supply tester is inserted between the power supply line and the tested equipment to form the detection equipment, and at the moment, the key is changed from the pull-down key of the power supply communication pin into an operation key with a detection function through the key mode conversion unit, so that the detection function is realized; the power supply of the key mode conversion unit is correspondingly cut off, and the pull-down function of the key can be recovered.
Further, the charging head is directly connected using the male port, and the charging head is connected via an extension line using the female port. The two modes are different and the meter must support both modes of connection if it is desired to measure current in both directions. If the cell-phone is equipment under test, connect USBType-C power tester between cell-phone and the head that charges, at this moment, USBType-C power tester's drop-down operation is not accomplished by oneself, lets the button release promptly, and drop-down operation is accomplished by the cell-phone, and the instrument does not undertake any drop-down function. Under the condition, after the instrument is started, the key is changed into an instrument function operation key, and the pull-down of the power supply communication pin is not influenced.
Example 2
The present embodiment has the same inventive concept as embodiment 1, and provides a circuit capable of dynamically configuring USB Type-C operation mode based on embodiment 1, where the Type-C interface and Power Delivery specification of the prior art stipulate that there are two CC pins in the interface, and other technologies (specifications that may be implemented in the future) may be only one CC pin or multiple CC pins, so that the two CC pins and the two configuration channel pin bit lines provided in this embodiment are not to be construed as improper limitations of the present invention.
Specifically, as shown in FIG. 2, two configuration channel footers are used, the female port includes pin CC1 and pin CC2, and the circuit includes:
a first configuration channel pin bit line CC1 and a second configuration channel pin bit line CC2, the pin CC1 being connected to the first configuration channel pin bit line CC1, the pin CC2 being connected to the second configuration channel pin bit line CC 2;
a first diode having an anode connected to the first configuration channel pin bit line CC1 and a cathode connected to one end of a first resistor; the other end of the first resistor is grounded through a key A;
a second diode having an anode connected to the second configuration channel pin bit line CC2 and a cathode connected to one end of a second resistor; the other end of the second resistor is grounded through a key B; the key A and the key B are both push type keys;
the key state monitoring unit respectively detects the pressing conditions of the key A and the key B; one end of the key mode conversion unit is connected to a common connection point between the first diode and the first resistor, and the other end of the key mode conversion unit is connected to a common connection point between the second diode and the second resistor.
Further, before the device is started, the main control unit of the USB Type-C power supply tester is in a non-powered state, the key mode conversion unit is not powered on at the same time, the actions of the key A and the key B control the pull-down operation of the power supply communication pin, and at the moment, the key A or the key B is pressed down to pull down the power supply communication pin of the protocol communication chip; if the key A is pressed, a power supply communication pin connected with the first configuration channel pin bit line CC1 is pulled low; pressing key B pulls the power communication pin connected to the second configured channel pin bit line CC2 low.
After the USB Type-C power tester receives the power supply start of the power supply equipment, the main control unit is in a power-on state, the key mode conversion unit connected with the main control unit is also powered on, at the moment, the actions of the key A and the key B control the pull-down operation of the non-power-supply communication pin, namely the operation of the key A and the key B does not influence the pull-down operation of the power-supply communication pin, and the key A and the key B are converted into operation keys for controlling other functions of the USB Type-C power tester.
Example 3
On the basis of embodiment 2, a specific structure diagram of a circuit capable of dynamically configuring a USB Type-C operating mode is provided, as shown in fig. 3, a circuit structure diagram of only a key portion of the circuit is given, and other structures are the same as those of the above embodiments, specifically, the key mode conversion unit includes a third diode, a fourth diode, and a start pin BOOTED, an anode of the third diode is connected to an anode of the fourth diode, a cathode of the third diode is connected to a common connection point between a cathode of the first diode and the first resistor, and a cathode of the fourth diode is connected to a common connection point between a cathode of the second diode and the second resistor.
As shown in fig. 3, the first diode is D1, the second diode is D2, the third diode is D3, the fourth diode is D4, the first pull-down resistor is R1, the second pull-down resistor is R2, the first detection resistor is R3, and the second detection resistor is R4.
The starting pin BOOTED is connected to a connecting line of the third diode and the fourth diode, the starting pin BOOTED is connected with the main control unit, and the starting pin BOOTED controls whether the key mode conversion unit is powered on or not.
Further, the key state monitoring unit includes:
a KEY _ A _ O line connected to a common connection point between the first pull-down resistor and the KEY A;
a KEY _ B _ O line connected to a common connection point between the second pull-down resistor and the KEY B;
the KEY _ A _ O line and the KEY _ B _ O line are respectively connected with the main control unit.
The KEY _ A _ O line is provided with a first detection resistor R3, and the KEY _ B _ O line is provided with a second detection resistor R4.
There are two CC lines on standard power supply unit's the Type-C interface, also have two CC lines on the powered device, and the CC line is equivalent to the configuration passageway pin bit line of this application, and except the tester, two configuration passageway pin bit lines of the female end powered device (like the cell-phone) homoenergetic of standard down-draw. The power supply equipment and the powered equipment are connected through a Type-C cable, all standard Type-C cables have a special structure (the structure is designed for detecting the insertion direction of the cable), and only one power supply communication line is connected with any one configuration channel pin line on connectors at two ends of the cable respectively. Therefore, although the power receiving device pulls down two configuration channel pin bit lines, for the power supply device, since there is only one power supply communication line on the middle cable, only one configuration channel pin bit line is pulled down as seen by the power supply device (since only one configuration channel pin bit line is connected between the power supply device and the power receiving device), and normal power supply is started. If the meter is connected to the charging head by a cable, only one of the configuration channel pins connected to CC1 or CC2 is connected to the power supply and the user must press the button that actually connects the corresponding cable.
Specifically, before the device is started, it is desirable that the pin CC1 or the pin CC2 is pulled down by the key control, and at this time, the main control unit is in an unpowered state, as shown in fig. 4, the pin BOOTED is kept at 0V and controlled by the diode unidirectional conduction action, and the current cannot flow through D3 and D4, which is equivalent to that this part of the circuit does not exist. In order to enable the power supply equipment to supply power to the USB Type-C power tester, a user only needs to press any one of the key a and the key B, and the key a is pressed and the key B is released in fig. 4, so that the key B does not exist. Because in the PowerDelivery specification, the powered device only needs to pull down one of the two CC pins, i.e., constitutes an active power-up request, while pulling down both CC pins is inactive. If the user presses key a, which corresponds to a pull down on pin CC1, the power supply device will initiate power.
In practice, the user may attempt to press one of keys a or B, and if the meter is not normally powered up (screen lit), the user may attempt to press the other key.
Before starting up, the pin BOOTED is at a low level, and the button can play a role in pulling down the CC line; after the computer is started, in order to avoid interference of the keys on PD communication on the CC line, the pull-down action of the keys needs to be removed, at this time, the pin BOOTED is pulled up by the main control unit, and the keys are not affected any more when pressed through the two diodes D3 and D4.
As shown in fig. 5, in order to "disconnect" the key from the CC pin circuit, that is, the key does not affect the CC pin, the main control unit pulls up the pin BOOTED to a certain voltage value, here, 3.3V, at this time, the key is pressed, because the BOOTED is pulled up, the other end of the configuration channel pin bit line always has a high voltage, and the grounding effect of the key does not affect the pull-down of the configuration channel pin bit line.
Under the influence of the unidirectional conduction of the diode, as shown in fig. 5, the current cannot pass through the D1 and the D2, and the part is equivalent to 'off', and the purpose is achieved by passing through the D3 and the D4, and at the moment, the key A and the key B are changed from a pull-down key of the power supply communication pin to other operation keys.
Meanwhile, the main control unit can obtain the state of the KEY by reading the voltage of the KEY _ a _ O line and the KEY _ B _ O line to realize the response to the KEY, specifically, when the KEY a is pressed, the voltage of the KEY _ a _ O line is 0V, when the KEY B is pressed, the voltage of the BKEY _ B _ O line is 0V, when the KEY a is released, the voltage of the KEY _ a _ O line is 3.3V, and when the KEY B is released, the voltage of the BKEY _ B _ O line is 3.3V. And reading the state of the key, and changing the key into a normal operation key of the instrument.
Further, in the pass-through mode, the USB Type-C power tester is activated in a state where the key is released, and the first configuration channel pin bit line CC1 and the second configuration channel pin bit line CC2 are pulled down by an external powered device. When the main control unit is activated, if the key press is not detected, the pin BOOTED is directly pulled up, so that the first configuration channel pin bit line CC1 and the second configuration channel pin bit line CC2 are not affected by subsequent key press operations.
Example 4
On the basis of the above embodiments, a method for using a circuit capable of dynamically configuring a USB Type-C operating mode is provided, and a method for using a circuit capable of dynamically configuring a USB Type-C operating mode is provided, where the method is used to configure an operating mode of a USB Type-C power tester, the operating mode of the USB Type-C power tester includes an active mode and a pass-through mode, and the external device includes a power supply device and/or a device to be tested;
when the working mode of the USB Type-C power tester is the active mode, the channel pin bit line is configured through key control to be pulled down and grounded to serve as powered equipment.
In one exemplary embodiment, the method includes:
the USB Type-C power supply tester is directly connected with the power supply equipment through a power supply communication pin on a male port, and the male port is provided with a power supply communication pin;
in another embodiment, the USB Type-C power tester is connected to the power supply device through a power supply communication pin on the female port:
the female port is provided with two power supply communication pins, two configuration channel pin bit lines are arranged corresponding to the two power supply communication pins, and the two configuration channel pin bit lines are connected with power supply equipment through cables;
after the USB Type-C power supply tester is connected with the power supply equipment, the main control unit controls the key mode conversion unit to be powered on;
when the working mode of the USB Type-C power supply tester is a direct-through mode, the channel pin line is configured through key control and is not pulled down and grounded to serve as detection equipment, and the method comprises the following steps:
connect USB Type-C power tester between power supply unit and equipment under test, the equipment under test control configuration passageway pin position line is pulled down.
Specifically, in an exemplary embodiment, before the power is turned on, the USB Type-C power tester is connected to the power supply device through the male port, and since only one power supply communication pin is arranged on the male port, when any key is pressed, the configuration channel pin bit line is pulled down and grounded, and the USB Type-C power tester is triggered to receive power and enter the active mode.
In another exemplary embodiment, before starting up, the USB Type-C power tester is connected to a power supply device through a female port, two power supply communication pins are arranged on the female port, two configuration channel pin bit lines are arranged corresponding to the two power supply communication pins, and the two configuration channel pin bit lines are connected to the power supply device through a cable; because only one power supply communication line is arranged in the cable, only one pin bit line of the configuration channel is connected with the power supply communication line, and particularly, which pin bit line is connected can be detected by the key state monitoring unit, and then the active mode is also entered.
After the USB Type-C power supply tester enters an active mode, the main control unit controls the key mode conversion unit to be powered on, and the key mode conversion unit changes the key from a pull-down key of a power supply communication pin to other operation keys; all keys are released, the circuit does not control the configuration channel pin line to be pulled down and grounded, at the moment, the USB Type-C power tester is used as detection equipment, a direct connection mode is entered, the USB Type-C power tester is connected between the power supply equipment and the detected equipment, and the configuration channel pin line is controlled to be pulled down by the detected equipment at the moment in order to keep the power supply of the USB Type-C power tester.
Further, when USB Type-C power tester pass through the power supply communication pin on the female port with power supply unit connects, include:
pressing key a or key B to ground either the first configuration channel pin bit line CC1 or the second configuration channel pin bit line CC 2; and when the key state monitoring unit detects that the key A or the key B is pressed, the key A or the key B is changed into other operation keys from a pull-down key of a power supply communication pin through the key mode conversion unit.
Further, when the mode of operation of USB Type-C power tester is through mode, include:
and when the key state monitoring unit detects that the key A and the key B are not pressed down, the key A and the key B are changed into other operation keys from a pull-down key of a power supply communication pin through the key mode conversion unit.
The main control unit controls the voltage value of the starting pin BOOTED to be pulled down or pulled up, when the voltage value of the starting pin BOOTED is pulled up, the main control unit controls the key mode conversion unit to be powered on, and when the voltage value of the starting pin BOOTED is 0V, the main control unit controls the key mode conversion unit not to be powered on;
the main control unit acquires the state of the KEY A through a KEY _ A _ O line, and the main control unit acquires the state of the KEY B through a KEY _ B _ O line.
Example 5
The present invention also provides an apparatus including the circuit capable of dynamically configuring USB Type-C operating mode according to the foregoing embodiments. The device can be understood as a device only comprising the circuit, such as a USB Type-C power tester, and can also be understood as a device with other functions including the circuit, and the function is not limited to configuring the operation mode of the USB Type-C power tester.
The above detailed description is for the purpose of describing the invention in detail, and it should not be construed that the detailed description is limited to the description, and it will be apparent to those skilled in the art that various modifications and substitutions can be made without departing from the spirit of the invention.
The above detailed description is for the purpose of describing the invention in detail, and it should not be construed that the detailed description is limited to the description, and it will be apparent to those skilled in the art that various modifications and substitutions can be made without departing from the spirit of the invention.

Claims (10)

1. The utility model provides a circuit that can dynamic configuration USB Type-C mode of operation sets up inside USB Type-C power tester for the mode of operation of configuration USB Type-C power tester, USB Type-C power tester includes:
the protocol communication chip is used for communicating with the external equipment; the protocol communication chip is internally provided with a pull-down function and is provided with a power supply communication pin;
the USB Type-C power tester comprises a Type-C port and a USB Type-C port, wherein the Type-C port comprises a male port and a female port which are respectively arranged on the USB Type-C power tester, the male port and the female port both comprise at least one power supply communication pin, and the Type-C port connects the USB Type-C power tester with external equipment through the power supply communication pin;
the main control unit is connected with the protocol communication chip; the method is characterized in that:
the circuit comprises:
one end of the configuration channel pin bit line is connected with a power supply communication pin, and the other end of the configuration channel pin bit line is connected with the external equipment;
the anode of the diode is connected with a common connection point between the configuration channel pin bit line and the power supply communication pin, and the cathode of the diode is connected with one end of a resistor; the other end of the resistor is grounded through the key;
the key state monitoring unit is used for detecting the pressing condition of the key;
the key mode conversion unit is connected to a common connection point between the diode and the resistor and is used for configuring the working mode of the key; the key mode conversion unit configures the operating modes of the keys to include:
when the key mode conversion unit is not powered on, the action of the key controls the pull-down operation of the power supply communication pin, and when the key mode conversion unit is powered on, the action of the key does not control the pull-down operation of the power supply communication pin;
the main control unit is respectively connected with the key state monitoring unit and the key mode conversion unit, and the keys are push type keys.
2. The circuit of claim 1, wherein the circuit is configured to dynamically configure USB Type-C operating modes, and wherein:
the female port includes pin CC1 and pin CC2, the circuit includes:
a first configuration channel pin bit line CC1 and a second configuration channel pin bit line CC2, the pin CC1 being connected to the first configuration channel pin bit line CC1, the pin CC2 being connected to the second configuration channel pin bit line CC 2;
a first diode having an anode connected to the first configuration channel pin bit line CC1 and a cathode connected to one end of a first resistor; the other end of the first resistor is grounded through a key A;
a second diode having an anode connected to the second configuration channel pin bit line CC2 and a cathode connected to one end of a second resistor; the other end of the second resistor is grounded through a key B; the key A and the key B are both push type keys;
the key state monitoring unit respectively detects the pressing conditions of the key A and the key B; one end of the key mode conversion unit is connected to a common connection point between the first diode and the first resistor, and the other end of the key mode conversion unit is connected to a common connection point between the second diode and the second resistor.
3. The circuit of claim 2, wherein the circuit is further configured to dynamically configure USB Type-C operating modes:
the key mode conversion unit comprises a third diode, a fourth diode and a starting pin BOOTED, wherein the anode of the third diode is connected with the anode of the fourth diode, the cathode of the third diode is connected with the common connection point between the cathode of the first diode and the first resistor, and the cathode of the fourth diode is connected with the common connection point between the cathode of the second diode and the second resistor;
the starting pin BOOTED is connected to a connecting line of the third diode and the fourth diode, the starting pin BOOTED is connected with the main control unit, and the starting pin BOOTED controls whether the key mode conversion unit is powered on or not.
4. The circuit of claim 2, wherein the circuit is further configured to dynamically configure USB Type-C operating modes:
the key state monitoring unit includes:
a KEY _ A _ O line connected to a common connection point between the first pull-down resistor and the KEY A;
a KEY _ B _ O line connected to a common connection point between the second pull-down resistor and the KEY B;
the KEY _ A _ O line and the KEY _ B _ O line are respectively connected with the main control unit.
5. The circuit of claim 4, wherein the circuit is further configured to dynamically configure USB Type-C operating modes:
the KEY _ A _ O line is provided with a first detection resistor, and the KEY _ B _ O line is provided with a second detection resistor.
6. A method of using a circuit as claimed in any one of claims 1 to 5 for dynamically configuring the mode of operation of a USB Type-C power tester, the mode of operation of the USB Type-C power tester including an active mode and a pass-through mode, characterised by:
the external equipment comprises power supply equipment and/or detected equipment;
when the working mode of the USB Type-C power supply tester is an active mode, the channel pin bit line is configured through key control to be pulled down and grounded to serve as a powered device, and the method comprises the following steps:
the USB Type-C power supply tester is directly connected with the power supply equipment through a power supply communication pin on a male port, and the male port is provided with a power supply communication pin;
or the USB Type-C power tester passes through the power supply communication pin on the female port and the power supply unit connects:
the female port is provided with two power supply communication pins, two configuration channel pin bit lines are arranged corresponding to the two power supply communication pins, and the two configuration channel pin bit lines are connected with power supply equipment through cables;
after the USB Type-C power supply tester is connected with the power supply equipment, the main control unit controls the key mode conversion unit to be powered on;
when the working mode of the USB Type-C power supply tester is a direct-through mode, the channel pin line is configured through key control and is not pulled down and grounded to serve as detection equipment, and the method comprises the following steps:
connect USB Type-C power tester between power supply unit and equipment under test, the equipment under test control configuration passageway pin position line is pulled down.
7. A method of using a dynamically configurable USB Type-C operating mode circuit according to claim 6, wherein:
when USB Type-C power tester pass through the power supply communication pin on the female port with when power supply unit connects, include:
pressing key a or key B to ground either the first configuration channel pin bit line CC1 or the second configuration channel pin bit line CC 2; and when the key state monitoring unit detects that the key A or the key B is pressed, the key A or the key B is changed into other operation keys from a pull-down key of a power supply communication pin through the key mode conversion unit.
8. A method of using a dynamically configurable USB Type-C operating mode circuit according to claim 6, wherein:
when USB Type-C power tester's mode is direct mode, include:
and when the key state monitoring unit detects that the key A and the key B are not pressed down, the key A and the key B are changed into other operation keys from a pull-down key of a power supply communication pin through the key mode conversion unit.
9. A method of using a dynamically configurable USB Type-C operating mode circuit according to claim 6, wherein:
the main control unit controls the voltage value of the starting pin BOOTED to be pulled down or pulled up, when the voltage value of the starting pin BOOTED is pulled up, the main control unit controls the key mode conversion unit to be powered on, and when the voltage value of the starting pin BOOTED is 0V, the main control unit controls the key mode conversion unit not to be powered on;
the main control unit acquires the state of the KEY A through a KEY _ A _ O line, and the main control unit acquires the state of the KEY B through a KEY _ B _ O line.
10. An apparatus, characterized by: the apparatus comprising a circuit as claimed in any one of claims 1 to 5 which is capable of dynamically configuring a USB Type-C mode of operation.
CN202110512609.7A 2021-05-11 2021-05-11 Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof Active CN113190488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110512609.7A CN113190488B (en) 2021-05-11 2021-05-11 Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110512609.7A CN113190488B (en) 2021-05-11 2021-05-11 Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof

Publications (2)

Publication Number Publication Date
CN113190488A true CN113190488A (en) 2021-07-30
CN113190488B CN113190488B (en) 2023-11-03

Family

ID=76981174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110512609.7A Active CN113190488B (en) 2021-05-11 2021-05-11 Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof

Country Status (1)

Country Link
CN (1) CN113190488B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104459386A (en) * 2014-11-24 2015-03-25 东莞理工学院 Tester for USB data line
CN105548790A (en) * 2015-12-09 2016-05-04 上海斐讯数据通信技术有限公司 USB3.1 Type-C cable automatic testing method and system
US20160342492A1 (en) * 2015-05-22 2016-11-24 Jianli Chen Usb interface detector
CN107506269A (en) * 2017-08-24 2017-12-22 晶晨半导体(上海)股份有限公司 The USB automated test tools and method of a kind of board

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104459386A (en) * 2014-11-24 2015-03-25 东莞理工学院 Tester for USB data line
US20160342492A1 (en) * 2015-05-22 2016-11-24 Jianli Chen Usb interface detector
CN105548790A (en) * 2015-12-09 2016-05-04 上海斐讯数据通信技术有限公司 USB3.1 Type-C cable automatic testing method and system
CN107506269A (en) * 2017-08-24 2017-12-22 晶晨半导体(上海)股份有限公司 The USB automated test tools and method of a kind of board

Also Published As

Publication number Publication date
CN113190488B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
US7994654B2 (en) Wireless-controlled power-saving apparatus
AU2013205559B2 (en) Data structures for facilitating communication between a host device and an accessory
JP2001306495A (en) Portable communication terminal
CN111409044A (en) Combination of battery pack and electric tool
CN201114602Y (en) Power consumption control circuit applicable to dual working platform and the mobile phone with this circuit
CN216720327U (en) Adapter and charging system with Lightning female seat
CN113190488A (en) Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof
US11855396B2 (en) Power adapter with lightning female socket, charging device and system
CN103312842B (en) For the terminal of annex detection and control, annex and system
CN110597375B (en) External equipment power supply device
WO2018133409A1 (en) Power management circuit, electronic device, and method for controlling electronic device
CN211508922U (en) Adapter with LCD screen and keys
CN212257939U (en) Type-C multifunctional connector external member compatible with Lightning protocol
CN113745873A (en) Adapter and charging system with Lightning female seat
CN209674371U (en) A kind of bluetooth USB Key circuit
CN209388295U (en) A kind of usb circuit and electronic equipment for realizing while charging and powering
CN215987295U (en) Interface expansion device and interface expansion equipment
CN220121170U (en) Automatic power-on circuit and system equipment
CN218161881U (en) Charging switching device with small night lamp
CN218633324U (en) Adapter plate and electronic equipment
CN117234992B (en) Automatic detection communication device and method with multiple asynchronous interfaces
CN113922353B (en) A device, Type-C adapter and Type-C cable for controlling power supply output
WO2023010463A1 (en) Charger
CN216774741U (en) Multifunctional key switch circuit
CN219106560U (en) Socket panel with Lightning female seat

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