A dual power supply switching system and method for USB extender

By using PMOS and NMOS tubes in the USB extender to cooperate with the control unit to monitor and switch the power supply, the problems of low voltage output and high power loss caused by traditional germanium diodes are solved, achieving voltage output that meets USB specifications and extending service life.

CN118281833BActive Publication Date: 2024-09-17HUNAN GREATWALL INFORMATION FINANCIAL EQUIP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410679357.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-17
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

The power supply switching circuit of traditional USB extenders uses germanium diodes, which causes the voltage output to be lower than the USB specification, causing the USB device to operate abnormally, and the loss of long-distance wires is aggravated, the power loss is high, and the service life is shortened.

Method used

PMOS tubes and NMOS tubes are used to cooperate with the control unit to monitor the external 5V power supply and the USB interface 5V input power supply, and generate power path control signals to switch the power supply, replacing traditional germanium diodes and reducing power loss.

Benefits of technology

It achieves voltage output that meets USB specifications, improves the reliability and service life of the USB extender, and reduces labor maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118281833B
    Figure CN118281833B
Patent Text Reader

Abstract

The present invention relates to a dual power supply switching system and method for a USB extender, the system comprises: an external 5V power supply, a USB interface 5V input power supply, a control unit, a PMOS tube Q1, a PMOS tube Q2, an NMOS tube Q3 and an NMOS tube Q4; the control unit is used to monitor whether the external 5V power supply and the USB interface 5V input power supply are connected; a power path control signal and a subsequent circuit control signal are generated according to the connection status of the external 5V power supply and the USB interface 5V input power supply; the power path control signal is sent to the gate G of Q3 and the gate G of Q4, so as to control Q1 and / or Q2 to be turned on or off; the subsequent circuit control signal is sent to the subsequent circuit of the USB extender to control the circuit state of the subsequent circuit. The switching of dual power supplies is realized; the power loss is reduced, and the service life of the USB extender is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of power supply, and in particular relates to a dual power supply switching system and method for a USB extender. Background Art

[0002] Currently, the one-to-many USB extenders on the market basically add an external 5V power supply due to the defect that the USB interface connected to the host end itself has insufficient current carrying capacity. When the USB extender has two power inputs, it is necessary to add a power switching circuit. The power supply switching circuit of the traditional USB extender is switched through two germanium diodes. The circuit diagram is as follows Figure 1 As shown, the shortcoming is that the germanium diode has a voltage drop of 0.3V. According to the USB2.0 specification, the voltage of each downstream USB2.0 Type-A interface must meet the range of 4.75V-5.25V, and the current output capacity must meet 500mA. The existence of the germanium diode voltage drop will make the actual output voltage of the USB Type-A interface lower than 4.75V, which does not meet the USB specification, thus causing occasional abnormal operation of the USB device.

[0003] In personal use scenarios, when connecting a USB flash drive or keyboard and mouse, even if the USB device fails to work, it can be restored by re-plugging the USB device. However, in the financial self-service industry, which has strict reliability requirements and a large number of USB devices, a single USB device failure will cause the entire financial self-service device to be unusable, requiring customer service personnel to come to the site for maintenance, which has extremely high labor costs. In addition, the USB devices inside the self-service machine are transmitted over long distances of more than 2 meters. Due to the loss of long-distance wires, the voltage will drop more, further deteriorating the USB device usage scenario. Furthermore, taking 4 USB2.0 Type-A downstream interfaces as an example, the total current requires 2A, then the series diodes will cause a greater voltage drop due to the greater current, and will withstand a power loss of more than 0.5W. The diodes will heat up severely and accelerate their own aging, shortening the service life of the USB extender. Summary of the invention

[0004] In order to overcome the defects of the prior art, the present invention provides a dual power supply switching system and method for a USB extender.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] In a first aspect, a dual power supply switching system for a USB extender is provided, comprising:

