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

Serial port for Arduino in Mac

I could not select the serial port in my Arduino IDE. It is greyed out even if I connect my USB to serial cable. What is the proper driver for that and where I can find that?
Zakiya
  • 43
  • 5
0
votes
2 answers

USB-to-RS485 using Nodejs

I am trying to receive and send data from a vacuum gauge (previous Model of https://www.pfeiffer-vacuum.com/en/products/measurement/digiline/gauges/?detailPdoId=13238&request_locale=en_US) with a computer (Linux 16.04) via an USB-to-RS485-Interface…
Christoph Pohl
  • 325
  • 5
  • 19
0
votes
1 answer

How can my application recover when a USB emulated serial port vanishes and reappears?

I am communicating with an embedded device that periodically shuts down its USB serial port emulation, uses the USB port for something else, and then restarts its serial port emulation. During this brief period the serial port disappears from the…
Craig.Feied
  • 2,617
  • 2
  • 16
  • 25
0
votes
1 answer

stm32f429 USB CDC VCP detection

[guys i have installed the VCP driver and have loaded the code of USB_CDC in my stm32f429. but the VCP port is not visible in device manager. instead "unknown usb device,(device descriptor request failed)" is shown in device manager, as shown in…
Munir Ahmad
  • 391
  • 1
  • 3
  • 5
0
votes
0 answers

Can't read test results from a serial usb device (CardioChek Plus) from a Windows Store app

I'm trying to read test results from a USB Serial Port device, the code below picks up that it's connected to the usb, so i do get a deviceInterface object. BUT now when i use UsbDevice.FromUsAsync it's always null. var selector =…
0
votes
1 answer

USB Type A to Type A connector

Can anyone please tell me what is the use of USB Type A to Type A cable which is showed in the mentioned link.Link: http://www.amazon.com/CNE20650-6-Feet-Type-Cable-Black/dp/B00DR0RBV6
sack92
  • 55
  • 8
0
votes
0 answers

USB: Virtual COM port specification

In Windows it is possible to create a virtual COM port to communicate with an USB device. However I could not find any specification how this actually works under the hood, i.e. how input to this device is converted into USB commands (control…
Marcus Ilgner
  • 6,935
  • 2
  • 30
  • 44
0
votes
1 answer

Linux stty command lag help needed on Serial-USB

I am using a Raspberry Pi, with a USB serial connection - so a Raspberry Pi has a USB lead connected to some hardware lighting board. When I send many serial-commands down this USB connection, there seems to be a lag where it can slowdown sometimes,…
aku foo
  • 53
  • 6
0
votes
1 answer

Talking to a power supply via mac os x using a usb-serial converter

I am trying to talk to a power supply from my mac OS X Yosemite. The code works fine on a linux machine, but when I try it on my mac, it does not work. I am using a usb-serial converter and have downloaded the PL-2303 driver. The driver shows up in…
0
votes
1 answer

c# unplug the usb when saving data to it, how to handle this exception

I have a c# program saving data to a usb drive, but if the usb is unplugged, there will be a crash. Is there any good way to handle this exception? Thanks!
Ames ISU
  • 167
  • 1
  • 2
  • 12
0
votes
1 answer

Linux IOCTLs for USB2Serial

I'm developing a program in C++ on Linux which interacts with a USB2Serial adapter to fetch some information from the remote terminal. I was able to set it the IOCTL on windows using the following code: #define IOCTL_SERIAL_XOFF_COUNTER …
Nachiketh
  • 193
  • 2
  • 18
0
votes
1 answer

How to use FT232R (usb to serial chip) on ubuntu 10.04?

I want to control my robot using wireless module(zigbee). I have a device FT232R for converting USB to Serial i/f. It is working on windows 7 but I am not getting how to use this device on Linux(ubuntu). Please help me. Note: Actually my robot is…
Dinesh
  • 706
  • 7
  • 24
0
votes
2 answers

XMega: CDC on USB composite controller does not function properly

For a project I am making a USB keyboard, it has a few buttons and the keys should be programmable. I have chosen the ATXMega32C4, since it has USB support and well as a handy ASF library in Atmel Studio 6. I've created some Atmel Studio projects…
Chinny
  • 15
  • 7
0
votes
0 answers

kevent & USB serial ports

I'm having trouble using kevent on mac with a USB serial console. I've narrowed it down to: #include
0
votes
1 answer

How to get byte array from a bulkTransfer

We'd just programmed our controller to send a 16 bytes message constantly thru the USB port. After a successful bulkTransfer, I'm receiving the 16 bytes. public int bulkTransfer (UsbEndpoint endpoint, byte[] buffer, int offset, int length, int…
Machado
  • 14,105
  • 13
  • 56
  • 97