The universal serial bus (USB) is the connection on most computers, phones and chargers. This lesson explains how USB sends data serially, what happens when a device is plugged in, and the benefits and drawbacks you need to give in the exam.
about 25 min1 simulation1 practice question
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
A port for almost everything
Look at a computer, a charger or a games console. You will almost certainly find a small rectangular or oval socket. That is a USB port. USB stands for universal serial bus, and each word tells you something.
Universal: it is one standard, so the same kind of socket works with keyboards, mice, printers, memory sticks, phones and cameras.
Serial: the data goes one bit at a time, as in serial transmission from the last lesson.
Bus: it is a shared path that carries data between the computer and the device.
What happens when you plug in a device
The computer detects that a device has been connected.
The device tells the computer what kind of device it is.
The computer looks for the right driver: the small program that lets it control that kind of device. If it already has the driver, it loads it at once.
If it has no driver, the computer searches for one before the device can be used.
The device is ready. Data now passes along the cable serially.
This automatic detection is one of the main benefits of USB. You do not have to set the device up by hand.
Benefits and drawbacks
Benefits of USB.
Devices are detected automatically, and the right driver is loaded or searched for.
It is an industry standard, so many different devices use the same connection.
The cable can supply power to the device, so a keyboard needs no plug of its own and a phone can charge.
Newer ports still work with older devices (it is backward compatible).
Because the data is serial, there is no skew, so the cable can be thin and cheap.
Drawbacks of USB.
The cable length is limited, to about five metres for a standard cable.
Older versions transfer data much more slowly than newer ones.
Some other connections are faster, so USB may not suit every task that moves very large amounts of data.
When an exam question gives a scenario, link the benefit to it. For example, a school wants staff to plug in their own keyboards: automatic detection and the standard connector mean anyone can do it without help.
The rates in the simulation are examples. Real cables differ, and the exam does not ask you to remember a rate.
Practise with new numbers
Try it in Python
The program is a model of plugging in three devices. For each one it shows detection and then looks up a driver. At the end it works out the ideal time to copy a file over a serial cable.
Common mistakes
Saying USB is parallel. The S in USB stands for serial.
Saying the device needs setting up by hand. USB devices are detected automatically.
Forgetting power. A USB cable can power a device as well as carry its data.
Giving a benefit with no link to the scenario. Say why the benefit matters for the task in the question.
Remember these
USB means universal serial bus: one standard connection that sends data serially.
When a device is plugged in, it is detected and its driver is loaded or searched for.
Benefits: automatic detection, industry standard, power supply, backward compatible.
Drawbacks: limited cable length, older versions are slow.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
The name universal serial bus has three words. What does the word universal tell you?
Does USB send data serially or in parallel?
A device is plugged into a USB port. What does the computer do first?
Give one drawback of USB.
A café wants customers to charge their phones from sockets in the tables. Which benefit of USB matters most here?
Enroll free in Packets and Methods of Data Transmission
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.