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

Flutter Permission denied, errno = 13 PlatformException(UsbSerialPortAdapter, Failed to acquire USB device., null, null)

I am developing a Flutter app that needs to access a USB device. I have added the necessary permission in my AndroidManifest.xml file, like the next:
0
votes
0 answers

Can windows lock the Comport number when enumerating new USB->Serial hardware

I would love to know if Windows, Win10 in particular, has the ability to lock a comport number to USB-Serial. In a Point of Sale enterprise environment, I have a golden image that techs use to restore the image when a new POS is installed, hard…
Paul
  • 101
  • 2
  • 10
0
votes
0 answers

Enumerating FT2232 channels

FT2232 supports two (almost) identical channels, A and B. FT_ListDevices(...) sees them as two devices, 0 and 1. How can I be sure which of them is A? One of my computers sees A as 0, but the second sees A as 1 on the same chip. Is there a way to…
Dmitry
  • 116
  • 4
0
votes
1 answer

How can I implement ExternalAccessory Framework for serial communication between IoT device and iOS/ iPadOS/ macOS using Swift?

I am working on an software application where we can connect the IoT device with mobile phones or laptops using USB for serial communication for following purposes Using features of IoT device Configuring IoT device 2.1) Configure Device…
0
votes
0 answers

Flutter usb_serial 0.4.0, error not show verify connection Samsung Galaxy A4

I'm using Flutter, lib:usb_serial 0.4.0, I was trying to connect with my chip by CDC prototype. In other iphone it still working but since I'm using Samsung, it not show any verify connection, and of course cannot open usbserial port or communicate…
0
votes
1 answer

ESP32-CAM does not appear on COM ports in Windows or on /dev/tty* in Linux

I have bought an ESP32-CAM module and I connected the module to my Ubuntu device via a USB-TTL converter. Although it probably is not relevant, I want to use ESP-IDF extension on VSCode to flash some program on the CAM device. I followed the steps…
somberly12
  • 13
  • 1
  • 4
0
votes
1 answer

How to use a USB connection in more than one program?

I have an amateur telescope management application which uses two Windows applications, one is a DLL and the other a winforms app, both created using C# Both these programs communicate with the same AVR microcontroller via two separate USB to…
paul K
  • 13
  • 3
0
votes
0 answers

How would I spoof/open a com port from a microcontroller to a device with multiple ports?

I have a device which receives/outputs IrDA commands as well as receiving serial LED data from a product. Normally it plugs into a computer and a rx/tx tool specifically made for this function has a GUI which opens one available port for IrDA and…
0
votes
0 answers

FTDI usb to serial cable causing other USB devices to freeze

When an FTDI serial to USB cable is plugged into either my docking station, USB hub, or directly in laptop, other USB devices periodically freeze (such as mouse and keyboard). If I plug my mouse an keyboard directly into the laptop USB ports, they…
0
votes
2 answers

Select( ) always block on /dev/ttyUSB0

i m using Select() sys cal on XBee rf module which is on /dev/ttyUSB0.but this syscal just doesnt return(returns only on timeout),but if i use read() in a WHILE loop on this port i can see the data comming /*code to open the port*/ system("stty -F…
Yadnesh
  • 1,307
  • 3
  • 17
  • 36
0
votes
0 answers

xamarin android USB CDC simple example

I want to connect some custom USB CDC device(STM32) to android phone. I already have made most of other parts of app in the Visual Studio 2022 with xamarin for android. Based on my internet search I will need some external lib for xamarin USB…
0
votes
1 answer

How can I find the VID and PID of a device on the other end of a USB-to-Serial adapter?

I am attempting to connect to a weight-measuring scale using the following communication line: Laptop -> USB to DB-9 Serial adapter -> Scale. The problem I'm experiencing is that my laptop recognizes the adapter as the device on the COM port, thus…
0
votes
1 answer

Prevent Windows closing USB serial-port when laptop screen turns off

I'm developing a C# application that logs data coming in on a USB serial-port. I'd like to be able to run it on a laptop, and have it continue to operate even when Windows 10 turns off the screen to save power. I've already taken several steps to…
Michael Haben
  • 117
  • 1
  • 6
0
votes
0 answers

Specified serial port not valid error in php_serial class

I'm trying to build a PHP script that sends a text message using a USB GSM Dongle. I'm using php_serial class that is provided here. The GSM modem is connected on COM3 and following is my code. However, I always gets the error "Specified serial port…
0
votes
0 answers

(IoT) How to use USB interface on available M.2 connector

hope you're doing well. I'm doing a project were I want to plug in a custom board with a Nordic on an internal M.2 B Key connector, to communicate via serial port with the computer where I'll run the connectivity scripts and database. The computer…