[1484] in linux-net channel archive
Re: My ppp is s-l-o-w
daemon@ATHENA.MIT.EDU (Tim)
Tue Dec 5 01:46:04 1995
Date: Mon, 4 Dec 1995 13:01:22 -0600 (CST)
From: Tim <tjbynum@major.cei.net>
To: Shawn Ruttledge <ecloud@goodnet.com>
cc: linux-net@vger.rutgers.edu, linux-ppp@vger.rutgers.edu
In-Reply-To: <199512031011.DAA07536@goodguy.goodnet.com>
On Sun, 3 Dec 1995, Shawn Ruttledge wrote:
> ...it tops out at ~500 bytes/sec. on FTP and is usually less. I have a
> 28.8 and the connect tones sound like they're connecting at 28.8, but
> my question is, how do I find out what speed is being used over the COM
> port to the modem? I have it set to 115200 on the command line to pppd
> but does that always override whatever has been set as a default speed for
> the port? I've got a sneaking suspicion it isn't. Or, what else could be
> slowing it down? It flies when I run Winsock under Windows (2 or 3k/sec)
> so it's not just the net or my provider.
> --
> _______ KB7PWD @ N7MRP.AZ.US.NOAM ecloud@goodnet.com
> (_ | |_) html: http://www.goodnet.com/~ecloud
> __) | | \__________________________________________________________________
> * RISC * ARS * C++ * cyberspace * fusion * let freedom ring * Interpedia *
>
>
Try the following:
while your script is running type tail -f /var/adm/messages (assuming
your logging this info) this will tell you what your are connecting at.
Mine shows the following:
Dec 4 11:49:28 wallybox pppd[80]: pppd 2.1.2 started by root, uid 0
Dec 4 11:49:29 wallybox chat[81]: send (ATM^M)
Dec 4 11:49:29 wallybox chat[81]: expect (OK)
Dec 4 11:49:29 wallybox chat[81]: ATM^M^M
Dec 4 11:49:29 wallybox chat[81]: OK -- got it
Dec 4 11:49:29 wallybox chat[81]: send (ATDT1234567^M)
Dec 4 11:49:30 wallybox chat[81]: expect (CONNECT)
Dec 4 11:49:30 wallybox chat[81]: ^M
Dec 4 11:50:03 wallybox chat[81]: ATDT1234567^M^M
Dec 4 11:50:03 wallybox chat[81]: CONNECT -- got it
Dec 4 11:50:03 wallybox chat[81]: send (^M)
Dec 4 11:50:03 wallybox chat[81]: expect (ogin:)
Dec 4 11:50:03 wallybox chat[81]: 115200^M
If your connection is not at 115200 then try the following.
Try running these and then try your script again and see if you get any
further (or faster ;)
/bin/setserial /dev/cua1 spd_vhi
/bin/setserial -bag /dev/cua1
If your connection improves then put these in your dial script or in
/etc/rc.d/rc.local or something like that.
To recap (b/c of my lack of organization above)
1) start up your script
a) type tail -f /var/adm/messages (to monitor your login)
2) If you are not connecting at 115200 verify your serial port setting
a) /bin/setserial -bag /dev/cua1
mine shows:
/dev/cua1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
Flags: spd_vhi skip_test
b) add /bin/setserial /dev/cua1 spd_vhi and to your script or something
or possibly your /etc/rc.c/rc.serial or rc.local file
c) check your baudrate setting in your dial script. Mine is set to 57600.
Hope this helps ;)
Regards,
Tim
Let me know if you're still having probs.........will be glad to help!