LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-27-2021, 10:41 AM   #1
Atoss
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Rep: Reputation: Disabled
Can't write to TTYs in Ubuntu 20.04 on RPi


I have at my hands several devices communicating to a Raspberry Pi over serial links. One of them connects to Pi's own UART, and thus is usually found at ttyS0. Another one connects over USB via an FT230X chip, and thus usually gets ttyUSB0. No idea what chip the 3rd one has, but it pretends to be CDC, and so usually lies at ttyACM0.
This setup worked perfectly with the slightly outdated installation of Raspbian 10 Buster that the Pi was running up to now. However, we're planning to move this particular system to Ubuntu 20.04, so I gave it a trial run. Much to my dismay, when running Ubuntu, I was unable to write to either ttyS0 or any ttyUSB* ports. To elaborate - I can open them from any program just fine (for example, minicom), and if the device at the other end is sending something, the Pi receives without problem, but trying to send anything from the Pi has no result - not even blinking the TX light on a spare FTDI USB-UART dongle I hooked up for tests. CDC-ACM devices still work fine. I should note that for the purposes of testing, I was logged in as root - and I checked the permissions on device files, looked like I should've had both read and write.

I'd be very thankful if someone could point me in the general direction of a solution. Failing that, does anyone happen to know a USB-UART that can do CDC? I have several spare CH340s and some oddball Prolific device, but these all get picked up as ttyUSB.
 
Old 08-27-2021, 11:56 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,764

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
On the highest level as I understand how it works.

Prolific and FTDI devices are recognized and use the USB-serial driver.

CDC ACM devices are recognized and use the cdc-acm driver.

From the users stand point they both behave the same but are different hardware and its possible there could be something wrong with the usb-serial driver in Ubuntu's arm version.

With raspian/Pi OS I have tried both FTDI and Prolific devices and they work fine but I never have tried running something different yet.

There are some notes on how to switch the drivers to generic but without flow control would not be final solution.
https://www.kernel.org/doc/html/late...sb-serial.html
 
1 members found this post helpful.
Old 09-16-2021, 12:22 PM   #3
Atoss
LQ Newbie
 
Registered: Jul 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Excuse the slight necromancy - just figured I should leave a response to michaelk and the poor soul reading this some 7 years later on the night before a deadline. Long story short, it was decided that getting stuff running on Ubuntu has relatively low priority, so there has been no time to try out the generic drivers yet - will update when it finally happens.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GNOME 3.33.2 Released, Krita 4.2 Debuts, RPi Camera Modules on RPi Zeros Power the Penguin Watch Project, Intrinsyc Switches Its Home LXer Syndicated Linux News 0 05-30-2019 06:23 AM
Using Samba from rpi for 2 external drives, cannot get write access turealis Linux - Newbie 15 04-07-2019 05:57 PM
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 03:03 PM
Keyboard delay in ttys (from 2.6.28-16-generic to 2.6.31.6 on Ubuntu 9.04 Jaunty) anon05 Linux - Kernel 2 01-01-2010 07:30 AM
No TTYs, can't Ctrl-Alt-F# ! humbletech99 Debian 2 11-15-2005 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration