Author Topic: No Bluetooth To Internet Via Cellphone  (Read 3423 times)

clofland

  • Full Member
  • ***
  • Posts: 247
    • View Profile
    • http://www.lofland.net/
No Bluetooth To Internet Via Cellphone
« on: October 06, 2005, 05:56:08 pm »
I'm experimenting with switching to pdaXrom instead of Cacko (SHARP) ROM. So far I have been VERY impressed, but, alas, I have found a showstopper. =(

I use a Socket Bluetooth card (Rev H) to connect my  760 to the Internet via Cingular GPRS with a Nokia 6230 phone.

It works with Cacko ROM, it works on my laptop, but when I try it with RC11, the phone tells me "GPRS Authentication Failed" and dumps me.

Bluetooth works for PAN connections to my network, so I know the card and bluetooth drivers are working in RC11, just something wrong in making the PPP connection with Cingular via the phone.

I have tried copying everything from the /etc/ppp dir on Cacko ROM to my RC11 ROM install, and the settings all work to dial, but same problem.

Here is the log output:

Oct  6 16:45:18 pppd[2726]: pppd 2.4.0 started by root, uid 0
Oct  6 16:45:19 hcid[2453]: link_key_request (sba=MACREMOVED, dba=MACREMOVED)
Oct  6 16:45:20 chat[2728]: abort on (NO CARRIER)
Oct  6 16:45:20 chat[2728]: abort on (NO DIALTONE)
Oct  6 16:45:20 chat[2728]: abort on (BUSY)
Oct  6 16:45:21 chat[2728]: send (ATZ^M)
Oct  6 16:45:21 chat[2728]: expect (OK)
Oct  6 16:45:21 chat[2728]: ATZ^M^M
Oct  6 16:45:21 chat[2728]: OK
Oct  6 16:45:21 chat[2728]:  -- got it
Oct  6 16:45:21 chat[2728]: send (ATDT*99#^M)
Oct  6 16:45:21 chat[2728]: expect (CONNECT)
Oct  6 16:45:21 chat[2728]: ^M
Oct  6 16:45:21 chat[2728]: ATDT*99#^M^M
Oct  6 16:45:21 chat[2728]: CONNECT
Oct  6 16:45:21 chat[2728]:  -- got it
Oct  6 16:45:21 pppd[2726]: Serial connection established.
Oct  6 16:45:21 pppd[2726]: using channel 20
Oct  6 16:45:21 pppd[2726]: Using interface ppp0
Oct  6 16:45:21 pppd[2726]: Connect: ppp0 <--> /dev/rfcomm0
Oct  6 16:45:24 pppd[2726]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3608cb65> <pcomp> <accomp>]
Oct  6 16:45:24 pppd[2726]: Timeout 0x20084bc:0x203b440 in 3 seconds.
Oct  6 16:45:24 pppd[2726]: rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
Oct  6 16:45:24 pppd[2726]: lcp_reqci: returning CONFACK.
Oct  6 16:45:24 pppd[2726]: sent [LCP ConfAck id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
Oct  6 16:45:24 pppd[2726]: rcvd [LCP ConfRej id=0x1 <magic 0x3608cb65> <pcomp> <accomp>]
Oct  6 16:45:24 pppd[2726]: Untimeout 0x20084bc:0x203b440.
Oct  6 16:45:24 pppd[2726]: sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
Oct  6 16:45:24 pppd[2726]: Timeout 0x20084bc:0x203b440 in 3 seconds.
Oct  6 16:45:24 pppd[2726]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
Oct  6 16:45:24 pppd[2726]: Untimeout 0x20084bc:0x203b440.
Oct  6 16:45:24 pppd[2726]: sent [PAP AuthReq id=0x1 user="WAP@CINGULARGPRS.COM" password=<hidden>]
Oct  6 16:45:24 pppd[2726]: Timeout 0x200ebbc:0x203b6e0 in 3 seconds.
Oct  6 16:45:24 pppd[2726]: rcvd [PAP AuthAck id=0x1 ""]
Oct  6 16:45:24 pppd[2726]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Oct  6 16:45:24 pppd[2726]: Timeout 0x20084bc:0x203b6a0 in 3 seconds.
Oct  6 16:45:24 pppd[2726]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Oct  6 16:45:24 pppd[2726]: Timeout 0x20084bc:0x203b7a0 in 3 seconds.
Oct  6 16:45:24 pppd[2726]: rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>]
Oct  6 16:45:24 pppd[2726]: ipcp: returning Configure-ACK
Oct  6 16:45:24 pppd[2726]: sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>]
Oct  6 16:45:25 pppd[2726]: rcvd [LCP ProtRej id=0x0 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Oct  6 16:45:25 pppd[2726]: Untimeout 0x20084bc:0x203b7a0.
Oct  6 16:45:25 pppd[2726]: rcvd [LCP TermReq id=0x1]
Oct  6 16:45:25 pppd[2726]: LCP terminated by peer
Oct  6 16:45:25 pppd[2726]: Untimeout 0x20084bc:0x203b6a0.
Oct  6 16:45:25 pppd[2726]: CCP: Down event in state 1!
Oct  6 16:45:25 pppd[2726]: Timeout 0x20084bc:0x203b440 in 3 seconds.
Oct  6 16:45:25 pppd[2726]: sent [LCP TermAck id=0x1]
Oct  6 16:45:28 pppd[2726]: Connection terminated.
Oct  6 16:45:29 pppd[2726]: Exit.

My next step is going to have to be to flash back to Cacko ROM and see how the log differs. Unfortunately, I never captured it, because it just always worked. This is a great bummer.

Any ideas would be greatly appreciated. I will be glad to post any further details you may need if anyone wants to help.

I even tried replacing the pppd and chat binaries on RC11 with those from the Cacko ROM, but it made no visible difference.
« Last Edit: October 07, 2005, 10:14:44 am by clofland »
C-760 Last Running pdaXrom 1.1.0beta3
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -

clofland

  • Full Member
  • ***
  • Posts: 247
    • View Profile
    • http://www.lofland.net/
No Bluetooth To Internet Via Cellphone
« Reply #1 on: October 07, 2005, 10:18:27 am »
Problem solved. It works wonderfully from the command line. I hadn't done PPP on Linux from the command line since before DSL, but it works flawlessly!

The "PPP Dialer" just seems to have problems. Command line is better anyway.

If anyone needs help, let me know. Oh, and most PPP "HOWTO" doc's say that it cannot pull DNS from the remote automatically. That isn't true, just use the "usepeerdns" option in your options file.

pdaXrom ROCKS, time to change my signature!
C-760 Last Running pdaXrom 1.1.0beta3
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -

stbrock

  • Full Member
  • ***
  • Posts: 149
    • View Profile
    • http://
No Bluetooth To Internet Via Cellphone
« Reply #2 on: October 08, 2005, 12:42:12 am »
Quote
Problem solved. It works wonderfully from the command line.
...
If anyone needs help, let me know.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=98551\"][{POST_SNAPBACK}][/a][/div]
I have had the same experience -- just worked in Cacko but pppdialer app doesn't work in pdaXrom with bluetooth. I'm using the Socket USB bluetooth dongle, not CF bluetooth, keeping the CF slot clear for large CF flash memory card.

I'd be happy to use your command line sequence to get it going rather than a couple of hours of RTFM and forum searching -- though I'll probably need to do that at some point anyway to fine tune.

clofland

  • Full Member
  • ***
  • Posts: 247
    • View Profile
    • http://www.lofland.net/
No Bluetooth To Internet Via Cellphone
« Reply #3 on: October 10, 2005, 11:33:47 am »
Here is a PM conversation I had, see if this works for you:

For GPRS, first try setting it up with the PPP Modem applet under System Tools, and then see if you can dial in with the PPP Dialer under Internet.

For me the dial-in number was *99#, works for most. The username password is:
WAP@CINGULARGPRS.COM
CINGULAR1
(case sensitive)
for Cingular, if you have another carrier, you'll have to dig (google) to find out the settings.

Under modem, the device is /dev/rfcomm0
init string is atz

make sure your phone is discoverable, and hit "search" to find the BT DUN

That should be it, and anything else obviouse that I may have forgotten to point out.

If it won't dial, then try this.

The settings you made are in /etc/ppp/peers/DIALUPNAME (whatever you set it to in the PPP Modem applet

Copy that file to /etc/ppp/options

edit /etc/ppp/options and add these config lines:
usepeerdns

I think that is it.

Then run from the command line:
pppd -d

and it should connect for you.

I may have left something out here. I played for a long time with it, and you know how we forget what we did . . .

Let me know how it goes. If it works for you, I'll post it somewhere so others can use it (and so I can refer back to it later).
___
thanks alot for the help..

i'm using tmobile..so i can dial *9***1# and get an ip but no access.. i've heard they have a free limited internet service...but have to look into that more... so yea, i was able to connect fine through the GUIs
the only thing i had to do before though is

rfcomm bind 0 00:02:EE:60:97:6E 1

i found that out from http://www.teaparty.net/technotes/blue-gprs.html
cheers!
C-760 Last Running pdaXrom 1.1.0beta3
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -

stac

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
No Bluetooth To Internet Via Cellphone
« Reply #4 on: October 20, 2005, 03:42:03 pm »
Hi there - I've been struggling with this all day today. I have a C-1000 with a socket BT card, and a Treo 650 on Cingular, like you...

I get the following error when I connect:

LCP terminated by peer sent

Can you Zip up the config files you are using for the PPP connection so I can give yours a try?

TIA!
Stac


Quote
make sure your phone is discoverable, and hit "search" to find the BT DUN

That should be it, and anything else obviouse that I may have forgotten to point out.

If it won't dial, then try this.

The settings you made are in /etc/ppp/peers/DIALUPNAME (whatever you set it to in the PPP Modem applet

Copy that file to /etc/ppp/options

edit /etc/ppp/options and add these config lines:
usepeerdns

I think that is it.

Then run from the command line:
pppd -d

and it should connect for you.

I may have left something out here. I played for a long time with it, and you know how we forget what we did . . .

Let me know how it goes. If it works for you, I'll post it somewhere so others can use it (and so I can refer back to it later).
Sporting...

CacKo 1.23

Sl-C1000, PDAir Leather Case, 1GB ATP 60X SD, Socket 10/100 CF, NetGear MA701, Memorex 64MB (for flashing), 1GB Microdrive (for storing ipkgs and data)


Visit my new package feed and feel free to donate to show your support!

clofland

  • Full Member
  • ***
  • Posts: 247
    • View Profile
    • http://www.lofland.net/
No Bluetooth To Internet Via Cellphone
« Reply #5 on: October 25, 2005, 10:40:37 am »
Sorry for the delay in response to everyone.

If the files are set up right, you can run:

pppd -d

to connect and

/etc/ppp/ppp-off

to hang up.

Here are the relevent files:

/etc/ppp/options
Code: [Select]
460800
/dev/rfcomm0
connect '/usr/sbin/chat -s -v ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "AT+CGDCONT=1,\\"IP\\",\\"isp.cingular\\"" OK ATDT*99***1# CONNECT'
crtscts
noipdefault
modem
user "ISP@CINGULARGPRS.COM"
defaultroute
usepeerdns
connect-delay 60000
remotename Cingular
updetach
(the "connect" line is ALL ONE LINE, but most browsers wrap it)

/etc/ppp/chap-secrets
Code: [Select]
# Secrets for authentication using CHAP
# client    server    secret      IP addresses
ISP@CINGULARGPRS.COM Cingular "CINGULAR1"

/etc/ppp/pap-secrets
Code: [Select]
# Secrets for authentication using PAP
# client    server    secret      IP addresses
ISP@CINGULARGPRS.COM Cingular "CINGULAR1"
(Yes, pap and chap secrets are identical)

The next file may be geneated by running
Code: [Select]
rfcomm bind 0 00:00:00:00:00:00 1where you put in the MAC address of your phone instead.

/etc/bluetooth/rfcomm.conf
Code: [Select]
rfcomm0 {
    bind yes;
    device 00:00:00:00:00:00;
    channel 1;
    comment "Generated by BT dial-up network applet.";
}
(Again, be sure to put in the right MAC address if you try making the above file by hand, instead of using the command line.)
(This file and all was done for me automatically by the modem setup in RC11, so I am not sure if I have missed a step here somewhere.)

Obviously some of the passwords and dial strings are Cingular specific, and you may need to change them to meet your needs.

Let us know here in the forum if you find more information. Thanks.
C-760 Last Running pdaXrom 1.1.0beta3
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -