Where does a USB device reset come from when it is connected to a PC?

Source: Internet
Author: User

Recently, I am working on the optimization of the burning and Writing Tools. Some content about USB needs to be summarized, including the device initialization process and enumeration process.

During the enumeration process, the device will always wait for the status of the PC. When the reset command is executed, the device will be reenumerated. But how does this Reset terminal come from?

Halt Conditions

A control endpoint may recover from a halt condition upon processing ing a setup packet. if the endpoint does not recover from a setup packet, it may need to be recovered via a different pipe. if an endpoint with the endpoint number 0 does not recover with a setup packet, the host shoshould issue a device reset.

The above description is available in the USB protocol, which roughly means that when the control power-off receives the setup package, HC suspends the status and recovers. If the endpoint is not restored from the setup package, it may need to be restored through different pipelines. If endpoint 0 is not recovered from the setup package, the host generates a device restart event.

In this way, it can be explained that during the DFU file operation, the program must continuously receive interruptions. After the reset, the device will be re-enumerated. The specific operation will be described later.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.