USB data transmission process

Source: Internet
Author: User
USB data transmission process

The USB Bus Protocol strictly defines the data transmission. through the collaboration of software and hardware, the two-way data transmission between the USB host and the device can be conveniently realized, the communication process involves four parts: host software, USB Bus DriverProgramUSB host driver control, USB function equipment, need their support division of labor.

USB Data Structure

USB data is composed of binary numeric strings. First, a numeric string consists of seven domains: Synchronous domain, Id domain, address domain, frame number domain, data domain, and end point domain ), the domain constitutes a package (four types: token package, data packet, and handshake packet), and the package constitutes a transaction (three major transactions: in transactions, out transactions, and setup transactions are composed of three phases: token package, data packet, and handshake packet ), transaction final composition transmission (Interrupt transmission, parallel transmission, batch transmission and control transmission ).

Data transmission type selection

Use of the four data transmission modes stipulated by the USB Protocol: (1) control transmission. It is mainly used for device detection and configuration by hosts. (2) interrupted transmission. It is used to support devices that occasionally require data communication but have limited service time. Interrupted transmission is often used on devices such as keyboards, mouse, and game poles. (3) batch transmission. It is suitable for scenarios where time is not important. Batch transmission can transmit a large amount of data without blocking the bus, because it will first execute other types of transmission to wait for the transmission time, such as for disk operations. (4) synchronous transmission. It is suitable for transmission at a fixed rate and can tolerate occasional errors, such as real-time voice transmission. We first implement control transmission, but the data collection system requires a large amount of data, so we try to transfer it in batches.

 

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.