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

"USBSerial" has no member "printf" on STM32F411CEU6 in PlatformIO / ststm32

Trying to run this USB Serial example (bottom) to learn MBED, but I get the following compilation error: class "USBSerial" has no member "printf" Is it possible it isn't implemented for the STM32F411? Or is this a problem with MBED itself? Seems…
Power Max
  • 13
  • 3
0
votes
0 answers

Mac Terminal connection to USB connected 3D printer

Trying to connect to a Tevo Tornado 3D printer connected to my MacBook Air via a USB cable. In terminal I identify the USB devcice and try to connect to it using: > js$ ls /dev/tty* | grep usb /dev/tty.usbserial-1410 > js$ screen…
MindSpiker
  • 1,437
  • 1
  • 14
  • 22
0
votes
0 answers

Vendor serial number usb white list

I'm currently building a Java app that could detect USB drive, and can identify the difference between a personal USB drive and an unauthorized USB drive by using vendor serial number, my goal is to whitelist the identified USB drive and so only the…
0
votes
0 answers

Interfacing pySerial (3.4) with some uart to usb converters

I'm using pyserial to get data from a psoc device (microcontroller). the microcontroller sends data via uart and an internal (inside psoc) uart to usb is used to convert data from uart to usb, however I have communication flow issues. I tried to use…
0
votes
1 answer

How to retrieve USB-to-serial address?

ISSUE Pyserial: A USB serial device has different addresses depending on whether I install it to a desktop (Catalina) or laptop (High Sierra): ser = serial.Serial('/dev/cu.usbserial', 9600) #OSX High-Sierra ser =…
gatorback
  • 1,351
  • 4
  • 19
  • 44
0
votes
1 answer

USB: why USB devices the modules automatically loaded

I have am335x related customized board and kernel(4.4.16) source code I configure the FTDI module driver. so after kernel start successfully I attach ftdi converter to usb port and then type lsmod command to check module list Module …
0
votes
1 answer

VBA NETComm issues

I am working on a VBA GUI that I have not developped by myself. I do not really know VBA langage and I need help. I am trying to drive an electronique card plugged as USB with that GUI. The problem is that I am trying to use NETComm.ocx to send…
0
votes
0 answers

Linux Ubuntu Serial Com Port for Android Device

I am connecting my Android Phone with my Linux Ubuntu Laptop over Micro USB(Android) to USB(Laptop) cable for Development/Debugging using Android Studio. Will it possible to open the USB Port as Serial Communication port for sending and receiving…
User7723337
  • 11,857
  • 27
  • 101
  • 182
0
votes
0 answers

Android Serial Communication with Linux Ubuntu

I want to have Serial Communication between Android Device and Linux Ubuntu Laptop. I am targeting Android version Oreo-8.0 API Level–27. Android phone and Laptop will be connected over Micro USB(Android) to USB(Linux). On Android I found below…
User7723337
  • 11,857
  • 27
  • 101
  • 182
0
votes
1 answer

Linux communication through usb serial port

i was trying to send data to a citizen pos printer trough usb serial but when i plug or unplug the device i don't see any difference on the /dev directory. No file is created corresponding to the printer. Does anyone knows what is the problem? In…
Ricardo Araújo
  • 191
  • 1
  • 2
  • 10
0
votes
0 answers

How can I retrieve data from an Arduino using Android?

I'm building an app in Android to communicate with Arduino via usb. In Android, I create a button to send data to the Arduino. The Arduino should then respond to this message and send another message to be treated in the function of the same…
Nana
  • 1
  • 2
0
votes
2 answers

How Serial Port Loopback Test work internally/underneath?

When doing a Serial Loopback Test on a USB Port (assume COM1) using Hyperterminal or any other serial terminal (i.e. PuTTY), you can verify that the test passed if what you type on the keyboard is displayed on the Terminal (although it's not for all…
0
votes
2 answers

USB Virtual COM

Looking for skeleton/source for embedded (non PC) USB Virtual COM implementation?
None
0
votes
1 answer

Composite USB CDC/HID device on STMF32F303

I'm following the advice: It is possible to achieve your own composite USB Device, by combining the desired classes' drivers into one class, under your own folder within: Middlewares\ST\STM32_USB Device Library\Class from…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
2 answers

Where is HexDump in the Android API?

I'm using this library to read from and write to USB devices. I'm trying to figure out the event driven reader scheme where on received data, the original source example is using a HexDump method on the byte array. private void…
GhostRavenstorm
  • 634
  • 3
  • 9
  • 29