Skip to main content

Questions tagged [ttyusb]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

Differentiate Equal USB Devices

I have the following problem. Im developing an embedded system and I have two USB to UART devices (FT232). The problem is that I need to differentiate them because sometimes when booting one shows up ...
unicorn_on_caf's user avatar
4 votes
1 answer
484 views

job control doesn't work when I try to set up getty over serial

I am trying to set up getty to log in over serial (mainly as an experiment). With almost any configuration, the same thing happens. If my default shell is bash, I get this message after I log in: -...
Alex028502's user avatar
0 votes
0 answers
351 views

Rename a USB device for static name without udev rule

I have an Arduino board connected to a USB port and recognized by Ubuntu as the ttyACM0 device. For programming reasons on the Arduino site, the device should be visible on Linux as the ttyUB0 device. ...
Gregosh's user avatar
0 votes
1 answer
484 views

Virtual COM port using only USB cable

I have seen that it is possible to connect two computers by USB cable and make a virtual ethernet bridge or something like that. My question is, can we do something similar but configure the ...
DEKKER's user avatar
  • 988
0 votes
1 answer
306 views

ttyUSB ordering

I am working on a project involving the development of a device that interfaces with multiple ttyUSB ports, specifically 16 of them. It's important to note that Linux handles ttyUSB ports differently ...
Saman.K's user avatar
0 votes
0 answers
76 views

Why is the serial communication with this device failing?

