Re: serial port speed

1997-09-26 Thread Dave Cinege
On Thu, 25 Sep 1997 12:21:15 +0100 (BST), David Wright wrote:

>On Wed, 24 Sep 1997, Dave Cinege wrote:
>
>> On Wed, 24 Sep 1997 01:23:03 +1000, Lawrence wrote:
>> 
>> >Anyone knows the default serail port speed?  It is 38,400bps?  Which
>> >file responsible for this setting?  I want to increase it to 115,200bps.
>> 
>> 38.4K, yes, /etc/rc.boot/0setserial, use the spd_vhi option.
>
>Perhaps there's some history here. I installed Debian 1.3 on a 1997 
>pentium and   setserial -a /dev/ttyS?   all say that baud_base is 115200
>and Flags: spd_normal...
>Both mgetty and minicom will satisfactorily handle 115200, so all this 
>messing with spd_vhi seems to be a thing of the past. Presumably, by now,
>any software that can't ask for >38400 should have a bug report filed 
>against it.

Uhhum.Some of us use redirection and piping of the serial ports. 

-
http://www.psychosis.com/emc/   Elite MicroComputers   908-541-4214
http://www.psychosis.com/linux-router/  Linux Router Project


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: serial port speed

1997-09-25 Thread Dima
David Wright wrote:
 
 > Perhaps there's some history here. I installed Debian 1.3 on a 1997 
 > pentium and   setserial -a /dev/ttyS?   all say that baud_base is 115200
 > and Flags: spd_normal...
 > Both mgetty and minicom will satisfactorily handle 115200, so all this 
 > messing with spd_vhi seems to be a thing of the past. Presumably, by now,
 > any software that can't ask for >38400 should have a bug report filed 
 > against it.

Unless you care about POSIX compliance.  IIRC baud_base and whatever's the 
option to specify divisor allow you to use any clock frequency on your
serial port -- as long as hardware supports it.  Very neat, but non-POSIX.
Which means if software relies on it, it's not POSIX compliant. Conversely, 
software that asks for 38400 is POSIX compliant and (hopefully) portable.
So, you're suggesting that POSIX compliance is a bug, and so is
portability :-) -- well, not exactly: that absence of non-standard and
non-portable features is a bug.  

Just kidding
-- 
Dimitri
emaziuk at curtin dot edu dot au
Please CC to me when replying to Usenet or a list



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: serial port speed

1997-09-25 Thread David Wright
On Wed, 24 Sep 1997, Dave Cinege wrote:

> On Wed, 24 Sep 1997 01:23:03 +1000, Lawrence wrote:
> 
> >Anyone knows the default serail port speed?  It is 38,400bps?  Which
> >file responsible for this setting?  I want to increase it to 115,200bps.
> 
> 38.4K, yes, /etc/rc.boot/0setserial, use the spd_vhi option.

Perhaps there's some history here. I installed Debian 1.3 on a 1997 
pentium and   setserial -a /dev/ttyS?   all say that baud_base is 115200
and Flags: spd_normal...
Both mgetty and minicom will satisfactorily handle 115200, so all this 
messing with spd_vhi seems to be a thing of the past. Presumably, by now,
any software that can't ask for >38400 should have a bug report filed 
against it.
--
David Wright, Open University, Earth Science Department, Milton Keynes MK7 6AA
U.K.  email: [EMAIL PROTECTED]  tel: +44 1908 653 739  fax: +44 1908 655 151


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: serial port speed

1997-09-24 Thread Dave Cinege
On Wed, 24 Sep 1997 01:23:03 +1000, Lawrence wrote:

>Anyone knows the default serail port speed?  It is 38,400bps?  Which
>file responsible for this setting?  I want to increase it to 115,200bps.

38.4K, yes, /etc/rc.boot/0setserial, use the spd_vhi option.
-
http://www.psychosis.com/emc/   Elite MicroComputers   908-541-4214
http://www.psychosis.com/linux-router/  Linux Router Project


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: serial port speed

1997-09-23 Thread Rob Browning
Lawrence <[EMAIL PROTECTED]> writes:

> Anyone knows the default serail port speed?  It is 38,400bps?  Which
> file responsible for this setting?  I want to increase it to 115,200bps.

Most versions of unix only support specifying the modem speed up to
38400 (for historical reasons).  So to specify a higher speed, you
have to tell the OS to use a higher speed when something like pppd
asks for 38400.  This is accomplished with setserial, see the man page
for details, but you're looking for the spd_hi and spd_vhi options.

I put these commands in an /etc/rc.boot/0setserial-local file so that
they happen every time I boot.

# !/bin/sh
# File: /etc/rc.boot/0setserial-local

STD_FLAGS="spd_vhi"

SETSERIAL=/bin/setserial

echo -n "Local serial port config"

${SETSERIAL} -b /dev/ttyS0 ${STD_FLAGS}
${SETSERIAL} -b /dev/ttyS1 ${STD_FLAGS}

echo "done."

${SETSERIAL} -bg /dev/ttyS{0,1}

-- 
Rob


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


serial port speed

1997-09-23 Thread Lawrence
Anyone knows the default serail port speed?  It is 38,400bps?  Which
file responsible for this setting?  I want to increase it to 115,200bps.

Lawrence


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .