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
0
votes
1 answer

How to make an/a (API or driver) to handle all the USB serial request on the USB-device side in Linux?

For two days I have been looking for a way to write programs or make a driver to handle the USB serial request on my USB device side. I have specially made USB device and the only way to connect to it is through USB serial port, on my PC I am using…
0
votes
0 answers

Linux virtual device driver using serial

I'm trying to search for sample code of Linux virtual device driver using serial. I have the following requirements: Embedded board and certain controller are connected with USB-serial. The device driver(embedded board) sends data via serial. (not…
Yool Cho
  • 1
  • 3
0
votes
0 answers

USB serial device seems to drop characters at baud rate above 9600 bps

The background of this is the following: I own an Atlys FPGA board, and I am busy implementing a UART on it, because the possibilities for other diagnostics are rather limited. I want to use a portable (on which I also run the FPGA software) as…
chthon
  • 101
  • 1
  • 3
0
votes
0 answers

usb local and remote port configuration via cmd batch

(xpost from superuser with no answers.) I am trying to reconfigure a known (virtual?) com port on multiple computers on a local network using a batch file. A USB device we use is installed always as com9 and always comes in as default 9600 baud, and…
0
votes
1 answer

How can I get the usb device model through usb serial?

I have a usb device which model is GP-3120TN, productName is Gprinter USB Printer. I plug it with otg and usb-serial line to Android phone(API 19). Now I want to get the device model like GP-3120TN. I can't find the field in UsbDevice or…
yongle zhu
  • 73
  • 4
0
votes
0 answers

STM32373c Eval board - USB CDC does not enumerate

I have a STM32373c-eval board and just getting started. I have installed Truestudio, CubeMX and ST flash utility on my ubuntu 16.04 cause I don't have access to Keil or a Windows PC. Using CubeMX I generated a code for LED toggle and it worked…
jxgn
  • 741
  • 2
  • 15
  • 36
0
votes
1 answer

Terminals are not working with USBSerial on an Arduino DUE. Ports are ok

I have firmware installed on an Arduino DUE from a different mac, it is designed to interface with a Matlab-based application. It has been tested and known to work. I am attempting to modify the firmware from the mac in my office, but I ran into a…
Edgar Brown
  • 253
  • 2
  • 11
0
votes
0 answers

Verify whether two usb devices are connected on the same hub

I have a microcontroller board which has a USB hub to which several CP2108 USB to serial modules are connected and one PIC Microcontroller is connected. The USB hub is connected to Laptop USB Port.. The CP2108 devices are assigned /dev/ttyUSB0,…
md.jamal
  • 4,067
  • 8
  • 45
  • 108
0
votes
2 answers

USB device connectivity not working after 6.0 (Marshmallow)

In my Android project I'm trying to communicate a tablet with an Arduino device through the USB port, and it works for version 5.1 (API 22: Lollipop) but it doesn't for 6.0 (API 23: Marshmallow) because of the changes in permissions implemented in…
0
votes
1 answer

How - Orange pi - Android - USB Serial Port Access

I try to access serial port on Orange Pi Android. But I couldn't see any documentation. How can I access serial port and how can I send data or receive data with handler ? Android version must be 4.4.2 . Thanks a lot.
0
votes
1 answer

how to connect two Windows computers by USB for communication between their virtual serial ports?

What is needed for the physical USB connection between two Windows computers for communication between their virtual serial ports? Should I use USB/serial adapters? I am building a .NET terminal app on Windows 10 Pro computer that must use a…
Doug Null
  • 7,989
  • 15
  • 69
  • 148
0
votes
1 answer

Android OTG communication (UsbSerial lib) with Arduino: reading weird bytes

I’m currently working on a project with Android, Firebase, and Arduino, where I want to send the UID from the FireBase project, to my arduino (after registering a new user) so that I can write it to a MIFARE tag using the MFRC522. I'm doing this…
JAG
  • 1
0
votes
0 answers

using CTS line on a ch341 usb serial adapter for flow control

I am trying to communicate with a serial device via a ch341 based usb-serial adapter (wemos.cc / ch340). Since the target device has limited buffer size it uses a signal line to indicate if it is safe to send bytes. I have confirmed that the level…
nomis
  • 1
  • 1
0
votes
1 answer

Connecting to tty port through C++ fails unless you've connected through screen first

I picked up an AUPS-A10-R11 DC UPS, and am working with their API to build some monitoring software for my xen host. Their API runs over the USB connection on the device, which presents itself as /dev/ttyUSB# on the host. I've got things working…
smily03
  • 57
  • 5
0
votes
0 answers

Read USB-C ports using Java from MacBook Pro with Touch Bar 2016

There is a library or so on to read USB-C ports from my MacBook Pro Touch by using Java? My machine has four USB-C ports and an Apple USB-C multiport that "maps" three ports: 1) USB 3.1 2) HDMI 3) another USB-C See here for further details. I need…
shogitai
  • 1,823
  • 1
  • 23
  • 50