Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* UDB serial port over 38400?
@ 1999-03-10  5:00 Joseph Schwarz
  1999-03-10  5:00 ` Joseph Sarkes
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph Schwarz @ 1999-03-10  5:00 UTC (permalink / raw)



I am having trouble getting ppp on my UDB/Multia (166) to run at more
than 38400 bps. It runs fine at 38400, but I would like to take
advantage of my 56k modem...

I have tried setserial to fix the port at 57600, which didn't seem to
have any effect.  I don't understand why setting the pppd speed at
57600 results in a 9600bps connect (see log below), and makes ppp
think the port is looped back?  Setting the pppd connect speed to
38400 results in consistent connects at 33333.  Hardware is a USR
Courier V.90 modem.

Using the same combination on a Linux/Intel P-90 gives me consistent
connects at 43333.

Any help would be apprciated.  log and setup files are listed below.
Thanks!
Joe

_ppp-on connect string:

exec /usr/sbin/pppd debug /dev/modem 38400 \
        $LOCAL_IP:$REMOTE_IP \
        connect $DIALER_SCRIPT

_/etc/ppp/options file:
modem
defaultroute
crtscts
netmask 255.255.0.0
mru 576
lock

_Changing my ppp-on script to 57600 results in the following
/var/log/messages file entries:

Mar  9 21:12:10 flanders pppd[478]: pppd 2.3.3 started by root, uid 0
Mar  9 21:12:12 flanders chat[479]: timeout set to 3 seconds
Mar  9 21:12:12 flanders chat[479]: abort on (\nBUSY\r)
Mar  9 21:12:12 flanders chat[479]: abort on (\nNO ANSWER\r)
Mar  9 21:12:12 flanders chat[479]: abort on
(\nRINGING\r\n\r\nRINGING\r)
Mar  9 21:12:12 flanders chat[479]: send (AT^M)
Mar  9 21:12:12 flanders chat[479]: expect (OK)
Mar  9 21:12:12 flanders chat[479]: AT^M^M
Mar  9 21:12:12 flanders chat[479]: OK
Mar  9 21:12:12 flanders chat[479]:  -- got it
Mar  9 21:12:12 flanders chat[479]: send (ATH0^M)
Mar  9 21:12:12 flanders chat[479]: timeout set to 30 seconds
Mar  9 21:12:12 flanders chat[479]: expect (OK)
Mar  9 21:12:12 flanders chat[479]: ^M
Mar  9 21:12:12 flanders chat[479]: ATH0^M^M
Mar  9 21:12:12 flanders chat[479]: OK
Mar  9 21:12:12 flanders chat[479]:  -- got it
Mar  9 21:12:12 flanders chat[479]: send (ATDT555-1212^M)
Mar  9 21:12:12 flanders chat[479]: expect (CONNECT)
Mar  9 21:12:12 flanders chat[479]: ^M
Mar  9 21:12:27 flanders chat[479]: ATDT555-1212^M^M
Mar  9 21:12:27 flanders chat[479]: CONNECT
Mar  9 21:12:27 flanders chat[479]:  -- got it
Mar  9 21:12:27 flanders chat[479]: send (^M)
Mar  9 21:12:27 flanders chat[479]: expect (ogin:)
Mar  9 21:12:27 flanders chat[479]:  9600/ARQ/V34/LAPM^M
login:
Mar  9 21:12:28 flanders chat[479]:  -- got it
Mar  9 21:12:28 flanders chat[479]: send (loginname^M)
Mar  9 21:12:28 flanders chat[479]: expect (assword:)
Mar  9 21:12:28 flanders chat[479]:  loginname^M
Mar  9 21:12:28 flanders chat[479]: Password:
Mar  9 21:12:28 flanders chat[479]:  -- got it
Mar  9 21:12:28 flanders chat[479]: send (password^M)
Mar  9 21:12:29 flanders pppd[478]: Serial connection established.
Mar  9 21:12:30 flanders pppd[478]: Using interface ppp0
Mar  9 21:12:30 flanders pppd[478]: Connect: ppp0 <--> /dev/modem
Mar  9 21:12:33 flanders pppd[478]: Serial line is looped back.
Mar  9 21:12:34 flanders pppd[478]: Connection terminated.
Mar  9 21:12:35 flanders pppd[478]: Exit. 
--------------------------------------------------
Joe Schwarz
Milwaukee, WI
E-Mail: jschwarz@execpc.com
Web: http://www.execpc.com/~jschwarz



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

* Re: UDB serial port over 38400?
  1999-03-10  5:00 UDB serial port over 38400? Joseph Schwarz
@ 1999-03-10  5:00 ` Joseph Sarkes
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph Sarkes @ 1999-03-10  5:00 UTC (permalink / raw)


Joseph Schwarz (jschwarz@execpc.com) wrote:

: I am having trouble getting ppp on my UDB/Multia (166) to run at more
: than 38400 bps. It runs fine at 38400, but I would like to take
: advantage of my 56k modem...

: I have tried setserial to fix the port at 57600, which didn't seem to
: have any effect.  I don't understand why setting the pppd speed at
: 57600 results in a 9600bps connect (see log below), and makes ppp
: think the port is looped back?  Setting the pppd connect speed to
: 38400 results in consistent connects at 33333.  Hardware is a USR
: Courier V.90 modem.

you need to use setserial and then use 38400 as the speed. It works 
fine for me...

put these lines somewhere in your /etc/rc.d/rc.local file
setserial /dev/ttyS0 spd_vhi
setserial /dev/ttyS1 spd_vhi

Then just set your terminal speed to 38400 and it will use 115kb
if you use spd_hi it will use 56kb instead. If you use lower speed
settings it seems they will do what they are supposed to, spd_?hi
will only change the setting for 38400

I ran into weird effects trying to set the speed above 38400 using stty.
just make believe you are using the 38400 everywhere and it will work
faster with the setserial line controlling the tty speed.

: Using the same combination on a Linux/Intel P-90 gives me consistent
: connects at 43333.

: Any help would be apprciated.  log and setup files are listed below.
: Thanks!
: Joe


--
Joseph Sarkes                   mailto:joe@mediaone.net



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

end of thread, other threads:[~1999-03-10  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-10  5:00 UDB serial port over 38400? Joseph Schwarz
1999-03-10  5:00 ` Joseph Sarkes

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