For the last decade USB has crept up in popularity because it offers an easy and universal method for very fast data transfer. Printers, cell phones, speakers and a large number of other devices have all adopted the USB standard simple because having this universal connection between devices makes everybody's life easier.
USB theory is very similar to the way ethernet / internet connectivity theory works. There is one USB Host device and many client devices that communicate with the host device.
The job of the USB host is to keep track of what type of devices are connected, to which port and what type of data it sends.
On the other hand the job of the USB device is to tell the Host what type of device it is and then proceed to do whatever it's suppose to do (save data/play music).
3. SpecificationsThere are three different types of USB specifications widely used in the world today. They are all backward compatible with previous revisions, while adding more features and functionality to the existing data bus. The primary difference that the end-user will notice between revisions is data transfer rates are significantly increased, which means less time to save stuff!
- Connector: 4 Pin (PWR/D+/D-/GND); USB 3.0 - 9pins
- Power: +5v (no less than 4.75v)
- Cable Length: 3-5 meter (shorter is better)
- Cabling: Use Twisted Pair Wiring and Shielding
- PCB Layout: 90Ω Characteristic impedance, 45Ω Terminations
- Data: D+/D- differential data lines
- Low-speed: 1.5 Mbit/s - (183 kB/s) ~> From USB 1.0
- Full-speed: 12 Mbit/s - (1.43 MB/s)
- 500mA max current draw per USB channel
- Only 1 Connector - Type A
- High-speed: 480 Mbit/s - (57 MB/s)
- 500mA max current draw per USB channel
- Connector Types B, C & Mini USB Introduced
- Super-speed: 4800 Mbit/s - (572 MB/s)
- 900mA max current draw per USB channel
- CRC-16/CRC-32 For Header/Payload Protection
- 9 pin Connector Introduced
The main job of the USB host is to offer and control a pathway for devices to communicate to it. This means a host must keep track of which devices are connected, what type of devices they are, and how much communication bandwidth they need and can receive. Therefore, the USB host controls the device priority and flow of information making a the gate-keeper of the USB communication protocol.
The USB protocol has a specific set of guidelines for how the USB host should communicate with devices. At a high level, the host is constantly polling devices for their current status. A USB device cannot initiate the communication, that is the job of the USB host. Since the USB Host must control and do so many things at the same time, a USB memory buffers/stack is necessary.
Isochronous Transfers: This type of data communication is for real-time, high bandwidth devices like webcams or streaming audio. The USB Host guarantees a specific data-rate will always be available to the USB device that needs this type of communication. Data loss is possible, however unlikely.
Bulk Transfers: The bulk transfer type of communication is typically reserved for large file transfer like to a USB memory stick or external hard drive storage. This transfer type does not set any guaranteed speed for through-put, so it can be seen as a low-priority communication type for large/long communications.
Interrupt Transfers: Interrupt driven transfers are meant for devices where low latency and fast response times are necessary. These devices, like a USB mouse or keyboard, do not send much information to the USB Host, but rely on high speed transfers in order to fully-function.
Control Transfers: The last type of transfer is used in a similar way to the interrupt transfer. Control transfers are typically short commands looking for a status response from a device or host.
Comments
Please log in or sign up to comment.