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

Data transfer from USB(prolific) to android device

I found a question posted for reading of USB data for FTDI devices. Transferring data USB I used this code for prolific device, and the usb can be detected, etc except that the the conn.bulkTransfer() gives a -1. private class UsbRunnable…
9
votes
7 answers

How to identify multiple USB-serial adapters under Ubuntu 10.1

I am reading data from multiple identical USB-serial adapters under Ubuntu 10.1. On occasion, their /dev/tty path changes (eg if other USB devices are connected on startup). I need a way of repeatedly referring to the same adapter through any such…
user589888
  • 101
  • 1
  • 1
  • 3
9
votes
5 answers

Identify COM port using VID and PID for USB device attached to x64

As following i able to get usb com port names attached to 32bit win7OS machine, by given pid and vid,but when running in x64 it stuck in the following line: comports.Add((string)rk6.GetValue("PortName")); This is my code static List
UdayaLakmal
  • 4,035
  • 4
  • 29
  • 40
8
votes
1 answer

setting parity with controlTransfer method

Anybody knows how to set the parity with the controlTransfer in Android? I can't find the explanation of this method's parameters anywhere - just some generic info in the ref. One example I found says: conn.controlTransfer(0x40, 0x04, 0x0008, 0,…
user387184
  • 10,953
  • 12
  • 77
  • 147
8
votes
1 answer

Identify which USB device is /dev/ttyUSB0

I'm working with a Linux distribution (Raspbian) and I have two USB-Serial adapters which I'm connecting to the microcontroller. Whenever I connect both adapters, the serial ports "/dev/ttyUSB0" and "/dev/ttyUSB1" appear; here "/dev/ttyUSB0" is the…
DanMicroS
  • 193
  • 1
  • 1
  • 8
8
votes
1 answer

Transferring file using zmodem/picocom/minicom noninteractively

We are trying to transfer file using minicom (in host pc) and picocom(in arm based evaluation board) combination. On evaluation board side we have /dev/ttygserial and on host pc side we have /dev/ttyUSB0. Host side minicom setup is as…
ART
  • 1,509
  • 3
  • 29
  • 47
7
votes
1 answer

Sending data from ios device to windows pc over an Bluetooth HID dongle

Aim I want to pass data from iOS device to a PC using Bluetooth. The data should look as a keyboard input to the desktop. I have been doing some background research about the same and thought of using any HID keyboard emulator dongle. One can pass…
Shobhit Puri
  • 25,769
  • 11
  • 95
  • 124
6
votes
3 answers

ftdi d2xx conflict with ftdi_sio on linux - How to remove ftdi_sio automatically

I have a rf-reader with ftdio usb to serial chip. I was able to write a program to control it using ftdi d2xx library. So far so good. The issue is that when the reader is reconnected to the PC I have to remove ftdi_sio and usbserial mods using this…
Amin Y
  • 701
  • 1
  • 9
  • 15
6
votes
1 answer

Android devices doesn't recognize attached hardware with FTDI chip

I've made an Android application that communicates with custom made hardware over FTDI 230X chip. The application works fine and communicate with attached device. But on some phones/tablets it doesn't work in sense that Android device does not…
Josef
  • 2,648
  • 5
  • 37
  • 73
6
votes
1 answer

udev rule with bInterfaceNumber doesn't work

I'm trying to use udev to give relevant names a USB-serial device but I'm having now luck. # lsusb -d 04e2:1412 -v Bus 004 Device 028: ID 04e2:1412 Exar Corp. Device Descriptor: bLength 18 bDescriptorType …
TheIronChef
  • 81
  • 1
  • 4
6
votes
1 answer

Half-duplex serial communications in Python

I have a device with a built-in USB/Serial adapter (shows up as a Prolific PL2303). The device documentation provides full details on how to communicate with it, and provides a sample Windows app. However, I need to use it on Linux - ideally with…
Nick B
  • 73
  • 1
  • 4
6
votes
2 answers

Is libusb the preferred method on Mac OS X to access USB device?

Is libusb the preferred method to talk to a device over USB (using AT commands) on OS X these days? Is there any high level equivalent in cocoa?
stefanB
  • 77,323
  • 27
  • 116
  • 141
5
votes
3 answers

Detect if an open file/device has been replaced/deleted

Assume the following situation under Linux: A process is continuously reading from an USB-serial converter device (/dev/ttyUSB0). That device is suddenly unplugged and plugged in again (or is resetting itself for some reason). The process continues…
Udo G
  • 12,572
  • 13
  • 56
  • 89
5
votes
2 answers

Arduino doesn't detect FTDI serial on Mac Catalina 10.15.4

I can see FTDI module in system report But in arduino it doesn't show up I read that iOS comes with USBSerial.kext which can handle this but I don't see it working for me. I have tried installing FTDI driver and I can see .kext in…
5
votes
3 answers

Listening to serial port on Delphi 7

I am trying to write a program which will listen to the serial input from Arduino board connected via usb, and sending output to serial port (COM4). But I don't know how to get input from serial port in Delphi. I need program to listen to the port,…
Tofig Hasanov
  • 3,303
  • 10
  • 51
  • 81
1
2
3
31 32