Connect phone to Telstra NextG using Ubuntu?

Jean Hollis Weber jeanweber at gmail.com
Fri Nov 2 07:32:39 GMT 2007


David Whyte wrote:
> On 11/2/07, Jean Hollis Weber <jeanweber at gmail.com> wrote:
>> I'm feeling conspicuously dumb today (as you'll see below), so I hope you
>> or someone will take pity on me and help me find my way.
> 
> I do understand.  I am just having an uber busy day at work so can't
> really take the time out to help now.

No worries. I'm not in any great hurry. (I should have said that earlier.) 
Today I got a bit further, following your instructions belows, and with a 
few clues from Karl Bowden's note. (Thanks, Karl.)

> You have to first pair the phone.  I did this from my Windows Mobile
> phone as there doesn't seem to be a nice graphical user interface
> (GUI) for this in Ubuntu.  My phone then showed up when I went into
> preferences.

I have now managed to pair the two.

> Then you need to know the hardware address of the phone, which is in
> the format of NN:NN:NN:NN (off the top of my head).

This one had me stumped for awhile, until Karl mentioned hcitool scan. That 
got me the number, which is 00:1D:98:7F:E8:27. Then I got the channel 
number (2) using sdptool search dun

Do I need to do the third step Karl mentioned?
sudo rfcomm bind 0 00:1D:98:7F:E8:27 2

Do I need the 3 files he mentioned?

> Then I had to start the PAN server on the phone

I'm not sure what the "PAN server on the phone" is or how to start it.

> and connect to it from
> Ubuntu by typing the command *similar* to the following..
> 
> sudo pand --connect NN:NN:NN:NN -n
> 
> where I substitute my phones address from above.

I did that and got this:
jeanweber at jean07:~$ sudo pand --connect 00:1D:98:7F:E8:27 -n
pand[22441]: Bluetooth PAN daemon version 3.19
pand[22441]: Connecting to 00:1D:98:7F:E8:27
pand[22441]: Connect to 00:1D:98:7F:E8:27 failed. Connection refused(111)

>> When I select "Browse Device" my phone shows up in the little dialog, but
>> when I click Connect, I get an error message: "obex://[00:1d:98:7f:e8:27]"
>> is not a valid location. Please check the spelling and try again." Huh?
>> What have I not done, or done wrong? What should I do?
> 
> I don't think Windows Mobile is supporting the correct profile to
> allow things to browse the device.  I don't know what profile that is
> though.

I'm not using a Windows Mobile phone. It's a Nokia. Not sure whether that 
makes any difference; may still be a profile problem... whatever a profile 
is and wherever it might be hiding. :-)

>> My phone offers to exchange a passcode with the computer, but I have no
>> idea where to input the passcode on the computer.
> 
> My BT icon in the top tray flashes.  You have to click the flashing icon.

OK, this worked this time and I was able to pair it. However, I'm still 
getting the obex error message mentioned earlier.

Well, I've made progress today, but still have aways to go.

I've included the output of my whole session below, in case you or someone 
can interpret it for more clues.

--Jean

jeanweber at jean07:~$ hcitool scan
Scanning ...
         00:10:C6:5F:FE:4C       D63WCF1S
         00:1D:98:7F:E8:27       Nokia 6120 classic
jeanweber at jean07:~$ sdptool search dun
Inquiring ...
Searching for dun on 00:10:C6:5F:FE:4C ... {{This is the other computer}}
Service Name: Dial-up Networking
Service RecHandle: 0x10005
Service Class ID List:
   "Dialup Networking" (0x1103)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 5
Language Base Attr List:
   code_ISO639: 0x656e
   encoding:    0x6a
   base_offset: 0x100
Profile Descriptor List:
   "Dialup Networking" (0x1103)
     Version: 0x0100

Searching for dun on 00:1D:98:7F:E8:27 ... {{This is the phone}}
Service Name: Dial-Up Networking
Service RecHandle: 0x10002
Service Class ID List:
   "Dialup Networking" (0x1103)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 2
Language Base Attr List:
   code_ISO639: 0x454e
   encoding:    0x6a
   base_offset: 0x100
Profile Descriptor List:
   "Dialup Networking" (0x1103)
     Version: 0x0100

jeanweber at jean07:~$ sudo rfcomm bind 0 00:1D:98:7F:E8:27 2
[sudo] password for jeanweber:
jeanweber at jean07:~$ sdptool search dun
Inquiring ...
Searching for dun on 00:10:C6:5F:FE:4C ...
Service Name: Dial-up Networking
Service RecHandle: 0x10005
Service Class ID List:
   "Dialup Networking" (0x1103)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 5
Language Base Attr List:
   code_ISO639: 0x656e
   encoding:    0x6a
   base_offset: 0x100
Profile Descriptor List:
   "Dialup Networking" (0x1103)
     Version: 0x0100

Searching for dun on 00:1D:98:7F:E8:27 ...
Service Name: Dial-Up Networking
Service RecHandle: 0x10002
Service Class ID List:
   "Dialup Networking" (0x1103)
Protocol Descriptor List:
   "L2CAP" (0x0100)
   "RFCOMM" (0x0003)
     Channel: 2
Language Base Attr List:
   code_ISO639: 0x454e
   encoding:    0x6a
   base_offset: 0x100
Profile Descriptor List:
   "Dialup Networking" (0x1103)
     Version: 0x0100

jeanweber at jean07:~$ sudo pand --connect
jeanweber at jean07:~$ sudo pand --connect 00:1D:98:7F:E8:27 -n
pand[22441]: Bluetooth PAN daemon version 3.19
pand[22441]: Connecting to 00:1D:98:7F:E8:27
pand[22441]: Connect to 00:1D:98:7F:E8:27 failed. Connection refused(111)






More information about the ubuntu-au mailing list