LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-23-2018, 06:12 PM   #1
KenHorse
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Rep: Reputation: 1
/dev/ttyUSB0 one way connection


I've been fighting a USB > serial converter on a Debian Stretch machine

dmseg confirms the adapter is connected to /dev/ttyUSB0 and I can
connect (via minicom) to it no problem. However, it only seems to
work on incoming data but won't send anything out

For example:

cat /dev/ttyUSB0 reads data coming in just fine but echo "test" >
/dev/ttyUSB0 doesn't send anything out

Same results within minicom

No permission issues as I'm doing this as root.

Thoughts?
 
Old 05-23-2018, 06:36 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
What type of device is connected to the serial adapter?
 
Old 05-23-2018, 06:40 PM   #3
KenHorse
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 1
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
 
Old 05-23-2018, 06:45 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
What is connected to the serial port?
 
Old 05-23-2018, 06:53 PM   #5
KenHorse
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 1
This particular computer has both ttyS0 and ttyS1 but nothing is connected to either.

(and ttyS0 works just fine in both directions)
 
Old 05-23-2018, 06:56 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Ok, you still have not answered what is connected to the usb serial adapter.
 
Old 05-23-2018, 07:30 PM   #7
KenHorse
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 1
Oh I misunderstood your question.

I have it connected to another computer (genuine serial port) running a terminal program with which to test the one using the USB > serial.

Null-modem cable of course
 
Old 05-23-2018, 09:49 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
While I have used the pl2303 adapters for many years without problems I've not use them with the latest distributions / kernels. I assume that you have tested the cable with ttyS0 and if you have tested the usb serial adapter with an older version and it works then the problem may lie with debian 9, the kernel with the pl2303 driver.
 
Old 05-24-2018, 01:50 PM   #9
KenHorse
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 1
Followup (and resolution) to this.

I tried a different converter I forgot I had (FTDI based) and it works just fine. So perhaps you're correct about the kernel. Or that the same affliction that affects Prolific-based units under Windows (counterfeit chips and/or drivers) ultimately affects Linux drivers as well...
 
Old 05-24-2018, 02:19 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by KenHorse View Post
Followup (and resolution) to this.

I tried a different converter I forgot I had (FTDI based) and it works just fine. So perhaps you're correct about the kernel. Or that the same affliction that affects Prolific-based units under Windows (counterfeit chips and/or drivers) ultimately affects Linux drivers as well...
Check permissions on the /dev/tty* devices. If you can read but can't write, that would indicate your user ID/device can't be written to. Do an ls -l on /dev/ttyUSB*, and see what it says
 
Old 05-24-2018, 02:31 PM   #11
KenHorse
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by TB0ne View Post
Check permissions on the /dev/tty* devices. If you can read but can't write, that would indicate your user ID/device can't be written to. Do an ls -l on /dev/ttyUSB*, and see what it says
As my original post stated, permissions were not an issue (/dev/ttyUSB0 is both writable and readable by root) and I made sure root was part of group dialup "just in case".

Last edited by KenHorse; 05-24-2018 at 02:33 PM.
 
Old 05-25-2018, 01:04 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Yes, it is possible that you have a "fake" or a PL-2303X device which is incompatible with the pl2303 driver. They look the same to the system but will not transmit data.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Stopping /dev/ttyUSB0 WoldemarShiPa Linux - Newbie 2 04-22-2014 01:41 AM
/dev/ttyUSB0 permissions joegumbo Slackware 6 03-11-2013 05:23 PM
/dev/ttyUSB0 is missing dalmat Linux - Newbie 4 12-03-2009 11:29 PM
/dev/ttyUSB0 and permissions mrsolo Linux - Software 1 11-14-2004 03:24 PM
/dev/ttyUSB0 js72 Linux - Networking 1 01-05-2003 06:02 AM

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

All times are GMT -5. The time now is 03:16 PM.

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