Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Serial Port Help
@ 2002-09-26  0:23 netflyer
  2002-09-26  9:14 ` fred006
  0 siblings, 1 reply; 5+ messages in thread
From: netflyer @ 2002-09-26  0:23 UTC (permalink / raw)


Hello All,

I have an older Digital UNIX workstation model 255 running Digital UNIX v4.0
at work that runs a machine. I am in the process of adding a serial port
devise that will adapt ASCII to an AS/400 socket protocol.

Now my question (not being all so familiar with UNIX is how do I check the
serial port settings and if they aren't what I need how would I change them?
Such as baud rate, stop bits etc.

Thanks

Brian




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Serial Port Help
  2002-09-26  0:23 Serial Port Help netflyer
@ 2002-09-26  9:14 ` fred006
  2002-09-26 23:01   ` netflyer
  2002-09-27  0:32   ` netflyer
  0 siblings, 2 replies; 5+ messages in thread
From: fred006 @ 2002-09-26  9:14 UTC (permalink / raw)


"netflyer" <nomail@spam.com> wrote in message news:<Lrsk9.6655$Cz.669973@twister.neo.rr.com>...
> Hello All,
> 
> I have an older Digital UNIX workstation model 255 running Digital UNIX v4.0
> at work that runs a machine. I am in the process of adding a serial port
> devise that will adapt ASCII to an AS/400 socket protocol.
> 
> Now my question (not being all so familiar with UNIX is how do I check the
> serial port settings and if they aren't what I need how would I change them?
> Such as baud rate, stop bits etc.
> 
> Thanks
> 
> Brian

man stty

Cheers

Emmanuel


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Serial Port Help
  2002-09-26  9:14 ` fred006
@ 2002-09-26 23:01   ` netflyer
  2002-09-27  0:32   ` netflyer
  1 sibling, 0 replies; 5+ messages in thread
From: netflyer @ 2002-09-26 23:01 UTC (permalink / raw)



"fred006" <echoquet@wanadoo.fr> wrote in message
news:8a7c01bb.0209260114.501b2518@posting.google.com...
> "netflyer" <nomail@spam.com> wrote in message
news:<Lrsk9.6655$Cz.669973@twister.neo.rr.com>...
> > Hello All,
> >
> > I have an older Digital UNIX workstation model 255 running Digital UNIX
v4.0
> > at work that runs a machine. I am in the process of adding a serial port
> > devise that will adapt ASCII to an AS/400 socket protocol.
> >
> > Now my question (not being all so familiar with UNIX is how do I check
the
> > serial port settings and if they aren't what I need how would I change
them?
> > Such as baud rate, stop bits etc.
> >
> > Thanks
> >
> > Brian
>
> man stty
>
> Cheers
>
> Emmanuel

Thanks, I appreciate the help.

Regards

Brian




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Serial Port Help
  2002-09-26  9:14 ` fred006
  2002-09-26 23:01   ` netflyer
@ 2002-09-27  0:32   ` netflyer
  2002-09-27  8:45     ` Emmanuel Choquet
  1 sibling, 1 reply; 5+ messages in thread
From: netflyer @ 2002-09-27  0:32 UTC (permalink / raw)



"fred006" <echoquet@wanadoo.fr> wrote in message
news:8a7c01bb.0209260114.501b2518@posting.google.com...
> "netflyer" <nomail@spam.com> wrote in message
news:<Lrsk9.6655$Cz.669973@twister.neo.rr.com>...
> > Hello All,
> >
> > I have an older Digital UNIX workstation model 255 running Digital UNIX
v4.0
> > at work that runs a machine. I am in the process of adding a serial port
> > devise that will adapt ASCII to an AS/400 socket protocol.
> >
> > Now my question (not being all so familiar with UNIX is how do I check
the
> > serial port settings and if they aren't what I need how would I change
them?
> > Such as baud rate, stop bits etc.
> >
> > Thanks
> >
> > Brian
>
> man stty
>
> Cheers
>
> Emmanuel

Well that command is for printing, but you did send me in the right
direction. I found that I need to use the slattach command and the two
serial ports are tty00 and tty01.

Thanks

Brian




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Serial Port Help
  2002-09-27  0:32   ` netflyer
@ 2002-09-27  8:45     ` Emmanuel Choquet
  0 siblings, 0 replies; 5+ messages in thread
From: Emmanuel Choquet @ 2002-09-27  8:45 UTC (permalink / raw)


> Well that command is for printing, but you did send me in the right
> direction. I found that I need to use the slattach command and the two
> serial ports are tty00 and tty01.
> 
> Thanks
> 
> Brian

No, it is for setting a tty as well, here is an example on
setting/unsetting parity on /dev/tty00
toybox-26-# tty
/dev/pts/6   
toybox-22-# stty -af /dev/tty00
speed 9600 baud; 0 rows; 0 columns
erase = ^H; werase = <undef>; kill = ^U; intr = ^C; quit = ^\
susp = ^Z; dsusp = <undef>; eof = ^D; eol = <undef>; eol2 = <undef>
stop = ^S; start = ^Q; lnext = <undef>; discard = <undef>; reprint =
<undef>
status = <undef>; time = 0; min = 1
-parenb -parodd cs8 -cstopb -hupcl cread clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
-iuclc
ixon -ixany -ixoff -imaxbel
isig icanon -xcase echo -echoe -echok -echonl -noflsh -mdmbuf -nohang
-tostop -echoctl -echoprt -echoke -altwerase -iexten -nokerninfo
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tabs -onoeot
dtr = on; dsr = off; rts = on; cts = off; dcd = off
toybox-23-#
toybox-23-# stty -af /dev/tty00 | grep paren
-parenb -parodd cs8 -cstopb -hupcl cread clocal -crtscts
toybox-24-#
toybox-24-# stty -f /dev/tty00 parenb
toybox-25-#
toybox-25-# stty -af /dev/tty00 | grep paren
parenb -parodd cs8 -cstopb -hupcl cread clocal -crtscts
toybox-26-#
toybox-26-# 

cheers


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-27  8:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-26  0:23 Serial Port Help netflyer
2002-09-26  9:14 ` fred006
2002-09-26 23:01   ` netflyer
2002-09-27  0:32   ` netflyer
2002-09-27  8:45     ` Emmanuel Choquet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox