Partager via


USB Transfer Types (Windows Embedded CE 6.0)

1/6/2010

The Windows Embedded CE operating system (OS) supports all four types of data transfer defined in the Universal Serial Bus Specification. Data transfer takes place between the memory buffer on the host computer and an endpoint on the universal serial bus (USB) device. Data is organized into packets before it is transferred. The transfer type that is used depends on the pipe on which the transfer is being issued, which is determined by the USB device on your system.

The following table shows the transfer types that device drivers for USB devices can use.

Transfer type Description

Control

Control transfers are bidirectional transfers that are used by the USB system software mainly to query, configure, and issue certain generic commands to USB devices. Control transfers typically take place between the host computer and the USB device's endpoint 0, but your control transfers might use other endpoints.

Isochronous

Isochronous transfers provide guaranteed amounts of bandwidth and latency. They are used for streaming data that is time-critical and error-tolerant or for real-time applications that require a constant data transfer rate. For example, an Internet telephony application that carries a conversation in real time is a good candidate for isochronous transfer mode. Isochronous data requires guaranteed amounts of bandwidth and guaranteed maximum transmission times. For isochronous transfers, timely data delivery is much more important than perfectly accurate or complete data transfer.

Interrupt

Interrupt transfers are used mainly to poll devices to check if they have any interrupt data to transmit. The device's endpoint descriptor structure determines the rate of polling, which can range from 1 through 255 milliseconds. This type of transfer is typically used for devices that provide small amounts of data at sporadic, unpredictable times. Keyboards, joysticks, and mouse devices fall into this category. It is also used to signal the presence of data on other endpoints in the device.

Bulk

Bulk transfers are for devices that have large amounts of data to transmit or receive and that require guaranteed delivery, but do not have any specific bandwidth or latency requirements. Printers and scanners fall into this category. Very slow or greatly delayed transfers can be acceptable for these types of device, as long as all of the data is delivered eventually. However, in the absence of any other demands for bus bandwidth, bulk transfers are processed as quickly as possible.

See Also

Concepts

USB Host Controller Driver Development Concepts
USB Host Controller Driver Architecture
USB Devices
USB System Software