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

Python communication port serie com

I've been working on a digital display project for a month, but I don't have a solution yet. We bought a display in series with the French company ACI Display that we communicate in serial port (COM4) with the simplex protocol in ASCII code I used…
0
votes
1 answer

High USB-Rate causes error in consuming data

I have an application built with .net core and raspberry pi (compute module 4) with raspberry pi OS. I have two threads, each one responsible for receiving data of (200 bytes) from different USB port every 0.5 millisecond. When only one thread is…
Walid
  • 119
  • 1
  • 7
0
votes
0 answers

USB serial console is not exiting from Linux device

I am working on an embedded linux device, and the kernel has support for a USB serial console. You can log in fine, but when you type 'exit', the session is not exited, and you get stuck. > exit # The session hangs here forever Hotplugging is…
Razorfoot
  • 397
  • 2
  • 16
0
votes
0 answers

STM32L4 USB not appearing on computer as device

I have a STM32 Nucleo-64 development board with STM32L476RG MCU on it.. I have made a small PCB that, among other things, brings the USB interface to a connector. I have followed the steps shown here: https://www.youtube.com/watch?v=rLnQ3W8gmjY When…
Steve
  • 1
0
votes
0 answers

Solution to remote power cycle embedded devices

I am looking for a solution to remotely power cycle embedded devices that are connected via a USB hub to a server. I have a software solution (usbreset.c) that was posted in several responses in stack overflow - rebooting the usb port. This works if…
Archie
  • 153
  • 9
0
votes
0 answers

Linux read() not returning bytes immediately from usb serial device

I have a serial device connected via a FTDI serial to usb cable. The device sends 78 bytes every 10 msec. I am calling read() every 1 msec, so I expect read() to return 78 bytes every 10 calls (possibly split over 2 calls), and 0 bytes for 8-9…
gstemp
  • 1
0
votes
1 answer

M6E Nano stops reading after 5 seconds

I have a M6E Nano connected with a Serial Basic USB breakout board. Connecting everything together and using the Universal Reader Assistant works, but when I start reading tags nothing shows and the board disconnects after a few seconds.
Maarten
  • 402
  • 5
  • 20
0
votes
0 answers

Removing USB, only reboot allows to detect it again

In a DART-6UL linux based board, when I booted my system (both from eMMC or SD Card) with USB flash drive or a FTDI USB-to-serial converter inserted, it compared in: /run/media device list or in: /dev list. When I removed it, USB devices are…
LittleSaints
  • 391
  • 1
  • 6
  • 19
0
votes
0 answers

STM32H7 Threadx USB CDC fails after a while - semaphore not returned, device sends CANCEL

I have a nucleo h743 that bridges between several G4 boards and a PC. connection between the G4 and the H7 is CAN-FD. connection to the PC is USB-CDC. after a while the connection fails - the sw hangs waiting for the semaphore in…
0
votes
2 answers

Virtual USB-serial port always failing after 0x3800 bytes received

I have a device sending a constant stream of data to my PC which is receiving it over a virtual USB-serial port. On the PC I use a C# program to read the virtual USB-serial port. After receiving 0x3800 bytes (14336 bytes or 14 kB) receiving…
PapaAtHome
  • 575
  • 8
  • 25
0
votes
0 answers

Is it possible to force-write to an unrecognized SD card?

I have an SD card that I am trying to salvage, but whenever I plug it in to my Macbook, it doesn't show up. I know the issue is not with the card reader because it can pick up several other cards just fine. Would it be possible to plug it in and…
Skouzini
  • 143
  • 1
  • 10
0
votes
1 answer

How to send binary data (0 volts, 5 volts) through USB?

I'm getting interested in electronics. As a beginner thing, I wanted to try to manually turn on and off my plasma globe through Python code. The globe takes in a 5 volt DC power supply. I can power it through my laptop, which is a nitro 5. So it's…
Lambda
  • 11
  • 5
0
votes
1 answer

USB communication via ethernet

I'm trying to figure out how I could emulate a USB port from one computer to another over the internet. I want to connect a device in one city with software running on a computer in another city. Normally this is done with a regular usb cable so I…
0
votes
1 answer

How to read bytes response from web serial api writer

I'm trying to work with Web Serial API. I want to write bytes to device and read bytes response from it. I can write bytes as well as string to device - here everything working as expected. I can read bytes and string from device - here I have…
bmrki
  • 371
  • 3
  • 15
0
votes
2 answers

Flutter usb serial with arduino, Not detecting CH340

I'm trying this package usb_serial to communicate with my hardware devices like Arduino, Esp8266, Esp32, FTDI board, etc., Right now I'm using a board with a CH340 chip in it. Device details are matching as mentioned in device_filter.xml In…
Sanjay TM
  • 369
  • 2
  • 17