[0007] External 5V power supply, USB interface 5V input power supply, control unit, PMOS tube Q1, PMOS tube Q2, NMOS tube Q3 and NMOS tube Q4;

[0008] The drain electrode D of Q1 is connected to an external 5V power supply, the drain electrode D of Q2 is connected to a 5V input power supply of a USB interface, the source electrode S of Q1 and the source electrode S of Q2 are connected together and connected to a power interface of a control unit;

[0009] The gate G of Q1 is connected to the drain D of Q3, the gate G of Q2 is connected to the drain D of Q4, and the source S of Q3 and the source S of Q4 are both grounded;

[0010] The gate G of Q3 and the gate G of Q4 are connected to the control interface of the control unit;

[0011] The rear circuit interface of the control unit is connected to the rear circuit of the USB extender;

[0012] The control unit is used to monitor whether the external 5V power supply and the 5V input power supply of the USB interface are connected; generate a power path control signal and a subsequent circuit control signal according to the connection status of the external 5V power supply and the 5V input power supply of the USB interface; send the power path control signal to the gate G of Q3 and the gate G of Q4, so as to control Q1 and / or Q2 to be turned on or off; send the subsequent circuit control signal to the subsequent circuit of the USB extender to control the circuit state of the subsequent circuit.

[0013] Furthermore, the system also includes:

[0014] External 5V power supply monitoring circuit and USB interface 5V input power supply monitoring circuit;

[0015] The control unit has an external power monitoring interface and a USB power monitoring interface;

[0016] The external 5V power supply monitoring circuit includes a first voltage dividing resistor and a second voltage dividing resistor;

[0017] One end of the first voltage-dividing resistor is connected to an external 5V power supply, and the other end is connected to one end of the second voltage-dividing resistor and an external power supply monitoring interface; the other end of the second voltage-dividing resistor is grounded;

[0018] The USB interface 5V input power monitoring circuit includes a third voltage dividing resistor and a fourth voltage dividing resistor;

[0019] One end of the third voltage-dividing resistor is connected to the USB interface 5V input power supply, and the other end is connected to one end of the fourth voltage-dividing resistor and the USB interface 5V input power supply monitoring interface; the other end of the fourth voltage-dividing resistor is grounded.

[0020] Further, the control unit obtains a first monitoring signal through an external power supply monitoring interface;

[0021] When the first monitoring signal is at a low level, the control unit determines that the external 5V power supply is not connected;

[0022] When the first monitoring signal is at a high level, the control unit determines that an external 5V power supply is connected;

[0023] The control unit obtains a second monitoring signal through the USB power monitoring interface;

[0024] When the second monitoring signal is at a low level, the control unit determines that the 5V input power of the USB interface is not connected;

[0025] When the second monitoring signal is at a high level, the control unit determines that the 5V input power of the USB interface is connected.

[0026] Further, when the control unit determines that the external 5V power supply and the USB interface 5V input power supply are not connected, a first power path control signal and a second power path control signal are generated; the first power path control signal and the second power path control signal are low level;

[0027] The control unit sends the first power path control signal and the second power path control signal to the gate G of Q3 and the gate G of Q4, thereby controlling Q1 and Q2 to be turned off, so that the power paths of the external 5V power supply and the 5V input power supply of the USB interface are disconnected;

[0028] The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a low level, so that the circuit state of the subsequent circuit enters a reset state.

[0029] Further, when the control unit determines that the external 5V power supply is connected and the 5V input power supply of the USB interface is not connected, a first power supply path control signal and a second power supply path control signal are generated; the first power supply path control signal and the second power supply path control signal are both low level;

[0030] The control unit sends the first power path control signal and the second power path control signal to the gate G of Q3 and the gate G of Q4, thereby controlling Q1 and Q2 to be turned off, so that the power paths of the external 5V power supply and the 5V input power supply of the USB interface are disconnected;

[0031] The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a low level, so that the circuit state of the subsequent circuit enters a reset state.

