How USB Ports Work
Wednesday, July 06th, 2011 | Author:
editor
A few years ago, computers and peripherals used a mind-boggling collection of different connectors for linking to one another. It was hard (sometimes impossible) to use a certain computer with a particular printer and, if you bought a new printer, it was often touch-and-go whether it would work with your old computer. These days, virtually all computers and peripherals use a standard way of connecting together called USB. which stands for “universal serial bus.” What’s it all about—and how does it work?

Universal Serial Ports or USBs have become extremely common and are found on most modern computers. Not only do these allow the users to attach other external devices to the computer, but also the operating systems support it, hence making installations easier. The development of USB came at a time when connecting external devices such as printers and modems required a separate specific parallel port. These were not even fast and required a lot of work during installations. However, with the invention of USB, it gave the users an easy and standardized way to connect up to 127 devices to any computer! Beginning from printers, scanners, mouse, joysticks, flight yokes and digital cameras to webcams, modems, speakers, telephones, video phones, scientific data acquisition devices and network connections – USB has offered a single solution to them all!
When the host is turned on, it detects all the devices connected to it through USB and assigns each device with a unique address. This is called the process of enumeration. This process occurs again once the devices are connected to the bus. Then the host seeks information from each device with regards to the kind of data transfer desired– interrupt, bulk or isochronous:
Interrupt mode is usually chosen by small devices requiring very little data sending. Bulk mode is used by devices which require bulk data transfer. For example, a Printer. Isochronous mode is chosen by the devices looking for streaming . The host can also control packets in terms of commands and query parameters.
Once the devices are enumerated, the host keeps track of the total bandwidth requirements of the isochronous and interrupt devices. The maximum they are allowed to consume is 90 percent of the 480 Mbps bandwidth. However, once the limit is reached, the host denies all further access. The rest 10 percent bandwidth is used by the bulk packets and control packets.