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

How to get the imanufacturer number of USB device on windows?

As the title, I want to get iManufacturer number of a webcam, how can I do? If I install special driver of libusb module to get iManufacturer number, I can get the number, but the webcam became a disk on my computer, and I can not use it as a…
user3579757
  • 53
  • 2
  • 5
0
votes
1 answer

Communicating via RS232 cable in Win 8

I have been trying to communicate to a device via an RS232 cable and Win8 does not recognize the device. It recognizes it when I use a USB cable instead but I would like it to work both ways. Is this possible or does Windows 8 not support serial…
0
votes
0 answers

Why does TTYUSB0 port settings change my stdout settings as well

I have an embedded Atmel ARM926 board that I created a usb serial ko to get data from an FTDI as USBtty0. This board also has a serial port DBGU which is used as the console terminal that normally runs at 230kb. When I config the USBtty0 port to…
0
votes
1 answer

How to open COM port using USB to RS232 converter?

So I have USB port and converter cable on one side, and RS232 cable on other side. I am trying to open COM port using CreateFile() API, and so far I managed to do this: HANDLE dev = CreateFile(devicePath, (GENERIC_READ | GENERIC_WRITE), 0, NULL,…
0
votes
1 answer

Gumstix to Gumstix Communication

I am trying to get enable communication between two Gumstix via UART or even USB. I have had issues finding any useful online resources so I was hoping someone could point me in the right direction. I have two of the gumstix overo series summit…
0
votes
0 answers

Initiation of the USB port for serial communication whiteout using the hyper terminal

I am trying to initiate serial communication from the code below. The problem however is that I have to open the hyper terminal with the same settings and then close it, Before running the code below inside another program written in C for the code…
Henrik
  • 405
  • 1
  • 8
  • 19
0
votes
0 answers

Response in Byte always null in linux & raspberry pi wheezy beside in windows same code work great

WHY BYTE ARRAY RESPONSES IS EMPTY IN LINUX SYSTEM BUT WORK IN WINDOWS? BYTE ARRAY VARIABLE VALUES ARE ALL 0 I am facing an issue in serial comm communication. I am using Serial USB Convertor of GEARMO USB RS 485/232 Convertor. In window my program…
0
votes
1 answer

Get output serial output from machine by usb

I have a problem. I am testing a small linux on desktop. By default it output boot log to serial port, but my machine's have not one. I found in internet that one way to do what I want is connecting usb-serial converter to usb port of machine and…
0
votes
3 answers

convert a code from java into python

Now I am trying to change a program from Java into Python, when I finally fix three problems on my code and I run it. Then shows me this Error. Traceback (most recent call last): File "serial.py", line 4, in import serial File…
rpi-uts
  • 51
  • 1
  • 10
0
votes
1 answer

ttyusb udev naming by hardware port

I Have two usb->serial adapters, both ftdi, lets name them ftdiA, and ftdiB. The device (in this case raspberry pi but it is kind of irrelevant) has 2 USB ports, let's name them 'top' and 'bottom'. Is there a way to create udev rule so, that no…
davidovv
  • 80
  • 1
  • 7
0
votes
1 answer

Solve a ValueError

I was looking a way to prove my USB-SERIAL port and I found this code: http://www.digitalmihailo.com/usb-programming-with-python-on-linux-pyusb-version/, but I have a problem because when I run this program, then show me up this message: Traceback…
rpi-uts
  • 51
  • 1
  • 10
0
votes
1 answer

Using serial for android library

I'm trying to implement this https://github.com/mik3y/usb-serial-for-android/blob/master/UsbSerialExamples/src/com/hoho/android/usbserial/examples/SerialConsoleActivity.java in my project but there is something wrong with this sample. Line 121: …
Josef
  • 2,648
  • 5
  • 37
  • 73
0
votes
1 answer

Data from USB ~ Serial Port

I would like to transfer data from a USB Host (of my Laptop or Android Device) to Serial COM port (of a Desktop PC) through a USB - Serial port(DB-9) adapter. Is there any library existed to do this task?? i have already studied and tried…
Dineshgaru
  • 181
  • 1
  • 3
  • 16
0
votes
1 answer

Serial port communication through vb.net not working on some computers

I recently developed new vb.net application for our commercial product. It is working on some laptops and not working on some. Details about my application are as follows: Target .net framework = 4 (Tried with 3.5 and combination of both…
0
votes
1 answer

Cannot open/initialize serial port in C++ using SerialCommHelper

We are using a usb-serial port converter to establish a serial port connection. We've tested it on a computer with no serial port and were able to initialize and send command through the converter to the device successfully. Once we release the .exe…