[0032] Further, when the control unit determines that the external 5V power supply is not connected and the 5V input power supply of the USB interface is connected, a first power path control signal and a second power path control signal are generated; the first power path control signal is a low level, and the second power path control signal is a high level;

[0033] The control unit sends a first power path control signal to the gate G of Q3, thereby controlling Q1 to be turned off, so that the power path of the external 5V power supply is disconnected;

[0034] The control unit sends a second power path control signal to the gate G of Q4, thereby controlling Q2 to turn on, so that the power path of the 5V input power of the USB interface is turned on;

[0035] The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a high level, so that the circuit state of the subsequent circuit enters a working state.

[0036] Further, when the control unit determines that both the external 5V power supply and the 5V input power supply of the USB interface are connected, a first power path control signal and a second power path control signal are generated; the first power path control signal is a high level, and the second power path control signal is a low level;

[0037] The control unit sends a first power path control signal to the gate G of Q3, thereby controlling Q1 to turn on, so that the power path of the external 5V power supply is turned on;

[0038] The control unit sends a second power path control signal to the gate G of Q4, thereby controlling Q2 to be disconnected, so that the power path of the 5V input power of the USB interface is disconnected;

[0039] The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a high level, so that the circuit state of the subsequent circuit enters a working state.

[0040] In a second aspect, a dual power supply switching method for a USB extender is provided, which is applied to the dual power supply switching system for a USB extender in the first aspect above, and the method comprises:

[0041] The control unit monitors whether the external 5V power supply and the 5V input power supply of the USB interface are connected;

[0042] Generate power path control signal and subsequent circuit control signal according to the access status of external 5V power supply and USB interface 5V input power supply;

[0043] The power path control signal is sent to the gate G of Q3 and the gate G of Q4, thereby controlling Q1 and / or Q2 to turn on or off; the subsequent circuit control signal is sent to the subsequent circuit of the USB extender to control the circuit state of the subsequent circuit.

[0044] The beneficial effects achieved by the present invention are:

[0045] An external 5V power supply, a 5V input power supply from a USB interface, a control unit, a PMOS tube Q1, a PMOS tube Q2, an NMOS tube Q3, and an NMOS tube Q4; the drain D of Q1 is connected to the external 5V power supply, the drain D of Q2 is connected to the 5V input power supply from the USB interface, the source S of Q1 and the source S of Q2 are connected together and connected to the power interface of the control unit; the gate G of Q1 is connected to the drain D of Q3, the gate G of Q2 is connected to the drain D of Q4, the source S of Q3 and the source S of Q4 are both grounded; the gate G of Q3 and the gate G of Q4 are connected to the control unit. The control interface of the element is connected; the rear circuit interface of the control unit is connected to the rear circuit of the USB extender; the control unit is used to monitor whether the external 5V power supply and the 5V input power supply of the USB interface are connected; the power path control signal and the rear circuit control signal are generated according to the access status of the external 5V power supply and the 5V input power supply of the USB interface; the power path control signal is sent to the gate G of Q3 and the gate G of Q4, so as to control Q1 and / or Q2 to be turned on or off; the rear circuit control signal is sent to the rear circuit of the USB extender to control the circuit state of the rear circuit. Compared with the existing two germanium diodes, the present invention monitors the access status of the two power supplies through the control unit, thereby controlling the opening and closing of the PMOS tubes Q1 and Q2, and realizing the switching of dual power supplies; by introducing PMOS to replace the traditional germanium diode, the power loss is reduced and the service life of the USB extender is increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 Supply switching circuit diagram for conventional USB extenders;

[0047] Figure 2 This is a structural diagram of the dual power supply switching system of the USB extender of the present invention;

[0048] Figure 3 The circuit diagram of the dual power supply switching system of the USB extender of the present invention is shown in FIG. DETAILED DESCRIPTION

[0049] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0050] like Figure 2 As shown, an embodiment of the present invention provides a dual power supply switching system for a USB extender, comprising:

