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
3 answers

Unable to read data from usb serial device in android

I went through lots of demos and SO threads before asking this, but none of them is working for me. I am trying to read data over usb serial port using the below code. public class MainActivity extends Activity { public final String…
karan
  • 8,637
  • 3
  • 41
  • 78
1
vote
1 answer

Make my rfxtrx433e working with a UWP app on Raspbery Pie 2 with Windows IOT

I'm developing a domotic UWP app and I'm trying to make my app working on my Raspberry under Windows IOT. When I run the app on my computer everything works fine. I'm able to get the corresponding COM port and to communicate with my device. When…
1
vote
0 answers

Reading parallel port data meant for printer

I have a 20 year old device that prints data through a 1994 HP Deskjet 550c printer using a parallel port. Now the printer is broken and so there's no way to view the device output. I was thinking of hooking the parallel port from the device to a…
1
vote
1 answer

packet drop in usb interface after establishment of ppp on it

USB interface is getting created and also ppp is established . After sending few packets perfectly the packets are getting dropped.thats why ppp interface is down and never getup. This scenario is ocurring everytime.
Md Muazzam
  • 25
  • 6
1
vote
1 answer

my linux C program cannot receive data from Arduino through USB Serial

My Linux C application cannot receive bytes from Arduino Hi all, I intend to use Arduino Mega 2560 as a programmer for AT89S52 (a family of 8051 microprocessor). The Arduino board connects to PC via USB Serial cable. At first I need to write a…
Huy Dang
  • 11
  • 4
1
vote
0 answers

USB to Serial: LoopBack Read-Write Programs

I am using BAFO bf-810 USB to Serial adapter with pl2303 drivers on Mac OS X. I am a beginner in the field and so have got the high level APIs from here which is a cross-platform API. I have two programs, one to write and one to read. This API does…
Harsh
  • 389
  • 2
  • 18
1
vote
1 answer

Ethernet over USB not working for Linux Kernel (3.14.35)

I am working with the Linux Kernel v3.14.35. In which i need to provide Ethernet over USB support. I made the modification in the Kernel configuration. It works fine. I got the interface up from both the side as the name of usb0. I configured the…
Parthiv Shah
  • 350
  • 3
  • 17
1
vote
1 answer

Error errno 11 Resource temporarily unavailable

I am using USB to Uart converter for transmission and reception for my data. Here is my code for transmission void main() { int USB = open( "/dev/ttyUSB0", O_RDWR | O_NONBLOCK | O_NDELAY); struct termios tty; struct termios tty_old; memset…
Abhishek Parikh
  • 29
  • 1
  • 10
1
vote
0 answers

Raspberry Pi USB to serial - multiple ACM0 devices spawning

I am trying to get a Raspberry Pi running Octoprint (a kind of 3D print server) to talk to my Lulzbot Kittaz (RAMBo controller board, an Arduino Mega derivative), but something keeps creating bogus serial ports that seem to be getting in the…
1
vote
1 answer

Are serial port or Serial.Write working differently on Mac and Windows?

I am trying to write a Xojo app to communicate with a device (a ZVT-ECash Terminal) that is connected to my Mac through a USB/Serial adapter. I am testing my app on OS X and on Windows 7 (running under Parallels). In both cases I'm sending a string…
Crrts
  • 23
  • 3
1
vote
1 answer

Listening to 2 senders on the same USB Port using Docklight

I am currently working on a script in docklight v2.0. My setup is the following: I have a splitter connected in the USB port of my PC. That splitter is connected on a wire on which a communication is made between 2 devices. Docklight is connected…
Alex
  • 371
  • 1
  • 8
1
vote
1 answer

Android read and write data from glucose meter which have cp2103 and bluetooth

I have an glucose meter VerioSync Which support USB and Bluetooth both. I have protocol for data exchange. Via USB I successfully read data from Meter by sending some commands and receiving data. But via Bluetooth I can scan device and connect it, I…
YasirSE
  • 161
  • 1
  • 10
1
vote
1 answer

Android usb host permission confirmation dialog is being dismissed when I click outside of it

I am getting a android usb host permission confirmation dialog when I am establishing the USB connection from my android application. PendingIntent mPermissionIntent = PendingIntent.getBroadcast( …
user2902496
1
vote
1 answer

Can we transfer android data to desktop app via simple USB cable?

I currently create an app for android; user take photo and add information (GPS localisation, text, etc...) on it. There is also a java desktop app, who will contain data take with the android app and lot of other things. So I need to transfer data…
Slasch
  • 275
  • 1
  • 6
  • 20
1
vote
1 answer

Enttec DMX USB PRO Mk2 - Send single DMX packet

I am currently working on a small project as an engineering trainee, where i am to continue on the development of a DMX tool to help with the testing of intelligent light fixtures at my workplace. The project is written in C# and uses the managed…
Mose
  • 13
  • 7