Operating System - HP-UX
1833703 Members
3287 Online
110062 Solutions
New Discussion

testing a serial input tty device

 
Steve Longenecker
Frequent Advisor

testing a serial input tty device

I am looking for a simple test for a serial input tty device. tail -f /dev/tty# does not seem to work. Looking for suggestions.
5 REPLIES 5
Hai Nguyen_1
Honored Contributor

Re: testing a serial input tty device

Steve,

You can use the "write" command to test it. Man write for more details.

Hai
Darren Prior
Honored Contributor

Re: testing a serial input tty device

Hi,

Kermit is probably the easiest method to use. Issue the following commands once you're in Kermit:

set line /dev/ttyblah
set speed 9600
connect

Then do whatever you need to get your serial input device to send data, and you should see it on the screen. There's loads of other settings you can change within Kermit, but the defaults should be sufficient.

regards,

Darren.
Calm down. It's only ones and zeros...
Helen French
Honored Contributor

Re: testing a serial input tty device

You can use "kermit" command to test it:

# man kermit
Life is a promise, fulfill it!
Olivier Decorse
Respected Contributor

Re: testing a serial input tty device

The command i use is simply :
cat /dev/tty#
and i works fine !!
Olivier.
They say "install windows 2k, xp or better", so i install unix !
Michael Steele_2
Honored Contributor

Re: testing a serial input tty device

'tail -f' is a realtime read of the serial device. While 'cat' is a batch write. For example:

cat file > /dev/tty#

There should be both an input and output device assoicated to the /dev/tty#.

What is the exact device? Modem? Terminal? Terminals are configured in /etc/inittab.

Need more info.
Support Fatherhood - Stop Family Law