I have two serial to USB adapters connected to my computer, each one is connected to a microcontroller. What I want to do is send commands to each microcontroller through UART (I'm using minicom), but ...
EmTor's user avatar
  • 1
0 votes
2 answers
186 views

I would like to find a way to match the output of lsusb to the /dev/ttyUSB* names

Faced with: root@conserver01:/home/owen# lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M |__ Port 1: ...
Owen DeLong's user avatar
2 votes
1 answer
741 views

USB LTE modem without MAC address?

I'm connecting a linux machine using a nowadays popular Huawei Brovi E3372-325 LTE USB Stick to the internet. The special requirement is that incoming ssh/ping/NTP/... connections must reach my linux ...
gorogm's user avatar
  • 23
0 votes
1 answer
42 views

Lost PPP Connection between Debian <-> PDA / HandHeld using SynCE

I am currently able to connect a handheld to the PC running Linux with a very old Ubuntu 14.04, adding repository PPA for SynCE to source list. Now, the goal is to update the operating system, I chose ...
Gustavo's user avatar
  • 71
0 votes
1 answer
212 views

Howto prevent UDEV wrongly enqueues remove event for device ppp?

Connecting a PDA device with Debian Buster using SynCE, USB serial device is recognized and connects with ttyUSB bus, obtains an IP address and disconnects after a few seconds (two, max three). This ...
Gustavo's user avatar
  • 71
0 votes
0 answers
3k views

Cannot access '/dev/ttyACM0': No such file or directory

So i need to use '/dev/ttyACM0'. I try to show all USB option available with: ~$ sudo dmesg | grep tty, and i get [ 0.098062] printk: console [tty0] enabled [ 291.890275] cdc_acm 2-1.3:1.0: ...
Kon's user avatar
  • 1
3 votes
2 answers
3k views

Why isn't my CH341a Device Getting Assigned a Device Path (/dev/ttyUSB0)

I have a CH341a Programmer and when I plug it into a usb port everything seems to be working except it doesn't get assigned to a Device Path (eg /dev/ttyUSB0). Does anyone have any clue as to why this ...
dlowrie290's user avatar
0 votes
3 answers
6k views

How to use sh script to send hex data to /dev/ttyUSB0?

I'm working with a paired down embedded Linux installation that does not support bash, only sh across a ssh terminal. I need to send hex data to a connected USB device /dev/ttyUSB0. I'm able to do ...
Jim Fell's user avatar
  • 265
1 vote
1 answer
2k views

How to detect the spawn failure in expect command

I wrote this script: #!/bin/sh expect -c " spawn cu -l /dev/ttyUSB0 -s 115200 expect \"foo\" send \"bar\" " echo $? And I run it without /dev/ttyUSB0: $ ls /dev/...
takumiando's user avatar
3 votes
1 answer
14k views

/dev/ttyUSB0 is available but after try to call it's gone

If I connect my ESP32 to my Ubuntu ( 22.04 ) by USB it is available in /dev/ttyUSB0. If I run a call - for example sudo ampy --port /dev/ttyUSB0 ls the error message apears Traceback (most recent call ...
michael-mammut's user avatar
2 votes
1 answer
2k views

Serial flow control issue with ttyUSB0

This is related to a previous thread I created about a month ago and which was answered. Today I am attempting to setup a serial console login prompt on a laptop running Ubunutu 20 with a Belkin ...
Albert Elmore's user avatar
2 votes
0 answers
66 views

Are there any desktops (intel or amd) or pci-e cards that can support more than 16 USB devices per port?

I have a custom device from a manufacture that creates 32 ttyUSB devices. But this doesn't work with pc usb's controller because this generates error "not enough host controller resources for new ...
knodi's user avatar
  • 21
0 votes
3 answers
961 views

Trouble connecting UART device via USB Port

Im trying to communicate with a couple of UART devices via USB. A HT-06 bluetooth module and a GY-NEO6MV2 GPS module. I am using a Prolific PL2303 USB cable. As a backup I also have a Silicon Labs ...
gri2a's user avatar
  • 1
0 votes
1 answer
1k views

script command from socat - /dev/ttyUSB0

A usb-modem connected to my Raspberry PI with Raspian lite. I've finally found a way to make it connect by issuing these two steps: sudo socat - /dev/ttyUSB1 and from within Socat I just write: AT^...
JUlinder's user avatar
  • 103
0 votes
1 answer
467 views

What data is actually being sent when you write to a serial port?

If I want to send data to a device serially from my PC, there are 3 things that must be done: I must connect a USB to serial converter (FTDI breakout or similar) to the USB port of the PC The target ...
Kalcifer's user avatar
  • 141
1 vote
0 answers
2k views

Can't open serial connection to device over usb

I'm trying to connect to a serial device over usb with my PC, but whatever I do, it won't succeed. The device is a STM32 based board. I'm on arch, my user is in uucp and lock groups. It doesn't matter ...
Hersi's user avatar
  • 21
0 votes
1 answer
47 views

ttyUSB repeatable names

Is there a way to have the USB ttys get a repeatable name like network interfaces have? For example, usb to ethernet adapters used to be called "usb0" and such but now have a name based on ...
Francois's user avatar
  • 167
2 votes
1 answer
2k views

Why USB connected UPS device does not show up as /dev/ttyUSB0?

I'm connecting a Legrand Keor SP UPS device via USB to my Debian linux. The problem is that /dev/ttyUSB0 is not created therefore I cannot communicate with the device. After connecting I can see it ...
adamsfamily's user avatar
5 votes
3 answers
10k views

How to set /dev/ttyUSB device on a specific constant device number?

I use several Linux servers hosts, in which multiple serial-to-USB links are plugged in. They look like /dev/ttyUSBx devices, where x is a number starting from 0. Client devices are often rebooted or ...
Tooluka's user avatar
  • 51
0 votes
0 answers
2k views

Garbled serial console output even with correct baud rate

I'm trying to connect to a headless NAS box via serial console, and have reached a wall that even Google can't seem to help with. I have a USB to 3.5mm serial cable, with the USB end going into my ...
Wuubb's user avatar
  • 1
1 vote
1 answer
5k views

How to enter message in serial communication using screen

I use screen \dev\ttyUSB0 command to connect to virtual serial port. It prints out the incoming communication, but I dont know how to send message back to the connected device. Thanks for answers ...
EFK's user avatar
  • 25
0 votes
2 answers
4k views

How to determine which TTY channel is mapped to specific USB port

I have a very specific question. On my laptop with only USB and no RS232, I can see which bus & port I’m on but I haven’t been able to find the command that tells me which tty channel it is mapped ...
blackfurrydogs's user avatar
0 votes
1 answer
3k views

Send binary file to ttyUSB0 serially in linux

I have a binary file(obtained from assembly code). I need to transfer this file to an fpga serially via ttyUSB0. I read in some posts that using cat and echo data can be transferred to ttyS0. echo -...
karthik's user avatar
0 votes
0 answers
168 views

picking specific ttyUSBx of a device

I'm trying to improve a script to connect my cellular modem in Debian Linux. This modem enumerates 5 USB ports and I need to use specific ones for specific purposes(One for initiating the data ...
Daniel Near's user avatar
0 votes
0 answers
395 views

Communication Device Class in Linux. Speed limit

Hi and happy new year. I try to use Communication Device Class (virtual com) connection over the USB between stm32 board and laptop. On the laptop it is available as /dev/ttyACM0 device. I open it ...
Serg Sz's user avatar
0 votes
2 answers
5k views

ttyACM0 connected but not showing received data

I have a STM32F4 microcontroller, with the USB interface, I connected it to the raspberry pi. When connected, it shows up as /dev/ttyACM0. I send some chars every second from the device. In windows, ...
lode's user avatar
  • 103
2 votes
0 answers
713 views

How to TTY on Debian into Huawei e5573s

i want to establish serial connection com port to Huawei e5573s connected via USB, so i can send some AT commands at it as far as i understand, i need to establish a TTY connection to the device on ...
unknown_login's user avatar
3 votes
1 answer
687 views

Is there a limit to the number of FTDI connections on Debian 9?

I have a Debian 9 box, and if I plug in 1 of my devices, its UART shows up in both lsusb and in the output of ls /sys/bus/usb-serial/devices/. When I attach 2, the 2nd one always shows up. But for ...
Alex Shroyer's user avatar
1 vote
0 answers
656 views

Get the USB port 'by path' to autofill in udev rules file

I'm trying to improve on my udev rules for USB serial devices or USB sound cards. I want the USB port number to be populated in the ENV{ID_PATH} field without having to edit it myself (this becomes ...
skrowten_hermit's user avatar
2 votes
0 answers
1k views

USB Keyboard doesn't work until I manually inspect its device file

So I have a USB Keyboard that I built myself which runs the qmk keyboard firmware. I would preface this by saying that it's possible that this is a bug in the keyboard firmware. However, since the ...
evamvid's user avatar
  • 718
2 votes
1 answer
11k views

udev rules for USB serial 'by path' not working

I have more than 2 serial devices enumerated by FTDI driver as /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 etc. On reboot, these may get jumbled up in any other order. Also, I may replace/swap these ...
skrowten_hermit's user avatar
1 vote
0 answers
56 views

Connect Serial Port through COM port or USB adapter (different models)

I use a program where I need to specify a COM port. Can I connect via COM port (/dev/ttyS0) or through different models of USB-RS232 adapters (on /dev/ttyUSB0), configured so they always bind to the ...
rbr86's user avatar
  • 11
4 votes
1 answer
3k views

How to filter wireshark output data to only view ttyUSB0 data?

I'm Using Wireshark on Ubuntu 18.04 to monitor my ttyUSB0 USB port output as I'm developing something that requires that. On the website, I found how to get it to sniff USB ports but the output is ...
Moe's user avatar
  • 171
1 vote
0 answers
134 views

Set Sierra modem to packet switching via AT Command using ubuntu live CD

Lifebook E5440 has WWAN Modem Sierra EM8805 Multi SIM - Phone is occupied when Notebook is online i know this problem from lenovo notebooks Win10 doesnt let me set the config cause there is no com ...
cuilster's user avatar
0 votes
1 answer
7k views

ttyUSB? No, ttyACM. How can I assign the usb-device to ttyACM, not ttyUSB?

I'd like to use usb-device with ttyACM not ttyUSB. I had a usb-device, SAMD21 board. And I connected it to linux (centos 6.5, 2.6.32-573.el6.x86_64) computer. The computer recognized it (lsusb) but ...
H. Yim's user avatar
  • 1
2 votes
2 answers
1k views

How to remove device id from manually entered usb-serial driver

I previously followed the answer in this question: Attaching USB-Serial device with custom PID to ttyUSB0 on embedded Now, I need to revert that step so that the device id I echoed to new_id doesn't ...
kay's user avatar
  • 123
2 votes
1 answer
1k views

How to find out two usb devices are on the same hub

I have a microcontroller board which has a USB hub to which several CP2108 USB to serial modules are connected and one PIC Microcontroller is connected. The USB hub is connected to Laptop USB Port.. ...
md.jamal's user avatar
  • 291
8 votes
1 answer
42k views

PL2303/PL2303X USB-Serial driver

OS: Linux Mint 19 Tara (also tested on Ubuntu 18.04 LTS and Ubuntu 14.04 LTS) Kernel: 4.15.0-20-generic I have a USB-Serial adapter with the PL2303X chip to connect hardware to a Linux host. The ...
kjhe11e's user avatar
  • 121
0 votes
0 answers
21 views

Automatic rights change when virtual COM ports are enumerated

I am developing a uC device which enumerates as three virtual COMs (actually it is a composite device). Everything works perfect except one small thing. Those ports belong to the dialout group and can ...
0___________'s user avatar
0 votes
1 answer
4k views

Error, cannot bind to the specified serial port /dev/ttyUSB0 during boot using systemd

I am trying to run a launch file during boot up using systemd. The launch file launches rplidar. When I run directly the .sh file it's launching the lidar. $ systemctl status rosCore.service ● ...
BhanuKiran's user avatar
8 votes
2 answers
9k views

Run service after ttyUSB0 becomes available

I made a systemd service that launches a simple .sh to read data from a serial connection. If I run the service manually after booting it works fine, but when I try to run it automatically at boot it ...
sjaak's user avatar
  • 604
-1 votes
1 answer
3k views

ttyACM or ttyUSB device detection

I develop a linux application, which works with ttyUSB*/ttyACM* devices. Now I have a task: I have to find a way, how to restore communication with device, when connection is temporary lost. Now I see ...
Олег Сидоров's user avatar
3 votes
1 answer
3k views

Why is cat /dev/ttyUSB0 producing an endless repeat?

I would like to use cat /dev/ttyUSB0 or something similar to monitor serial communication happening through my USB-serial adapter. I am successfully able to send serial commands from linux to a ...
user391339's user avatar
1 vote
1 answer
3k views

How to assign symlinks to serial devices from usb-to-serial device CP2105?

I have board with CP2105. It is usb-to-serial bridge with two uart interfaces on one usb port. I've read some guides, and documentation of UDEV, but I'm stuck on creating symlinks for them. I want ...
Staszek's user avatar
  • 165
0 votes
0 answers
97 views

How to bind USB<>Serial HUB under a static name [duplicate]

I have an USB<-->Serial hub with 4 serial ports. It is always connected to the same USB port and I would like to set a static name for its ports instead of ttyUSB*. If I run the command dmesg I ...
Max Markson's user avatar