[0051] An external 5V power supply 201, a USB interface 5V input power supply 202, a control unit 203, a PMOS tube Q1, a PMOS tube Q2, an NMOS tube Q3 and an NMOS tube Q4;

[0052] The drain electrode D of Q1 is connected to the external 5V power supply 201, the drain electrode D of Q2 is connected to the USB interface 5V input power supply 202, the source electrode S of Q1 and the source electrode S of Q2 are connected together and connected to the power interface of the control unit 203;

[0053] The gate G of Q1 is connected to the drain D of Q3, the gate G of Q2 is connected to the drain D of Q4, and the source S of Q3 and the source S of Q4 are both grounded;

[0054] The gate G of Q3 and the gate G of Q4 are connected to the control interface of the control unit 203;

[0055] The rear circuit interface of the control unit 203 is connected to the rear circuit of the USB extender;

[0056] The control unit 203 is used to monitor whether the external 5V power supply 201 and the USB interface 5V input power supply 202 are connected; generate a power path control signal and a subsequent circuit control signal according to the connection status of the external 5V power supply 201 and the USB interface 5V input power supply 202; send the power path control signal to the gate G of Q3 and the gate G of Q4, so as to control Q1 and / or Q2 to be turned on or off, so that the dual power path can be disconnected or turned on; send the subsequent circuit control signal to the subsequent circuit of the USB extender to control the circuit state of the subsequent circuit, and the circuit state can specifically be a reset state or a working state.

[0057] Specific as Figure 3 As shown, Figure 2 The detailed structure of the embodiment shown, wherein the control unit MCU is a U1 chip, the U1 chip has multiple interfaces, numbered 1-14, wherein interface 1 is a VCC power interface, interface 14 is a GND ground interface, interface 3 and interface 12 are control signal sending interfaces, interface 10 is a back-end circuit interface, interface 7 is an external power monitoring interface, and interface 8 is a USB power monitoring interface;

[0058] It has an external 5V power supply monitoring circuit and a USB interface 5V input power supply monitoring circuit. The external 5V power supply monitoring circuit includes a first voltage-dividing resistor R5 and a second voltage-dividing resistor R7. Specifically, the resistance value of R5 is 10K, and the resistance value of R7 is 20K. One end of R5 is connected to an external 5V power supply DC_5V, and the other end is connected to one end of R7 and interface No. 7. The other end of R7 is grounded.

[0059] The USB interface 5V input power supply monitoring circuit includes a third voltage-dividing resistor R6 and a fourth voltage-dividing resistor R8; one end of R6 is connected to the USB interface 5V input power supply VBUS_5V, and the other end is connected to one end of R8 and interface No. 8; the other end of R8 is grounded;

[0060] Preferably, U1 obtains the first monitoring signal DC_5V_IN_DETCET through the external power supply monitoring interface;

[0061] When DC_5V_IN_DETCET is at a low level, the control unit U1 determines that the external 5V power supply is not connected;

[0062] When DC_5V_IN_DETCET is at a high level, the control unit U1 determines that an external 5V power supply is connected;

[0063] The control unit U1 obtains the second monitoring signal VBUS_5V_IN_DETCET through the USB power monitoring interface;

[0064] When VBUS_5V_IN_DETCET is at a low level, the control unit U1 determines that the 5V input power of the USB interface is not connected;

[0065] When VBUS_5V_IN_DETCET is at a high level, the control unit U1 determines that the 5V input power of the USB interface is connected.

[0066] According to the circuit diagram described above, the working principle can be worked out. As long as there is power input to the circuit, no matter it is an external 5V power input or a 5V input from the USB interface, due to the presence of body diodes in the PMOS tubes Q1 and Q2, and the body diodes are forward-conducting, a P5V power supply will be generated after the body diodes are integrated. At this time, the P5V voltage is actually lower than 4.3V. Although it cannot make the entire USB circuit work normally, it can make the control unit U1 work normally when it is powered on;

[0067] At the moment of inserting two power supplies, there is a high probability that they cannot be synchronized. In this case, only one power supply is connected first. The first power supply allows the control unit U1 to power on and enter the initial state, and complete the initial state action. Then it enters the working state and waits for the insertion of the other power supply. The insertion of the two power supplies takes seconds, and the completion of the initial state action of the control unit U1 takes milliseconds.

[0068] After the control unit U1 is powered on, it will enter the initialization action. After the control unit U1 itself is initialized, the DC_5V_EN signal and VBUS_5V_EN are set to a low level, so that the PMOS tubes Q1 and Q2 are in a closed state. At the same time, the USB_RESET# signal is also set to a low level, so that the subsequent circuit of the USB extender enters a reset state. Only after the settings are completed will it enter a working state;

[0069] Considering that there are four access situations of two power supplies, different power supply switching is performed for the four different power supply access situations, as follows:

[0070] 1. The control unit determines that both the external 5V power supply and the USB interface 5V input power supply are not connected.

[0071] When the control unit detects that the first monitoring signal DC_5V_IN_DETCET and the second monitoring signal VBUS_5V_IN_DETCET are both at low levels, the control unit sets the first power path control signal DC_5V_EN and the second power path control signal VBUS_5V_EN to low levels;

[0072] The gate G of Q3 and the gate G of Q4 are affected by the low level of DC_5V_EN and VBUS_5V_EN, thereby controlling Q1 and Q2 to be turned off, so that the power path of the external 5V power supply and the 5V input power supply of the USB interface is disconnected;

[0073] The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a low level, so that the circuit state of the subsequent circuit enters a reset state.

[0074] (II) The control unit determines that the external 5V power supply is connected, and the USB interface 5V input power is not connected

[0075] When the control unit detects that the first monitoring signal DC_5V_IN_DETCET is at a high level and the second monitoring signal VBUS_5V_IN_DETCET is at a low level, the control unit sets both the first power path control signal DC_5V_EN and the second power path control signal VBUS_5V_EN to a low level;

[0076] The gate G of Q3 and the gate G of Q4 are affected by the low level of DC_5V_EN and VBUS_5V_EN, thereby controlling Q1 and Q2 to be turned off, so that the power path of the external 5V power supply and the 5V input power supply of the USB interface is disconnected;

[0077] The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a low level, so that the circuit state of the subsequent circuit enters a reset state.

[0078] (III) The control unit determines that the external 5V power supply is not connected and the USB interface 5V input power is connected

[0079] When the control unit detects that the first monitoring signal DC_5V_IN_DETCET is at a low level and the second monitoring signal VBUS_5V_IN_DETCET is at a high level, the control unit sets the first power path control signal DC_5V_EN to a low level and sets the second power path control signal VBUS_5V_EN to a high level;

[0080] DC_5V_EN is at a low level and is sent to the gate G of Q3, thereby controlling Q1 to turn off, disconnecting the power path of the external 5V power supply;

[0081] VBUS_5V_EN is at a high level and is sent to the gate G of Q4, thereby controlling Q2 to turn on, so that the power path of the USB interface 5V input power is turned on;

[0082] The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a high level, so that the circuit state of the subsequent circuit enters a working state.

[0083] (IV) The control unit confirms that both the external 5V power supply and the USB interface 5V input power supply are connected.

[0084] When the control unit detects that both the first monitoring signal DC_5V_IN_DETCET and the second monitoring signal VBUS_5V_IN_DETCET are at high levels, the control unit sets the first power path control signal DC_5V_EN to a high level and sets the second power path control signal VBUS_5V_EN to a low level;

[0085] DC_5V_EN is at a high level and is sent to the gate G of Q3, thereby controlling Q1 to turn on, so that the power path of the external 5V power supply is opened;

[0086] VBUS_5V_EN is sent to the gate G of Q4 at a low level, thereby controlling Q2 to turn off, disconnecting the power path of the 5V input power supply of the USB interface;

