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
1
vote
3 answers

How to convert Byte to String in Android USB Host?

I have connected using pl2303 cable and trying to convert string from this method private void updateReceivedData(byte[] data) { String tmpString=HexDump.dumpHexString(data); // I've Tried several methods like String…
Pandian
  • 474
  • 1
  • 4
  • 14
1
vote
1 answer

Match USB serial # to port name with Qt and libusb

I have a device that acts as a serial port connected over USB. I have a class that interfaces with the device through a QSerialPort. Soon I will have multiple such devices and the program will need to reliably distinguish them to assign configured…
01d55
  • 1,872
  • 13
  • 22
1
vote
0 answers

UsbDeviceConnection.controlTransfer() failing when trying to communicate with Arduino UNO

In spite of having claimedInterfaced, having correct permissions etc, when controlTransfer() is called it returns -1. Logcat shows nothing interesting. I'm using this code as a guide. Looking at the source, here and here, I know that the device is…
nishantjr
  • 1,788
  • 1
  • 15
  • 39
1
vote
1 answer

Identifying a device by retrieving its USB ID

I'd like my application to be able to detect a where a particular USB device has been mounted, and adapt accordingly. Ideally, I'd associate paths with a USB serial number, rather than with a given path. However, I cannot figure out a simple way to…
Clément
  • 12,299
  • 15
  • 75
  • 115
1
vote
1 answer

IndexError in python

I am working in python based on a Java code. I have this in Java: public static byte[] datosOEM = new byte[900000]; public static byte x1=0,x2=0,x3=0,x4=0,x5=0,x6=0; I wrote this in Python following some documents that I…
1
vote
1 answer

Persistence between USB to Serial devices with the same serial number

Having a huge problem with giving udev rules to USB-to-Serial adapter devices, I have two of those and they have the same attributes. Is there any other way to set the udev rules for each of them or am I out of luck? They have "bcm2708_usb" kernel…
CatWithGlasses
  • 1,493
  • 2
  • 18
  • 21
1
vote
2 answers

Android Gingerbread phones are not recognized

I can connect and use Android 3.0+ , 4.0+ devices without any problem and can see and use them from Eclipse as well. But, when I try to connect any Froyo/Gingerbread device to my pc, it is not even recognized that any usb device is connected to it.…
canova
  • 3,965
  • 2
  • 22
  • 39
1
vote
0 answers

Multiple Microphone Recording

I'm trying to record from three microphones simultaneously for microphone array research. I have three USB Microphones connected to my Macbook air via a USB hub. In the Audio MIDI I have them as an aggregate device. Matlab isn't recognizing them,…
1
vote
1 answer

VCOM Drivers Not Working after Changing PID/VID

I ran into a problem when using Silicon Labs' CP2102 USB-UART bridge controller. Silicon Labs offers an application for changing USB related configuration values (PID,VID,Device Description...) so I changed the VID value to the ones assigned to me…
EEALNT
  • 145
  • 1
  • 13
1
vote
1 answer

Android: USB Communication between external device & android app

I want to implement audio data communication between android application & external device through USB cable. I have seen android USB document & it's sample code. I am able to detect & connect external device in android application successfully. How…
Priyank Patel
  • 12,244
  • 8
  • 65
  • 85
1
vote
1 answer

Identifying USB to serial port given USB VID and PID using WMI query

I am using WMI query to detect USB to serial port but the problem is that in windows 7 the application takes long time to start while in windows xp it is working fine. I am using wmi query in following way ManagementObjectSearcher searcher = new…
prattom
  • 1,625
  • 11
  • 42
  • 67
1
vote
1 answer

Read USB to Serial port Info in Xojo

I am writing a simple code to find the USB to serial port in Windows platform, if the port is what I want (can be filt by VID/PID number), then the program will open the port. I use MonkeyBread plugin, WinUSBDeviceMBS, with property of VendorID and…
apolloneo
  • 169
  • 1
  • 2
  • 18
1
vote
1 answer

How to determine which USB port is being used?

My hardware device connects to PC and exposes virtual serial port. The serial port number varies depending on which physical USB port I plug the device into. Is there a way my application can know which physical USB port is my device connected to?…
zar
  • 11,361
  • 14
  • 96
  • 178
1
vote
1 answer

Sending and Receiving Data with Android and Arduino

I am trying to write an Android application that can send and receive serial data to and from an Arduino board that is connected by an On-The-Go (OTG) adapter. I am using the usb-serial-for-android library. I am setting the Arduino up so that if it…
Craig
  • 1,065
  • 3
  • 12
  • 26
1
vote
1 answer

How to send modem AT Commands to a board from from OSX

Does anyone out there who has developed on a dev board attached to a Mac OSX machine's USB port know how to send AT tty modem commands to the board? Arduino folks? Anyone? TL;DR I purchased a development STEVAL-SPBT2ATV2 "USB Dongle for the…
Benjamin H
  • 5,164
  • 6
  • 34
  • 42