Questions tagged [usbserial]

This tag is used for software related questions about using USB-to-serial Bridges and Adapters. Hardware adapters attach a peripheral with a DB-9 or DB-25 connector to a USB connector on a PC or other host. Software or virtual adapters are drivers in the host which create a COM port interface to a USB connection allowing software to open the virtual COM port to a device attached to the USB connector.

USB-to-serial bridges/adapters were originally developed as a way to connect a USB device to a PC or host without USB ports. These adapters were an alternative to the legacy DB-9, RS-232 COM ports (usually referred to as simply a COM port), which were standard on older PCs when USB was first becoming available.

More recently, the COM port interface is being phased out of the PC industry in favor of USB. These adapters allow a user to connect a device requiring the legacy COM port to a desktop computer or laptop via one of its USB ports.

When connected the adapter appears on the computer as a Communications Device Class (CDC) USB device, more commonly known as a virtual COM port.

Some software applications designed to communicate with devices through a COM port may require a software virtual COM port driver to allow use with a USB connected device. In some cases such drivers must be installed and in some cases the operating system already has the drivers and when the device is connected, a virtual COM port will automatically be created.

An example of such an application is the Arduino IDE which is used to create a sketch for an Arduino or ESP32 microcontroller. The microcontroller is attached to the host with a USB cable which provides power to the device as well as a communications path. The user selects the virtual COM port created when the device is physically connected in order to download a program.

Generally speaking, a USB-to-serial bridge more specifically refers to the embedded technology, or microchip, within the hardware adapter that performs the actual logic and protocol translations between USB and generic asynchronous serial communication (UART or SCI).

475 questions
2
votes
2 answers

Using USB to Serial in Ubuntu 12.04 - /dev/ttyUSB0 missing

I'm trying to connect a usb-serial adapter to Ubuntu 12.04 (on a VM). For some reason, there is no /dev entry for it. I've tried several adapters from different manufacturers - With no success. Also, I have a 10.04 VM on which I connect the adapter…
Nitay
  • 4,193
  • 6
  • 33
  • 42
2
votes
0 answers

cannot automatically connect USB modem using udev under debian linux

On my linux box (uname -a Linux gate 3.2.0-0.bpo.2-amd64 #1 SMP Fri Jun 29 20:42:29 UTC 2012 x86_64 GNU/Linux) I've got USB modem WeTelecom WM-D300 that has "zeroCD" option. ZeroCD USB id for it is 22de:6803, and modem device has 22de:6801 usb id.…
BUKTOP
  • 867
  • 10
  • 22
2
votes
0 answers

Custom Baud Rate, redux

I am having exactly the problem detailed at Custom baud rate -- SetCommState() fails with baud=921600 but succeeds with baud=115200 -- albeit on Windows 7 64-bit and with a couple of other odd circumstances, as follows: 1) The port I'm talking to,…
2
votes
0 answers

Synchronous and 'raw' access to USB serial under unix-like OS

I have an AVR which I have set up to act as a USB serial device when plugged into the computer. I want to send commands to it via serial. However, I can't manage to get the commands to send and receive a reply. I send 16bits of data at a time and…
tangrs
  • 9,709
  • 1
  • 38
  • 53
2
votes
1 answer

Assigning to "MyPrivateData *" from incompatible type 'void *' error in cocoa project

I'm trying to implement the USBPrivateDataSample in my cocoa project. The problem is when I'm trying to allocate memory for the struct MyPrivateData I get the error "Assining to "MyPrivateData *" from incombatible type 'void *'" I have the struct…
2
votes
1 answer

I'm trying to connect a Genius mouse to an Arduino using a PS2 mouse sketch, but it will not initialise the mouse

I have been using the mouse sketch at the bottom of this message (written by someone else) to try to get the motion data out of a PS/2 mouse. I have checked the specification for this mouse which says that it is PS/2 compatible. However, when I run…
Terry Rozmus
  • 396
  • 3
  • 17
1
vote
1 answer

Write to serial adapter in C

I am working on a project and I'm trying to figure out how I'm going to write to the serial port. Since my laptop does not have a serial port, I have purchased a USB to serial adapter. Now I need to send data from my C program to the serial port but…
Tamara Caligari
  • 479
  • 3
  • 12
  • 28
1
vote
0 answers

Developing a Custom Printer Driver for Linux/Windows

I want to use my designed USB/Serial device as a printer so that the "print" action on my Linux/Windows send the data (which asked to print) to my new printer (my own designed device/printer) connected on USB/Serial port. Could you please give me…
1
vote
2 answers

Why isn't my USB-To-Serial Adapter Working?

I have a USB-to-Serial Adapter that is being recognized on my Mac in the System Information as being connected to the USB Hub but when I run ls /dev in Terminal the usbserial is not showing up. It was working up until this morning but now it is not.…
Stevezie
  • 111
  • 2
  • 11
1
vote
2 answers

Is it possible to install USB serial converter in Windows without administrator privileges?

I have got a piece of hardware which communicates with my program using an FT2232C USB serial converter. All works fine if the device has already been attached to a computer before and the drivers were installed using an administrator account. But…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
1
vote
2 answers

USB Serial/CDC function driver

OS: Ubuntu Linux 10.10 Kernel: 2.6.35-30 Query: I need to establish a robust communication between a Windows process and an embedded device on the above platform. What can be a possible solution in this case? Socket programming has already been…
1
vote
1 answer

Why SerialEvent.RI doesn't work?

I have two computers running this code: import java.io.*; import java.util.*; import gnu.io.*; public class Deb implements SerialPortEventListener, Runnable{ public static final int TIMEOUTSECONDS = 30; public static final int BAUD =…
debita
1
vote
0 answers

Flutter Usb serial

I am a beginner in flutter. Currently I'm trying to write some code that will allow me to establish a connection between my thermal printer and my Android phone through my USB cable. At the moment I am using the USB Serial library. When I modify the…
1
vote
0 answers

Purge buffers when closing USB CDC-ACM serial interface

I'm developing software for an embedded device (NXP i.MX 8M mini SoC). It is running Linux (currently 5.15.32 kernel) and I'm providing serial I/O over the SoC's built-in USB interface using a multifunction gadget. The gadget provides an RNDIS…
David C.
  • 777
  • 8
  • 18
1
vote
1 answer

How to open and read from usb serial port in .NET Maui on Android platform?

I'm trying to create a .NET Maui application that reads from a device (barcode scanner) connected via usb (rs-232 emulation), but I still can't get the rights to open and the port open. Of course, I am also interested in reading from the port.…
PeNo
  • 19
  • 1