: Huh? setserial baud_base 38400 spd_vhi

: Huh? setserial baud_base 38400 spd_vhi

Post by CK H » Wed, 20 Aug 1997 04:00:00



Hi there,

I saw a few posts about using setserial but not to use 115200 as the
baud rate because it isn't actually valid (something along those
lines),

I have been having problems with not being to connect to my ISP at the
highest speed possible. (I'm using chat indepedent of pppd -- I get
chat to redial until connected and then fire up pppd).

When I use chat by itself, it ALWAYS only connects at 9600. :-(((

When I get pppd to use chat it connects at 33600.

My question is: what settings should I use with setserial for a 33600
modem??

A few variations I've tried before using chat by itself:
baud_base 38400 spd_vhi gives me 28800 (getting there!)
baud_base 57600 spd_vhi gives me 19200 (huh?)
baud_base 115200 gives me 9600 (grrrr)

I'd be really grateful for any help!
Thanks

---

ICQ Web Pager       : http://wwp.mirabilis.com/663369
Clan Hades' Orphans : http://www.pobox.com/~hades.orphans (Maintained by BaM)
-/- Please reply by email as well -/-

"Where would you like to have already been?"

 
 
 

: Huh? setserial baud_base 38400 spd_vhi

Post by Dirk Foersterli » Sat, 23 Aug 1997 04:00:00



>A few variations I've tried before using chat by itself:
>baud_base 38400 spd_vhi gives me 28800 (getting there!)
>baud_base 57600 spd_vhi gives me 19200 (huh?)
>baud_base 115200 gives me 9600 (grrrr)

Heh. I hever had much luck using "baud_base". My settings for kernels
1.2.x were:

setserial /dev/cua? spd_vhi

(insert your port and any other options you need)

With kernel 2.0.x I can tell newer programs to use 115200 directly. I'm
calling pppd 2.2.0 with "115200" as argument.

 -dirk

--
                   D i r k   F "o r s t e r l i n g                  

                           -------------
    "Das ist aber gerade e hoch 3 z. Das sieht doch jeder!" - R.K.

 
 
 

: Huh? setserial baud_base 38400 spd_vhi

Post by peng.. » Sat, 23 Aug 1997 04:00:00





>>A few variations I've tried before using chat by itself:
>>baud_base 38400 spd_vhi gives me 28800 (getting there!)
>>baud_base 57600 spd_vhi gives me 19200 (huh?)
>>baud_base 115200 gives me 9600 (grrrr)

>Heh. I hever had much luck using "baud_base". My settings for kernels
>1.2.x were:

>setserial /dev/cua? spd_vhi

>(insert your port and any other options you need)

>With kernel 2.0.x I can tell newer programs to use 115200 directly. I'm
>calling pppd 2.2.0 with "115200" as argument.

> -dirk

>--
>                   D i r k   F "o r s t e r l i n g                  

>                           -------------
>    "Das ist aber gerade e hoch 3 z. Das sieht doch jeder!" - R.K.

Part of the confusion lies in knowing what speeds apply to the modem and
which ones apply to the serial port that runs the modem.

Setserial only manipulates your serial port.  When running a modem, you
probably want your serial port to run as fast as possible in case everything
is optimum and you _do_ happen to get a 4:1 compression ratio running at
28,800.  ( 28800 x 4 = 115200 ).  So set baud_base 115200 and if you really
want to run it slower, select a divisor to cut the speed down.  

The spd_vhi, spd_hi, spd_normal options just make the serial port run at
115200, 57600, 38400, respectively,rrants 38400.

The speed of you oi altogether different.  Setseing altogether different.  Setserial can't
touch it.  Speeds like 28,800, 14,400, 9600, 19,200, etc are modem speeds.
If you program the right default profile into your modem, you should just
be able to give it ATZ and it will set it's speed, compression, etc.  

Minicom works fine if you just want to talk to your modem and experiment
with the AT command set.  dip also has a terminal mode that works fine.

Good luck!