[0087] The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a high level, so that the circuit state of the subsequent circuit enters a working state.

[0088] It should be noted that in the above-described cases (iii) and (iv), when the PMOS tubes Q1 and / or Q2 are turned on, the body diodes inside Q1 and Q2 will be cut off, and the voltage drop of the P5V power supply voltage generated by the PMOS tube is within 0.1V (the internal resistance of the PMOS tube is 0.02Ω, and the current is calculated according to 4 USB2.0 Type-A 2A, 0.02*2A=0.04V), which meets the USB specification, and the P5V power supply voltage value is close to 5V.

[0089] In combination with the dual power supply switching system for a USB extender described in the above embodiments, a dual power supply switching method for a USB extender is described below through an embodiment.

[0090] An embodiment of the present invention provides a dual power supply switching method for a USB extender, comprising:

[0091] The control unit monitors whether the external 5V power supply and the 5V input power supply of the USB interface are connected;

[0092] Generate power path control signal and subsequent circuit control signal according to the access status of external 5V power supply and USB interface 5V input power supply;

[0093] The power path control signal is sent to the gate G of Q3 and the gate G of Q4, thereby controlling Q1 and / or Q2 to turn on or off; the subsequent circuit control signal is sent to the subsequent circuit of the USB extender to control the circuit state of the subsequent circuit.

[0094] The dual power supply switching method for a USB extender of the present invention is carried out in combination with a dual power supply switching system for a USB extender. The control unit monitors the access status of two power supplies, thereby controlling the opening and closing of PMOS tubes Q1 and Q2 to achieve dual power supply switching. By introducing PMOS to replace the traditional germanium diode, the power loss is reduced and the service life of the USB extender is prolonged.

[0095] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0096] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0099] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.

Claims

1. A dual power supply switching system for a USB extender, characterized in that: include: External 5V power supply, USB interface 5V input power supply, control unit, PMOS tube Q1, PMOS tube Q2, NMOS tube Q3 and NMOS tube Q4; The drain electrode D of Q1 is connected to the external 5V power supply, the drain electrode D of Q2 is connected to the 5V input power supply of the USB interface, the source electrode S of Q1 and the source electrode S of Q2 are connected together and connected to the power interface of the control unit; The gate G of Q1 is connected to the drain D of Q3, the gate G of Q2 is connected to the drain D of Q4, the source S of Q3 and the source S of Q4 are both grounded, and the drain D of Q3 and the drain D of Q4 are connected to the power interface of the control unit; The gate G of Q3 and the gate G of Q4 are connected to the control interface of the control unit; The rear circuit interface of the control unit is connected to the rear circuit of the USB extender; The control unit is used to monitor whether the external 5V power supply and the USB interface 5V input power supply are connected; generate a power path control signal and a subsequent circuit control signal according to the connection status of the external 5V power supply and the USB interface 5V input power supply; send the power path control signal to the gate G of Q3 and the gate G of Q4, so as to control Q1 and / or Q2 to be turned on or off; send the subsequent circuit control signal to the subsequent circuit of the USB extender to control the circuit state of the subsequent circuit.

2. The dual power supply switching system for a USB extender according to claim 1, characterized in that: The system further comprises: External 5V power supply monitoring circuit and USB interface 5V input power supply monitoring circuit; The control unit has an external power monitoring interface and a USB power monitoring interface; The external 5V power supply monitoring circuit includes a first voltage dividing resistor and a second voltage dividing resistor; One end of the first voltage-dividing resistor is connected to the external 5V power supply, and the other end is connected to one end of the second voltage-dividing resistor and the external power supply monitoring interface; the other end of the second voltage-dividing resistor is grounded; The USB interface 5V input power monitoring circuit includes a third voltage-dividing resistor and a fourth voltage-dividing resistor; One end of the third voltage-dividing resistor is connected to the USB interface 5V input power supply, and the other end is connected to one end of the fourth voltage-dividing resistor and the USB interface 5V input power supply monitoring interface; the other end of the fourth voltage-dividing resistor is grounded.

