Re: [iPAQ] PPP and IP questions

From: Ellen Dash <edash_dgi.a.t.hotmail.com>
Date: Thu Apr 19 2001 - 07:11:23 EDT

Thank you for the replies! ... I think I understand more, but I still don't
have it working. :-(

Again, I'm following the directions from the handhelds wiki PPPHowto. The
only deviation that I have made is the /etc/ppp/options file on the iPAQ has
/dev/ttyS0 (instead of /dev/ttySA0). If I try running pppd on the iPAQ with
the ttySA0 setting, it gags.

With debug on, here's what I see in the /var/log/messages file on my laptop:
Apr 18 21:36:18 dash pppd[908]: pppd 2.3.11 started by root, uid 0
Apr 18 21:36:19 dash chat[909]: expect (ogin)
Apr 18 21:36:22 dash chat[909]: alarm
Apr 18 21:36:22 dash chat[909]: send (^M)
Apr 18 21:36:22 dash chat[909]: expect (ogin:)
Apr 18 21:36:22 dash chat[909]: ^M
Apr 18 21:36:22 dash chat[909]: Handhelds Linux v0.16 device ttyS0^M
Apr 18 21:36:22 dash chat[909]: ^M
Apr 18 21:36:22 dash chat[909]: device login:
Apr 18 21:36:22 dash chat[909]: -- got it
Apr 18 21:36:22 dash chat[909]: send (ppp^M)
Apr 18 21:36:22 dash pppd[908]: Serial connection established
Apr 18 21:36:22 dash pppd[908]: Using interface ppp0
Apr 18 21:36:22 dash pppd[908]: Connect: ppp0 <--> /dev/ttyS0
Apr 18 21:36:53 dash pppd[908]: LCP: timeout sending Config-Requests
Apr 18 21:36:53 dash pppd[908]: Connection terminated
Apr 18 21:36:54 dash pppd[908]: Exit

On the xterm I can see the 10 attempts to send config requests.. they look
something like:
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic ...> <pcomp> <accomp>]

Speculating that it was possibly a timing issue, I've tried adding the line:
lcp-max-configure 20

to the /etc/ppp/peers/ipaq file, but that appears to not work at all -- it
renders the connection attempt as bad. (Maybe a problem with my version of
pppd?) Anyway... I don't think that's the issue.

I'm suspicious of what's happening on the iPAQ with the starting of the pppd
over there. It's supposed to happen when ppp logs in via the connect from
the laptop. I don't know how to debug this step any further, but I have a
feeling that it's not working properly. If I attempt to login to the iPAQ
as ppp, it gives me the following error:

-pppd: must be root to run -pppd, since it is not setuid-root

Well, I tried to chmod /sbin/pppd (I think it was chmod u+s ... or something
like that), but it didn't work because it is not in a writable partition.
sigh... I bet there's some other linux way around this.. possibly in
/etc/passwd.

OK... a lot said, but still no progress. One big question for me is it ok
if the pppd's on both the iPAQ and the laptop are trying to use /dev/ttyS0?
I've not had much success in trying other options.

Here's one other thing that I tried...

I got on minicom and started the pppd on the iPAQ and sent it to the
background.

pppd /dev/ttyS0 noauth 115200 &

Then I quickly exited minicom.
From the laptop, I tried to start pppd with (I think):

pppd /dev/ttyS0 debug nocrtscts noauth lock 115200 :

I think this approach is close to working. In the /var/log/messages file I
saw attempts to connect, but then the following messages too:
Receive serial link is not 8-bit clean
Problem: all had bit 7 set to 0
Exit

I'm fairly certain that the minicom has the proper settings, but I didn't
double check. It worked fine for the download of flash and I haven't
changed anything since then.

Apologies for the loooonnnnggg message. I just wanted to share the details
in the hope that someone could help.

Thanks,
Ellen

>From: Doug Hunt <dhunt@ucar.edu>
>To: Ellen Dash <edash_dgi@hotmail.com>
>CC: ipaq@handhelds.org
>Subject: Re: [iPAQ] PPP and IP questions
>Date: Wed, 18 Apr 2001 16:46:56 -0600
>
>Ellen: I finally got PPP working between my desktop redhat box an my ipaq
>(familiar 0.3). Here are some things which helped me:
>
>-- Look in the /var/log/messages file on your laptop for debug info.
>-- I was having trouble getting the 'Login:' message from the ipaq. I
>finally
>had to change my chat script (in /etc/ppp/peers/ipaq) to something like
>this:
>
>connect '/usr/sbin/chat -v -t3 word:-- ppp'
>
>This pretty well sends 'ppp' in all cases.
>
>-- I had to take out the 'noipdefault' option in /etc/ppp/options on my
>home
>machine (which uses ppp to connect to the internet).
>
>Fiddling with any of these things may help.
>
>Regards,
>
> Doug Hunt
>
>Ellen Dash wrote:
> >
> > [ stuff deleted ] --
>dhunt@ucar.edu
>Software Engineer III
>UCAR - COSMIC
>Tel. (303) 497-2611

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Received on Thu Apr 19 04:14:37 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:43:57 EDT