OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Bluetooth Dial-up Always Asks For Z Pin
jackburton
post Jan 19 2007, 09:31 AM
Post #1





Group: Members
Posts: 22
Joined: 23-March 04
From: Virginia
Member No.: 2,464



Hello,

I'm using a Zaurus 3100 with a Socket Bluetooth Card. I'm connecting to my Ericsson w810i using qtopia bluetooth applet to dial-up to the internet. Everything works fine. My issue is this:

Everytime the Z dials the phone, the phone asks for the Z's PIN. I always enter the pin and always get a connection. How come the phone always asks for the PIN? I thought after initial pairing, it shouldn't happen again. I don't want to have to take my phone out of my pocket to enter the PIN.

I have told the phone to "Always Allow" the Z, but it always asks for the PIN.

Does anybody else have this issue with their phones?

BTW, my Palm Tungsten E2 can dial-up w/o password after the first pairing occurred, so I assume this problem is in the way the Z negotiates BT connection with phone and not a problem with the phone.

FWIW, here is the INIT string for the Palm
CODE
E0X1+CMEE=1;+CMGF=0;V1


Also, FWIW, the phone is listed as a "Trusted Device" on the Palm. Where is the list of "Trusted Devices" on the Z?

TIA
Go to the top of the page
 
+Quote Post
harvell
post Jan 19 2007, 10:20 AM
Post #2





Group: Members
Posts: 242
Joined: 11-May 06
From: Silicon Valley, CA
Member No.: 9,831



When I was running w/ Cacko it would do the same thing. I haven't noticed it with pdaXrom. Did you try changing the pin in /etc/bluetooth/pin ???
Go to the top of the page
 
+Quote Post
harvell
post Jan 19 2007, 10:20 AM
Post #3





Group: Members
Posts: 242
Joined: 11-May 06
From: Silicon Valley, CA
Member No.: 9,831



Actually what ROM are you using????
Go to the top of the page
 
+Quote Post
jackburton
post Jan 19 2007, 10:28 AM
Post #4





Group: Members
Posts: 22
Joined: 23-March 04
From: Virginia
Member No.: 2,464



QUOTE(harvell @ Jan 19 2007, 01:20 PM)
Actually what ROM are you using????
*



Stock Sharp ROM
qtopia-bluetoothnetworkapplet 1.0.1
Go to the top of the page
 
+Quote Post
jackburton
post Jan 19 2007, 10:44 AM
Post #5





Group: Members
Posts: 22
Joined: 23-March 04
From: Virginia
Member No.: 2,464



QUOTE
Stock Sharp ROM
qtopia-bluetoothnetworkapplet 1.0.1
*


More info.

Removing /etc/bluetooth/pin does nothing. It still works the same.

HOWEVER,
commenting the line
CODE
echo "PIN:1234"

in /usr/bin/bluepin causes the phone to reject the Bluetooth connection. It still asks for a PIN, though.

It seems the phone wants to add the Z every time,
and then I enter my PIN into the phone,
which is validated by the Z's response from /usr/bin/bluepin
Go to the top of the page
 
+Quote Post
jackburton
post Jan 19 2007, 10:51 AM
Post #6





Group: Members
Posts: 22
Joined: 23-March 04
From: Virginia
Member No.: 2,464



Just doing a
CODE
rfcomm connect 1  00:16:XX:XX:XX:XX


causes the phone to prompt for the PIN as well.
Go to the top of the page
 
+Quote Post
speculatrix
post Jan 19 2007, 01:22 PM
Post #7





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(jackburton @ Jan 19 2007, 07:44 PM)
  commenting the line
CODE
echo "PIN:1234"

in /usr/bin/bluepin causes the phone to reject the Bluetooth connection. It still asks for a PIN, though.
*


it should really be
echo -n "PIN:1234"


or even
echo -n "PIN:"
cat /etc/bluetooth/pin

where /etc/bluetooth/pin contains just "1234" with no end of line.
Go to the top of the page
 
+Quote Post
jackburton
post Jan 19 2007, 02:56 PM
Post #8





Group: Members
Posts: 22
Joined: 23-March 04
From: Virginia
Member No.: 2,464



QUOTE(speculatrix @ Jan 19 2007, 04:22 PM)
it should really be
    echo -n "PIN:1234"


or even
    echo -n "PIN:"
    cat /etc/bluetooth/pin

where /etc/bluetooth/pin contains just "1234" with no end of line.
*


Thank you, but sadly it did not work.

I tried both of your suggestions and I still get the prompt from the phone.

Where exactly in the stack does the pairing process occur? It's almost as if the Z presents itself to the phone as a different device each time.

I wonder if I try with my Ubuntu desktop if it would behave the same.
Go to the top of the page
 
+Quote Post
jackburton
post Jan 19 2007, 03:18 PM
Post #9