3. The dual power supply switching system for a USB extender according to claim 2, characterized in that: The control unit obtains a first monitoring signal through the external power supply monitoring interface; When the first monitoring signal is at a low level, the control unit determines that the external 5V power supply is not connected; When the first monitoring signal is at a high level, the control unit determines that the external 5V power supply is connected; The control unit obtains a second monitoring signal through the USB power monitoring interface; When the second monitoring signal is at a low level, the control unit determines that the 5V input power of the USB interface is not connected; When the second monitoring signal is at a high level, the control unit determines that the 5V input power of the USB interface is connected.

4. The dual power supply switching system for a USB extender according to claim 3, characterized in that: When the control unit determines that the external 5V power supply and the USB interface 5V input power supply are not connected, the control unit generates a first power path control signal and a second power path control signal; the first power path control signal and the second power path control signal are low level; The control unit sends the first power path control signal and the second power path control signal to the gate G of Q3 and the gate G of Q4, thereby controlling both Q1 and Q2 to be turned off, so that the power paths of the external 5V power supply and the USB interface 5V input power supply are disconnected; The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a low level, so that the circuit state of the subsequent circuit enters a reset state.

5. The dual power supply switching system for a USB extender according to claim 3, characterized in that: When the control unit determines that the external 5V power supply is connected and the 5V input power supply of the USB interface is not connected, a first power supply path control signal and a second power supply path control signal are generated; the first power supply path control signal and the second power supply path control signal are both at a low level; The control unit sends the first power path control signal and the second power path control signal to the gate G of Q3 and the gate G of Q4, thereby controlling both Q1 and Q2 to be turned off, so that the power paths of the external 5V power supply and the USB interface 5V input power supply are disconnected; The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a low level, so that the circuit state of the subsequent circuit enters a reset state.

6. The dual power supply switching system for a USB extender according to claim 3, characterized in that: When the control unit determines that the external 5V power supply is not connected and the 5V input power supply of the USB interface is connected, a first power path control signal and a second power path control signal are generated; the first power path control signal is a low level, and the second power path control signal is a high level; The control unit sends the first power path control signal to the gate G of Q3, thereby controlling Q1 to be turned off, so that the power path of the external 5V power supply is disconnected; The control unit sends the second power path control signal to the gate G of Q4, thereby controlling Q2 to turn on, so that the power path of the 5V input power of the USB interface is turned on; The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a high level, so that the circuit state of the subsequent circuit enters a working state.

7. The dual power supply switching system for a USB extender according to claim 3, characterized in that: When the control unit determines that the external 5V power supply and the USB interface 5V input power supply are both connected, a first power path control signal and a second power path control signal are generated; the first power path control signal is a high level, and the second power path control signal is a low level; The control unit sends the first power path control signal to the gate G of Q3, thereby controlling Q1 to turn on, so that the power path of the external 5V power supply is turned on; The control unit sends the second power path control signal to the gate G of Q4, thereby controlling Q2 to be disconnected, so that the power path of the 5V input power of the USB interface is disconnected; The control unit generates a subsequent circuit control signal, and the subsequent circuit control signal is at a high level, so that the circuit state of the subsequent circuit enters a working state.

8. A dual power supply switching method for a USB extender, characterized in that: A dual power supply switching system for a USB extender applied to any one of claims 1 to 7, the method comprising: The control unit monitors whether the external 5V power supply and the 5V input power supply of the USB interface are connected; Generate power path control signal and subsequent circuit control signal according to the access status of external 5V power supply and USB interface 5V input power supply; The power path control signal is sent to the gate G of Q3 and the gate G of Q4, thereby controlling Q1 and / or Q2 to turn on or off; the subsequent circuit control signal is sent to the subsequent circuit of the USB extender to control the circuit state of the subsequent circuit.

Citation Information

Cited By

  • Power supply input compatible circuit and concentrator

    CN121326129A