CN113190488B - 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
CN113190488B
CN113190488B CN202110512609.7A CN202110512609A CN113190488B CN 113190488 B CN113190488 B CN 113190488B CN 202110512609 A CN202110512609 A CN 202110512609A CN 113190488 B CN113190488 B CN 113190488B
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.)
Active
Application number
CN202110512609.7A
Other languages
Chinese (zh)
Other versions
CN113190488A (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

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 application discloses a circuit capable of dynamically configuring a USBType-C working mode, a using method and a device thereof, belonging to the USB field, wherein when the working mode of a USBType-C power supply tester is an active mode, a key A or a key B is pressed to enable a first configuration channel pin line CC1 or a second configuration channel pin line CC2 to be grounded, so that a power supply communication pin is started to be pulled down, and the USBType-C power supply tester becomes powered equipment; 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 a key mode conversion unit; when the working mode of the USBType-C power supply tester is a straight-through mode, releasing a key A and a key B as detection equipment; and changing the pull-down keys of the key A and the key B from the power supply communication pins into other operation keys through a key mode conversion unit. The application can dynamically configure the working mode of the USBType-C power supply tester, reduces the number of keys of the meter 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 application relates to the field of USB (universal serial bus), in particular to a circuit capable of dynamically configuring an USB Type-C working mode, and a using method and a 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 a powered device (Sink) to pull down two power supply communication pins (hereinafter referred to as CC pins) of a Type-C port to GND with a specific resistance value, and a power supply device (Source) detects that power supply can start at the rear. In the power supply process, source and Sink also need to communicate through the CC foot at any time.
To test the USB Type-C power supply/receiving device, a USB Type-C power tester needs to be used. Type-C power supply typically testers have a Type-C female port and a male port that are directly connected using PCB wiring.
A typical high-end USB Type-C power tester has two test modes: a pass-through mode and an active mode. In the through mode, the instrument needs to be disconnected with the CC foot drop-down resistor, a user inserts the instrument between the power supply line and the tested equipment, and the tested equipment performs the drop-down of the CC foot, so that the detection and display of the charging current/voltage/protocol can be realized. In the active mode, a single end of the meter is inserted into the charging head, a CC pull-down circuit of the meter is connected into the internal logic of the meter and used as powered equipment, and the power supply capacity of the charging head is tested.
In order to realize the switching of the two modes, the current instruments on the market generally have a physical change-over switch, which is shifted to an on gear, namely the CC line is connected to the logic of the instrument, the instrument enters an active mode and is shifted to an off gear, namely the CC line is disconnected from the internal logic of the instrument and enters a through mode. The independent physical switch can only be used as trigger power supply, corresponding keys are added for other operations of the instrument, the number of the keys is large, and the toggle switch occupies a large volume, so that the instrument is not beneficial to being integrated into the instrument with small volume.
Disclosure of Invention
The application aims to solve the problem caused by switching the working mode of an USB Type-C power supply tester by using a physical change-over switch in the prior art, and provides a circuit capable of dynamically configuring the working mode of the USB Type-C, a using method and a device.
The aim of the application is realized by the following technical scheme:
the utility model provides a but dynamic configuration USB Type-C mode's circuit sets up inside USB Type-C power tester for configuration USB Type-C power tester's mode, USB Type-C power tester includes:
the protocol communication chip is used for communicating with external equipment; the protocol communication chip is internally provided with a pull-down function and is provided with a power supply communication pin;
the Type-C port comprises a male port and a female port which are respectively arranged on the USB Type-C power tester, wherein 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 pins;
the main control unit is connected with the protocol communication chip;
the circuit comprises:
one end of the configuration channel pin line is connected with the power supply communication pin, and the other end of the configuration channel pin line is connected with the external equipment;
the anode of the diode is connected to a common connection point between the configuration channel pin 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 by pressing a 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 working modes of the keys, including:
when the key mode conversion unit is not electrified, the action of the key controls the pull-down operation of the power supply communication pin, and when the key mode conversion unit is electrified, 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 a pin CC1 and a pin CC2, and the circuit includes:
a first configuration channel pin bit line CC1 and a second configuration channel pin bit line CC2, wherein the pin CC1 is connected with the first configuration channel pin bit line CC1, and the pin CC2 is connected with the second configuration channel pin bit line CC 2;
the anode of the first diode is connected with the first configuration channel pin line CC1, and the cathode of the first diode is connected with one end of the first resistor; the other end of the first resistor is grounded through a key A;
the anode of the second diode is connected with the second configuration channel pin line CC2, and the cathode of the second diode is connected with 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 detects the pressing conditions of the key A and the key B respectively; one end of the key mode conversion unit is connected to the common connection point between the first diode and the first resistor, and the other end of the key mode conversion unit is connected to the 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 boot pin BOOTED, wherein an anode of the third diode is connected with 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 the 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 electrified.
Preferably, the key state monitoring unit includes:
the KEY_A_O line is connected to a common connection point between the first pull-down resistor and the KEY A;
the KEY_B_O line is 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, 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.
The method is used for configuring the working mode of the USB Type-C power supply tester, wherein the working mode of the USB Type-C power supply tester comprises an active mode and a direct 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 configuration channel pin line is controlled to be grounded through a key to serve as powered equipment, 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 supply tester is connected with the power supply equipment 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 electrified;
when the working mode of the USB Type-C power supply tester is a straight-through mode, the channel pin line is configured to be not pulled down to be grounded through key control, and the method comprises the following steps of:
and the USB Type-C power tester is connected between the power supply equipment and the detected equipment, and the detected equipment controls the configuration channel pin line to be pulled down.
Preferably, when the USB Type-C power tester is connected to the power supply device through a power supply communication pin on the female port, the method includes:
pressing a key A or a key B to enable the first configuration channel pin line CC1 or the second configuration channel pin line CC2 to be grounded; when the key state monitoring unit detects that the key A or the key B is pressed down, the key A or the key B is changed into other operation keys from a pull-down key of the power supply communication pin through the key mode conversion unit.
Preferably, when the working mode of the USB Type-C power tester is a through 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 the pull-down keys of the power supply communication pins through the key mode conversion unit.
Preferably, 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 electrified, 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 electrified;
the main control unit obtains the state of the KEY A through the key_A_O line, and the main control unit obtains the state of the KEY B through the key_B_O line.
The application also provides a device comprising a circuit according to any of claims 1-5, which is capable of dynamically configuring the USB Type-C mode of operation.
It should be further noted that the technical features corresponding to the options of the above system may be combined with each other or replaced to form a new technical scheme.
Compared with the prior art, the application has the beneficial effects that:
(1) When the key mode conversion unit is electrified, the key action controls the pull-down operation of the non-power-supply communication pin, the key is converted into a key for other operation of the instrument, so that one-key multi-purpose is realized, the key is prevented from being independently designed for realizing other functions, the number of keys is reduced, and the key is a push switch, and compared with a toggle switch, the volume is small; the instrument has no physical switch or key specially designed for controlling the power supply communication pin to pull down, occupies small volume of a PCB, and is easy to integrate;
(2) Pressing a key A or a key B to enable the first configuration channel pin line CC1 or the second configuration channel pin line CC2 to be grounded, so that the power supply communication pin is started to be pulled down, and the USB Type-C power supply tester becomes powered equipment; and simultaneously, the key A and the key B are released to serve as detection equipment, so that the working mode is conveniently switched.
(3) The USB Type-C power supply tester can enable the power supply equipment to start supplying power by pressing the key under the condition that the USB Type-C power supply tester is directly inserted into the power supply equipment (such as a charging head and a charging bag), and is simple and convenient.
Drawings
FIG. 1 is a schematic circuit diagram of the present application;
FIG. 2 is a schematic diagram of the internal connection of the USB Type-C power tester of the present application;
FIG. 3 is a specific block diagram of the present application;
FIG. 4 is a schematic diagram of a circuit of the key mode converting unit of the present application when not powered on;
fig. 5 is a schematic circuit diagram of the key mode converting unit of the present application when power is applied.
Detailed Description
The following description of the embodiments of the present application will be made apparent and fully understood from the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the description of the present application, it should be noted that directions or positional relationships indicated as being "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are directions or positional relationships described based on the drawings are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the apparatus or elements to be referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, 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; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
In addition, the technical features of the different embodiments of the present application described below may be combined with each other as long as they do not collide with each other.
The application mainly utilizes the cooperation between the diodes to control the working modes of the key A and the key B 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 an USB Type-C operation mode is provided, and the circuit is disposed inside an USB Type-C power tester and is used for configuring an 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 external equipment; the protocol communication chip is internally provided with a pull-down function and is provided with a power supply communication pin;
the Type-C port comprises a male port and a female port which are respectively arranged on the USB Type-C power tester, wherein 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 pins;
the main control unit is connected with the protocol communication chip;
the circuit comprises:
one end of the configuration channel pin line is connected with the power supply communication pin, and the other end of the configuration channel pin line is connected with the external equipment;
the anode of the diode is connected to a common connection point between the configuration channel pin 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 by pressing a 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 working modes of the keys, including:
when the key mode conversion unit is not electrified, the action of the key controls the pull-down operation of the power supply communication pin, and when the key mode conversion unit is electrified, 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 the device is started, the main control unit of the USB Type-C power tester is in a non-powered state, the key mode conversion unit is not powered at the same time, the action of the key controls the pull-down operation of the power supply communication pin, at this time, the key is pressed, the configuration channel pin line is grounded, so that 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 tester receives the power supply of the power supply device
In one exemplary embodiment, the key-press type key is small in occupied volume and easy to integrate only by manual operation, and in another exemplary embodiment, the key-press type key is a toggle switch, and the function can be realized although the toggle switch occupies a large volume.
The USB Type-C power supply tester is used as normal power receiving equipment at the moment, and after the equipment is started by means of keys, the equipment uses a PD protocol to communicate with power supply equipment to carry out power supply negotiation.
After the USB Type-C power supply 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 action of the key does not control the power supply communication pin to pull down operation, the key is converted into an operation key for controlling other functions of the USB Type-C power supply tester, for example, after the power supply is started, all function control of equipment such as test menu switching, screen brightness adjustment, equipment option setting and the like can be completed through the key, specifically, a functional module for carrying out power supply test and display is arranged on the USB Type-C power supply tester, and a program in the main control unit continuously reads the state of the key and enables the functional module for carrying out power supply test and display to be controlled by the key.
The multifunctional push button switch has the advantages that one key is multifunctional, keys are not independently designed for realizing other functions, the number of the keys is reduced, in one exemplary embodiment, the keys are pushed down only by manual operation, and compared with a toggle switch, the multifunctional push button switch has no physical switch or keys specially designed for CC pull-down, occupies a small volume of a PCB, and is easy to integrate. While the occupied volume is small and easy to integrate, in another exemplary embodiment, the key is a toggle switch, and the pull-down function can be realized although the toggle switch occupies a large volume.
In actual use, the circuit can comprise one, two or more configuration channel pin lines, and when the male port is used for being connected with external equipment, the power supply can be triggered only by pressing any one key as the male port only has one power supply communication pin; when the female port is connected with the external device, the configuration channel pin line is connected with the external device through a cable, only one power supply communication line is arranged in the cable, and only one corresponding configuration channel pin line is connected with the power supply communication line, so that the pressing condition of a key is required to be judged through the key state monitoring unit, and the power supply is correspondingly performed by knowing the connection of the configuration channel pin line.
After the power-on, the power-on device is powered down, and the power-on device is powered down, the power-on device is powered down by the power-on device, and the power-on device is powered down by the power-on device. At this time, the task of pulling down is handed to the protocol communication chip to complete. The main control unit reads the current key pressing state, and after knowing which configuration channel pin line is connected, the control protocol communication chip performs corresponding configuration.
Further, 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 detection equipment, and at the moment, the key is changed from a pull-down key of the power supply communication pin to an operation key with a detection function through the key mode conversion unit to realize the detection function; and correspondingly, the power supply of the key mode conversion unit is disconnected, so that the pull-down function of the key can be recovered.
Further, the use of the male port is a direct connection to the charging head, and the use of the female port is an extension line connected to the charging head. The two ways are different ways and if the meter wants to measure the current in both directions, the two ways connection must be supported. If the mobile phone is the tested device, the USB Type-C power supply tester is connected between the mobile phone and the charging head, at the moment, the pull-down operation of the USB Type-C power supply tester is not completed by the mobile phone, namely, the keys are released, the pull-down operation is completed by the mobile phone, and the instrument does not bear any pull-down function. Under the condition, after the instrument is started, the key is changed into an instrument function operation key, and no influence is generated on the pull-down of the power supply communication pin.
Example 2
The present embodiment has the same inventive concept as that of 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 the Power Delivery specification of the prior art specify 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 pins provided in this embodiment are not to be construed as unduly limiting the present application.
Specifically, as shown in fig. 2, two configuration channel pins 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, wherein the pin CC1 is connected with the first configuration channel pin bit line CC1, and the pin CC2 is connected with the second configuration channel pin bit line CC 2;
the anode of the first diode is connected with the first configuration channel pin line CC1, and the cathode of the first diode is connected with one end of the first resistor; the other end of the first resistor is grounded through a key A;
the anode of the second diode is connected with the second configuration channel pin line CC2, and the cathode of the second diode is connected with 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 detects the pressing conditions of the key A and the key B respectively; one end of the key mode conversion unit is connected to the common connection point between the first diode and the first resistor, and the other end of the key mode conversion unit is connected to the common connection point between the second diode and the second resistor.
Further, before the 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 actions of the key A and the key B control the pull-down operation of the power supply communication pins, at the moment, the key A or the key B is pressed down, and the power supply communication pins of the protocol communication chip are pulled down; if the key A is pressed, a power supply communication pin connected with the first configuration channel pin line CC1 is pulled down; pressing key B, the power communication pin connected to the second configuration channel pin CC2 is pulled low.
After the USB Type-C power supply 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, actions of the key A and the key B control the pull-down operation of the non-power supply communication pins, namely the operation of the key A and the key B does not influence the pull-down of the power supply communication pins, and the key A and the key B are converted into operation keys for controlling other functions of the USB Type-C power supply tester.
Example 3
On the basis of embodiment 2, a specific circuit structure diagram of a dynamically configurable USB Type-C operating mode is provided, as shown in fig. 3, only the circuit structure diagram of a key part of the circuit is shown, and other structures are the same as those of the above embodiment, specifically, the key mode conversion unit includes a third diode, a fourth diode and a boot pin BOOTED, an anode of the third diode is connected with 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 the 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 electrified.
Further, the key state monitoring unit includes:
the KEY_A_O line is connected to a common connection point between the first pull-down resistor and the KEY A;
the KEY_B_O line is 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.
Two CC lines are arranged on a Type-C interface of the standard power supply equipment, two CC lines are also arranged on the powered equipment, the CC lines are equivalent to the configuration channel pin lines of the application, and besides the tester, the standard female powered equipment (such as a mobile phone) can pull down the two configuration channel pin lines. The power supply device and the power receiving device are connected through Type-C cables, and all standard Type-C cables have a special structure (the structure is designed for detecting the insertion direction of the cables), wherein only one power supply communication line is connected with any configuration channel pin line on connectors at two ends of the cables respectively. Therefore, although the power receiving apparatus pulls down two configuration channel pins, for the power supply apparatus, since there is only one power supply communication line on the intermediate cable, only one configuration channel pin seen by the power supply apparatus is pulled down (since only one configuration channel pin of the power supply apparatus and the power receiving apparatus are connected), normal power supply starts. If the meter is connected to the charging head by a cable, only one of the configuration channel pins of the CC1 or CC2 connection is connected to the power supply device, and the user has to press the button to which the corresponding cable is actually connected.
Specifically, before the device is started, it is desirable that the pin CC1 or the pin CC2 is pulled down under the control of the key, 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 is controlled by unidirectional conduction of the diode, so that current cannot flow through D3 and D4, that is, this is equivalent to the absence of this part of the circuit. In order to enable the power supply device to supply power to the USB Type-C power supply tester, a user only needs to press any one of the key A and the key B, in FIG. 4, the key A is pressed, and the key B is released, so that the key B part is equivalent to not existing. Because in the PowerDelivery specification, the powered device only needs to pull down one of the two CC pins, i.e., constitutes a valid power-up request, while pulling down both CC pins is invalid. If the user presses the key A, the power supply equipment starts power supply by forming a pull-down on the CC1 pin.
In practice, the user may first try to press one of the keys a or B, and if the meter is not powered up normally (the screen is lit), the user again tries to press the other key.
Before starting up, the pin BOOTED is low level, and the key can play a role in pulling down the CC line; after the power-on, in order to avoid the interference of the key to PD communication on the CC line, the pull-down action of the key is removed, and at this time, the main control unit pulls the Gao Yinjiao BOOTED, and the key is pressed down by the D3 diode and the D4 diode, so that no influence is generated on the CC line.
As shown in fig. 5, in order to "disconnect" the key from the CC pin circuit, i.e. the key does not have any influence on the CC pin, the main control unit pulls up the pin BOOTED to a certain voltage value, here takes 3.3V, at this time, when the key is pressed down, since the BOOTED is pulled up, the other end of the configuration channel pin always has a high voltage, and the grounding effect of the key does not affect the pulling down of the configuration channel pin.
The current cannot pass through D1 and D2, which is equivalent to "off", and D3 and D4 pass through to achieve the purpose, as shown in FIG. 5, due to the unidirectional conduction of the diodes, at this time, the keys A and B are changed from the pull-down keys of the power supply communication pins to other operation keys.
Meanwhile, the main control unit can obtain the state of the KEY by reading the voltages of the key_a_o line and the key_b_o line, so that the response to the KEY is realized, 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 key state, wherein the key is changed into a normal operation key of the instrument.
Further, in the through mode, the USB Type-C power tester is started in a state of key release, and the first configuration channel pin CC1 and the second configuration channel pin CC2 are pulled down by external power receiving equipment. When the main control unit is started, if no key is detected to be pressed, the pin BOOTED is directly pulled up, so that the subsequent key operation cannot influence the first configuration channel pin CC1 and the second configuration channel pin CC2.
Example 4
On the basis of the above embodiment, a method for using a circuit capable of dynamically configuring an USB Type-C operation mode is provided, and a method for using a circuit capable of dynamically configuring an USB Type-C operation mode is provided, for configuring an operation mode of an USB Type-C power tester, where the operation 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 detected device;
when the working mode of the USB Type-C power supply tester is an active mode, the configuration channel pin line is controlled by a key to be pulled down to be grounded, and the configuration channel pin line is used 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 electrified;
when the working mode of the USB Type-C power supply tester is a straight-through mode, the channel pin line is configured to be not pulled down to be grounded through key control, and the method comprises the following steps of:
and the USB Type-C power tester is connected between the power supply equipment and the detected equipment, and the detected equipment controls the configuration channel pin line to be pulled down.
Specifically, in an exemplary embodiment, before starting up, 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 provided on the male port, any button is pressed at this time to pull down the configuration channel pin line to be grounded, so as to trigger the USB Type-C power tester to receive power and enter an active mode.
In another exemplary embodiment, before starting up, the USB Type-C power tester is connected to the power supply device through a female port, two power supply communication pins are provided on the female port, two configuration channel pin bit lines are provided 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 exists in the cable, only one configuration channel pin line can be connected with the power supply communication line, and in particular, which power supply communication line is connected can be detected through the key state monitoring unit, and an active mode is also entered at the moment.
After the USB Type-C power supply tester enters an active mode, the main control unit controls the key mode conversion unit to power on, and the key mode conversion unit changes the key from a pull-down key of the power supply communication pin to other operation keys; releasing all keys, enabling the circuit not to control the configuration channel pin line to be pulled down to be grounded, enabling the USB Type-C power supply tester to serve as detection equipment, entering a straight-through mode, enabling the USB Type-C power supply tester to be connected between power supply equipment and detected equipment, and controlling the configuration channel pin line to be pulled down by the detected equipment in order to keep power supply of the USB Type-C power supply tester.
Further, when the USB Type-C power tester is connected to the power supply device through a power supply communication pin on the female port, the method includes:
pressing a key A or a key B to enable the first configuration channel pin line CC1 or the second configuration channel pin line CC2 to be grounded; when the key state monitoring unit detects that the key A or the key B is pressed down, the key A or the key B is changed into other operation keys from a pull-down key of the power supply communication pin through the key mode conversion unit.
Further, when the working mode of the USB Type-C power tester is a through 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 the pull-down keys of the power supply communication pins 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 electrified, 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 electrified;
the main control unit obtains the state of the KEY A through the key_A_O line, and the main control unit obtains the state of the KEY B through the key_B_O line.
Example 5
The embodiment of the application also provides a device, which comprises the circuit capable of dynamically configuring the USB Type-C working mode. The device may be understood as a device including only the circuit, such as an USB Type-C power tester, or may be understood as a device including the circuit and having other functions, and the function is not limited to the operation mode of configuring the USB Type-C power tester.
The foregoing detailed description of the application is provided for illustration, and it is not to be construed that the detailed description of the application is limited to only those illustration, but that several simple deductions and substitutions can be made by those skilled in the art without departing from the spirit of the application, and are to be considered as falling within the scope of the application.
The foregoing detailed description of the application is provided for illustration, and it is not to be construed that the detailed description of the application is limited to only those illustration, but that several simple deductions and substitutions can be made by those skilled in the art without departing from the spirit of the application, and are to be considered as falling within the scope of the application.

Claims (10)

1. Can dynamic configuration USB Type-C mode's circuit sets up inside USB Type-C power tester for configuration USB Type-C power tester's mode, USB Type-C power tester includes:
the protocol communication chip is used for communicating with external equipment; the protocol communication chip is internally provided with a pull-down function and is provided with a power supply communication pin;
the Type-C port comprises a male port and a female port which are respectively arranged on the USB Type-C power tester, wherein 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 pins;
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 line is connected with the power supply communication pin, and the other end of the configuration channel pin line is connected with the external equipment;
the anode of the diode is connected to a common connection point between the configuration channel pin 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 by pressing a 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 working modes of the keys, including:
when the key mode conversion unit is not electrified, the action of the key controls the pull-down operation of the power supply communication pin, and when the key mode conversion unit is electrified, 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 USB Type-C mode of operation is dynamically configurable:
the female port includes a pin CC1 and a pin CC2, and the circuit includes:
a first configuration channel pin bit line CC1 and a second configuration channel pin bit line CC2, wherein the pin CC1 is connected with the first configuration channel pin bit line CC1, and the pin CC2 is connected with the second configuration channel pin bit line CC 2;
the anode of the first diode is connected with the first configuration channel pin line CC1, and the cathode of the first diode is connected with one end of the first resistor; the other end of the first resistor is grounded through a key A;
the anode of the second diode is connected with the second configuration channel pin line CC2, and the cathode of the second diode is connected with 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 detects the pressing conditions of the key A and the key B respectively; one end of the key mode conversion unit is connected to the common connection point between the first diode and the first resistor, and the other end of the key mode conversion unit is connected to the common connection point between the second diode and the second resistor.
3. A circuit for dynamically configurable USB Type-C operational mode as recited in claim 2, wherein:
the key mode conversion unit comprises a third diode, a fourth diode and a starting pin BOOTED, wherein the positive electrode of the third diode is connected with the positive electrode of the fourth diode, the negative electrode of the third diode is connected to a common connection point between the negative electrode of the first diode and the first resistor, and the negative electrode of the fourth diode is connected to a common connection point between the negative electrode of the second diode and the second resistor;
the starting pin BOOTED is connected to the 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 electrified.
4. A circuit for dynamically configurable USB Type-C operational mode as recited in claim 2, wherein:
the key state monitoring unit includes:
the KEY_A_O line is connected to a common connection point between the first pull-down resistor and the KEY A;
the KEY_B_O line is 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 USB Type-C mode of operation is dynamically configurable, wherein:
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 of any one of claims 1-5 for dynamically configuring an operation mode of a USB Type-C power tester, the operation mode of the USB Type-C power tester comprising an active mode and a pass-through mode, the method comprising:
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 configuration channel pin line is controlled to be grounded through a key to serve as powered equipment, 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 supply tester is connected with the power supply equipment 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 electrified;
when the working mode of the USB Type-C power supply tester is a straight-through mode, the channel pin line is configured to be not pulled down to be grounded through key control, and the method comprises the following steps of:
and the USB Type-C power tester is connected between the power supply equipment and the detected equipment, and the detected equipment controls the configuration channel pin line to be pulled down.
7. The method of using a dynamically configurable USB Type-C operational mode circuit of claim 6, wherein:
when USB Type-C power tester pass through the power supply communication pin on the female port with power supply unit is connected, include:
pressing a key A or a key B to enable the first configuration channel pin line CC1 or the second configuration channel pin line CC2 to be grounded; when the key state monitoring unit detects that the key A or the key B is pressed down, the key A or the key B is changed into other operation keys from a pull-down key of the power supply communication pin through the key mode conversion unit.
8. The method of using a dynamically configurable USB Type-C operational mode circuit of claim 6, wherein:
when the working mode of the USB Type-C power supply tester is a direct mode, the method comprises the following steps:
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 the pull-down keys of the power supply communication pins through the key mode conversion unit.
9. The method of using a dynamically configurable USB Type-C operational mode circuit of 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 electrified, 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 electrified;
the main control unit obtains the state of the KEY A through the key_A_O line, and the main control unit obtains the state of the KEY B through the key_B_O line.
10. An apparatus, characterized in that: the apparatus comprising a circuit as claimed in any one of claims 1 to 5 that is dynamically configurable in 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 CN113190488A (en) 2021-07-30
CN113190488B true 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 (3)

* 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
CN107506269A (en) * 2017-08-24 2017-12-22 晶晨半导体(上海)股份有限公司 The USB automated test tools and method of a kind of board

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106291210B (en) * 2015-05-22 2020-05-05 快捷半导体(苏州)有限公司 USB interface detector, USB interface detection method, USB connector and electronic equipment

Patent Citations (3)

* 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
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
CN113190488A (en) 2021-07-30

Similar Documents

Publication Publication Date Title
US7994654B2 (en) Wireless-controlled power-saving apparatus
CN111409044A (en) Combination of battery pack and electric tool
CN209401300U (en) A kind of midi signal conversion equipment based on Bluetooth transmission
CN113190488B (en) Circuit capable of dynamically configuring USB Type-C working mode and using method and device thereof
CN107942125B (en) Power utilization testing circuit of built-in battery type electronic product and control method thereof
CN108808788B (en) Miniaturized B-ultrasonic single-chip microcomputer control device and system thereof
CN103312842B (en) For the terminal of annex detection and control, annex and system
CN211508922U (en) Adapter with LCD screen and keys
CN110571607A (en) type-C power supply wire rod, head-mounted display equipment and virtual reality system
CN110597375B (en) External equipment power supply device
CN110417083B (en) External equipment power supply unit
CN112511937B (en) Bluetooth headset and use mode switching method of Bluetooth headset
CN213484903U (en) Switch with knob
CN209844613U (en) Circuit structure for manually controlling TYPE-C interface to realize Huacheng and Samsung fast charging protocol
CN215987295U (en) Interface expansion device and interface expansion equipment
CN210095724U (en) Lead wire for electrocardiogram monitoring, detection device and monitoring system
CN218998072U (en) Optical module code writing board
CN110618835A (en) Dual system response system
CN112104352B (en) Adapter circuit and equipment for electronic equipment emergency download mode
CN214755565U (en) Multifunctional charger baby
CN113612949B (en) DC power supply switching circuit and television
CN215378524U (en) Electric quantity early warning circuit and electronic equipment
CN115022542B (en) Video camera with detachable battery
CN218161841U (en) Power supply control circuit, foot controller and surgical operation device
CN216774741U (en) Multifunctional key switch circuit

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