Group: Members
Posts: 22
Joined: 23-March 04
From: Virginia
Member No.: 2,464



This is just a shot in the dark, but would the OBEX Push service help?

I noticed that my laptop (running windows and bluesoleil) and the Palm (this is the only service running on the Palm) both have this service running when I browse services from my phone. When I browse services from my phone on the Z, it says nothing is running.
Go to the top of the page
 
+Quote Post
speculatrix
post Jan 19 2007, 03:23 PM
Post #10





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(jackburton @ Jan 19 2007, 11:56 PM)
I tried both of your suggestions and I still get the prompt from the phone.

Where exactly in the stack does the pairing process occur? It's almost as if the Z presents itself to the phone as a different device each time.

I wonder if I try with my Ubuntu desktop if it would behave the same.
*


look for a file called /etc/bluetooth/link_key or similar, delete it (it's the Z's database of paired devices), then on the phone delete the pairing, and turn it off, remove its battery for 10s, then power it on and try pairing again.

p.s. ensure that /etc/bluetooth/hcid.conf has a static name defined for the Z, i.e make it hard-wired.
Go to the top of the page
 
+Quote Post
speculatrix
post Jan 19 2007, 03:26 PM
Post #11





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(jackburton @ Jan 20 2007, 12:18 AM)
This is just a shot in the dark, but would the OBEX Push service help?

I noticed that my laptop (running windows and bluesoleil) and the Palm (this is the only service running on the Palm) both have this service running when I browse services from my phone. When I browse services from my phone on the Z, it says nothing is running.
*


no, I don't think so. this is a much higher level than the pairing process. you can tweak the device ID if you wish. I modified the hcid.conf on my server so I could play...

*edit* oops, I copied in the suse default one
CODE
       # Service class - OR these together - note that this is
       # only really used for initial scan for services by a
       # bluetooth scanning device, it will then use SDP to
       # find what's running.
       # IAC https://www.bluetooth.org/foundry/assignnumb/document/baseband
       #  0x002bbb = "Limited Discoverable Mode [Ref#1]"
       #  0x004bbb = "reserved"
       #  0x008bbb = "reserved"
       #  0x010bbb = "Positioning (Location identification)"
       #  0x020bbb = "Networking (LAN,Ad hoc,..)"
       #  0x040bbb = "Rendering (Printing,Speaker,..)"
       #  0x080bbb = "Capturing (Scanner, Microphone,..)"
       #  0x100bbb = "Object Transfer  (v-Inbox,v-Folder,..)"
       #  0x200bbb = "Audio (Speaker,Microphone,Headset service,..)
       #  0x400bbb = "Telephony (Cordless telephony, Modem, Headset service,...)"
       #  0x800bbb = "Information (WEB-server, WAP-server, ...)"
       #
       # Major/Minor device class
       #  The 'sss' above define the service-class, add value below
       #  0xss01bb = Computer type of device
       #  0xss0100 = .. uncategorized
       #  0xss0104 = .. Desktop
       #  0xss0108 = .. Server
       #  0xss010c = .. Laptop
       #  0xss0110 = .. Handheld PC/PDA (clamshell)
       #  0xss0114 = .. Handheld PC/PDA (palm sized)
       #  0xss0118 = .. Wearable Computer (watch sized)
       #  0xss01xx = other values reserved
       class 0x920104;


the device class is supplemented by the SDP daemon announcing what is running.

This post has been edited by speculatrix: Jan 19 2007, 03:30 PM
Go to the top of the page
 
+Quote Post
jackburton
post Jan 20 2007, 08:38 AM
Post #12





Group: Members
Posts: 22
Joined: 23-March 04
From: Virginia
Member No.: 2,464



Thanks! That worked! The only difference is that I had to delete
CODE
/var/lib/bluetooth/xx:xx:xx:xx:xx:xx/linkkeys


I dial-up to the zaurus and in seconds I'm online using Cingular. This is awesome. My phone stays in my pocket , which used to be soooooo annoying before when I had to always enter the pin.

Thanks again. biggrin.gif
Go to the top of the page
 
+Quote Post
speculatrix
post Jan 20 2007, 01:36 PM
Post #13





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(jackburton @ Jan 20 2007, 05:38 PM)
Thanks! That worked! The only difference is that I had to delete
CODE
/var/lib/bluetooth/xx:xx:xx:xx:xx:xx/linkkeys

Thanks again.  biggrin.gif
*


sounds like the linkkeys file had become corrupted, so although the Z did the pairing each time, when it stored the keys it couldn't reuse it and created a new session key each time.

I used to have this sort of problem when I only had one BT dongle (when they used to cost 50 dollars+) and transferred it from PC to PC, it used to confuse my Palm and Zaurus and I had to jump through hoops to unpair and re-pair. Now dongles are just US$15 I have three (well, two, I lost one on vacation, sadly, the best one :-(

glad to help.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd November 2014 - 07:35 PM