Connect a 3D printer to your PC over USB: driver, port and baud rate
By Sina Esfahani, OmniTechs · Published 27 November 2026
A printer on a USB cable shows up on your computer as a serial port: COM3 or similar on Windows, /dev/ttyUSB0 or /dev/ttyACM0 on Linux, /dev/cu.usbmodem followed by a number on a Mac. A program then talks to that port at the speed set in the printer's firmware, the baud rate. That is 115200 in Prusa's serial guide and in Marlin's example firmware for the Creality Ender-3 and Ender-3 V2, and 250000 in Marlin's own default.
When nothing works, it is almost always one of three things: a charge-only cable, a missing driver for the board's USB chip, or another program already holding the port.
Connect it in this order:
Use a USB data cable, plugged straight into the computer rather than a hub (Arduino); the original Ender-3 takes a standard 5-pin mini-USB plug, and Ender-3 V3 SE owners on Creality's forum use USB-C.
Switch the printer on and look for the port: Device Manager, Ports (COM & LPT) on Windows; ls /dev/serial/by-id/ on Linux.
No port? Read the chip from the hardware ID (VID_1A86 is WCH's CH340, VID_10C4 Silicon Labs' CP210x) and install its driver through Windows Update or from the chip maker.
On Linux, add yourself to the dialout group (sudo usermod -a -G dialout yourname) and restart.
Close every other program that may hold the port: Cura, OctoPrint, a second Pronterface.
Connect at 115200 baud; if the printer stays silent or prints gibberish, try 250000.
Send M115: the printer answers with its firmware name and version.
What you see, and what it means
USB connection problems
| What you see | What it means | What to do |
|---|---|---|
| No new port appears when you plug in | Charge-only or broken cable, a hub, or a board without power | Use a data cable that works and another USB port, with the printer switched on |
| An unknown device, or "USB-SERIAL CH340" with a warning sign | The chip is found, its driver is missing | Update the driver through Windows Update, or install the chip maker's driver |
| The port is listed but the program cannot open it | Another program has it open | Close the slicer, OctoPrint or terminal that holds it |
| Connected, but no reply or garbled text | Wrong baud rate | Try 115200, then 250000 |
| Linux: Permission denied on /dev/ttyUSB0 | Your user may not use serial ports | Join the dialout group (uucp on Arch) and restart |
| COM5 becomes COM6, ttyUSB0 becomes ttyUSB1 | The name changes on reconnect | Use the stable name under /dev/serial/by-id |
| Prints stutter only when sent over USB | The computer cannot feed commands fast enough | Print from the card, or slice with arc fitting |
Which USB chip your printer has, and which driver it needs
Most printer boards reach USB in one of two ways. Older and cheaper boards put a separate USB-to-serial chip next to the processor, usually WCH's CH340 or Silicon Labs' CP210x. Newer 32-bit boards often use the processor's own USB port, which presents itself as a standard communications device.
USB chips on printer boards and their drivers
| Chip | Hardware ID on Windows | Windows driver | Linux and macOS |
|---|---|---|---|
| WCH CH340 or CH341 | USB\VID_1A86&PID_7523 | WCH's driver, also on Windows Update (version 3.9.2024.9 listed) | /dev/ttyUSB0 on Linux, no install needed |
| Silicon Labs CP210x | USB\VID_10C4&PID_EA60 | Silicon Labs' VCP driver, also on Windows Update (11.5.0.417 listed) | /dev/ttyUSB0 on Linux |
| Processor's own USB (for example STM32 Virtual COM Port) | USB\VID_0483&PID_5740 for STM32 | Built into Windows 10 and later (Usbser.sys); nothing to download | /dev/ttyACM0 on Linux, /dev/cu.usbmodem on a Mac |
To read the ID on Windows, open Device Manager, right-click the device, choose Properties, then the Details tab, and set Property to Hardware Ids (Microsoft). On Linux the chip is in the stable port name itself: Klipper's documentation shows a CH340 board as /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0, where 1a86 is WCH.
Getting the driver safely. Microsoft's advice is to let Windows Update supply drivers. In Device Manager, right-click the device, choose Update driver and then Search automatically for updated driver software. Both WCH and Silicon Labs publish their port drivers there. If you download one yourself, take it only from the chip maker (WCH or Silicon Labs) or from your printer maker, never from a driver-download site. On Creality's forum, Ender-3 V3 SE owners report that installing WCH's CH341 driver was what let Cura find the printer.
Find the port and the baud rate
Windows. Open Device Manager and expand Ports (COM & LPT). Unplug the printer's USB cable and plug it back in: the entry that disappears and returns is yours, for example "USB-SERIAL CH340 (COM4)".
Linux. Run ls /dev/serial/by-id/ and use the full name it shows, because it stays the same when ttyUSB0 turns into ttyUSB1 (Klipper). If a program reports Permission denied, add yourself to the group that owns the port. On Debian, Ubuntu and Raspberry Pi OS that is dialout: sudo usermod -a -G dialout yourname, then restart (Arduino). Arch Linux uses the uucp group.
Mac. Open System Information and look under Hardware, USB to check that the board is detected at all (Arduino). Boards with native USB appear as /dev/cu.usbmodem followed by a number.
Baud rate. Both ends must use the same speed. Marlin's default is 250000, but its documentation says 115200 gives a good balance between speed and stability in most cases, and Marlin's example firmware for the Ender-3 and Ender-3 V2 uses 115200. If you do not know yours, Cura's own detection tries 115200 first, then 250000, 500000, 230400, 76800, 57600, 38400, 19200 and 9600.
Worked example: an Ender-3 on Windows 11
Nothing new appears under Ports, but Other devices shows an unknown device whose hardware ID starts with USB\VID_1A86&PID_7523: a CH340. Update driver, Search automatically, and Windows Update installs WCH's driver; "USB-SERIAL CH340 (COM4)" appears. In Pronterface you pick COM4 and 115200, click Connect and send M115. The reply starts with FIRMWARE_NAME:Marlin and the version: you are connected.
Send commands: Pronterface, OctoPrint or a terminal
A console, or terminal, is a text window that sends G-code to the printer line by line and shows its answers. You need one to read settings, run calibrations or test a part.
Pronterface (part of Printrun) runs on Windows, macOS and Linux. Download it from the Printrun releases page on GitHub, or install it on Debian and Ubuntu with sudo apt install printrun. Windows and macOS block it at first because it is not from a verified developer; Printrun's wiki explains how to allow it, once per new version. Pick the port and baud rate, click Connect and type commands in its command box.
OctoPrint runs on a Raspberry Pi that stays connected to the printer by USB; its Terminal tab does the same in a browser. OctoPrint recommends a Raspberry Pi 3B, 3B+, 4B or Zero 2 and warns that other hardware can cause print artefacts.
A plain terminal on Linux. An answer on the 3D Printing Stack Exchange suggests screen /dev/ttyUSB0 115200: everything the printer sends appears, and everything you type is sent.
Useful first commands are M115 (firmware name, version and capabilities) and M503 (the active settings), both from Marlin's documentation. What each common command does is in the G-code commands you will edit. Teaching Tech's short video shows Pronterface and OctoPrint's terminal, with chapters on USB cables, finding the COM port and the baud rate.
Printing over USB from your slicer
UltiMaker Cura still has USB printing, but it is off for new installations. Turn it on under Preferences, Configure Cura, General: Enable USB-cable printing (* restart required). Cura's own note says the feature is no longer maintained, will either work with your computer and printer or not, and that its port scanning can disturb other serial devices such as earbuds. After a restart the Print button offers Print via USB.
PrusaSlicer and OrcaSlicer send jobs only to network hosts. Their list of physical printers holds OctoPrint, PrusaLink, Klipper via Moonraker and similar, but no serial port.
Creality Print: on Creality's forum, users report that recent versions send over the network or save to a stick, not over a cable.
Printers built around a network, such as Bambu Lab's, take their jobs over the network or from a card or stick; see printing without the cloud.
Why USB printing stutters
Over USB the computer has to feed the printer every line of G-code live, and Marlin buffers only a few commands at a time (BUFSIZE 4 by default). Curves sliced into thousands of tiny segments need many lines per second. When the stream falls behind, the printer has to wait for the next command and the head stutters. Marlin's documentation adds that a lower baud rate can help if you often get drop-outs during host printing.
Test it by printing the same file from the SD card. If the stutter disappears, the USB stream was the cause; the Arc Welder plugin's troubleshooting notes use the same comparison. Then choose one of three fixes:
Print from the card or stick, and keep the cable for commands and monitoring.
Use arc fitting, which turns runs of short lines into G2 and G3 arcs and so cuts the number of commands. In PrusaSlicer it is Print Settings, Advanced, Slicing, Arc fitting, set to Enabled: G2/3 I J; in OrcaSlicer, Quality, Precision, Arc fitting. Your firmware must support arcs; on Marlin 2.0.6 or later, M115 shows whether ARC_SUPPORT is on.
Give OctoPrint a recommended Raspberry Pi, not a Pi Zero or Zero W, which OctoPrint warns can hurt print quality.
When to stop and ask for help
The board never appears, on any cable and any computer. Its USB chip or socket may be damaged. Contact your printer maker rather than reflashing blindly.
You need to look at the board or its USB socket. Switch the printer off and unplug it before you open the electronics cover; BIGTREETECH's board manual says never to work on a board with power applied.
A forum post offers a driver pack. Do not install it. Only WCH, Silicon Labs, your printer maker and Windows Update are safe sources.
Related guides
If your printer runs Klipper and the host cannot reach the board over USB, the errors are covered in Klipper MCU unable to connect. Before you open OctoPrint to anything outside your home network, read monitoring a print remotely. To find out which firmware your printer runs and how to update it, see printer firmware: Marlin, Klipper or stock.
Sources
Microsoft Learn: USB device class drivers included in Windows
Microsoft Support: Update drivers through Device Manager in Windows
Marlin example configuration: Creality Ender-3 (Configuration.h)
UltiMaker Cura source: General preferences page (USB printing)
OrcaSlicer source: print host types and arc fitting (PrintConfig.cpp)
3D Printing Stack Exchange: What is a printer console/terminal?
3D Printing Stack Exchange: How to directly send G-code to printer from a Linux terminal?
3D Printing Stack Exchange: Does the Ender 3 need an 8 pin mini USB or 5 pin?
Creality forum: How connect Ender 3 V3 SE to PC with USB cable?
Teaching Tech on YouTube: How to connect to your 3D printer via terminal

