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
2
votes
1 answer

Why would a Serial Port device not respond in a different environment or with a different cable?

Currently we've got a Torrey LPC-40L Digital Scale connected via serial port to a Raspberry Pi. We found that if we send the letter "P" over the serial port to the scale, it sends back the current weight. And this already works. We've got a simple…
soapergem
  • 9,263
  • 18
  • 96
  • 152
2
votes
0 answers

Compiling embedded linux drivers

This might have passed to the unix and linux stack exchange, but since it involves compiling, i am posting it here. I want to compile usbserial, usb-wwan, and/or qcserial drivers for 2.6.35-9 Debian for ARMv7. First problem, there is no 2.6.35-9…
Sean
  • 789
  • 6
  • 26
2
votes
0 answers

Android USB bulkTransfer missing data

I'm using the USB host abilities of Android to communicate with my hardware. My communication is done through a CP210X usb to serial chip, and I'm using the driver provided here. My device is a Motorola Xoom running Android 4.0.3. Everything for the…
nitz
  • 437
  • 5
  • 19
2
votes
1 answer

ttyUSB numbers are changing after reboot

I attached 4 device to ports ttyUSB0-1-2-3 they working fine also ......but when my pc boots or i restart all the ttyusb they will change,,, e.g: if ttyusb0--->on device 1 after boot that device 1 will start on ttyusb3/////// after pc restart's or…
2
votes
2 answers

How to assign user defined name to USB CDC Serial ports?

I'm using USB Modem with my Linux board, and Kernel is creating 4 Virtual(CDC-ACM) serial ports when i connect the modem. and the Serial port name asr like ttyUSB0 - ttyUSB3. But these assigned names are not always same. If i have connected some…
Veera
  • 23
  • 3
2
votes
1 answer

Serial USB Connection between Android and Computer Connection error

I'm trying to create an App that sends a data text via USB Serial from a Android to a computer and receive. I'm using a Sample from Android called AdbTestActivity to try to connect with my device. I am able to find the device but when I try to open…
2
votes
3 answers

USB Serial communication between Android and computer

I need to create an App that receives and transmit text data from a computer to a Android App. I found this : https://github.com/mik3y/usb-serial-for-android. I used the example to see if I starting like this I could see a comunication between then,…
2
votes
1 answer

USB to Serial communication problems for UBUNTU C

I am trying to control servos from C++ code on an Odroid-U2. I have the SSC-32 servo driver from LynxMotion attached to the Odroid using a Usb-Serial cord. Simple serial commands control the servos, such as "#n Puuu" followed by carriage return,…
Garrison_Laforge
  • 137
  • 2
  • 10
2
votes
0 answers

How to get USB Serial number connected with the mac os 10.7.5

I follow the below link.method(void getUSBStringDescriptor) http://oroboro.com/usb-serial-number-osx/ method i have used is: its working fine on mac 10.8.4 but not in 10.7.5. Thanks in advance.
Yunus
  • 47
  • 4
2
votes
7 answers

Can I use a USB-to-serial adapter to talk to my development board from VMWare Fusion?

I have a Linux virtual machine running on VMWare Fusion (on Mac OS X) that I intend to use as a development environment for an embedded system. Would it be possible for my Linux VM to talk to my embedded system's serial port using a USB-to-serial…
sigjuice
  • 28,661
  • 12
  • 68
  • 93
2
votes
1 answer

Can i crack usb security dongle?

I have to develop a plugin for a program that uses dongle to activate.Just wondering can i crack the key of the usb or something else?
Antonio Papa
  • 1,596
  • 3
  • 20
  • 38
2
votes
1 answer

The warning : Could not find UsbSerialLibrary.apk

I am working on the USB serial. I want to make a Nexus to read data from USB. I found the example project to do it. here So, I cloned the project and complied with eclipse. Everything works well but I got this warning, and I tried to connect my usb…
lvarayut
  • 13,963
  • 17
  • 63
  • 87
2
votes
1 answer

Reading multi-channel serial usb in pure data

I have multichannel serial data from an 8 channel ADC chip that I'm connecting to my computer via a serial-USB cable. I want to use these separate channels in Pure Data, but the pd_comport object doesn't read multi-channel serial data. I've scoured…
buckocee
  • 101
  • 3
2
votes
1 answer

SerialPort Does Not Exist After Exception

I am using C#'s SerialPort class to communicate over a USB COM port. The SerialPort opens fine and works fine until an exception occurs. After the exception when I try to use the port through my application I get another exception: "The port…
zam664
  • 757
  • 1
  • 7
  • 18
2
votes
2 answers

Arduino Android USB connection

I am using an Arduino Duemilanove and Nexus 7. I have successfully detected the Arduino board and displayed the vendor id and product id. I am trying to transfer data from my tablet to the Arduino board and trying to blink the LED on the board. The…
sohil
  • 223
  • 2
  • 4
  • 13