Jump to content

KPPP with GPRS over Bluetooth


Havin_it
 Share

Recommended Posts

'ning,

 

I've succeeded (finally) in getting my PC and phone talking over Bluetooth, but the method of using GPRS to connect to teh Intarweb still eludes me. I've got KPPP configured to connect through the Bluetooth device /dev/rfcomm0 and found the right number to dial and the right line-endings for the AT commands to talk to the phone's modem, but when I try to connect, pppd dies with exit code 10.

 

Looking at man pppd, the hugely helpful (irony) explanation of this code is:

 

     10     The  PPP  negotiation failed, that is, it didn't reach the point
             where at least one network protocol (e.g. IP) was running.

 

Very illuminating. Of slightly more use perhaps is the log output:

 

Jun  8 11:37:47 localhost pppd[27242]: pppd 2.4.2 started by robin, uid 501
Jun  8 11:37:47 localhost pppd[27242]: using channel 2
Jun  8 11:37:47 localhost pppd[27242]: Using interface ppp0
Jun  8 11:37:47 localhost pppd[27242]: Connect: ppp0 <--> /dev/rfcomm0
Jun  8 11:37:47 localhost pppd[27242]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc9d83f71> <pcomp> <accomp>]
Jun  8 11:37:47 localhost pppd[27242]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc9d83f71> <pcomp> <accomp>]
Jun  8 11:37:47 localhost pppd[27242]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1962426b> <pcomp> <accomp>]
Jun  8 11:37:47 localhost pppd[27242]: No auth is possible
Jun  8 11:37:47 localhost pppd[27242]: sent [LCP ConfRej id=0x1 <auth pap>]
Jun  8 11:37:47 localhost pppd[27242]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x1962432d> <pcomp> <accomp>]
Jun  8 11:37:47 localhost pppd[27242]: sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x1962432d> <pcomp> <accomp>]
Jun  8 11:37:47 localhost pppd[27242]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Jun  8 11:37:47 localhost pppd[27242]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jun  8 11:37:47 localhost pppd[27242]: rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Jun  8 11:37:47 localhost pppd[27242]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
Jun  8 11:37:47 localhost pppd[27242]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jun  8 11:38:05 localhost pppd[27242]: rcvd [LCP TermReq id=0x3 05 00 00 0a 00 00 00 00 00 00]
Jun  8 11:38:05 localhost pppd[27242]: LCP terminated by peer (^E^@^@^J^@^@^@^@^@^@)
Jun  8 11:38:05 localhost pppd[27242]: sent [LCP TermAck id=0x3]
Jun  8 11:38:05 localhost pppd[27242]: rcvd [LCP TermAck id=0x3]
Jun  8 11:38:05 localhost pppd[27242]: Connection terminated.
Jun  8 11:38:05 localhost pppd[27242]: Exit.

 

I've tried to copy as much as possible from the Windows dial-up settings, but this is as far as I can get. And since I haven't used ppp since my Speedtouch days (which was a rather different kettle of fish, I'd venture) I really don't know what to be looking at next.

 

Which is where I'm hoping one of you guru types can jump in. The hammer is in my hand, if you just tell me what to hit!

Link to comment
Share on other sites

I don't really like using KPPP for things like this. KPPP just doesn't have the options that may be needed for GPRS connections.

 

Install wvdial instead. Even though it's text based, its rate of success is a heck a lot better than KPPP.

 

Here are some links to help you setup your internet connection using wvdial

 

http://www.quinapalus.com/t300.html

http://www.pcquest.com/content/linux/2004/104050807.asp

What those sites doesn't say is how to quit wvdial. Just use ctrl-C

 

Good luck

Link to comment
Share on other sites

Thanks for the links DM. Something struck me with the first one, in this sentence:

 

There is no need to attempt to log on to a service once connected, and preventing wvdial from trying to do this is the hardest part of making it work

 

I wonder if this is the nub of the problem. I've been trying to compare with the Windows DUN settings to work out what's different, and I note that all PAP/CHAP authentication methods are enabled, but there is no username or password used. KPPP didn't permit this flexibility; If I changed the auth method to PAP/CHAP, it refused to attempt a connection. (Please enlighten me if this is not an appropriate comparison.)

 

I've seen an article where the person did make GPRS work using KPPP, but it didn't really cover any Gotcha's, so didn't help much.

 

WRT the above quote, would this equate with the 'noauth' option for pppd? I tried adding this to KPPP, but it told me this was a privileged option (presumably meaning I'd need to run it as root, which seems unwise).

 

The man page for pppd is enormous and unhelpful at times (see above), but if I understand correctly, I could use a 'peer' file to specify this option - if that was the right thing to do. Any advice on this?

Link to comment
Share on other sites

The login part is different for different provider. Once, I tried using a regular GPRS connection with two different providers (actually it's the same company, but two different "plans"). One of them requires login and the other doesn't.

 

Here is a sample setup for wvdial for a local provider. Note that I use a USB cable to connect the phone to the computer.

 

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 9600
Init1 = AT+cgdcont=1,"ip","satelindogprs.com"
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99***1#
Username = ""
Password = ""

 

As you can see, this one doesn't require login. So you can just put "" for both.

 

Anyway, the only way to find out is to check the provider itself.

 

Another thing, it is possible to use KPPP for GPRS connection, but the gotchas as far as I know are:

 

1. You connect it using a serial cable from the computer to the cellphone

2. The cellphone itself must be usable as a generic serial modem internally (I know siemens does, not sure about others).

 

Anyway, good luck

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...