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

transmission speed in USB virtual serial port

What is the transmission speed or baud rate in a virtual serial port connection through USB 2.0 . I basically need to transfer data from an ARM microcontroller to PC. The microcontroller has support for USB, and currently I am transmitting data by…
qstack
  • 669
  • 1
  • 7
  • 14
3
votes
1 answer

USB Endpoint Stalled Error

I am getting "endpoint stalled error" in my CDC device. The usb stack is detecting the cable. The state is set as running but the errorcode is set as 0x11 which indicates 'USB_ENDPOINT_STALLED'. I verified and found that the endpoints has been…
Harsha
  • 183
  • 2
  • 8
3
votes
5 answers

How to get Matlab to determine if the OS is windows, or mac? So to find all serial-usb connections

Description of goal: I'm trying to get matlab to determine if the computer is running windows, or mac. My main goal for this is to write a robust script to determine what serial ports are available, and USB ports (for the same reason) to identify…
Leon92
  • 505
  • 1
  • 9
  • 15
3
votes
0 answers

Easiest way to communicate between an Android device and a computer?

I'm developing an Android application that needs to communicate with a PC in the easiest possible way. preferably using USB, headphones jack or Bluetooth, this should be a two way connection. I assumed USB would be the simplest, but got quite lost…
bjesus
  • 478
  • 6
  • 10
3
votes
1 answer

Setting up USB-serial Receipt Printer (epson tm-t88ii/iii compatible) on Debian Wheezy

I'm trying to get my receipt printer working on Debian Wheezy. On being plugged into computer, my USB-serial Receipt Printer (epson tm-t88ii/ii compatible) tics question marks every few seconds, and does not respond to commands. the output from the…
cpendlebury
  • 91
  • 1
  • 7
3
votes
1 answer

Control USB ports

can i send specific signals to USB ports using Ruby or C++, also the operating system is Windows, so this is like totally new 4 me (to program for windows), so i'm trying to do it as a DLL file, can this DLL contain Ruby code ?? by the way this is…
Raafat
  • 173
  • 3
  • 9
3
votes
2 answers

Read data from a serial port to USB in Ubuntu using C++

I have a GPS that has a serial port, and it has a transfer cable from serial to USB. It is connected to the laptop through USB, and is transmitting data in Hex. I want to use this data in my C++ code on Ubuntu. Any ideas where could I start, and how…
Zeyad
  • 771
  • 3
  • 9
  • 14
3
votes
3 answers

Control of a program by use of Serial to-USB switch

We want to control a program (written in VB) by pressing a switch attached to a serial to USB adapter. When pressed a certain function in the program will be activated. In order to achieve this we need to poll the relevant com port, continuously in…
user1046647
  • 369
  • 1
  • 6
  • 18
3
votes
1 answer

What is the best way to communicate between PC and USB device

Scenario is, I have an USB device with flash card for storage in it. I am going to write a PC app using c# to communicate/exchange data with this device. Something similar to various SYNC programs Two options that come to my mind are: Expose…
Bharat
  • 1,192
  • 7
  • 14
3
votes
2 answers

Opening /dev/ttyUSB0 returns "Bad file descriptor"

I've been working for quite while on little project of mine with some XBee's. Until now all the code has been tested and working on a UBUNTU-SERVER 10.04 LTS, making use of the libftdi libraries for serial-usb simulation/conversion. At the beginning…
cvicente
  • 132
  • 3
  • 12
3
votes
1 answer

How to forcibly free a COM port occupied by another application or has hung

I'm using an USB server (MyUTN USB Device Server - http://www.myutn.net/home.html) to connect my Windows 2008 Server virtual machine to a USB Modem. The USB modem comes with a COM emulation driver which creates a virtual COM port on the Win2k8…
Joshua
  • 1,709
  • 2
  • 24
  • 38
3
votes
1 answer

What is the root cause of the "USB Host support is unavailable" message?

I am trying to send data over a USB to serial cable using the jUSB library. I'm coding in the NetBeans IDE on Windows. What is the problem behind the message: "USB Host support is unavailable" in the following code: package usb.core; import…
SAMI.90
  • 35
  • 4
2
votes
1 answer

USB communications device class support in Android gingerbread or ice cream sandwich

Starting with Android 3.1, Android devices have limited host support. I have reviewed android.hardware.usb, and I have found very limited references to USB CDC support. I have a self-powered peripheral USB device, that communicates using USB CDC…
Rich
  • 63
  • 1
  • 6
2
votes
1 answer

Flutter USB Serial Package always returning false on open() function

I am trying to use the usb_serial: ^0.4.0 package in my Flutter project for communicating with a USB device on Android. I have followed the installation guide and the package seems to be imported successfully. However, every time I try to open the…
Rohan
  • 57
  • 3
  • 10
2
votes
1 answer

exception in UsbManager.openDevice Flutter

I'm trying to connect my flutter app with USB serial devices to interact with it. for that, I'm using the usb_serial plugin and using the official example below. Also, I'm running my app on a Desktop monitor using TvBox H96Max. `import…
Reem
  • 31
  • 6