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

Read/write data from COM port in Android

I need connecting Android tablet with some COM port device and send commands to them. How I understend, I need USB-COM port adapter. What type of adapter I need? Some requirements? When I connect device via USB-COM port adapter, how I must to work…
smie
  • 592
  • 1
  • 9
  • 25
3
votes
1 answer

Android USB Accessory Communication with Linux System

I am trying to setup a Nexus One phone to communicate with an application running on a Linux tablet. On the phone side of things, the Nexus One is Android 2.3.4 so it has the USB accessory library on it. And I have created an application Android…
linsek
  • 3,334
  • 9
  • 42
  • 55
3
votes
2 answers

Arduino Serial Commands work independently, but when combined nothing happens

I have connected an Arduino to a raspberry pi so that a specific event is triggered when I send a signal(in this case a number). When I send a number with the script and tell it just to print in serial monitor it works, when I try and just have it…
Garberchov
  • 67
  • 1
  • 15
3
votes
1 answer

How to mount an FTDI USB device to a docker container?

I would like to be able to access an FTDI serial-to-usb bridge device plugged into a host computer from within a Docker container. From there, I am using a Python script with the pyusb and libusb libraries to process the USB output. That way, I can…
3
votes
2 answers

STM32 USB CDC Long packet receive

I need to send data from the PC to my STM32F3, so I decided to use a built-in USB in uC. But now I have a problem - I want to send to stm32 big amount of data at once - I mean something like 200-500 Bytes. When I send from PC with minicom packets…
Sink
  • 91
  • 1
  • 2
  • 9
3
votes
2 answers

Compilation failure "configure: error: udev support requested but libudev header not installed"

I did following on my ubuntu machine: Git clone https://github.com/libusb/libusb.git after extraction, ran ./autogen.sh script, this failed with following error: checking libudev.h usability... no checking libudev.h presence... no checking…
Milind Deore
  • 2,887
  • 5
  • 25
  • 40
3
votes
0 answers

How to enable USB Serial on multiple activities in android application?

I want to make an app that can transfer data to a USB-connected device. The app has multiple activities (and multiple layouts). How can I make it so that I only need to enable USB connection in one activity, then when you go to the next activity you…
3
votes
1 answer

Android app not synchronized with Arduino Serial communication

I have a simple sonar arduino project so that it prints the distance every second. I have implemented an android app using UsbSerial to communicate with my arduino. So far so good, I am able to receive data and the data I receive is correct, but the…
pms
  • 944
  • 12
  • 28
3
votes
0 answers

How to communicate with more than one USB Serial devices and Android

I am trying to make android code work which can communicate with multiple USB serial devices and android tablet. For this purpose I am using USB Serial Library by FELHR85 https://github.com/felHR85/UsbSerial. I am able to communicate with single…
karan
  • 8,637
  • 3
  • 41
  • 78
3
votes
2 answers

bypass android usb host permission confirmation dialog for android 5.1

I want to use android in industry, I can connect to Profilic and Ftdi USB to Serial chips with slickdevlabs.com library without any problem. The application has a service and it starts on boot,connect to the usb serial port and do the other…
Milad Metias
  • 123
  • 2
  • 8
3
votes
0 answers

PySerial skips/loses data on serial acquisition

I have a data acquisition system that produces ASCII data. The data is acquired over USB with serial communication protocol (virtual serial, as the manufacturer of the box claims). I have a Python program/script that uses PySerial with a PySide GUI…
The Quantum Physicist
  • 24,987
  • 19
  • 103
  • 189
3
votes
1 answer

USB/RS232 communcation security exception android.permission.sec.MDM_APP_MGMT

I have created an Android app that runs on a Samsung Galaxy Tab Pro (SM-T900). The main feature of this app is RS232/USB communication using the USB host mode and the USB-to-Serial library. This app has been working perfectly without the need for…
Frank D.
  • 1,306
  • 1
  • 13
  • 23
3
votes
3 answers

How can I detect if there is data activity on a USB flash drive with my own circuit?

I am currently working on a project for my university course. I am design a device which will be an intermediate interface between the computer and a USB flash drive, i.e. data go from computer->my device->USB drive. One of the functions I want on…
3
votes
0 answers

Multiple callback came while Usb device connected

var watcher = new ManagementEventWatcher(); var query = new WqlEventQuery("SELECT * FROM Win32_DeviceChangeEvent WHERE EventType = 2 or EventType = 3"); watcher.EventArrived += new…
3
votes
0 answers

Phantom usb to serial port

My program talks to various electronic devices via an ftdi usb to serial port. On the hardware side it can happen, that the ftdi chip is disturbed by a short power outage. If this happens, the software should reset the connection and continue to…
Paul R.
  • 678
  • 5
  • 19