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

Static binding serial ports in ubuntu on Raspberry Pi

I am running a setup of 4 ESP32 which are connected to a PI through serial connections. Is there a way to statically bind all of the ESPs, so the port order after every boot doesn't matter? It also has to be ID unspecific, since I'm running several…
Achim
  • 11
  • 3
0
votes
0 answers

How to install linux-modules-extras in a Ubuntu 18.04 docker image?

I have a problem setting up a Docker image that interacts with a USB device on Ubuntu 18.04. I get the following errors when running the rmmod command in a script run from within the container to begin interacting with this USB device: rmmod: ERROR:…
Pyy
  • 327
  • 6
  • 23
0
votes
1 answer

Array Data Reading Failed

I am reading the data from a "Torque Wrench" using "USB Host Shield2.0" and Arduino UNO. I am receiving correct data from my "Torque Wrench" Data is receiving in a array. But when I started reading data after "for" loop inside Void loop() I am…
0
votes
1 answer

Read USB data without IDE in Arduino UNO

I have got an Arduino UNO. I wrote a script to control the lights connected to PIN 2, 3, 4 on my Arduino. The lights can be turned off or on using my laptop: 0 turns off all the LEDS 1 turns on LED on pin 1 2 turns on LED on pin 2 3 turns on LED on…
15 Volts
  • 1,946
  • 15
  • 37
0
votes
0 answers

How to monitor data from data from serial FTDI chip on Ubuntu

I have a device with an FTDI serial to USB convertor. I want to monitor/datalog the data coming from this device. On Windows using a serial monitor, all is Ok I can see the frames coming. Now I want to do that on Ubuntu. : The chip device seems to…
0
votes
0 answers

Serial communication problem when reduncing power between raspberry and arduino

I am developing a monitoring system with solar panel which involves to power on/off an Arduino through Raspberry Pi commands. The Arduino has a lot of sensors and I am using a command to switch on/off the raspi USB, so the arduino goes down and up.…
user1801745
  • 391
  • 2
  • 18
0
votes
1 answer

Can I transmit serial data only using a data cable via Raspberry pi 0 w's USB port?

I have been recently trying to find out a way whether I can send serial data (large file like image data) only through the Rpi w 0's micro USB port using ttyGS0. But when I searched online I only found ways of setting up headless through serial and…
Blizzard
  • 9
  • 3
0
votes
1 answer

Why my serial-port instrument reads a query response returning the same query command?

community, I'm using a Win 7 system with a Matlab R2015 with Instrument Control installed. And, a Tektronix TDS1012 oscilloscope connected to my computer via a USB-to-SERIAL connector. The device is connected and recognized by the PC and the…
ilCris
  • 1
0
votes
0 answers

CH34xUARTDriver for android usb write will give responce upto 85 hex string

I am working on a serial communication project in android with a USB connection. The response from the CH340 cable was correct on Modbus but when I connect it with android it shows only 85 characters strings whereas it should return 100 characters…
0
votes
0 answers

How is the last digit in a USB Device Path Assigned/

I am trying to have a Raspberry Pi Zero emulate a Cisco USB console interface (non-FTDI version). At a high level this is actually not that difficult: The g_serial driver running on the Pi can accept Cisco idvendor and idproduct parameters, so it…
Liam Kelly
  • 3,524
  • 1
  • 17
  • 41
0
votes
1 answer

Serial to USB cable from a scale to PC ,some values are just question marks

Im traying to write a program to read data from a old AND scale using a serial to USB converter cable to display in a textbox .i was able to write a program successfully to read data only from a RS232 serial cable, but when I attached a serial to…
0
votes
1 answer

write and then read data synchronously from device over usb OTG

I am working with ESP32 (CP2102 USB to UART Bridge Controller). I need to send text command to this device and then immediately read response synchronously in the same function to return data. I tried two libraries: usb-serial-for-android and…
piczaj
  • 424
  • 1
  • 8
  • 21
0
votes
1 answer

How to read data from serial-to-usb device?

I have a sensor device connected to my Ubuntu 20 machine using a serial to usb cable. I understand that to stream data from it I need to run the following commands: Enter root with sudo -I. Setup a virtual COM port with stty -F /dev/ttyACM0 9600…
Pyy
  • 327
  • 6
  • 23
0
votes
1 answer

Error running libserialport (list_ports), sp_list_ports() failed

Here is what I have done: - 1. Clean install of Windows 10 (Running in Oracle VirtualBox) a. Version 20H2 (OS Build 19042.685) 2. Install MSYS2 a. https://www.msys2.org/ (Main website) b. Download installer i.…
SYM2020
  • 23
  • 3
0
votes
1 answer

send and receive wrong data to/from Arduino uno from example code in usb-serial-for-android

When I send , 1 Arduino returns and the 'receive' function output this result, receive 5 bytes 06 98 78 1E F8 --- (this changes into two outputs like 4bytes, 1 byte or 3 bytes , 2byte as if it is two read from the Arduino board) My Arduino code is…
MPV
  • 337
  • 3
  • 10