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
0 answers

How is the best way to map UsbConfiguration object in Kotlin?

Hello actually I'm developing an app with the use of USB, I need return the UsbConfiguration from this map structure but the compiler error is: Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations…
0
votes
1 answer

Flutter windows app wanting to detect the NFC reader connected via USB

Hello everyone I am new to the community (Flutter community) and I want to build an app where basically my Windows app will interact with an NFC tag reader/writer that will get connected to my laptop via USB. So when the NFC reads a tag, the code…
Alex97
  • 401
  • 1
  • 8
  • 21
0
votes
1 answer

USB stack confusion/serial emulator

I am looking at implementing USB communication on a MCU which has a USB engine built into it. Basically you have access to the pipes/endpoints. I am a little bit confused on the USB stack now. It appears that drivers operate on another level above…
FourierFlux
  • 439
  • 5
  • 13
0
votes
0 answers

How can I pass data between two tablets with a wired connection using Flutter?

I am building a Flutter application that needs to transmit data through a wired connection between two tablets (Samsung Galaxy Tab S7+). Both tablets will be running the same Flutter application. I can not use any form of wireless connection like…
0
votes
2 answers

What are the VID and PID for the Maker Pi RP2040 when connected by USB to PC

I have looked but cannot find these referenced currently - I have also asked on the cytron.io web site. I eventually found these (as well as the github reply) in the Datasheet at…
AndyS
  • 725
  • 7
  • 17
0
votes
0 answers

Windows 11 / Arm64 - USB Serial Driver

Good day. We currently deploy our own drivers for Windows 32bit and 64bit. I am trying to update the USBSerial driver to work on Windows 11 ARM. Based on the documentation i am finding, i thought it would be as simple as adding the ARM64 block,…
AndySousa
  • 1,062
  • 2
  • 15
  • 30
0
votes
1 answer

Error during installation of SiLabs 2102 VCP driver on Mac OS Mojave

I'm having trouble installing the Version 6 of the "CP210x Macintosh OS VCP Driver v6" on my mac OS Mojave. The error is "unexpected reply from installKextFromBundle kOSKextReturnNotLoadable (-603946989) at -[AppDelegate…
Shashi Kiran
  • 63
  • 1
  • 7
0
votes
1 answer

Accessing SerialPort from Android Phone with React Native

I have developed a React Native app for Android device to connect with a HW board and one of the functionality is to communicate with HW board with Serial I/F Adapter from Mobile . I have tried out multiple npm packages and none of them I could get…
Raghu Vallikkat
  • 365
  • 5
  • 16
0
votes
0 answers

Openwrt write to USB serial /dev/ttyACMO

I have an STM32 connected over USB to and OpenWRT Linux device and it appears under /dev/ttyACM0. I have a custom C application that communicates with it. In my C application the device basically is treated like a serial port. Until now this always…
Engo
  • 39
  • 4
0
votes
1 answer

C# SerialPort problems with two different versions of a device

I am trying to read data from a device connected via USB. For creating the trigger the code looks like: private SerialPort realTimePort; realTimePort = new SerialPort(); realTimePort.BaudRate = 9600; realTimePort.PortName = …
0
votes
0 answers

CH340 with custom baud rate for Diesel Heater and Raspberry Pi

Is there a way (or trick) to set a CH340 to 25000 baud on Linux? If not: Is there a better chip which is able to do that 25000 baud (no FTDI please)? Is there a completely different and better way to achieve my goal (see below)? Background: I…
muebau
  • 152
  • 7
0
votes
0 answers

How to Read data from USB serial port using node js and print to webpage

I am using RS232 to USB connector, I getting reading to hyper-terminal from Interfacing Machine. I want to print data on web page.
Milind Sutar
  • 9
  • 1
  • 2
  • 8
0
votes
1 answer

How to read sensor through USB-Serial port

I was forced to write some code in Qt for a sensor to integrate with existing Qt code. Otherwise I have tested the sensor data read with very simple Python code using the pyserial library, and it works like a charm. Unfortunately, I got…
aavv
  • 1
  • 1
0
votes
0 answers

SerialPort BaseStream.EndRead return data even after disconnecting the device

I have a device that is connected to the computer with a USB cable (Prolific USB to Serial ), I use the following code to read data (code taken from https://www.vgies.com/a-reliable-serial-port-in-c/) public class ReliableSerialPort :…
Tomer Dror
  • 81
  • 5
0
votes
1 answer

WebSerial API on WINDOWS - "DOMException: Failed to open serial port."

I am trying to use the WebSerial API on Windows after it worked fine on macOS with no problem. The device was plugged into a Macbook and no extra action was required. When I connect the device (USB to Serial adapter) to a Windows machine and access…