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

Error about using pl2303 with raspberry Pi 4 Model B

I want to use uart to debug the raspberry Pi. Firstly, I using the Ubuntu20.04(virtual environment) to check the performance of TTL convert usb. When I prepare the raspberry Pi OS, and config the uart in it like…
zcc
  • 21
  • 5
2
votes
0 answers

HUB USB Disconnection, detect and reload without reboot

Our machine uses WiFi & 3G communications. Both devices share the same USB connection through a HUB. Given a time it seems to disconnect both devices and the firmware is unable to recover them. Our goal is to recover those interfaces without needing…
2
votes
1 answer

What is the event listener for when UsbManager Request Permission is called to execute a routine when a permission is granted?

I'm stuck on figuring out how to ask for permission to access a USB com device, wait for the user input, then proceed accordingly if permission granted. I can't figure out what the "onRequestPermissionsResult" is for when UsbManager asks for…
GhostRavenstorm
  • 634
  • 3
  • 9
  • 29
2
votes
0 answers

Detect if is serial port is disconnected C#

I am writing an application that uses virtual (shared) serial ports via a USB to RS232 adapter. If the user accidentally disconnects the USB adapter, my data stream stops (occasionally throwing an IO exception but not always). Normally, the user…
2
votes
0 answers

Problems connecting to Raspberry Pi 3B+ using USB to Serial

I am trying to set up SSH over USB to Serial. I am using: - MacBook Pro (OS X 10.15.1) - Raspberry Pi 3 Model B+ (Raspbian 9.11) - EVISWIY PL2303TA USB to TTL Serial Cable Debug Console Cable for Raspberry Pi 3 (Amazon Link) I have installed the…
2
votes
2 answers

What is issue with STM32 Virtual Com Port? I can not open it

I have Nucleo STM32H743ZI board. I'm using CubeMX HAL (I tried several versions) and TrueStudio. "Virtual COM port" appearances in Windows 10 (I tried default Windows driver and ST driver) but I can not open port. My C# program write me "The…
Papayaved
  • 103
  • 1
  • 1
  • 11
2
votes
1 answer

ATMEGA328P-PU takes upload, but cannot communicate through Serial

I am using Standalone ATMEGA328P-PU to get the accelerometer data from mpu6050 and send to to Serial at baudrate 115200 and also it sends the data to another serial(to HC05 bluetooth module). But the problem is that sometimes I am facing a strange…
2
votes
0 answers

How to send commands to USB-relay attached to RPi, using PHP and Python?

I'm trying to switch a relay, connected via USB to RPi, using a PHP command. I'm using an additional USB-8-relay-board, next to all available GPIO-pins on the RPi. I'm able to switch both (all 8) USB-relays on the board, together with (all 28)…
Mike123
  • 21
  • 1
2
votes
0 answers

How to read data from USB in robot framework using serial library?

I need to automate the USB devices that are connected to USB ports in robot framework. But I am struck in beginning itself as I do not know how to open the port. My questions are as below: Do we need to convert USB port to serial port for…
Chirag Dhingra
  • 128
  • 2
  • 17
2
votes
1 answer

Write to HID with Chip Selection with .NET Console App

Hi I am writing a simple console app that needs to write bytes to MCP2210 USB to SPI Master I found this library over here, seems to do good job with connecting the device and reading the metadata. I am writing message to the board as below public…
HaBo
  • 13,999
  • 36
  • 114
  • 206
2
votes
1 answer

Android requestWait of usb serial is not blocking for FT232R device

I am currently using: Device Name: FT232R device. Device Serial Number: A104WOUG. Device Description: FT232R USB UART. Device ID: 04036001. Device Location: 41d1. for an Android device configured with OTG-USBS. Everything works fine. Recently, I…
Jacky Lam
  • 21
  • 2
2
votes
1 answer

Failing to send data to USB device using the android UsbSerial library

Library: https://github.com/felHR85/UsbSerial I'm new to android development, so for all I know the answer to my question may be staring me directly in the face. When I post a command I do not receive any feedback from the device I'm sending the…
ltd9938
  • 1,444
  • 1
  • 15
  • 29
2
votes
0 answers

bitbake: cannot link against usbserial for module cp210x

I worked through following tutorial http://www.jumpnowtek.com/beaglebone/BeagleBone-Systems-with-Yocto.html with my BBB (rev c) and everything worked fine. My next step was migrate a usb kernel module from my host (ubuntu 16.04.3) where the usb…
2
votes
1 answer

Problems with Arduino <-> Cordova (Android) Serial communication

I have a cordova 6 app for android, where I want to communicate with an Arduino, that is connected with USB. For this I use the cordovaarduino-Plugin, which uses usb-serial-for-android Unfortunately I have a problem with my setup. Requesting…
Michael B
  • 1,660
  • 3
  • 28
  • 59
2
votes
1 answer

Python SerialException: Device reports readiness to read but returned no data

I'm using an Arduino Nano, previously an UNO, to collect data from sensors and then send the data back over a USB connection through a powered hub to a Raspberry Pi model B running Jessie 4.1.19+ Mar, 15 2016 and Python 2.7. The python code uses…
LesA
  • 73
  • 1
  • 6