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

Is there any way to detect last packet of Bulk OUT transfer in USB from Host to Device?

I develop the driver in Embedded Device that communicates via USB with Host (PC). Device implements CDC class on USB FS. When I send data from Host to Device with the size more than MaxPacketSize I have never get any Zero Length Packet to terminate…
Esato
  • 127
  • 1
  • 9
0
votes
1 answer

Android CDC communication in micro USB host to read from device

I'm trying to implement CDC communication between IMX board and android tab. I have seen couple of tutorials and libraries but all are done through OTG cables. I need to implement the communication by connecting USB on IMX and connecting micro USB…
Vignesh
  • 2,295
  • 7
  • 33
  • 41
0
votes
1 answer

how can i reset service usb to serial driver that listed in lsmod without reboot system?

I have one usb_to_serial that connected my usb and installed by this command modprobe usbserial vendor=0x67b product=0x2303 and connect to other devices via console and when use of the screen for connecting to console for example screen…
0
votes
0 answers

Android USB Serial - Device stops responding when sending a negative byte (signed byte)

We are trying to read a value from an external sensor that is connected to a USB CP2102 USB to UART bridge. We used this library in order to make serial communication, we could send bytes such as 0x69 0x14 0x00.. and any other kind of positive…
Tamim Attafi
  • 2,253
  • 2
  • 17
  • 34
0
votes
0 answers

How to control bldc motors with arduino when controlling with a serial connection?

I am trying to control a BLDC motor (with esc) with my arduino. The arduino is reciving commands from a serial connection with a raspberry pi running a python program that repeatedly sends numbers to control the motor. I intend to control the speed…
Nat Salt
  • 3
  • 1
0
votes
2 answers

Why does read not terminate for my USB device?

I have an USB-device connected with my RaspberryPi 3 B+ (Raspbian Buster Lite 2019-07-10). I also write an small program to read data from the USB Device. The device has an custom, CDC conform firmware, so the device is detected correctly by the OS…
cone1018
  • 13
  • 4
0
votes
0 answers

Stop receiving Data from USB CDC-device when DTR and RTS are zero

I have an USB CDC-Device connected to my RaspberryPi with Raspbian. The Firmware for this USB device was developed in my company and offers several communication modes. The "normal" mode is an ascii shell, which you can use with the normal tty,…
cone1018
  • 13
  • 4
0
votes
0 answers

Windows 10 FT_OpenEx() API open error when insert/remove other USB device

We have device ""FT245R USB FIFO" USB to Seriel for communication from Windows 10 using D2xx driver. FT_OpenEx() API works without any issue. But whenever user unplug/plug new USB device(Mass storage device) , during that time FT_OpenEx() API failed…
Ashif
  • 1,652
  • 14
  • 30
0
votes
1 answer

How to communicate with a spi slave connected via FTDI USB correctly through the pyftdi lib?

I have the following problem: I want to read out a motion sensor from Invensense (ICM-20602) through the spi interface with the FTDI USB Spi converter connected to a Debian linux system with a python3 program. I set up all the necessary libraries…
andikarl
  • 23
  • 1
  • 5
0
votes
0 answers

how can i setup 2 serial entries (USB shield host/Bluetooth) on the same arduino card?

I am trying to get the ACM/USB to work in conjunction with the software serial port of the bluetooth using an arduino but combining both codes causes both functions to break. At first, I developed the code for the bluetooth part of the application,…
0
votes
1 answer

Why do i get Windows error 2 when i am using pyserial with arduino?

I send data from Python to Arduino MEGA 2560 via usb serial Interface. Everything worked for months without any problems. But a few days ago it just does not work anymore and always comes in the attachment error message. I have tried to change the…
Samuel
  • 53
  • 1
  • 6
0
votes
0 answers

Activity gets destroy while ActivityCompat.requestPermissions

I downloaded the "usb-serial-for-android" sample application from this link. https://github.com/mik3y/usb-serial-for-android Home screen displays the usb device and while clicking on it the moving to second screen to read the data which usb…
0
votes
0 answers

Libusb error for Input and Output under Ubuntu Linux - C programming for USB

I have made a C-program that should talk USB. But I have got an error -1 that says I have som Input/Output errors. My C code is here below. I going to explain how it works. The function getDevices() print out the vendor ID and the product ID and…
euraad
  • 2,467
  • 5
  • 30
  • 51
0
votes
2 answers

How to determine port number of Arduino for pySerial in macOS

I would like to know how to determine the port number of the Arduino nano that is connected to my macbook if I will use it in Python. Tools>Port in Arduino IDE /dev/cu.usbserial-A900afrI I have this code in my .py file import serial a =…
daesh
  • 21
  • 8
0
votes
3 answers

How to send data from USB device to DJI SDK?

So this might be a bit basic of a question, but I don't have much experience on the hardware side of things. I am using DJI Android Mobile SDK to communicate with a M600 flight controller and have a FTDI CU/TTY device I am trying to send info back…
user6068326