Dual-bus architecture USB function detection device
By designing a dual-bus architecture USB function detection device, using state control switches, select power supply circuits and adapter drivers, the detection and switching of different bus modes of USB peripherals is achieved, and the problem of low detection efficiency of USB interface function in the prior art is solved, and detection efficiency and convenience are improved.
Patent Information
- Application Number
- CN202421536415.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2034-07-01
AI Technical Summary
In the prior art, the working status and bus functions of each bus of the dual-bus architecture USB interface lack efficient detection methods, which makes it difficult for users and manufacturers to confirm the working mode of USB peripherals, affecting the normal operation and production efficiency of the market.
A dual-bus architecture USB function detection device is designed, including a Host-end USB interface, a Device-end USB interface, a status control switch, a selection power supply circuit, a USB2.0 adapter driver, a USB3.x adapter driver and a delay circuit. Through the combination of these components, flexible switching and detection of different bus modes of USB peripherals can be achieved.
The device can flexibly control the USB peripherals to work in different USB bus modes without re-plugging the USB peripherals, which significantly improves the efficiency and convenience of USB bus function detection, and has the advantages of simple operation, low cost and easy to promote and use.
Smart Images

Figure CN222801146U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of USB bus, in particular to a dual-bus architecture USB function detection device. Background Art
[0002] USB, or Universal Serial Bus, is a serial bus standard for connecting systems and external devices. It is also a technical specification for input and output interfaces and is widely used in various electronic devices. To distinguish different protocol versions, USB currently has versions 1.0 / 1.1 / 2.0 / 3.0 / 3.1 / 3.2 / 4.0. Among them, USB3.x and USB4.x protocols both use a dual-bus architecture to be backward compatible with USB2.0 / 1.1 / 1.0 and other protocol versions.
[0003] Currently, USB3.x and USB4.x interfaces have been gradually popularized in various electronic devices. However, due to the dual-bus architecture of USB, the two buses can be used independently, which brings a series of problems:
[0004] User side: Especially for Android system smart devices or non-smart electronic devices, since users lack relevant detection procedures and means to confirm the working mode of USB peripherals, electronic devices with fake USB3.x interfaces appear on the market (although the devices use USB3.0 interfaces, they actually only support USB2.0 and below protocols. Users can connect USB1.0, USB1.1, USB2.0 or USB3.x peripherals and they can all work, which is very confusing), which seriously disrupts the market;
[0005] Production side: When manufacturers conduct functional testing on the USB3.x / USB4.x interface of electronic devices, they need to ensure that each bus such as USB2.0 / USB3.0 is working properly. Therefore, they need to connect USB2.0 peripherals and USB3.0 peripherals separately for testing, which requires multiple plugging and unplugging, and is inefficient. Utility Model Content
[0006] The utility model aims to solve at least one of the technical problems in the above-mentioned technology to a certain extent. To this end, the purpose of the utility model is to provide a dual-bus architecture USB function detection device, so that the user end or the production end can conveniently and efficiently detect the working mode and each bus function of the dual-bus architecture USB.
[0007] To achieve the above-mentioned purpose, the first embodiment of the utility model proposes a dual-bus architecture USB function detection device, including: a host-side USB interface, a device-side USB interface, a state control switch, a power supply selection circuit, a USB2.0 converter driver, a USB3.x converter driver and a delay circuit;
[0008] The Host-end USB interface is respectively connected to the state control switch and the selection power supply circuit; the state control switch is connected to the selection power supply circuit; the selection power supply circuit is respectively connected to the USB2.0 converter driver, the USB3.0 converter driver and the delay circuit; the delay circuit is connected to the Device-end USB interface.
[0009] Optionally, the state control switch has two working states: USB2.0 working state and USB3.x working state;
[0010] The power supply selection circuit is used to control the output of the USB2.0 power supply voltage when the state control switch is in the USB2.0 working state; and to control the output of the USB3.x power supply voltage when the state control switch is in the USB3.x working state.
[0011] Optionally, the function detection device further includes a current limiting circuit; and the selection power supply circuit is connected to the delay circuit via the current limiting circuit.
[0012] Optionally, the delay circuit is used to delay the output voltage for a time t; wherein the time t is greater than or equal to the larger of the time required for resetting the USB2.0 redriver and the time required for resetting the USB3.x redriver.
[0013] Optionally, the Host-side USB interface is a USB interface that complies with the interface definition of USB3.x and above; the Device-side USB interface is a USB interface that complies with the interface definition of USB3.x or USB4.0.
[0014] Optionally, the selection power supply circuit includes a bias resistor R1, a current limiting resistor R2, an acceleration capacitor C1, a transistor, a relay and a freewheeling diode; the relay includes a moving contact, a first static contact, a second static contact and a coil;
[0015] The moving contact of the relay is connected to the output end of the state control switch via the bias resistor R1, the first static contact is connected to the USB2.0 power supply voltage output end of the state control switch, the second static contact is connected to the USB3.x power supply voltage output end of the state control switch, and the coil is connected to the collector of the transistor via the freewheeling diode; the emitter of the transistor is connected to the power supply voltage output end of the USB interface at the Host end, and the base is connected to the output end of the state control switch via the acceleration capacitor C1 and the current limiting resistor R2 connected in parallel.
[0016] Optionally, the state control switch is a toggle switch; the toggle switch includes a toggle member, a first terminal, a second terminal and a third terminal; the first terminal is grounded, the second terminal is connected to the state control switch, and the third terminal is connected to the USB interface on the Host end; the toggle member is fixedly connected to the second terminal; the toggle member switches the connection between the first terminal and the third terminal as it moves.
[0017] Optionally, the USB2.0 converter driver is also connected to the host-side USB interface and the device-side USB interface respectively; the USB3.x converter driver is also connected to the host-side USB interface and the device-side USB interface respectively.
[0018] Optionally, the Host-side USB interface is connected to a USB interface to be tested of a Host device; and the Device-side USB interface is connected to a USB interface of a load Device device.
[0019] Optionally, the USB3.x converter adopts a TUSB522P chip; and the USB2.0 converter adopts a TUSB211A chip.
[0020] According to a dual-bus architecture USB function detection device of the embodiment of the utility model, the user / producer can control the power supply circuit to select different USB adapter drivers by operating the state control switch, so as to flexibly control the USB peripherals to work in different USB bus modes without re-plugging the USB peripherals; then, the user / producer only needs to determine whether the various USB bus functions of the USB interface to be tested of the Host device are normal by whether the Host device can normally identify and load the Device device in different USB bus modes. The embodiment of the utility model can greatly improve the efficiency of USB bus function detection, and has the advantages of convenient operation, low cost and easy promotion and use. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of the structure of a dual-bus architecture USB function detection device provided by an embodiment of the utility model;
[0022] Figure 2 A schematic flow chart of a dual-bus architecture USB function detection method based on a function detection device provided by an embodiment of the utility model;
[0023] Figure 3 A timing diagram of the power supply voltage of each module in a dual-bus architecture USB function detection device provided by an embodiment of the utility model;
[0024] Figure 4A schematic diagram of the structure connection of a dual-bus architecture USB function detection device provided by an embodiment of the utility model;
[0025] Figure 5 A schematic diagram of the structure of a state control switch in a function detection device provided in a specific embodiment of the utility model;
[0026] Figure 6 A table of the circuit structure of the power supply circuit selected in the function detection device provided in the specific embodiment of the utility model and the corresponding relationship between its output voltage and the switch control signal;
[0027] Figure 7 A schematic flow chart of a dual-bus architecture USB function detection method based on a function detection device in a specific application scenario provided by an embodiment of the utility model.
[0028] Description of symbols
[0029] 10. Function detection device; 20. Host equipment; 30. Device equipment;
[0030] 11. Host USB interface; 12. Device USB interface; 13. Status control switch; 14. Select power supply circuit; 15. USB2.0 transfer driver; 16. USB3.x transfer driver; 17. Delay circuit; 18. Current limiting circuit;
[0031] 131. A toggle member; a. a first terminal; b. a second terminal; c. a third terminal. DETAILED DESCRIPTION
[0032] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0033] In order to solve the technical problems that the prior art lacks efficient detection means and is difficult to confirm the working status of each bus and the bus function of the dual-bus architecture USB interface; the utility model is based on a function detection device, which can achieve flexible switching of the USB bus mode of the USB peripheral without plugging in or unplugging the USB peripheral, thereby greatly improving the detection efficiency and convenience of the working status of each bus and the bus function of the dual-bus architecture USB interface.
[0034] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0035] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0036] Figure 1 A schematic diagram of the structure of a dual-bus architecture USB function detection device provided by an embodiment of the utility model.
[0037] like Figure 1 As shown, the embodiment of the utility model provides a dual-bus architecture USB function detection device 10 including: a host-side USB interface 11 (to a host device 20), a device-side USB interface 12 (to a device device 30), a state control switch 13, a power supply selection circuit 14, a USB2.0 redriver 15, a USB3.x redriver 16 and a delay circuit 17;
[0038] The host-side USB interface 11 is connected to the state control switch 13 and the selection power supply circuit 14 respectively; the state control switch 13 is connected to the selection power supply circuit 14; the selection power supply circuit 14 is connected to the USB2.0 redriver 15, the USB3.0 redriver 16 and the delay circuit 17 respectively; the delay circuit 17 is connected to the device-side USB interface 12;
[0039] The USB2.0 converter driver 15 is also connected to the host USB interface 11 and the device USB interface 12 respectively; the USB3.x converter driver 16 is also connected to the host USB interface 11 and the device USB interface 12 respectively. The working principle of the above function detection device is:
[0040] After the host-side USB interface of the above-mentioned function detection device is connected to the host device, the 5V-VBUS provided by the host device is output in two ways through the host-side USB interface, one way is output to the selection power supply circuit for power supply of the subsequent circuit; the other way is output to the state control switch, and the state control switch controls the output of 5V-VBUS in the subsequent circuit. Specifically, the state control switch will output the corresponding on / off control signal to the selection power supply circuit according to its current switch state (USB2.0 working state or USB3.x working state) to control the output voltage of the selection power supply circuit (whether to output 5V-USB2.0 voltage, i.e. USB2.0 power supply voltage, or output 5V-USB3.x voltage, i.e. USB3.x power supply voltage). Among them, the correspondence between the switch state-on / off control signal-output voltage (selection power supply circuit) is pre-configured; as a specific example, the correspondence table is shown in Table 1 below.
[0041] Switch Status on / off control signal Output 5V-USB2.0 voltage Output 5V-USB3.x voltage USB3.x working status 0 0 1 USB2.0 working status 1 1 0
[0042] Table 1
[0043] The power supply circuit is controlled by the on / off control signal output by the state control switch, and provides 5V power supply to the delay circuit and the USB2.0 redriver / USB3.0 redriver according to the signal. Specifically, if the power supply circuit outputs a 5V-USB2.0 voltage according to the received on / off control signal, the voltage will be used to power on the USB2.0 redriver, the USB2.0 redriver will start to reset, and the USB2.0 bus will be in a working state; if the power supply circuit outputs a 5V-USB3.x voltage according to the received on / off control signal, the voltage will be used to power on the USB3.x redriver, the USB3.x redriver will start to reset, and the USB3.x bus will be in a working state.
[0044] After the voltage output by the power supply circuit is selected and given to the delay circuit, the delay circuit will output the 5V-USB power supply voltage to the USB interface on the Device end after the delay time t to power the USB device. The delay time t is greater than or equal to the larger of the time required to reset the USB2.0 converter driver and the time required to reset the USB3.x converter driver. Here, the purpose of powering on after the delay time t through the delay circuit is to control the power-on timing of the USB peripheral (Device device's USB) and the USB2.0 converter driver / USB3.x converter driver to ensure that the USB peripheral is powered on after the USB2.0 converter driver / USB3.x converter driver is reset, that is, it starts working, thereby ensuring that the USB peripheral can be normally identified and loaded by the Host device.
[0045] In addition, it should be noted that, corresponding to each switching of the on / off control signal of the state control switch, the power supply circuit will perform the above-mentioned delayed power-on function through the delay circuit, and control the 5V-USB that ultimately powers the USB peripheral (Device USB) to be powered off first and then powered on again. In this way, the purpose of making the USB peripheral work in different USB bus modes can be achieved without re-plugging the USB peripheral and only by switching the state of the state control switch.
[0046] In some specific embodiments, the host-side USB interface of the above-mentioned function detection device is a USB interface that complies with the USB3.x and above interface definition specifications, and can be male or female, and can be connected to the USB interface to be tested of the host device through an external standard USB3.x and above wire. Here, whether the host-side USB interface of the function detection device is connected to the USB interface to be tested through a USB cable of the USB3.x or USB4.x standard depends on the USB version supported by the USB interface to be tested.
[0047] The USB interface on the Device end is a USB interface that complies with the USB3.x or USB4.0 interface definition specification and is a female socket that can be connected to an external USB1.0 / USB1.1 / USB2.0 / USB3.x / USB4.0 peripheral.
[0048] In some specific embodiments, the USB2.0 adapter driver of the function detection device is specifically used to switch the DM / DP of the USB2.0 signal in the USB2.0 bus; preferably, it is configured to work when powered on and shut down when powered off;
[0049] Correspondingly, the USB3.x converter driver is specifically used to switch the TX / RX of the USB3.x / USB4.0 signal in the USB3.x bus; preferably, it is configured to work when powered on and shut down when powered off.
[0050] In this embodiment, if Figure 2 As shown, the dual-bus architecture USB function detection process based on the above function detection device at least includes the following steps:
[0051] S1: Connect the USB interface of the host end of the function detection device to the USB interface of the host device to be tested; connect the USB interface of the device end of the function detection device to the USB interface of the load device (hereinafter referred to as USB peripheral);
[0052] S2: the power supply selection circuit in the function detection device controls the output of a voltage corresponding to the current switch state according to the current switch state of the state control switch;
[0053] S3: If the output voltage of the selected power supply circuit is the USB2.0 power supply voltage, the USB2.0 converter driver starts the reset action; at the same time, after the delay time t, the delay circuit outputs the power supply voltage of the device end through the USB interface of the device end, that is, after ensuring that the reset of the USB2.0 converter driver is completed;
[0054] S4: If the output voltage of the selected power supply circuit is the USB3.x power supply voltage, the USB3.x adapter driver starts the reset action; at the same time, after the delay time t, that is, after ensuring that the USB3.x adapter driver is reset, the power supply voltage of the Device end is output through the Device end USB interface.
[0055] The time t delayed by the delay circuit is greater than or equal to the larger value of the time required for resetting the USB2.0 redriver and the time required for resetting the USB3.x redriver.
[0056] S31: when the switch state of the state control switch is in the USB2.0 working state, if the host device can normally identify and load the device, it proves that the device is currently working in the USB2.0 bus mode, and determines that the USB2.0 bus function of the device is normal;
[0057] S41: When the switch state of the state control switch is in the USB3.x working state, if the Host device can normally identify and load the Device device, it proves that the Device device is currently working in the USB3.x bus mode, and it is determined that the USB3.x bus function of the Device device is normal.
[0058] In some specific implementations, the time t delayed by the delay circuit is the larger of the time required for resetting the USB2.0 redriver and the time required for resetting the USB3.x redriver, so that the USB peripheral can be identified and loaded as quickly as possible.
[0059] In some specific implementations, the switch state of the state control switch includes a USB2.0 working state and a USB3.x working state. Before the above step S2, it also includes:
[0060] S21: Preset and select the corresponding relationship between the output voltage of the power supply circuit and the switch state of the state control switch; the corresponding relationship includes: the output voltage corresponding to the USB2.0 working state is the USB2.0 power supply voltage; the output voltage corresponding to the USB3.x working state is the USB3.x power supply voltage.
[0061] The corresponding relationship set in this step is reflected in the signal logic processing inside the function detection device, as shown in the above Table 1.
[0062] It can be understood that, through the above steps, the association between the operation of the state control switch and the selection of the specific bus of the power supply circuit is realized, that is, the control logic for selecting different buses is formulated.
[0063] like Figure 3 As shown, the timing sequence of the power supply voltage of each module in the dual-bus architecture USB function detection device provided by this embodiment is:
[0064] After the function detection device is connected to the host device, the 5V-VBUS provided by it flows into the host-side USB interface to power the function detection device and the USB peripherals plugged into the device-side USB interface of the function detection device.
[0065] After 5V-VBUS is powered on, the power supply circuit can control the current switch state according to the state control, that is, the on / off control signal in the figure, to control the output 5V-USB2.0 or 5V-USB3.x voltage. Figure 3 As shown, the time difference between the 5V-VBUS power-on time and the 5V-USB2.0 / 5V-USB3.x output time is t1.
[0066] After the 5V-USB2.0 / 5V-USB3.x voltage is output, the USB2.0 redriver / USB3.x redriver starts the reset action. The reset time required for the USB2.0 redriver and the USB3.x redriver may be different or the same.
[0067] The 5V-USB2.0 / 5V-USB3.x voltage is delayed by the delay circuit for a time t and then output to the USB peripheral in the form of 5V-USB to power it. Figure 3 As shown, the time difference between the 5V-USB power-on time and the 5V-VBUS power-on time is t2.
[0068] It should be noted that if Figure 3 As shown, corresponding to each switching of the on / off control signal, it can also be understood as the output switching of 5V-USB2.0 or 5V-USB3.x. The 5V-USB output by the delay circuit will be powered off (off) for a time t before being powered on again.
[0069] The setting of the delay time t of the delay circuit is directly related to the reset time of the redriver. The delay time t≥the larger of the time required for the reset of the USB2.0 redriver and the time required for the reset of the USB3.x redriver, to ensure that no matter which bus is selected, the USB peripheral is started after the bus work is completed, further ensuring that the USB peripheral can be recognized and loaded normally. Here, the preferred delay time t=the larger of the time required for the USB2.0 redriver and the time required for the USB3.x redriver.
[0070] It can be seen from this that t1≥0, t≥0, t2>0; and (t2-t1)>t.
[0071] The dual-bus architecture USB function detection method provided in this embodiment uses a function detection device to connect its two ends to the Host device and the Device device respectively. The user / producer can control the switch by manipulating the status to freely turn on different USB adapter drivers without re-plugging the USB peripherals, thereby controlling the USB peripherals to work in different USB bus modes, thereby achieving the purpose of flexibly switching different USB working buses; the user or producer only needs to confirm whether the Host device can normally identify and load devices in different USB bus modes to determine whether the USB bus functions of the Host device are normal.
[0072] The implementation of this embodiment can effectively solve the problem that it is difficult for the user to determine whether the USB3.x interface of the Android system's smart and non-smart electronic devices is normal and complete; in addition, it can also solve the problem that the industry's production end needs to use different USB2.0 / 3.x / 4.0 peripherals to plug and unplug and test the USB3.x / USB4.0 interface of the electronic device. This embodiment can greatly improve the efficiency of USB bus function detection, while also having the advantages of simple operation, low cost, and convenience for large-scale implementation.
[0073] See also Figure 4 , Figure 4 A schematic diagram of the structural connection of a dual-bus architecture USB function detection device provided by an embodiment of the utility model.
[0074] like Figure 4 As shown, in this embodiment Figure 1 Based on the structure of the function detection device shown, a current limiting circuit 18 is additionally provided. The selection power supply circuit 14 is further connected to the delay circuit 17 via the current limiting circuit 18 .
[0075] In this embodiment, the current limiting circuit 18 is used to limit the current of the 5V power supply output by the selection power supply circuit 14 to protect the Device and Host equipment connected at the subsequent stage and prevent the load short circuit from causing destructive effects on the function detection device.
[0076] In some specific implementations, the state control switch may be a toggle switch. Figure 5 As shown, the toggle switch includes a toggle member 131, a first terminal a, a second terminal b and a third terminal c; wherein the first terminal a is grounded, the second terminal b is connected to the state control switch, and receives the on / off control signal outputted by the state control switch; the third terminal c is connected to the USB interface at the host end, and receives the 5V-VBUS outputted by the host end; the toggle member 131 is fixedly connected to the second terminal b; the toggle member 131 switches the connection between the first terminal a and the third terminal b as it moves, so as to support the switching of two switch states.
[0077] like Figure 5 As shown, the second terminal b that receives the on / off control signal is located in the middle position, and the first terminal a that is grounded and the third terminal c that receives 5V-VBUS are on both sides. As the toggle member moves into place, two of the terminals (the first terminal a and the second terminal b, or the second terminal b and the third terminal c) can be turned on. At the same time, combined with the above Table 1, it can be seen that when the state control switch is in the USB2.0 working state, when the toggle member 131 turns on the first terminal a and the second terminal b, the on / off control signal is 0; when the state control switch is in the USB3.x working state, the toggle member 131 turns on the second terminal b and the third terminal c, and the on / off control signal is 1.
[0078] Optionally, the state control switch is grounded by default, that is, the on / off control signal output is 0 by default.
[0079] It can be seen that the user / manufacturer only needs to manipulate the toggle member of the state control switch to select different USB working buses through different on / off control signals. Therefore, the USB bus function detection method provided in this specific embodiment has the characteristics of being extremely simple and easy to operate.
[0080] It should be noted that the combination of the state control switch and the delay circuit can achieve that when the state control switch is turned on to switch the working state, the 5V-USB voltage that powers the load will be powered off and then powered on again, that is, the USB peripheral is reloaded once. In this way, the user / production end can switch the USB working protocol without repeatedly plugging and unplugging the USB peripheral.
[0081] In some other specific embodiments, Figure 6As shown, the selective power supply circuit includes a bias resistor R1, a current limiting resistor R2, an acceleration capacitor C1, a transistor, a relay and a freewheeling diode; the relay includes a moving contact 3, a first static contact 5, a second static contact 4 and a coil.
[0082] Among them, the moving contact 3 of the relay is connected to the output end of the state control switch via the bias resistor R1, the first static contact 5 is connected to the USB2.0 power supply voltage output end of the state control switch, and the second static contact 4 is connected to the USB3.x power supply voltage output end of the state control switch; one end 2 of the coil is grounded, and the other end 1 is divided into two paths, one is grounded via a freewheeling diode, and the other is connected to the collector of the transistor; the emitter of the transistor is connected to the power supply voltage output end of the USB interface at the Host end, and the base is connected to the output end of the state control switch via a parallel-connected acceleration capacitor C1 and a current-limiting resistor R2. Here, the transistor is preferably a PNP transistor.
[0083] The working principle of the above specific implementation is:
[0084] When the on / off control signal output by the state control switch is 0, the PNP transistor in the selected power supply circuit will operate in a saturated conduction state, and current will flow through the coil in the relay, so that the relay will be electrically contacted to attract the moving contact 3 and the second static contact 4, and output 5V-USB3.x to drive the subsequent USB3.x adapter driver, current limiting circuit and delay circuit to work; at the same time, after passing through the current limiting circuit and delay circuit, the 5V-USB3.x is used as a 5V-USB power supply to power the load USB device.
[0085] Combination Figure 4 If a USB3.x peripheral is connected to the USB interface on the Device end, or a USB3.x peripheral has been inserted in advance, the USB peripheral will work on the USB3.x bus channel, and only the TX / RX data signals will communicate with the Host device through the USB3.x converter driver; if the Host device can correctly identify and load the USB peripheral, it can be determined that the USB3.x function of the Host device is normal.
[0086] Similarly, when the state control switch is toggled so that the on / off control signal it outputs is switched to 1, the PNP transistor in the selected power supply circuit will be operated in the disconnected state, and the current cannot flow through the coil in the relay. The relay cannot attract the moving contact 3, and the moving contact 3 will return to the initial position, that is, contact with the first static contact 5, and output 5V-USB2.0 to drive the subsequent USB2.0 converter, current limiting circuit and delay circuit to work; at the same time, after passing through the current limiting circuit and delay circuit, the 5V-USB2.0 is used as a 5V-USB power supply to power the load USB device;
[0087] At this time, without plugging in or out the USB3.x peripheral connected to the USB interface on the Device side, only the DM / DP signal of the USB3.x peripheral is transmitted to the Host device through the USB2.0 adapter driver; if the Host device can correctly identify the USB peripheral and load it successfully, it means that the USB2.0 function of the Host device is normal.
[0088] In some specific implementations, the USB2.0 converter in the function detection device uses the TUSB211A chip of TI to well meet the compatibility with USB1.0 / 1.1 / 2.0 protocols and support 5V power supply requirements; it is preferably configured to work immediately after power-on initialization and disconnect the DM / DP signal when the power is off;
[0089] Accordingly, the USB3.x converter driver uses the TUSB522P chip of TI, which is preferably configured to work immediately after power-on initialization and disconnect the TX / RX signals after power-off.
[0090] Since the TUSB522P chip used in the USB3.x redriver only supports 3.3V power supply, an LDO can be added for voltage conversion during implementation to convert the 5V-USB3.x output of the selected power supply circuit to 3.3V; if a 5V power supply redriver is selected, an LDO is not required.
[0091] See also Figure 7 , Figure 7 A schematic flow chart of a dual-bus architecture USB function detection method based on a function detection device in a specific application scenario provided by an embodiment of the utility model.
[0092] like Figure 7 As shown, in a specific application scenario, a dual-bus architecture USB function detection method based on a function detection device includes:
[0093] S10: Connecting the USB interface to be tested of the host device and the USB interface (i.e., USB peripheral) of the load device through the function detection device; wherein the USB interface to be tested supports USB3.x and above USB protocol versions; and the USB peripheral supports USB3.x and above USB protocol versions;
[0094] S20: According to the position of the state control switch in the function detection device, when the on / off control signal output by the state control switch is 0, the USB3.x bus data link driver is enabled; if the host device can normally identify the USB peripheral, and the USB peripheral works in the USB3.x bus mode, it is determined that the USB3.x bus function of the host device is normal;
[0095] S30: Switch the state of the state control switch so that the on / off control signal it outputs flips from 0 to 1, selects the USB2.0 bus data link driver, and the 5V voltage of the USB peripheral is powered off and then powered on again to simulate the plug-in and pull-out action; the USB peripheral will work in the USB2.0 bus mode. If the Host device can normally identify the USB peripheral, it is determined that the USB2.0 bus function of the Host device is normal.
[0096] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may be in 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 codes.
[0097] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.
[0098] 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 1 A function specified in one or more boxes.
[0099] 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.
[0100] It should be noted that in the claims, any reference signs placed between brackets shall not be constructed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The utility model can be implemented with the aid of hardware comprising several different components and with the aid of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0101] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0102] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0103] In the description of the present utility model, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0104] In the present invention, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0105] In the present utility model, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0106] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the utility model. In this specification, the schematic representation of the above terms should not be understood as necessarily being directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0107] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present invention. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A dual-bus architecture USB function detection device, characterized in that: include: Host-side USB interface, Device-side USB interface, status control switch, power supply selection circuit, USB2.0 redriver, USB3.x redriver and delay circuit; The USB interface at the host end is connected to the state control switch and the power supply selection circuit respectively; The state control switch is connected to the selection power supply circuit; the selection power supply circuit is respectively connected to the USB2.0 converter driver, the USB3.0 converter driver and the delay circuit; the delay circuit is connected to the Device-end USB interface.
2. The dual-bus architecture USB function detection device according to claim 1, characterized in that: The state control switch has two working states: USB2.0 working state and USB3.x working state; The power supply selection circuit is used to control the output of the USB2.0 power supply voltage when the state control switch is in the USB2.0 working state; and to control the output of the USB3.x power supply voltage when the state control switch is in the USB3.x working state.
3. The dual-bus architecture USB function detection device as claimed in claim 1, characterized in that: The function detection device further includes a current limiting circuit; the selection power supply circuit is connected to the delay circuit via the current limiting circuit.
4. The dual-bus architecture USB function detection device according to claim 1, characterized in that: The delay circuit is used to output a voltage for a delay time t; wherein the time t is greater than or equal to the larger of the time required for resetting the USB2.0 redriver and the time required for resetting the USB3.x redriver.
5. The dual-bus architecture USB function detection device according to claim 1, characterized in that: The host-side USB interface is a USB interface that complies with the interface definition of USB3.x and above; the device-side USB interface is a USB interface that complies with the interface definition of USB3.x or USB4.
0.
6. The dual-bus architecture USB function detection device according to claim 1, characterized in that: The selective power supply circuit includes a bias resistor R1, a current limiting resistor R2, an acceleration capacitor C1, a transistor, a relay and a freewheeling diode; the relay includes a moving contact, a first static contact, a second static contact and a coil; The moving contact of the relay is connected to the output end of the state control switch via the bias resistor R1, the first static contact is connected to the USB2.0 power supply voltage output end of the state control switch, the second static contact is connected to the USB3.x power supply voltage output end of the state control switch, and the coil is connected to the collector of the transistor via the freewheeling diode; the emitter of the transistor is connected to the power supply voltage output end of the USB interface at the Host end, and the base is connected to the output end of the state control switch via the acceleration capacitor C1 and the current limiting resistor R2 connected in parallel.
7. The dual-bus architecture USB function detection device according to claim 1, characterized in that: The state control switch is a toggle switch; the toggle switch includes a toggle member, a first terminal, a second terminal and a third terminal; the first terminal is grounded, the second terminal is connected to the state control switch, and the third terminal is connected to the USB interface at the Host end; the toggle member is fixedly connected to the second terminal; the toggle member switches the connection between the first terminal and the third terminal as it moves.
8. The dual-bus architecture USB function detection device according to claim 1, characterized in that: The USB2.0 converter driver is also connected to the USB interface at the host end and the USB interface at the device end respectively; the USB3.x converter driver is also connected to the USB interface at the host end and the USB interface at the device end respectively.
9. The dual-bus architecture USB function detection device according to claim 1, characterized in that: The host-side USB interface is connected to the USB interface to be tested of the host device; the device-side USB interface is connected to the USB interface of the load device.
10. The dual-bus architecture USB function detection device according to claim 1, characterized in that: The USB3.x converter adopts the TUSB522P chip; the USB2.0 converter adopts the TUSB211A chip.