Device and method for realizing automatic power failure of USB (Universal Serial Bus) device
A kind of equipment and automatic technology, applied in the field of communication, can solve the problems of easily damaged equipment interface, difficult to guarantee the test frequency, etc., to achieve the effect of meeting the mass production test, improving the efficiency of production test and the effectiveness of test
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] Such as figure 1 As shown, a method for realizing the automatic power-off of a USB device comprises the following steps:
[0044] Step 101: the device waits to receive instructions from the host computer;
[0045] Step 102: After receiving the instruction, the device first judges whether the address has been set, if yes, execute step 103, otherwise execute step 110;
[0046] Specifically, in this embodiment, after receiving the instruction, the device judges whether the current device address is consistent with the target device address, if yes, it means that the address has been set; or after receiving the instruction, the device judges whether there is an address change flag, if there is an address change flag, it means The address is already set; otherwise, the address is not set.
[0047] Step 103: Determine whether the instruction satisfies the filter condition, if yes, execute step 104, otherwise return to execute step 101;
[0048] In this embodiment, the judg...
Embodiment 2
[0132] Such as figure 2 Shown a kind of USB device automatic power-off device 6, comprise USB HUB chip 2, main control chip 3, equipment port control circuit 4 and indicator light circuit 5, wherein, described device 6 is connected with PC through the port of USB HUB chip 2 1 connected, connected to the USB device 7 through the port of the device port control circuit 4, the main control chip 3 and the device port control circuit 4 are connected to the USB HUB chip 2, and the device port control circuit 4 and the indicator light circuit 5 are connected to the main control chip 3 .
[0133] The device is provided with a working voltage of 5V by a power supply, and the working voltage of 5V is converted into a voltage of 3.3V to supply power for the USB HUB chip 2 .
[0134] The USB HUB chip 2 is used to expand the USB channel, and provides an interface through which the PC 1 is connected to the USB device 7 through the device port control circuit 4, and is used to provide a da...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 