Subject: Re: Various ramblings... / Re: Modem? / ...
To: None <macbsd-general@NetBSD.ORG>
From: noud de brouwer <noud@knot.nl>
List: current-users
Date: 08/26/1995 10:32:49
As some of you know i'm in deep shit.

I started 10 january with a project: getting an Internet site up and
running for the people in my surroundings. I was a total newby,
learned/worked hard to get the (user)-level knowledge, testing and
implementing.
Now 26 augustus i'm still stuck in getting the ppp-server side working
trustfully, me running round and round the problem (i don't have the
capabillity (yet) to solve problems or missing bits in unix code).
As my untrained eyes see it comes down to a serial driver problem but to be
"complete" here's the problem description and used setups and the like. I
alread send it to Monroe last evening/night, cause he offered help. Hope he
doesn't mind that i post it to everyone, hope everyone still want to take a
look at it cause for me, to go on, it needs to be solved a few weeks ago.

How dumb or whatever this may look like,
please write me about every stupidity inside.

If i failed to give some needed information please ask.
If i gave to much information please take in account
i'm still a newby compared with most of you people

If you've got a contribution to solve it please state,
it will be seen/felt as a very big and needed, not expected anymore,
present/gift.
~n

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&

The most stable (ehum) setup till now:

>>>A fuller description of your problems and hardware & software setup

One problem left (?):
-losing the ppp connection totally or a "socket not connected" when
transfering f.i. files bigger then 10k sometimes 80k over the ppp-link,
that with using f.i. MacPPP v2.01 at 38400 or 19200 & Netscape v1.1N, but
it also happens with Trumpet and there Netscape versions. The www-server is
on the ppp-servers ether or a www-server on the net gated with a
bsd-ppp-client. Also when people receive mails bigger then ???Kb.

Hardware:
Aug 30 05:23:55 dns /netbsd:
Apple Macintosh IIcx  (68030)
real mem = 16777216
avail mem = 13398016
adb: bus subsystem
adb: mapped device (9) at 2
adb: 100 dpi mouse at 3
grf0 at nubus0: 640 x 480 monochrome QD-compatible (Mac II Monochrome Video
Card) display
ae0 at nubus0: address 00:00:94:60:71:40, type MacCon NuBus-A , 32k mem.
 targ 0 lun 0: <QUANTUM, LP240S GM240S01X, 6.4> SCSI2 0/direct fixed
sd0 at scsibus0: 234MB, 1818 cyl, 4 head, 65 sec, 512 bytes/sec
fpu0 at mainbus0 (mc68882)

Software setup:

>_Exactly_ how is pppd invoked?  (What are the command line arguments?
>What are the contents of pppd config file?)

>Where are you setting the baud rates? /etc/termcap? What do the termcap
>entries for your dialup lines look like? Do you have any special lines in
>/etc/gettytab? Is pppd also getting a baud rate argument? How is your modem
>configured? (Send the output of AT&V.)

Aug 30 05:23:55 dns /netbsd:
NetBSD 1.0A (GENERIC) #2: Wed Jul 26 09:29:48 EDT 1995
briggs@puma.bevd.blacksburg.va.us:/u/src/sys/arch/mac68k/compile/GENERIC
+kernel with extra ppp
+getty that rejects garbage
(Mac II without, extra ppp and getty responds the same)

dns# cd /etc
dns# cat passwd
ppp:*:117:0:PPP client login:/usr/ppp:/usr/lib/ppp-login


dns# cat /usr/lib/ppp-login
#!/bin/csh -f
echo ">>>"
/usr/sbin/pppd
exit


dns# cat / ppp/ip-up
#!/bin/sh
echo $2 > /etc/ppp/tty.$1
clienttty=`sed -n -e "/\/dev\// s/\/dev\/:*//p" < /etc/ppp/tty.$1`
echo `who | grep ${clienttty}` " on" $5 " in at : " `date` >> /var/log/ppp
/etc/ppp/ip-test $1 ${clienttty} $3 $4 $5
exit 0


dns# cat ppp/ip-test
#!/bin/sh
while [ -f /var/run/$1.pid ] ; do
        #ping client and grep pings output to see if any packets returned
        if ( /sbin/ping -c 2 $5 | grep time ) ; then
                #packets returned, wait .5 min
                sleep 5
        else
                #kill the pppd
                kill -TERM `cat /var/run/$1.pid`
                exit 0
        fi
