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
1
vote
1 answer

Interacting with multiple RS232 devices through a USB hub

I am working on a project that requires pulling and sorting data from ten scales. Each scale has an RS232 serial port and I am wondering about the best way to connect them all to a single computer. It seems that there are two options to connect…
Brett Nelson
  • 83
  • 2
  • 8
1
vote
1 answer

OSX: Can I talk to a USB-to-serial device without using a USB-to-serial driver?

I have a chunk of code using POSIX APIs to talk to a device which is essentially a cp210x USB-to-serial device. The code does work, but I had to install a kernel extension to make it happen. Now, I don't want to install a kext. This device's…
Hakanai
  • 12,010
  • 10
  • 62
  • 132
1
vote
1 answer

How to use APC220 Radio Communication Module in raspberry pi

I am developing a project using Arduino to send a message to Raspberry Pi using an APC220 Radio Communication Module. The Raspberry Pi can't receive serial message by using USB connect to APC220. I want to know how to use APC220 in Raspberry Pi?
pyrhaha
  • 13
  • 1
  • 5
1
vote
1 answer

SerialPort list shows stale information in c# application

I have a .NET4 C# application with some GUI. It works with serial network devices via USB-UART converter FT2232. The converter implemets a hub with several USB, which are shown as a number of COMxx in the system. I supported a dynamic port…
oxod
  • 166
  • 1
  • 7
1
vote
1 answer

u-boot flash emmc ttl serial

I used to update firmware on embedded system through tools like tftp (with ethernet port or ethernet over usb), sd card or a simple usb stick. I am currently working on a system without ethernet port, no usb port. Only a ttl/usb connexion to be…
ArthurLambert
  • 749
  • 1
  • 7
  • 30
1
vote
1 answer

Beaglebone Black with MIDI input (via USB) -> can't detect proper port

A few days back I wrote question regarding MIDI and ALSA, but I've since solved the problem and run into a new one. the context in short: I have a Beaglebone Black with debian 7.5 on it. My host is a 32bit Ubuntu 14.10 installation. I'm using…
poehalcho
  • 21
  • 4
1
vote
2 answers

Is there a way to reset or clear ttyusb0 read short of power cycling the computer

I am reading NMEA data from the usb input of an Intel Edison. Everything is working fine except for one problem. If I disconnect the RS232 to USB cable from the other two cables that lead to the bulkhead connector, I get a flood of characters sent…
Allen Edwards
  • 1,488
  • 1
  • 27
  • 44
1
vote
1 answer

ADB command for identifying USB port

I want to know the adb command for getting USB port number of connected android device. Please help me to configure my device with android. Thanks in Advance
RajeshVijayakumar
  • 10,281
  • 11
  • 57
  • 84
1
vote
3 answers

Can Android OS be programmed to interface with a external device via the mini-USB port?

Basic example, if I bought a chipset with a light socket and bulb soldered to the chipset; then put a USB cable with the mini-USB plug on the end to get plugged into the android phone. Can I write a Java application to turn on/off the light, get the…
user322865
  • 11
  • 1
  • 4
1
vote
1 answer

Patched FTDIUSBSerialDriver kext has to be unloaded/reloaded after reboot (OSX 10.10). Any ideas?

I'm exchanging data between a bare-bone Arduino and openFrameworks via a serial UART FTDI connection. I'm using a patched FTDI driver to achieve higher BAUD rates on OSX. FTDIChip calls it "Aliasing VCP Baud…
armin
  • 2,047
  • 3
  • 17
  • 19
1
vote
0 answers

COM / SERIAL to USB unplugged. Memory leak

Finally solution for everything described below is to install DotNet v4.5 on computers where my application is running, even though my application was developed and designed for DotNet v4.0 I am facing memory leak when COM to USB converter unplugged…
Mike Znaet
  • 89
  • 10
1
vote
1 answer

Generic USB device on Android

I'm trying to send data to a generic thermal printer on Android. I can see via dmesg that it does detect a device there, however no nodes such as usblp0, lp0, ttyUSB0, etc. are created. dmesg states that it is a Generic Bulk Device. Enumerating…
joe
  • 1,125
  • 9
  • 18
1
vote
2 answers

New to linux: C++ opening and closing usb port issues

New developer, Linux, C++, USB - Serial Adapter. I've completed a program where I am able to write to the USB port. However, if I change my code, make, log back in as root, and try to write to the port again, it doesn't go through. It'll only work…
JonB55
  • 31
  • 5
1
vote
0 answers

Why am I seeing unreliable behavior using USBSer.dll in Embedded Compact 7, what do my errors mean?

Hopefully someone can help me or atleast shed some light on the errors I am seeing :-). Our WEC7 platform is required to communicate with a number of devices over USB Serial. To enable this I have added to our OS, UsbSer.dll and the relevant…
LukeyB
  • 46
  • 5
1
vote
0 answers

Extra bytes sent when communicating at 115200 baud over USB serial (WinAPI)

I'm attempting to send serial messages over USB to an Arduino Uno, using raw WinAPI commands. When using baud rates less than 115200, it works perfectly fine. However, when I send at 115200 baud, two extra bytes are sent prefixing the data I sent,…
cat
  • 530
  • 2
  • 7
  • 16