Subject: PCMCIA modems and ppp difficulties
To: None <port-i386@NetBSD.ORG>
From: Matthew Hacker <mhacker@rio.com>
List: port-i386
Date: 10/08/1996 15:14:29
This problem is finally annoyed me enough that I thought I'd see
if anyone has any ideas.  I'm running 1.1 i386 on my NEC Versa
S/50 laptop.  I've installed the PC Card stuff 0.7.2 and things
mostly work great.  It recognises my 14.4 TDK modem, which I use
to access the net.  The problem is that sometimes things get in a
state where everything locks up.  As a guess I think the drivers
are trying to call an ioctl which is waiting for some handshaking
signal to clear/set but which never does.  Mostly when this
happens I can pull out the card which frees things back up enough
to get back my prompt (other logins (screen) work fine).
Sometimes everything locks up completely.

I know that killing the pppd program while I'm online will always
leave things where I can't run it again successfully.  If I just
pull the modem cord I get a 'modem hangup' and pppd exits.  Then
I can run it again later.  

Thoughts?

On the same note, how can I get chat to report anything useful to
me?  If I call it from pppd on the command line I don't get back
anything chat puts on the standard out.  I've tried the report
key word and all I get is 'Chat closing report file.' in the file
it creates.  I'd like to figure out what error it's getting when
it fails.  (My modem occasionally has trouble connecting on noisy
lines.)

Many thanks to anyone who takes the time to read through this,
sorry it got so long.


-matthew



---various things follow----

----my pcmica card getting attached
  Oct  4 22:05:49 squid /netbsd: pcic0 at isa0 port 0x3e0-0x3e1:
    Intel 82365sl Rev. 0 slots 0-1 (f861dc34 f861dcb0)
  Oct  4 22:05:50 squid /netbsd: pcmcia0 at isa0 iomem 0xd4000-0xd4fff
  Oct  4 22:05:50 squid /netbsd: pcic0 slot 0: <slot empty>
  Oct  4 22:05:50 squid /netbsd: pcic0 slot 1:WARNING: broken id for
    card in slot 1
  Oct  4 22:05:50 squid /netbsd: manu CIRRUS LOGIC model FAX MODEM
    add_inf1 MD144ECP add_inf2 0-0
  Oct  4 22:05:50 squid /netbsd:  <CIRRUS LOGIC, FAX MODEM, MD144ECP, 0-0>
  Oct  4 22:05:50 squid /netbsd: com1 at pcmcia0 port 0x2f8-0x2ff
    irq 3: ns16550a, working fifo

----pppd starting
  Oct  7 22:56:16 squid pppd[148]: pppd 2.2.0 started by root, uid 0
  Oct  7 22:56:37 squid pppd[148]: Connect: ppp0 <--> /dev/tty01
  Oct  7 22:56:43 squid pppd[148]: local  IP address 206.96.130.148
  Oct  7 22:56:43 squid pppd[148]: remote IP address 206.96.130.100
  Oct  7 22:56:46 squid pppd[148]: local  IP address 206.96.130.148
  Oct  7 22:56:46 squid pppd[148]: remote IP address 206.96.130.100
  Oct  7 23:04:25 squid pppd[148]: Modem hangup
[anybody know why I'm getting the remote address twice?  pppd
 also calls the ip-up script twice which is a bit annoying.]

----my pppd command
pppd /dev/tty01 38400

----ppp options
name mhacker
crtscts
modem
connect 'chat -t 30 -r /root/chat.report -v -f /etc/ppp/chat'
defaultroute
netmask 0xffffff00

----chat script
REPORT ABORT REPORT 'NO CARRIER' REPORT CONNECT ABORT BUSY ABORT 'NO CARRIER' '' AT&F OK ATDT3422939 CONNECT

---end of config info---