done
exit 0


dns# cat ppp-down
#!/bin/sh
echo $2 > /etc/ppp/tty.$1
clienttty=`sed -n -e "/\/dev\// s/\/dev\/:*//p" < /etc/ppp/tty.$1`
echo `who | grep ${clienttty}` " on" $5 "out at : " `date` >> /var/log/ppp
exit 0


dns# cat ppp/options
lock
# speed
57600
# modem
passive asyncmap 200a0000 modem netmask 255.255.255.0
#compression
-vj


dns# cat ppp/options.tty00
dns:pppclntone debug kdebug 1


dns# cat rc.local
# our extra's
stty -f /dev/tty00 clocal
stty -f /dev/tty01 clocal
arp -s pppclntone 0:0:94:60:71:40 pub
arp -s pppclnttwo 0:0:94:60:71:40 pub


dns# cat / gettytab
#
# My extra fixed speed entries
#
std.1800|1800-baud:\
        :sp#1800:
std.3600|3600-baud:\
        :sp#3600:
std.7200|7200-baud:\
        :sp#7200:
std.12000|12000-baud:\
        :sp#12000:
std.14400|14400-baud:\
        :sp#14400:
std.16800|16800-baud:\
        :sp#16800:
std.76800|76800-baud:\
        :sp#76800:
#
# SupraFAXModem (14400)
#
sfm57600:\
        :np:ig:nx=sfm38400:tc=57600-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm38400:\
        :np:ig:nx=sfm19200:tc=38400-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm19200:\
        :np:ig:nx=sfm14400:tc=19200-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm14400:\
        :np:ig:nx=sfm12000:tc=14400-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm12000:\
        :np:ig:nx=sfm9600:tc=12000-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm9600:\
        :np:ig:nx=sfm7200:tc=9600-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm7200:\
        :np:ig:nx=sfm4800:tc=7200-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm4800:\
        :np:ig:nx=sfm2400:tc=4800-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm2400:\
        :np:ig:nx=sfm1200:tc=2400-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:
sfm1200:\
        :np:ig:nx=sfm600:tc=1200-baud:im=\r\nWelcome at KnoT Foundation\r\n\r\n:
sfm600:\
        :np:ig:nx=sfm300:tc=600-baud:im=\r\nWelcome at KnoT Foundation\r\n\r\n:
sfm300:\
        :np:ig:nx=sfm57600:tc=300-baud:im=\r\nWelcome at KnoT
Foundation\r\n\r\n:


dns# cat ttys
tty00   "/usr/libexec/getty sfm57600"    unknown on local secure
tty01   "/usr/libexec/getty sfm57600"    unknown on local secure


dns# stty -f /dev/tty00
speed 57600 baud;
lflags: -icanon -isig -iexten -echo
iflags: -icrnl -ixon -ixany -imaxbel -brkint
oflags: -opost -onlcr -oxtabs
cflags: cs8 -parenb clocal

Modems: Supra Fax Modems v32bis

Cable: Supra's

Modem init with MacTerminal:
(i tryed to be as to-the-point as possible in getting bsd up and running
for what i need it.)
connection is at 19200 sometimes 57600, N-8-1 no hanshaking:
AT&F2E0Q1&D3&C1S0=1&W&W1Z0

AT&V:
ACTIVE PROFILE:
B1 E0 L2 M1 N1 Q1 T V1 W0 X4 Y0 %C1 %E0 %G1 \N3 &C1 &D3 &K3 &Q5 &R0 &S0 &X0 &Y0
S00:001 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:050 S08:002 S09:006
S10:014 S11:095 S12:050 S18:000 S23:063 S25:005 S26:001 S36:007 S37:000 S38:020
S40:087 S46:138 S48:007 S95:000 S109:062 S110:001



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KnoT Foundation                                     Noud de Brouwer
People's Internet Domain +31-13                       Kerkstraat 86
                                                 5051 LC  GOIRLE NB
                                                    the Netherlands
e-mail: noud@knot.nl                     Tel./Fax.:   +31-13-342761
http:   //www.knot.nl/                         ARA:   +31-13-346945
talk:   noud@renning.knot.nl                   PPP:   +31-13-345057
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~