USB HUB remote control circuit and remote control system
By designing the USB HUB remote control circuit, using the microcontroller to receive and process USB switch instructions, remote power-on-off control of the USB port is solved, and the problem of USB HUB not being able to be remotely independently controlled in the existing technology has been improved, and research and development and production testing have been improved. efficiency.
Patent Information
- Application Number
- CN202411062139.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-06
AI Technical Summary
The existing USB HUB products cannot achieve software remotely and independently control USB port switches during R&D or production testing, resulting in inefficiency.
Design a USB HUB remote control circuit, including a communication interface, a microcontroller and N power control units, receive remotely sent USB switch commands through the microcontroller, send power control signals to the power control unit, and realize power up and down of the USB port. Control solves the problem that the USB port cannot be switched independently remotely.
It improves the convenience and efficiency of R&D testing, especially in the intelligent manufacturing process, and provides solutions, realizing remote control of USB HUB extended test storage products.
Smart Images

Figure CN119094573A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of storage test equipment, and in particular to a USB HUB remote control circuit and a remote control system. Background Art
[0002] With the continuous development of Internet technology, more and more external devices need to be connected. However, due to the hardware design of computers and other devices, the reserved interfaces are limited. At this time, USB HUB is needed to expand the interface. USB HUB is not only widely used in consumer products, but also in industrial R&D, testing, manufacturing and other fields. However, the USB HUB products on the market usually connect or exit the device through the traditional method of manually plugging and unplugging USB or key switches. However, this method is not applicable to automated and unmanned testing scenarios in R&D or production, resulting in low work efficiency in R&D testing or industrial production. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a USB HUB remote control circuit and a remote control system, which can effectively solve the problem of low work efficiency in product development, testing and production.
[0004] In a first aspect, an embodiment of the present application provides a USB HUB remote control circuit, comprising:
[0005] A communication interface, a microcontroller, N power control units and a USB HUB module, N ≥ 1; the USB HUB module includes N USB ports; the microcontroller is connected to the N power control units respectively; the N power control units are connected to one USB port respectively;
[0006] When a USB switch instruction is remotely sent in a test scenario of a storage device, the microcontroller is used to receive the remotely sent USB switch instruction through the communication interface, and send a power control signal to a target power control unit according to the USB switch instruction; the power control signal is used to control the switch of the power control unit to achieve power on and off control;
[0007] The USB port is used to connect a storage device supporting the USB port.
[0008] In some embodiments, the microcontroller is an MCU; the MCU includes N power control pin interfaces; the microcontroller is connected to the corresponding power control unit through the power control pin interfaces.
[0009] In some embodiments, if the power control signal is at a high level, the power control unit is turned on; if the power control signal is at a low level, the power control unit is turned off.
[0010] In some embodiments, the communication interface includes a UART serial port and a network port; the microcontroller includes a UART serial port; the UART serial port is used for the microcontroller to receive the USB switch instruction through the UART serial port in the communication interface; the network port is used to communicate with a remote control center.
[0011] In some embodiments, the power control unit is a USB port power output control chip; the USB HUB module is a USB HUB power output control chip; the USB HUB module is also used to realize data communication of each USB port.
[0012] In some embodiments, N∈(1,7).
[0013] In some embodiments, the USB HUB module further includes K signal ports;
[0014] After realizing power on and off control, the microcontroller is further used to obtain the status information of the storage device through the corresponding signal port, and confirm the communication status of the corresponding USB port according to the status information.
[0015] In a second aspect, an embodiment of the present application provides a USB HUB circuit remote control system, comprising:
[0016] A remote control center, a communication interface, a microcontroller, N power control units and a USB HUB module, N ≥ 1; the USB HUB module includes N USB ports; the microcontroller is connected to the N power control units; the N power control units are respectively connected to one USB port;
[0017] The remote control center is used to send a USB switch instruction according to the test scenario of the storage device;
[0018] The microcontroller is used to receive the USB switch instruction through the communication interface, and send a power control signal to the target power control unit according to the USB switch instruction; the power control signal is used to control the switch of the power control unit to achieve power on and off control;
[0019] The USB port is used to connect a storage device supporting the USB port.
[0020] In some embodiments, in the remote control system, the communication interface includes a UART serial port and a network port; the microcontroller includes a UART serial port; the UART serial port is used for the microcontroller to receive the USB switch instruction through the UART serial port in the communication interface; the network port is used to communicate with the remote control center.
[0021] In some embodiments, in the remote control system, the microcontroller is an MCU; the MCU includes N power control pin interfaces; the microcontroller is connected to the corresponding power control unit through the power control pin interface.
[0022] The embodiments of the present application have the following beneficial effects:
[0023] The microcontroller described in the present application is respectively connected to N power control units; each of the N power control units is respectively connected to one of the USB ports. The microcontroller is used to receive a remotely sent USB switch instruction through the communication interface, and send a power control signal to the target power control unit according to the USB switch instruction; the power control signal is used to control the on and off of the power control unit; the power control unit is used to control the power on or off of the corresponding connected USB port. Therefore, the present application solves the problem that when using USB HUB to expand test storage products, the software cannot remotely and independently control the USB port switch, thereby improving the convenience and efficiency of R&D testing. It provides solutions in the field of mass production testing, especially in the intelligent production and manufacturing links. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 A structural block diagram of a USB HUB remote control circuit according to an embodiment of the present application is shown;
[0026] Figure 2 A circuit diagram of an MCU in a USB HUB remote control circuit according to an embodiment of the present application is shown;
[0027] Figure 3 A circuit diagram of a network port module in a USB HUB remote control circuit in an embodiment of the present application is shown;
[0028] Figure 4 A circuit diagram of a first USB port power output control chip in a USB HUB remote control circuit according to an embodiment of the present application is shown;
[0029] Figure 5 A circuit diagram of a second USB port power output control chip in the USB HUB remote control circuit of an embodiment of the present application is shown;
[0030] Figure 6 A circuit diagram of a third USB port power output control chip in the USB HUB remote control circuit of an embodiment of the present application is shown;
[0031] Figure 7 A circuit diagram of a fourth USB port power output control chip in the USB HUB remote control circuit of an embodiment of the present application is shown;
[0032] Figure 8 A circuit diagram of a power output control chip of a HUB module in a USB HUB remote control circuit according to an embodiment of the present application is shown;
[0033] Fig. 9 Another circuit schematic diagram of the power output control chip of the HUB module in the USB HUB remote control circuit of the embodiment of the present application is shown;
[0034] Fig.10 A circuit diagram of the first USB port in the USB HUB module in the USB HUB remote control circuit of the embodiment of the present application is shown;
[0035] Fig.11 A circuit diagram of a second USB port in the USB HUB module in the USB HUB remote control circuit of an embodiment of the present application is shown;
[0036] Fig.12 A circuit diagram of the third USB port in the USB HUB module in the USB HUB remote control circuit of the embodiment of the present application is shown;
[0037] Fig.13 A circuit diagram of the fourth USB port in the USB HUB module in the USB HUB remote control circuit of the embodiment of the present application is shown;
[0038] Fig.14 A circuit diagram of the fifth USB port in the USB HUB module in the USB HUB remote control circuit of an embodiment of the present application is shown;
[0039] Fig.15 A structural schematic diagram of a USB HUB circuit remote control system according to an embodiment of the present application is shown.
[0040] Description of main component symbols:
[0041] 110 - microcontroller; 120 - power control unit; 130 - USB HUB module; 131 - USB port; 140 - remote control center. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0043] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0044] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0045] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0046] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0047] In the prior art, when using a USB HUB to expand and test storage products, the traditional method of manually plugging and unplugging the USB or pressing a key switch is often used to connect or disconnect the device, but the switch of the USB port 131 cannot be remotely and independently controlled, resulting in low efficiency in R&D and testing. Therefore, the present application proposes a USB HUB remote control circuit and a remote control system, which can effectively solve the problem of low work efficiency in product R&D, testing and production.
[0048] The USB HUB remote control circuit is described below in conjunction with some specific embodiments.
[0049] Figure 1 A structural block diagram of a USB HUB remote control circuit of an embodiment of the present application is shown. The USB HUB remote control circuit is applicable to a storage device. Exemplarily, the USB HUB remote control circuit includes: a communication interface, a microcontroller 110, N power control units 120 (also called USB power control units) and a USB HUB module 130, 7≥N≥1. Preferably, N=5. Specifically, according to the number of USB HUB modules, 1 USB HUB module corresponds to 7 power control ports (power control units). In this embodiment, 1 USB HUB module is selected, with a maximum of 7 power control ports and a minimum of 1 power control port.
[0050] The USB HUB module 130 includes N USB ports 131 .
[0051] The microcontroller 110 is respectively connected to the N power control units 120. For example, the microcontroller 110 includes N power control interfaces, and the N power control interfaces are connected to the N power control units 120 one by one. The N power control units 120 are distinguished by the identifiers of the connected power control interfaces.
[0052] The N power control units 120 are respectively connected to one corresponding USB port 131 .
[0053] The microcontroller 110 is used to receive a remotely sent USB switch instruction through the communication interface, and send a power control signal to the target power control unit 120 according to the USB switch instruction. The USB switch instruction contains the identifier of the power control unit 120 and the corresponding on and off instructions. The microcontroller 110 records the USB switch instruction identifier, and determines to send a power control signal to the target power control unit 120 according to the connection relationship between the identifier of the power control interface and the power control unit 120. In addition, the USB switch instruction can be sent by an external remote control center according to the test scenario of the storage device. The remote control center can run on a PC.
[0054] The power control signal is used to control the switch of the power control unit 120 to achieve power on and off control. When the power control unit 120 is powered on, the corresponding connected USB port can work, and when the power control unit 120 is powered off, the corresponding connected USB port cannot work. That is, the power control unit 120 is used to control the power on or off of the power supply of the corresponding connected USB port 131.
[0055] The USB port 131 is used to connect a storage device supporting a USB port.
[0056] It can be known from relevant technical data that the USB interface is a communication interface that supports hot plugging, so the microcontroller 110 in this application receives the USB switch command sent from the outside, and the USB switch command includes the target power control unit 120. The microcontroller 110 also sends the power control signal to the target microcontroller 110 to control the switch of the power control unit 120, so as to remotely control the power on or off of the corresponding USB port 131. At the same time, the storage device corresponding to the corresponding USB port starts working when the USB port is powered on, and stops working when the power is off.
[0057] The USB HUB module also includes K signal ports. After realizing power on and off control, the microcontroller is also used to obtain the status information of the storage device through the corresponding signal port, and confirm the communication status of the corresponding USB port according to the status information. Exemplarily, the signal port is an LED port. The microcontroller includes an LED port (LED1-LED7), and the USB HUB module also includes a corresponding LED port (LED1-LED7). The microcontroller communicates with the USB HUB module through the LED port. The USB HUB module sends an LED signal to the MCU to indicate the communication status of the downstream USB port. If the downstream port is connected normally, the LED outputs a low level; if the downstream port is not connected normally, a high level is output.
[0058] In one embodiment, the circuit of the present application further includes a network port module, and the communication interface is provided on the network port module. The communication interface includes a UART serial port and a network port. The microcontroller 110 also includes a UART serial port; the microcontroller 110 is connected to the UART serial port of the network port module through its UART serial port. The network port of the network port module is used to communicate with an external remote control center.
[0059] The microcontroller 110 receives the USB switch instruction sent remotely through its UART serial port.
[0060] In one embodiment, the microcontroller 110 is an MCU; the MCU includes N power control pin interfaces; the microcontroller 110 is connected to the corresponding power control unit 120 through the power control pin interface. The microcontroller 110 sends a power control signal to the corresponding power control unit 120 through the power control pin interface.
[0061] The power control signal is a PW signal (a signal for setting a duty cycle); the PW signal can set a duty cycle according to user requirements. If the power control signal is at a high level, the power control unit 120 is turned on; if the power control signal is at a low level, the power control unit 120 is turned off. Preferably, the power control unit 120 is a power output control chip for the USB port 131; the USB HUB module 130 is a USB HUB power output control chip; the USB HUB module 130 is also used to realize data communication of each USB port 131.
[0062] The USB HUB remote control circuit of the present application is described below based on a specific example:
[0063] The microcontroller 110 in this example is an MCU, such as Figure 2 As shown in the figure, the MCU mainly includes 5 power control pins (USB5V_EN1~USB5V_EN5, HUB_5V_EN), UART serial port and LED port (LED1-LED7). The UART serial port is connected to the network port module M1 to realize remote communication control. The network port module M1 is as shown in the figure. Figure 3 The five power control pins respectively control the power control unit (also the USB power switch) of the USB port 131 in the USB HUB module. The LED port is used to connect the LED port in the USB HUB module.
[0064] This example includes 5 power control units, which use power output control chips. Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 As shown, U2~U5 are 4 USB port power output control chips, U6 is the power output control chip of the HUB module, and the power is uniformly provided by the power supply J6 to provide input VCC_5V. When the power control signal is at a high level, the USB port power output control chip is turned on to output power, and the corresponding USB port 131 is connected to the storage device; when the power control signal is at a low level, the USB port power output control chip is turned off to stop outputting power, and the corresponding USB port 131 does not work.
[0065] The USB HUB module 130 mainly implements USB data communication and expansion of the USB port 131. Fig. 9 , Fig.10 , Fig.11 , Fig.12 , Fig.13 , Fig.14 As shown, in this example, a 1-to-4 power output control chip U7 ( Fig. 9 ), J1~J4 are its extended downstream USB ports 131 ( Figure 10-13 ), J5 is the upstream USB port 131 ( Fig.14 ).
[0066] The present application knows from relevant technical data that the USB interface is a communication interface that supports hot plugging. In the present application, the PC sends relevant USB switch commands to the microcontroller 110 through the network interface, and the USB control unit controls the power on or off of the upstream / downstream USB ports of the corresponding HUB module, and simulates the hot plugging of the USB to realize the remote control of the USB HUB port switch.
[0067] Fig.15 A structural schematic diagram of a USB HUB circuit remote control system of an embodiment of the present application is shown. Exemplarily, the USB HUB circuit remote control system includes: a remote control center 140 and a USB HUB remote control circuit provided by the present application. The microcontroller 110 is connected to N power control units 120; the N power control units 120 are respectively connected to one of the USB ports 131; the remote control center 140 is connected to the microcontroller 110.
[0068] The remote control center 140 is used to send a USB switch instruction according to a test scenario of the storage device.
[0069] The microcontroller 110 is used to receive the USB switch instruction through the communication interface, and send a power control signal to the target power control unit 120 according to the USB switch instruction; the power control signal is used to control the switch of the power control unit 120 to achieve power on and off control. That is, the power control unit 120 is used to control the power on or off of the power of the corresponding connected USB port.
[0070] The USB port is used to connect a storage device supporting the USB port.
[0071] The system also includes a network port module; the network port module is used to support the microcontroller 110 to communicate with the remote control center 140; the network port module includes a UART serial port and a network port; the microcontroller 110 is connected to the UART serial port of the network port module through the UART serial port. The remote control center 140 is connected to the network port module through the network port.
[0072] It can be understood that the options in the above embodiment are also applicable to this embodiment, so they will not be described again here.
[0073] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A USB HUB remote control circuit, It is characterized in that include: A communication interface, a microcontroller, N power control units and a USB HUB module, N≥1; the USB HUB module includes N USB ports; The microcontroller is connected to N power control units respectively; the N power control units are connected to one USB port respectively; When a USB switch instruction is remotely sent in a test scenario of a storage device, the microcontroller is used to receive the remotely sent USB switch instruction through the communication interface, and send a power control signal to a target power control unit according to the USB switch instruction; the power control signal is used to control the switch of the power control unit to achieve power on and off control; The USB port is used to connect a storage device supporting the USB port.
2. The USB HUB remote control circuit according to claim 1, It is characterized in that The microcontroller is an MCU; the MCU includes N power control pin interfaces; the microcontroller is connected to the corresponding power control unit through the power control pin interfaces.
3. The USB HUB remote control circuit according to claim 1, It is characterized in that If the power control signal is at a high level, the power control unit is turned on; if the power control signal is at a low level, the power control unit is turned off.
4. The USB HUB remote control circuit according to claim 1, It is characterized in that The communication interface includes a UART serial port and a network port; the microcontroller includes a UART serial port; the UART serial port is used for the microcontroller to receive the USB switch instruction through the UART serial port in the communication interface; the network port is used for communication connection with a remote control center.
5. The USB HUB remote control circuit according to claim 1, It is characterized in that The power control unit is a USB port power output control chip; the USB HUB module is a USB HUB power output control chip; the USB HUB module is also used to realize data communication of each USB port.
6. The USB HUB remote control circuit according to any one of claims 1 to 5, It is characterized in that N∈(1,7)。 7. The USB HUB remote control circuit according to any one of claims 1 to 5, It is characterized in that The USB HUB module also includes K signal ports; After realizing power on and off control, the microcontroller is further used to obtain the status information of the storage device through the corresponding signal port, and confirm the communication status of the corresponding USB port according to the status information.
8. A USB HUB circuit remote control system, It is characterized in that include: A remote control center, a communication interface, a microcontroller, N power control units and a USB HUB module, N ≥ 1; the USB HUB module includes N USB ports; the microcontroller is connected to the N power control units; the N power control units are respectively connected to one USB port; The remote control center is used to send a USB switch instruction according to the test scenario of the storage device; The microcontroller is used to receive the USB switch instruction through the communication interface, and send a power control signal to the target power control unit according to the USB switch instruction; the power control signal is used to control the switch of the power control unit to achieve power on and off control; The USB port is used to connect a storage device supporting the USB port.
9. The USB HUB circuit remote control system according to claim 8, It is characterized in that The communication interface includes a UART serial port and a network port; the microcontroller includes a UART serial port; the UART serial port is used for the microcontroller to receive the USB switch instruction through the UART serial port in the communication interface; the network port is used for communication connection with a remote control center.
10. The USB HUB circuit remote control system according to claim 8, It is characterized in that The microcontroller is an MCU; the MCU includes N power control pin interfaces; the microcontroller is connected to the corresponding power control unit through the power control pin interfaces.
