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

STM32F0-Discovery: no tty

I am currently trying to send data to my STM32F0308 board via USART. The data is supposed to be sent by a Python script using PySerial. However, when I plug in the board, I cannot find the corresponding /dev/ttyXXXX. The board is branched and I can…
user4886730
0
votes
1 answer

Accessing usb cable pinouts by programming it

I have a usb cable and I would like to connect it to my computer, then connect it to my circuit and then a program that I made will run and somehow control the circuit. I have done some research about USB pinouts but I don't know how can I make a…
Miguel Lorenzo
  • 560
  • 1
  • 5
  • 12
0
votes
1 answer

How to simulate a USB drive

Is it possible to simulate a USB drive with software only? I mean, for example, to expose a local memory space to the OS so the device manager will recognize it as a USB device. I'm not familiar with hardware implementation, but I'm sure that it is…
rkellerm
  • 5,362
  • 8
  • 58
  • 95
0
votes
1 answer

USB serial driver (communication protocol)

I would like to develop an FPGA that includes USB controller and its USB controller implements USB to serial protocol. I thought USB to serial adapter was much like keyboard or mouse. But I found the opposite. The devices I tested use "vendor…
user2756376
  • 117
  • 9
0
votes
1 answer

UsbDeviceConnection ControlTransfer() returns -1

I've been writing an application to communicate with a CP2102 usb to serial chip in xamarin android. I can succssesfully grant premission to open the device and claim the interfaces. After I open the device I use these lines of code to claim the…
a.toraby
  • 3,232
  • 5
  • 41
  • 73
0
votes
1 answer

Windows Embedded USB Client options

I am a very novice embedded developer and I am trying to develop a commercial product using Windows Embedded Compact and a Toradex Apalis T30 COM. Firstly just excuse me here, I am not a professional nor a trained engineer, merely a hobbyist trying…
0
votes
1 answer

Communicate between 2 WinCE devices using USB - how?

We've got two WinCE devices that need to talk to each other, they don't have WiFi or Bluetooth so I think a wired USB connection is our best chance. I've been reading up on using ActiveSync and serial over USB, but all the articles are geared…
Betty Crokker
  • 3,001
  • 6
  • 34
  • 68
0
votes
1 answer

Connect an Arduino Due native USB port to an Xbee Explorer based on an FTDI 232R chip

I want to connect an XBee to an Arduino Due using a Sainsmart USB Explorer. I have looked everywhere and cannot find any information on doing this. I have successfully connected an Arduino Mega using a Sainsmart USB Host Shield using the USB Host…
0
votes
2 answers

Does serial port buffer behave differently under Windows 7 x64 vs x32

After switching to Windows 7 x64 the weight indicator device connected to a serial port started to behave differently than in Windows 7 x32. It seems that timing of read operations or read buffer behavior is little different. I am monitoring the…
Vojtěch Dohnal
  • 7,867
  • 3
  • 43
  • 105
0
votes
2 answers

Serial communication over RS232 and USB

I plan to write serial driver to send data from target to host. The target is a renasas RX62N. And the host is windows 8.1. The target has RS232 port and the host has a USB port. I plan to use a converter cable with DB9(not sure) and USB connectors.…
0
votes
2 answers

Is there anyway I can send SERIAL-USB data thru a HDMI port?

I have been working on a project where our Android tablet has only 1 microUSB port. Since we must communicate via serialUSB with an external device, it became a little fuzzy after we noticed that leaving the tablet powering the bus (Host Mode)…
Machado
  • 14,105
  • 13
  • 56
  • 97
0
votes
1 answer

SetupAPI.DLL to HID.DLL

Using SetupAPI I execute the function SetupDiGetClassDevs and get a pointer or a handle. Then I start a loop and run: Return = SetupDiEnumDeviceInterfaces(); with SP_DEVICE_INTERFACE_DATA.cbSize = 0 to get the size that SP_DEVICE_INTERFACE_DATA…
lexdean
  • 151
  • 1
  • 2
  • 13
0
votes
2 answers

serial data flow: How to ensure completion

I have a device that sends serial data over a USB to COM port to my program at various speeds and lengths. Within the data there is a chunk of several thousands bytes that starts and ends with special distinct code ('FDDD' for start, 'FEEE' for…
samtal
  • 131
  • 2
  • 12
0
votes
2 answers

USB Serial cable with CDC support

I bought a USB to Serial cable which claims to be CDC compliant. But the bInterfaceClass value in interface descriptor is 0xFF(which is vendor specific). I was expecting it to be 0x02 (Communications and CDC control). In the device manager, i found…
Harsha
  • 183
  • 2
  • 8
0
votes
0 answers

Programatically giving USB permission in Android

We have an application that uses Android and USB on the go to communicate with an Ardupilot. Our phone is logging information from the ardupilot and some other things. The problem is that often when logging we don't have easy access to the screen of…
Nordmoen
  • 215
  • 1
  • 7