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

USB-Serial FT232R not detected by Samsung Galaxy S4

I am trying to connect a usb-serial accessory to my Samsung Galaxy S4 phone. The usb device is not detected in Android OS and not in the underlying LinuxSE (according to the app "USB Device Info" listing usb devices). The USB-Serial accessory uses…
Sebastian Tomac
  • 101
  • 1
  • 4
1
vote
2 answers

Auto detect Arduino in C++ (Windows)

I'm trying to write a C++ program which automatically detects the COM Port numbers of all connected arduinos. I already found that I can get a list of all available COM Port devices in HKLM/HARDWARE/DEVICEMAP/SERIALCOMM but there are no information…
user2282732
1
vote
2 answers

Java writing bytes to serial port USB

I have a code below that I am sending to a serial USB port... it was working, now its not! the akber() function dies if the wrong string is sent... if I send akber("1.0.0.0.1.5") - it works perfectly, if I send akber("23.0.128.0.0.5") - it does not…
1
vote
0 answers

Is it possible to have usb controllers too bridge connections?

I was just wondering if i could connect 2 usb devices together that are both connected to the same pc. Instead of the pc being connected, i want to have the devices connected together as if they were directly connected through cable. I ask this…
Edhen
  • 345
  • 4
  • 15
1
vote
0 answers

OSX sending/receiving data via USB/Serial

I need to write a cocoa app (lion and mountain lion) to transfer (send/receive) data with a serial device attached to the USB port. I have spent some time studying the osx documentation (i/o kit) and I have googled for tutorials, but with not much…
Fab
  • 1,468
  • 1
  • 16
  • 37
1
vote
0 answers

QT USB hardware ID detection Mac OS 10.8.x and Mac Book (Pro)

Background: We have an application which is written using the QT framework. One key requirement is that we can correctly detect the hardware serial number of the USB flash drive used (not an external hard drive). This function has been working…
1
vote
2 answers

Cannot connect to the usb-serial port (GSM modem)

I've decided to bring up a GSM Modem for my Linux machine (OpenSuse 12.1 64-bit on Vmware) so that I can use it as the SMS gateway. I've got a Wavecom M1306B GSM modem which provides a USB interface, and obviously there is a USB cable (end to end,…
atari83
  • 489
  • 1
  • 5
  • 15
1
vote
0 answers

Setting termios linux kernel

I'm trying to describe my problem from the beginning. I'm a newbie in linux diver development, so please point out my problems about my consideration in my project. I'm now developing a linux driver for a modem, but not a typical one. I hope it can…
Yifan Sun
  • 772
  • 1
  • 10
  • 25
1
vote
1 answer

How to pass an integer from an Arduino to a C application on Mac OS X

What is the standard method to read values on an Arduino from a C application? I have an accelerometer and a few poentiometers which I would like to bind to Cocoa controls, an NSSlider for example. My arduino is currently connected to:…
alecail
  • 3,993
  • 4
  • 33
  • 52
1
vote
2 answers

g_serial gadget with handshake

I have application on Windows-host that connects to board-device via RS232 with full handshake (RTS, CTS, DTR). I want to replace the RS232 with USB now. I use board with embedded linux and USB device (g_serial) module. I get all the data on…
Bartlomiej Grzeskowiak
  • 1,009
  • 5
  • 16
  • 35
1
vote
0 answers

Find Serial Buffer Size of Converter

I'm using an FTDI USB-to-Serial converter on linux. I'm writing an application that implements the standard functionality of changing settings like baud rate, etc... The only thing that I'm not sure how to get is the buffer size, e.g. if the user…
Gatica
  • 593
  • 1
  • 6
  • 13
1
vote
1 answer

using java to connect through usb-serial cable

i am using java library rxtxx to send data to micro controller the application seems to work but a warning comes up :rxtxx2.1.7 version mismatch will it affect the sent data ?? I have tested it but no data was sent my code is: import…
Abdo Salem
  • 55
  • 1
  • 8
0
votes
0 answers

How to transfer data between the openmw camera and my PC, via usb connection

I bought an openmv camera, and I don't understand how to work with it. As I understand it, it is main.py a script in which you can write your own code to work with it. Okay, that's clear. But here's the question: I want to write 1 more qt app that…
Timama
  • 1
  • 2
0
votes
0 answers

AT91 USB-Serial issues -> Communication not possible

Good day I've been dealing with this problems for some times. A board, utilizing the AT91 Chipset from Microchip, has a direct USB Port. This USB Port is used for Debugging, setting SN and all the other configurations on this board. I power on the…
Gruman
  • 1
0
votes
0 answers

usb serial android packet loss

I am using com.github.mik3y:usb-serial-for-android. Only some packets reach correctly, some packets lose their length. Sometimes I get a full packet, but usually the response is truncated. And the very first package is correct. private val…
Vsevolod
  • 13
  • 3