LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-17-2010, 06:35 AM   #1
Connel
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
Can't get screen to work with /dev/ttyS0 (Fine on ttyUSB0)


Hi Linux folk,

I have revived an old Dell D610 by installing Ubuntu. (What an installation process, that's how it should be done.)

I am using the machine as a console to connect to a security device on a client site. I need to use both the built in hardware serial port, and a second USB serial port.

I use "screen /dev/ttyS0", and "screen /dev/ttyUSB0".

The USB screen works fine. The ttyS0 one does not. (I tested the port under windows, with Hyperterminal, and it works fine - i looped the two ports together, and could talk between them.)

One thing I did notice, when I run the info command (Ctrl-A - I) in each screen, while connected to the device, is a difference in the CTS flag...

ttyUSB0: +flow UTF-8 {RTS (CTS) DTR !DSR (!CD) }

ttyS0: +flow UTF-8 {RTS (!CTS) DTR !DSR (!CD) }

I tried running the screen command with -fn for no flow control, but no joy. Also, I used a stty command to set -crtscts on the /dev/ttyS0, but still no joy.

I suspect it's to do with flow control, but can't get it working. Can any kind soul who is old enough to have experience with serial comms help me out?

Cheers,
Con
 
Old 02-17-2010, 11:01 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Hmm, never seen screen used that way before. What I have done quite a bit is run a C-kermit session inside of Gnu screen, and that works just fine for serial or IP connections. I prefer the flexibility and configurability that C-kermit offers for serial comm's applications. minicom is probably already installed on your host, and may work just as well.
--- rod
 
  


Reply

Tags
command, linux, screen, serial, ubuntu



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
/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
[lirc] No output from irw, but cat /dev/lirc0 and mode2 /dev/lirc0 work fine Meson Linux - Software 0 10-20-2009 11:28 AM
/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 - Distributions > Ubuntu

All times are GMT -5. The time now is 04:39 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