USB to Serial Port Adapter: Getting the COM Port Right
The adapter installs in seconds and then fails to connect because the software is looking at the wrong port number. Pinning the COM port is the step almost everyone skips.
Quick Answer
A USB to serial port adapter creates a virtual COM port that behaves like a built in serial port. Install the driver before connecting, then assign a fixed COM number so your software keeps working across reboots and different USB sockets. Set the serial parameters, usually 9600 baud with 8 data bits, no parity and one stop bit, to match the equipment.
Setup Sequence
- Install the chipset driver from the adapter vendor or the chip maker.
- Connect the adapter and confirm a new port appears in the device list.
- Open port settings and change the COM number to a fixed value.
- Set baud rate, data bits, parity, stop bits and flow control.
- Record the assignment so other users on the machine do not trip over it.
Where the Port Settings Live
| Platform | Where to find it | Notes |
|---|---|---|
| Windows | Device Manager, Ports, Properties, Port Settings | Advanced button sets the COM number |
| macOS | Terminal, ls /dev/tty.* | Name varies by chipset, for example usbserial or SLAB_USBtoUART |
| Linux | dmesg, then /dev/ttyUSB0 | Kernel driver usually included |
| Application software | Its own port selector | Often overrides system defaults |
Why the Port Number Moves
Different sockets
Windows assigns numbers per physical port, so moving the adapter changes its COM number.
Multiple adapters
Each adapter takes a number in the order it was first seen. Production machines should pin them deliberately.
Reinstalls
Removing and re adding a device can consume the next free number, leaving gaps in the numbering.
Common Errors and Meaning
| Error | Meaning | Action |
|---|---|---|
| Code 10, cannot start | Driver problem, often counterfeit chipset | Install the correct driver for the actual chip |
| Code 28, no driver | Driver not installed | Install from the vendor |
| Port appears then vanishes | Power or cable fault | Try another port and cable |
| Connects but no data | Wrong port selected in software | Check the application port setting |
| Garbled output | Parameter mismatch | Match baud, parity and stop bits |
Real-World Applications
- Pinning COM3 for a fixed instrument on a lab bench.
- Two adapters on one machine for paired device testing.
- Production line equipment with a fixed adapter and a fixed port.
- Remote support where the port number must be predictable.
Related Guides
For chipset choice, read USB serial adapter. For the Converter side, see RS232 to USB. For driver faults, start with USB serial adapter driver.
FAQ
Why does my COM port change every time?
It is assigned per physical USB socket. Set the number manually to keep it fixed.
Can I use a COM port above 9?
Modern software usually supports higher numbers, but some legacy applications only accept COM1 to COM9. Assign a low number in that case.
Do I need to reboot after installing the driver?
Often yes for the port to appear reliably, especially on Windows.
How do I know which port to choose?
Unplug the adapter and watch which entry disappears, then plug it back in.