?

Log in

No account? Create an account
$5 for a working solution! - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

$5 for a working solution! [Jun. 21st, 2001|11:29 pm]
Brad Fitzpatrick
Problem:
Trying to get a PPP net connection up under Linux, over a Nokia phone.

Details:
Nokia 6190 phone.
Datasuite cable phone --> serial cable
Datasuite software is useless (Win95 only... not NT/2000)

gnokii lets me setup a /dev/gnokii which I can treat as a modem. This works. I can call the UW modem pool and stuff.

Now.... how do I setup all that /etc/ppp/* crap so I authenticate? In /var/log/messages I see a connection come up for a half second, then die. I assume my authentication is failing, but I don't know why.

Also, once it's up, then what? How do I get an IP address? How is that negotiated? I know nothing about PPP. Do I get a /dev/ppp0 or something?

Prize
I'll paypal the winner $5, or take you out to Subway if you're either in Seattle, or between here and Ohio.

I'd figure this out myself, but I'm so sick of dealing with the laptop, and I just want everything to work.



I bought Microsoft Streets 2001 today ... very neat program. Cheap, too. $10 after rebate.

Tired... only 4.5 hours of sleep last night, but I've been active all day. It's totally time to crash. I just hope I can sleep without itchy pseudo-sunburn keeping me up.


/var/log/messages
Jun 21 22:39:56 lapwarmer pppd[5784]: pppd 2.4.1 started by root, uid 0
Jun 21 22:39:57 lapwarmer chat[5785]: abort on (BUSY)
Jun 21 22:39:57 lapwarmer chat[5785]: abort on (ERROR)
Jun 21 22:39:57 lapwarmer chat[5785]: abort on (NO CARRIER)
Jun 21 22:39:57 lapwarmer chat[5785]: send (AT^M)
Jun 21 22:39:57 lapwarmer chat[5785]: expect (OK)
Jun 21 22:39:57 lapwarmer chat[5785]: AT
Jun 21 22:39:57 lapwarmer chat[5785]: ^M
Jun 21 22:39:57 lapwarmer chat[5785]: OK
Jun 21 22:39:57 lapwarmer chat[5785]: -- got it
Jun 21 22:39:57 lapwarmer chat[5785]: send (ATD2068125577^M)
Jun 21 22:39:57 lapwarmer chat[5785]: expect (CONNECT)
Jun 21 22:39:57 lapwarmer chat[5785]: ^M
Jun 21 22:39:57 lapwarmer chat[5785]: ATD2068125577
Jun 21 22:39:57 lapwarmer chat[5785]: ^M
Jun 21 22:40:06 lapwarmer chat[5785]: ^M
Jun 21 22:40:06 lapwarmer chat[5785]: CARRIER^M
Jun 21 22:40:16 lapwarmer chat[5785]: ^M
Jun 21 22:40:16 lapwarmer chat[5785]: CONNECT
Jun 21 22:40:16 lapwarmer chat[5785]: -- got it
Jun 21 22:40:16 lapwarmer pppd[5784]: Serial connection established.
Jun 21 22:40:17 lapwarmer pppd[5784]: Exit.
Jun 21 22:50:31 lapwarmer pppd[5792]: pppd 2.4.1 started by root, uid 0
Jun 21 22:50:32 lapwarmer chat[5793]: abort on (BUSY)
Jun 21 22:50:32 lapwarmer chat[5793]: abort on (ERROR)
Jun 21 22:50:32 lapwarmer chat[5793]: abort on (NO CARRIER)
Jun 21 22:50:32 lapwarmer chat[5793]: send (AT^M)
Jun 21 22:50:32 lapwarmer chat[5793]: expect (OK)
Jun 21 22:50:32 lapwarmer chat[5793]: AT
Jun 21 22:50:32 lapwarmer chat[5793]: ^M
Jun 21 22:50:32 lapwarmer chat[5793]: OK
Jun 21 22:50:32 lapwarmer chat[5793]: -- got it
Jun 21 22:50:32 lapwarmer chat[5793]: send (ATD2068125577^M)
Jun 21 22:50:33 lapwarmer chat[5793]: expect (CONNECT)
Jun 21 22:50:33 lapwarmer chat[5793]: ^M
Jun 21 22:50:33 lapwarmer chat[5793]: ATD2068125577
Jun 21 22:50:33 lapwarmer chat[5793]: ^M
Jun 21 22:50:51 lapwarmer chat[5793]: ^M
Jun 21 22:50:51 lapwarmer chat[5793]: CONNECT
Jun 21 22:50:51 lapwarmer chat[5793]: -- got it
Jun 21 22:50:51 lapwarmer pppd[5792]: Serial connection established.
Jun 21 22:50:52 lapwarmer pppd[5792]: Exit.

/etc/ppp/peers/gnokii
/dev/gnokii 115200
modem crtscts defaultroute
connect 'chat -v ABORT BUSY ABORT ERROR ABORT "NO CARRIER" "" AT OK-AT-OK ATD2068125577 CONNECT'
user bradfitz
noauth
mtu 296
debug

/etc/ppp/pap-secrets
# OUTBOUND connections
bradfitz * MYPASSWORD
LinkReply

Comments:
[User Picture]From: dl
2001-06-21 11:48 pm (UTC)
(Reply) (Thread)
[User Picture]From: dl
2001-06-21 11:49 pm (UTC)
that should help some...
(Reply) (Parent) (Thread)
[User Picture]From: cinetic
2001-06-21 11:53 pm (UTC)
Is there anyway to view a dump of the exact commands that are being sent to your little "modem"? I thought that there was some way to manually step through each command as it was sent. Or can't you view /var/log/messages to see what is going on?

Oh, do you have pppd started? I think you need to have that started in order to get ppp to work. You are running Deb, right?
(Reply) (Thread)
[User Picture]From: bradfitz
2001-06-22 12:13 am (UTC)
I just appended this journal entry with a bunch of info.

I'm starting pppd like:

# pppd call gnokii
(Reply) (Parent) (Thread)
[User Picture]From: cinetic
2001-06-22 12:33 am (UTC)
Okay. Some questions, as I have been doing some exploring.

1. do you have a /var/log/ppp.log
2. it almost looks like you aren't sending the username and password when you connect, and that is why it is hanging up.
3. have you tried running pppconfig? then you could change things around to point to your /dev/gnokii...

btw, I have never dealt with debian.. so I may be way off my rocker.
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2001-06-22 01:03 am (UTC)
I tried pppconfig ... nice tool.

It did the same thing as before, though.

I'll try CHAP as well as PAP.
(Reply) (Parent) (Thread)
[User Picture]From: cinetic
2001-06-22 12:57 am (UTC)
I found an interesting site that will generate the values for running pppd.

Try :

http://www.linux.net.nz/pppconfig/details.phtml?authtype=pap

It will generate :
/etc/ppp/chatscript
/etc/ppp/pap-secrets (although yours looked fine)
/etc/ppp/options

You are running this as root, right? I think you might need to. And of course you would just change the /dev/ttySx to /dev/gnokii
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2001-06-22 01:03 am (UTC)
I'll try that.
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2001-06-22 01:03 am (UTC)
(yes... running as root)
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2001-06-22 12:14 am (UTC)
And yes, Debian.
(Reply) (Parent) (Thread)
[User Picture]From: tsutton
2001-06-22 01:03 am (UTC)
Totally off topic... how did you get it to lj-cut? I don't see it in my friends page, yet when I clicked on the View Comments, I see the full log.
(Reply) (Thread)
[User Picture]From: bradfitz
2001-06-22 01:18 am (UTC)
I added it later. Go reload your friends page.
(Reply) (Parent) (Thread)
[User Picture]From: gorgonous
2001-06-22 09:30 am (UTC)
I was wondering the same thing.. Doesn't show up in my friends list, or when I look at the post directly from your journal.
(Reply) (Parent) (Thread)
[User Picture]From: d4b
2001-06-22 10:11 am (UTC)
Reloaded (1:13pm Eastern)... the discrepancy still appears.
(Reply) (Parent) (Thread)
From: festrilmongrit
2001-06-22 10:33 pm (UTC)
same here... freaky...
(Reply) (Parent) (Thread)
[User Picture]From: tsutton
2001-06-22 01:59 pm (UTC)
I got home and viewed my friend page for the first time since yesterday. (so it's not cached)

I don't see the lj-cut.

Did you do something new? :o)
(Reply) (Parent) (Thread)
[User Picture]From: starblazr
2001-06-23 12:47 am (UTC)
unless gnokii has some weird dialing
it should be "atdt#number"

in /etc/ppp/options, turn on debugging(I see it's there, but you should throw it in /etc/ppp/options if it's not in there already, or the gnokii takes it from the gnokii file) and then see where it fails... and repost, cuz, it might be failing in authentication (I've had it where it's failed in pap & chap too, but because i forgot to change one setting..

but here's my files on my linux box (slack tho)


/etc/ppp/options
\# General configuration options for PPPD:
lock
defaultroute
noipdefault
modem
/dev/ttyS2
38400
crtscts
debug
#noauth
passive
asyncmap 0
name "star"

see if that works and then reply back (duh?) :)
(Reply) (Thread)
[User Picture]From: bradfitz
2001-06-23 01:05 am (UTC)
I remember using modems a little... I don't recall atdt0000 being different from atdt#000.

Anyway, that's not the problem. Read this.
(Reply) (Parent) (Thread)