Hey, I'm connecting using pppd, connects fine but very slow; I used
it before and remember that there is a place to specify the default modem
speed. I have a 28.8 but it seems to be connected at 1200 or so.
> Hey, I'm connecting using pppd, connects fine but very slow; I used
> it before and remember that there is a place to specify the default modem
> speed. I have a 28.8 but it seems to be connected at 1200 or so.
Mathew E. Kirsch, CLSE (Certifiable Linux Systems Engineer)
*Opinions expressed herein do not reflect those of my employer.
"If you don't have time to read the FAQ, I don't have time to read it to
>>> Hey, I'm connecting using pppd, connects fine but very slow; I used
>>> it before and remember that there is a place to specify the default modem
>>> speed. I have a 28.8 but it seems to be connected at 1200 or so.
>>Use the "speed xxxxx" option in your pppd command line, or in
>>your /etc/ppp/options file. For maximum speed, use 115200.
> The option is just the rate. There is no option called 'speed'. At
> times, I wish that there was the requirement to use 'speed xxxx'
> rather than just 'xxxx'. However, that is not the way that things are.
>>Mathew E. Kirsch, CLSE (Certifiable Linux Systems Engineer)
> Does the certification cover PPP? :=)
opts="lock modem crtscts defaultroute"
stty 38400 -tostop
setserial $COMPORT spd_vhi
if /usr/sbin/chat -f /usr/sbin/logdat
/usr/sbin/pppd -detach $opts $COMPORT $LINESPEED &
echo "PPP crock of sh_t " 1>&2
) < /dev/$COMPORT > /dev/$COMPORT
This way, the script properly terminates more or less immediately,
independent of the pppd connection success. Convenient to code a
redialer script or whatever. The '-tostop' is... [-]tostop (np)
Stop background jobs that try to write to the terminal. (Don't ask)
The 'logdat' file is expect/send type format:
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
Hope this helps,
I'm using Redhat 4.1.
Is there a way to query the modem-to-modem speed of an existing PPP
connection? I know that I can send packets and do timings to
calculate this, but I'm wondering if there is some utility that already
exists which will give me this information.
By the way, I'm not interested in the speed returned by 'setserial',
since that's the speed of the port itself, not the modem-to-modem
Thanks in advance.