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

setting up USB serial port numbers

One of the scripts that i have been given to work with uses port numbers to communicate to the serial port like 4001 4002 Using a USB Serial hub which is connected to one machine and running the script from another machine but the actual ports…
Vidur Oberoi
  • 75
  • 1
  • 3
  • 12
0
votes
2 answers

Are vendor-specific USB serial adapters supported in Metro apps?

There's a sample provided for CDC compliant USB devices here. Are vendor-specific USB devices supported too? Or are CDC compliant USB devices the only ones supported in Metro apps? Your help is much appreciated!!
0
votes
1 answer

USB connection issues

I am trying to run my android app in my samsung device GT-S6012. I use Windows 7 Home Basic. The driver is installed properly. As soon as I connect the mobile using USB cable, for some seconds "adb devices" shows my phone. But then I get a message…
ravi tiwari
  • 521
  • 1
  • 8
  • 24
0
votes
1 answer

Arduino: Incoming USB serial data when USB is disabled hoses the connection

I'm writing a sketch for an Arduino Leonardo that occasionally needs to communicate bidirectionally via USB serial, and also needs to be power efficient. To save power I'd like to disable the USB when it's not needed. I can successfully use…
John Daley
  • 121
  • 1
  • 5
0
votes
0 answers

Non-host USB serial terminal

Does anyone know a serial terminal emulator working on samsung galaxy s3 that acts as an USB device instead of USB host? Or such windows terminal emulator? The idea is to test a USB/RS232 bridge implemented on a uC board acting as an USB host.
turboscrew
  • 676
  • 4
  • 13
0
votes
1 answer

Unable to write to /dev/ttyUSB0 using fopen or php_serial.class.php

I'm trying to rewrite this C script into PHP.(sample) // send packet to network tty_fd=open(buf50, O_RDWR | O_NOCTTY | O_SYNC); write(tty_fd,&packet2send,34); close(tty_fd); This C script also reads data from /dev/ttyUSB0 in Hexadecimal but i'm…
Drace
  • 699
  • 9
  • 23
0
votes
1 answer

C# Usb Device - Oral Camera Snap ButtonPress Event

I want to take snapshot when pressed oral camera snap button. I used WndProc function for monitor all event but when l pressed snap button, No event doesn't work. İ sniff usb camera usb port. when I pressed snap button, received 4byte data. Request…
EvrenD
  • 1
  • 1
0
votes
0 answers

Embedded linux usb-ftdi serial port read issue

I have a TI Cortex-based Pengwyn board running embedded Linux that I am trying to use to read raw serial data from a USB-ftdi peripheral so I can process it into data packets. To do this I've written a simple program (using Qt) and the termios…
0
votes
2 answers

USB connection trouble

I am currently running a robotic's project using an Hokuyo (URG-04LX-UG01 - http://www.hokuyo-aut.jp/02sensor/07scanner/urg_04lx_ug01.html). This one is plugged to my computer using USB. Although it creates the port "/dev/ttyACM0" when I plug it, I…
qchateau
  • 1
  • 2
0
votes
1 answer

sending bytes using serial ports to a zigbee

I am totally new to Zigbee and serial proting and I want to build a communication channel between a Zigbee and https://github.com/mik3y/usb-serial-for-android through a USB serial port (send and receive bytes). I used the USB-serial-for-android…
OmAr Hesham
  • 153
  • 1
  • 3
  • 14
0
votes
1 answer

Windows CE 6.0 send data via USB-Serial Cable

I am developing a WinCE application (.Net 3.5) which allow connection to terminal via TCPIP, Serial Port and USB. Currently still trying to intergrate USB feature. I have done some research and found that USB connection can be done via SerialPort…
0
votes
2 answers

serial device on Linux hangs after few minutes of data transmission

I am using openwrt (an embedded linux that runs on routers). I am using a USB-to-serial converter that shows up as /dev/ttyACM0. [ 2430.460000] usb 1-1: new full-speed USB device number 4 using ehci-platform [ 2430.630000] cdc_acm 1-1:1.0: This…
0
votes
1 answer

How can I send data via a FT232R chip /PL2303 to display characters /string on the receiving device?

I am sending data from an android app to a medical device via usb. I am using a FTDI RS232 Cable (which has a FT232RL chip) and I also use a Prolific cable (which has a PL2303 chip). I can send characters / string values over the cables. However my…
0
votes
2 answers

Managing serial conversation between Linux and Arduino

I want to write a binary transfer to/from Arduino to the other side through USB. Right now, I'm doing it in ASCII, and it's easy. With ASCII, you can see the junk until the two sides synchronize. But with binary, it will be difficult to…
Dov
  • 8,000
  • 8
  • 46
  • 75
0
votes
1 answer

Read data from USB serial with android

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. I can install and run my app. The app can find my USB…
lvarayut
  • 13,963
  • 17
  • 63
  • 87