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

Why is there always USB-OTG required for USB Serial?

I want to connect my Android phone to another USB host (PC) and exchange some data the most simple way. Reading/writing files seems a bit strange. Bluetooth or WLAN seems some overhead as well. Emulating a serial device sounds easier to me. Simple…
datafiddler
  • 1,755
  • 3
  • 17
  • 30
0
votes
1 answer

USB-Serial communication not working on Linux (Bill Validator GBA ST2)

I am trying to communicate with a GBA ST2 Bill Validator using a USB-Serial connection. Everything works fine on Windows (the device is then attached to a COM port) but not on Linux (so far with Ubuntu 14.04, 16.04 and Debian 8). By default the…
Pierre B.
  • 11,612
  • 1
  • 37
  • 58
0
votes
1 answer

Activate/Desactivate usb device from distant computer

I would like to turn on/off an USB device (light) from a distant computer, is it possible ? More details This is for a digital display at work, we would like to power a light everytime the display is changing. We are using web browser to make our…
Gingerboy
  • 3
  • 4
0
votes
0 answers

C# Close port with disconnected device

I have a C# application that communicates with a 4G USB modem over USB via AT commands. My problem is that if the device gets physically disconnected while the serial port is open, I cannot close the connection. If I try to close the connection, I…
Soma Zambelly
  • 167
  • 1
  • 1
  • 12
0
votes
1 answer

PLL Output Option missing in Windows 10 after Update

I´m currently using a robot with a 4.5 Mbaud serial connection via com port. To archieve that speed I configured the pll in the comport settings. But after some windows Update the option PLL OuPut is not available anymore. I tried reinstalling the…
Delet0r
  • 86
  • 8
0
votes
1 answer

Can't access ttyACM device in mode 0660

I want to be able to read and write ttyACM device, particularly Arduino Leonardo board under Fedora. I made a following rule: SUBSYSTEM=="tty", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="8036", SYMLINK+="arduino", MODE="0660",…
Nexy_sm
  • 211
  • 2
  • 9
0
votes
1 answer

setting usb communication speed

I would like to implement usb communication at a speed of 30Mbit/sec. My hardware support "high speed usb" so the hardware platform will not limit me. Can I implement this speed using USB CDC class, or Mass storage class, or are these usb classes…
Udi
  • 11
  • 1
0
votes
1 answer

Raspberry pi, communicate with Serial Device

I try to communicate from Raspberry pi to the a serial device with out success. I connect, write data but never read data back. The serial device works fine in windows with the following settings on the com port - Baud Rate: 9600, Parity: None,…
Giannis
  • 133
  • 2
  • 10
0
votes
1 answer

raspberry, cannot write to USB-Serial converter

I'm working on a small Python script on a raspberry that interacts with an external device. that external device has either RS232 and USB ports and I'm using it through the USB port. lsusb shows: Bus 001 Device 004: ID 0665:5161 Cypress…
ZeroMemory
  • 23
  • 6
0
votes
0 answers

Error in writing 2 bytes of data to serialport using pyserial

İ want to write 2 byte of data to serial port using pyserial in python. since the pyserial lets me send 1 byte at one time i writed following code to accomplish my problem but this doesnt seem to work right do you have opinion to help me with this?…
roro
  • 11
0
votes
0 answers

How can I construct a CAN bus command in C++ according to a spec sheet?

I have a spec sheet for a device which consists of commands that I need to write to the device via CAN bus in order to interact with it. I will be implementing these commands in C++ and write them from a PC into the device via USB -> CAN…
Jcan1995
  • 39
  • 8
0
votes
2 answers

Need to find and open a USB serial device on linux

I'm writing a small C application to run on my (Linux) QNAP NAS that will talk to an Arduino (I have no difficulty with any of the USB code for the arduino). (The arduino has a trusted application on it that accepts text commands via USB…
X-Ray
  • 2,816
  • 1
  • 37
  • 66
0
votes
0 answers

Getting data from an RS232 Port using Android Studio (Java)

Trying to get the weight from the weighing scale through a port connected to a USB that's connected to my android phone. The data is coming through but I don't know how to convert it properly. This is the code I'm currently using to convert the…
0
votes
1 answer

Allocate and free memory VS. allocate first, process only for each time

I'm trying to write robot hardware's serial communication part. And I have a desktop pc motherboard, no memory restrictions (8GB RAM, i3 cpu etc.) for that program which communicates with microcontroller via USB(Fullspeed) or Serial with 115200…
0
votes
2 answers

Is it possible to convert PICkit 3 programming connector to USB male A type

I need to convert PICKit3's 6 pin connector to usb male. It is possible to convert rj11 to pickit and rj11 to usb male so i think its possible but i need to know what pin matches with which usb pin