
A USB-to-serial adapter or simply USB adapter is a type of
protocol converter
{{Use American English, date = March 2019
In computer networking, a protocol converter is a device used to convert standard or proprietary protocol of one device to the protocol suitable for the other device or tools to achieve the desired interop ...
that is used for converting
USB
Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
data signals to and from
serial communications
In telecommunication and data transmission, serial communication is the process of sending data one bit at a time, sequentially, over a communication channel or computer bus. This is in contrast to parallel communication, where several bits ar ...
standards (
serial port
A serial port is a serial communication Interface (computing), interface through which information transfers in or out sequentially one bit at a time. This is in contrast to a parallel port, which communicates multiple bits simultaneously in Pa ...
s). Most commonly the USB data signals are converted to either
RS-232
In telecommunications, RS-232 or Recommended Standard 232 is a standard introduced in 1960 for serial communication transmission of data. It formally defines signals connecting between a ''DTE'' (''data terminal equipment'') such as a compu ...
,
RS-485
RS-485, also known as TIA-485(-A) or EIA-485, is a standard, originally introduced in 1983, defining the electrical characteristics of drivers and receivers for use in serial communications systems. Electrical signaling is balanced, and Telecomm ...
,
RS-422
RS-422, also known as TIA/EIA-422, is a technical standard originated by the Electronic Industries Alliance, first issued in 1975, that specifies the electrical characteristics of a digital signaling circuit. It was meant to be the foundation ...
, or
TTL-level UART
A universal asynchronous receiver-transmitter (UART ) is a peripheral device for asynchronous serial communication in which the data format and transmission speeds are configurable. It sends data bits one by one, from the least significant to ...
serial data. The older serial
RS-423
RS-423, also known as TIA/EIA-423, is a technical standard originated by the Electronic Industries Alliance that specifies electrical characteristics of a digital signaling circuit. Although it was originally intended as a successor to RS-232C o ...
protocol is rarely used any more, so USB to RS-423 adapters are less common.
Uses
USB-to-serial RS-232 adapters are often used with consumer, commercial and industrial applications and USB-to-serial RS-485/422 adapters are usually mainly used only with industrial applications. Currently, USB to TTL-level UART converters are used extensively by students and hobbyist as they can be directly interfaced to microcontrollers.
Adapters for converting USB to other standard or
proprietary protocol
In telecommunications, a proprietary protocol is a communications protocol owned by a single organization or individual.
Intellectual property rights and enforcement
Ownership by a single organization gives the owner the ability to place restricti ...
s also exist; however, these are usually not referred to as a serial adapter.
The primary application scenario is to enable USB-based computers to access and communicate with serial devices featuring
D-sub
The D-subminiature or D-sub is a common type of electrical connector. They are named for their characteristic D-shaped metal shield. When they were introduced, D-subs were among the smallest connectors used on computer systems.
Description, ...
(usually
DE-9
The D-subminiature or D-sub is a common type of electrical connector. They are named for their characteristic D-shaped metal shield. When they were introduced, D-subs were among the smallest connectors used on computer systems.
Description, ...
or
DB-25
The D-subminiature or D-sub is a common type of electrical connector. They are named for their characteristic D-shaped metal shield. When they were introduced, D-subs were among the smallest connectors used on computer systems.
Description, ...
) connectors or screw terminals, where security of the data transmission is not generally an issue.
USB serial adapters can be isolated or non-isolated. The isolated version has
opto-coupler
An opto-isolator (also called an optocoupler, photocoupler, or optical isolator) is an electronic component that transfers electrical signals between two isolated circuits by using light. Opto-isolators prevent high voltages from affecting the s ...
s and/or surge suppressors to prevent static electricity or other high-voltage surges to enter the data lines thereby preventing data loss and damage to the adapter and connected serial device. The non-isolated version has no protection against static electricity or voltage surges, which is why this version is usually recommended for only non-critical applications and at short communication ranges.
History
Historically, most personal computers had a built-in D-sub serial RS-232 port, also referred to as a COM port, which could be used for connecting the computer to most types of serial RS-232 devices. By the late 1990s, many computer manufacturers started to phase out the serial COM port in favor of the USB port (in part dictated from the
PC97
The PC System Design Guide (also known as the PC-97, PC-98, PC-99, or PC 2001 specification) is a series of hardware design requirements and recommendations for IBM PC compatible personal computers, compiled by Microsoft and Intel Corporation duri ...
architecture, from
Microsoft
Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
).
By the mid-2000s, some computers had both a serial COM port and a USB port; however, many no longer had a serial COM port by that time, and today most modern computers have no serial COM port but instead only USB ports.
Since many serial devices with an RS-232, RS-485 or RS-422 port are still in use and even still produced today, the disappearance of the serial COM port from personal computers has created a need for the USB to serial adapter.
Architecture
As a simplified example, a typical standard USB to serial adapter consists of a USB processor chip that processes the USB signals. The USB processor sends the processed USB signals to a serial driver chip which applies the correct voltages and sends the processed data signals to the serial output.
For the computer to be able to detect and process the data signals drivers must be installed on the computer. Some chip models have drivers installed by default, including FTDI, while drivers for other chip models must be manually installed (e.g. for Windows and MacOS, WCH (Jiangsu Qin Heng) CH340, Silicon Labs 210x, Prolific PL2303).
When the USB to serial adapter is connected to the computer via the USB-port the driver on the computer creates a virtual COM port which shows up in Device Manager on Windows, and under /dev on Linux and MacOS. This virtual COM port can be accessed and used as if it was a built-in serial COM-port.
However, the characteristics of the virtual COM-port are not exactly the same as a real internal COM port, mainly due to data
latency; which means that if very sensitive and precise data transfer is required, the USB to serial adapter might be unreliable and not a desired solution. Virtual COM drivers are usually available for Windows, Linux and Mac only.
References
{{USB
USB
Legacy hardware