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

FT_W32_CreateFile Failed

I am using FTDI D2XX Programmer's Guide to interact with FTDI serial-to-usb converter. The following code is used to open the USB port. bool CUsbPort::OpenIOHandle() { m_hComm = FT_W32_CreateFile(m_SerialNumberBuf, …
user3097695
  • 1,152
  • 2
  • 16
  • 42
2
votes
2 answers

Custom USB VID/PID - make Windows 7 & 8 automatically choose usbser.sys driver

I'm developing firmware for a USB device with an STM32F070 microcontroller. I generated a bare-metal (no-OS) code base with STM32CubeMX, setting the device up as a USB CDC (Communications Device Class), so that it is automatically detected as a VCP…
cp.engr
  • 2,291
  • 4
  • 28
  • 42
2
votes
0 answers

How to Detech a USB Device Programmatically ? (Arduino - Android)

I want to Detach USB connected Arduino from my Android programmatically. I am messing around with ACTION_USB_DEVICE_DETACHED action in USB Manager, But still I can not resolve it. Any one have used this intent to disconnect USB programmatically ?
Garry S
  • 79
  • 9
2
votes
1 answer

Cannot open Port Com

I have a problem with opening/closing com port - my program works perfect for some time, and than immediately stops working. Without any exception or anything like that. The only solution is disconnecting USB modem, then closing debugger (debugging…
AnotherSimpleName
  • 151
  • 1
  • 1
  • 9
2
votes
1 answer

Android USB cannot read complete data through bulkTransfer

I am using Android USB Host API to send and receive data using FT232. I am using two threads for the sending part and the reading part. I can send and receive data but the data read is not equal to what the data sent. For example, when I send…
chengsam
  • 7,315
  • 6
  • 30
  • 38
2
votes
1 answer

USB<>serial communication not working on linux

I'm currently working on a project in which I have to communicate with a custom-made sonar board over an USB<>Serial connection with cts/rts hardware flow control at a baud rate of 4,499,456. MATLAB code for sending and receiving data is already…
Girmi
  • 41
  • 6
2
votes
1 answer

About serial port software for CP2102 from silicon labs

I bought transparent RF modules DRF1212D10 and UART-USB convertor board from Dorji applied technologies. However the USB convertor board uses CP2102 chips and the RF module needs the RTS pin of CP2102 to be controlled in order to work in normal…
Edmund
  • 21
  • 2
2
votes
1 answer

where can I find usb2can driver on linux system?

I've a USB to can device but I don't know how to driver it on my linux system. The usb2can device uses Cortex M3 micro-controller(STM32F205) with internal CAN controller, which supports CAN protocols 2.0A and 2.0B , but only supply windows driver.…
YeYang
  • 43
  • 6
2
votes
1 answer

Identifying USB to serial port given USB VID and PID using pyserial

I am new learner in python. I want create a web application for send sms or call using data card. I have been send sms using data card but my issue that if I use multiple data card connect at a time how can check which usb port working fine or not.…
yogesh kumar
  • 327
  • 1
  • 4
  • 15
2
votes
0 answers

Using g_serial to emulate FTDI

Situation: We have a custom PID utilized by a customized FTDI driver for our hardware devices. Now we're attempting to use a BBB and remove any need for FTDI silcone hardware altogether, yet utilize our customized driver. I'm attempting to emulate…
While-E
  • 1,527
  • 2
  • 20
  • 37
2
votes
2 answers

USB-Serial communication giving strange output

I'm trying to get data from a mercury analyzer (Seefelder-Messtechnik Hg Analyzer 3000) that gives output to a 9-pin R232 serial port to my OSX 10.10 laptop. I've followed the steps described here to install the PL-2303…
Stershic
  • 191
  • 4
  • 13
2
votes
1 answer

USBSerial Converter not detecting as ttyUSB in Debian Linux

I have to use trendnet tu-s9 usb to serial converter to transmit some commands via RS232. But unfortunately I couldn't see USB-Serial converter as ttyUSB under "/dev/" path. I don't understand the issue as USB detecting under usb list please see the…
linuxman
  • 83
  • 3
  • 10
2
votes
1 answer

Serial communication with other devices

I am developing an app for my own use. Android device communicates with other devices. Earlier i was communicating via Bluetooth, but at the moment i am changing to USB communication. I use ksksue FTDriver. And i ran into thinking loop and can't…
Martynas
  • 627
  • 2
  • 8
  • 28
2
votes
0 answers

USB over IP - Azure VM - On Premise USB

I'd like to access a set (4-8) on premise microcontrollers over USB from Azure VM (Windows 10). It must support USB to serial, since the VM development environment should be able to upload the compiled firmware onto the on premise microcontroller,…
Ivan Farkas
  • 351
  • 1
  • 4
  • 10
2
votes
0 answers

Can PySerial watch for USB-to-Serial converter attach?

In my current implementation I have separate thread continuously looking for new ports by scanning from serial.tools import list_ports ports_avaiable = list(list_ports.comports()) I wish to have…