2009-07-13 01:40:17

by Wan, Shuang

[permalink] [raw]
Subject: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

Hi,

Just attempt to pair with a fixed pin device using bluetooth-wizard that doesn't have 0000 as its pin..I have a Gear4-Blackbox Mini (which is a headset/a2dp device) which has a fixed pin of 1234. When I try to pair the device it fails after attempting to use 0000, with no opportunity to enter any other pin.

It might be caused by the hard code in bluez-gnome, see bluez-gnome-1.8 source code wizard/main.c
static gboolean pincode_callback(DBusGMethodInvocation *context,
DBusGProxy *device, gpointer user_data)
{
..............

/* Most headsets are using 0000 as pincode */
if (target_type == BLUETOOTH_TYPE_HEADSET ||
target_type == BLUETOOTH_TYPE_HEADPHONE)
pincode = "0000";
...........
}

Anyone has come across this similar issue? Any suggestions?

Thanks!
Wan Shuang



2009-07-14 09:17:50

by Wan, Shuang

[permalink] [raw]
Subject: RE: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

SGkgTWFyY2VsLA0KDQoJU28gdGhlIGdub21lLWJsdWV0b290aCB3aWxsIGJlIHJlY29tbWVuZGVk
IFVJIGZvciBibHVlej8gQW5kIGJsdWV6LWdub21lIHdpbGwgYmUgbm8gbG9uZ2VyIG1haW50YWlu
ZWQgYnV0IHN0aWxsIGxpdmUgaW4gdGhlIGJsdWV6Lm9yZz8NCg0KVGhhbmtzIQ0KU2h1YW5nDQoN
Ci0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBNYXJjZWwgSG9sdG1hbm4gW21haWx0
bzptYXJjZWxAaG9sdG1hbm4ub3JnXSANClNlbnQ6IDIwMDnE6jfUwjE0yNUgMTA6MjMNClRvOiBC
YXN0aWVuIE5vY2VyYQ0KQ2M6IE1hcmlvX0xpbW9uY2llbGxvQERlbGwuY29tOyBXYW4sIFNodWFu
ZzsgbGludXgtYmx1ZXRvb3RoQHZnZXIua2VybmVsLm9yZw0KU3ViamVjdDogUkU6IGJsdWV0b290
aC13aXphcmQgcGluIGZpeGVkIGF0IDAwMDAgd2hpY2ggaXMgdW5hYmxlIHRvIHBhaXIgd2l0aCBo
ZWFkc2V0IHdpdGggb3RoZXIgcGlucw0KDQpIaSBCYXN0aWVuLA0KDQo+ID4gPiBOb3QgYmx1ZXot
Z25vbWUsIGdub21lLWJsdWV0b290aCwgYXMgYXZhaWxhYmxlIGluIHRoZSBHTk9NRSBnaXQgcmVw
by4NCj4gPiANCj4gPiBJZiB0aGVyZSBpcyBub3QgZ29pbmcgdG8gYmUgYW55IG1vcmUgZGV2ZWxv
cG1lbnQgaGFwcGVuaW5nIGFnYWluc3QgdGhlDQo+ID4gYmx1ZXotZ25vbWUgZ2l0IHRyZWUsIGNh
biBpdCBiZSBmb3JtYWxseSBraWxsZWQgd2l0aCBzb21lIGluZGljYXRpb24NCj4gPiB0aGF0IHBl
b3BsZSBzaG91bGQgd29yayBvbiBkZXZlbG9wbWVudCB3aXRoIGdub21lLWJsdWV0b290aCBhbmQv
b3INCj4gPiBibHVlbWFuIHRoZW4/DQo+IA0KPiBJIGJlbGlldmUgTWFyY2VsIHdhbnRzIHRvIGtl
ZXAgaXQgdG8gcGxheSBhcm91bmQgd2l0aCB0aGUgVUksIGZvciBuZXcNCj4gZmVhdHVyZXMuDQoN
CmNvcnJlY3QuIEFuZCBJIGFtIG5vdCBraWxsaW5nIGEgdHJlZSBqdXN0IGZvciB0aGUgZnVuIG9m
IGl0LiBJdCBpcyBhDQpnb29kIGhpc3RvcnkgbGVzc29uIGFuZCBnb29kIHRvIGhhdmUgdGhlIGNv
ZGUgYXJvdW5kLg0KDQpXZSBjYW4gdXBkYXRlIHd3dy5ibHVlei5vcmcuIEkgaW52aXRlIGFueWJv
ZHkgdG8gaGF2ZSBhbiBhY2NvdW50IHRoZXJlLg0KDQpSZWdhcmRzDQoNCk1hcmNlbA0KDQoNCg==

2009-07-14 02:23:17

by Marcel Holtmann

[permalink] [raw]
Subject: RE: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

Hi Bastien,

> > > Not bluez-gnome, gnome-bluetooth, as available in the GNOME git repo.
> >
> > If there is not going to be any more development happening against the
> > bluez-gnome git tree, can it be formally killed with some indication
> > that people should work on development with gnome-bluetooth and/or
> > blueman then?
>
> I believe Marcel wants to keep it to play around with the UI, for new
> features.

correct. And I am not killing a tree just for the fun of it. It is a
good history lesson and good to have the code around.

We can update http://www.bluez.org. I invite anybody to have an account there.

Regards

Marcel



2009-07-13 14:39:17

by Bastien Nocera

[permalink] [raw]
Subject: RE: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

On Mon, 2009-07-13 at 09:34 -0500, [email protected] wrote:
> > Not bluez-gnome, gnome-bluetooth, as available in the GNOME git repo.
>
> If there is not going to be any more development happening against the
> bluez-gnome git tree, can it be formally killed with some indication
> that people should work on development with gnome-bluetooth and/or
> blueman then?

I believe Marcel wants to keep it to play around with the UI, for new
features.


2009-07-13 14:34:29

by Mario Limonciello

[permalink] [raw]
Subject: RE: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

> Not bluez-gnome, gnome-bluetooth, as available in the GNOME git repo.

If there is not going to be any more development happening against the
bluez-gnome git tree, can it be formally killed with some indication
that people should work on development with gnome-bluetooth and/or
blueman then?

2009-07-13 13:01:49

by Bastien Nocera

[permalink] [raw]
Subject: RE: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

On Mon, 2009-07-13 at 20:14 +0800, Wan, Shuang wrote:
> Great! I will try using bluez-gnome git tree.

Not bluez-gnome, gnome-bluetooth, as available in the GNOME git repo.


2009-07-13 12:14:21

by Wan, Shuang

[permalink] [raw]
Subject: RE: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

R3JlYXQhIEkgd2lsbCB0cnkgdXNpbmcgYmx1ZXotZ25vbWUgZ2l0IHRyZWUuDQoNClRoYW5rcyEN
CldhbiBTaHVhbmcNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEJhc3RpZW4g
Tm9jZXJhIFttYWlsdG86aGFkZXNzQGhhZGVzcy5uZXRdIA0KU2VudDogMjAwOcTqN9TCMTPI1SAx
ODo0OA0KVG86IFdhbiwgU2h1YW5nDQpDYzogbGludXgtYmx1ZXRvb3RoQHZnZXIua2VybmVsLm9y
Zw0KU3ViamVjdDogUmU6IGJsdWV0b290aC13aXphcmQgcGluIGZpeGVkIGF0IDAwMDAgd2hpY2gg
aXMgdW5hYmxlIHRvIHBhaXIgd2l0aCBoZWFkc2V0IHdpdGggb3RoZXIgcGlucw0KDQpPbiBNb24s
IDIwMDktMDctMTMgYXQgMDk6NDAgKzA4MDAsIFdhbiwgU2h1YW5nIHdyb3RlOg0KPiBIaSwNCj4g
DQo+IEp1c3QgYXR0ZW1wdCB0byBwYWlyIHdpdGggYSBmaXhlZCBwaW4gZGV2aWNlIHVzaW5nIGJs
dWV0b290aC13aXphcmQNCj4gdGhhdCBkb2Vzbid0IGhhdmUgMDAwMCBhcyBpdHMgcGluLi5JIGhh
dmUgYSBHZWFyNC1CbGFja2JveCBNaW5pICh3aGljaA0KPiBpcyBhIGhlYWRzZXQvYTJkcCBkZXZp
Y2UpIHdoaWNoIGhhcyBhIGZpeGVkIHBpbiBvZiAxMjM0LiBXaGVuIEkgdHJ5IHRvDQo+IHBhaXIg
dGhlIGRldmljZSBpdCBmYWlscyBhZnRlciBhdHRlbXB0aW5nIHRvIHVzZSAwMDAwLCB3aXRoIG5v
DQo+IG9wcG9ydHVuaXR5IHRvIGVudGVyIGFueSBvdGhlciBwaW4uDQoNClRoaXMgaXMgZml4ZWQg
aW4gZ25vbWUtYmx1ZXRvb3RoLg0KDQpDaGVlcnMNCg0K

2009-07-13 12:12:40

by Wan, Shuang

[permalink] [raw]
Subject: RE: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

SGkgSm9obiwNCg0KCVRoYW5rcyBmb3IgeW91ciByZXBseS4gQWN0dWFsbHkgaXQncyBhIGJ1ZyBy
ZXBvcnRlZCB0byBtb2JsaW4yIGJ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ICAgICAgICAgICAgICAgICAgICAgICAg
REJ1c0dQcm94eSAqZGV2aWNlLCBncG9pbnRlciB1c2VyX2RhdGEpDQp7DQouLi4uLi4uLi4uLi4u
Lg0KDQogICAgICAgIC8qIE1vc3QgaGVhZHNldHMgYXJlIHVzaW5nIDAwMDAgYXMgcGluY29kZSAq
Lw0KICAgICAgICBpZiAodGFyZ2V0X3R5cGUgPT0gQkxVRVRPT1RIX1RZUEVfSEVBRFNFVCB8fA0K
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXRfdHlwZSA9PSBCTFVFVE9PVEhf
VFlQRV9IRUFEUEhPTkUpDQogICAgICAgICAgICAgICAgcGluY29kZSA9ICIwMDAwIjsNCi4uLi4u
Li4uLi4uDQp9DQoNCkFueW9uZSBoYXMgY29tZSBhY3Jvc3MgdGhpcyBzaW1pbGFyIGlzc3VlPyBB
bnkgc3VnZ2VzdGlvbnM/DQoNClRoYW5rcyENCldhbiBTaHVhbmcNCg0KLS0NCkRvZXMgaXQgd29y
ayB3aXRoIHNpbXBsZS1hZ2VudD8NCi0tDQpUbyB1bnN1YnNjcmliZSBmcm9tIHRoaXMgbGlzdDog
c2VuZCB0aGUgbGluZSAidW5zdWJzY3JpYmUgbGludXgtYmx1ZXRvb3RoIiBpbg0KdGhlIGJvZHkg
b2YgYSBtZXNzYWdlIHRvIG1ham9yZG9tb0B2Z2VyLmtlcm5lbC5vcmcNCk1vcmUgbWFqb3Jkb21v
IGluZm8gYXQgIGh0dHA6Ly92Z2VyLmtlcm5lbC5vcmcvbWFqb3Jkb21vLWluZm8uaHRtbA0K

2009-07-13 10:48:05

by Bastien Nocera

[permalink] [raw]
Subject: Re: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

On Mon, 2009-07-13 at 09:40 +0800, Wan, Shuang wrote:
> Hi,
>
> Just attempt to pair with a fixed pin device using bluetooth-wizard
> that doesn't have 0000 as its pin..I have a Gear4-Blackbox Mini (which
> is a headset/a2dp device) which has a fixed pin of 1234. When I try to
> pair the device it fails after attempting to use 0000, with no
> opportunity to enter any other pin.

This is fixed in gnome-bluetooth.

Cheers


2009-07-13 04:00:43

by John Frankish

[permalink] [raw]
Subject: RE: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Wan, Shuang
Sent: 13 July, 2009 05:40
To: [email protected]
Subject: bluetooth-wizard pin fixed at 0000 which is unable to pair with headset with other pins

Hi,

Just attempt to pair with a fixed pin device using bluetooth-wizard that doesn't have 0000 as its pin..I have a Gear4-Blackbox Mini (which is a headset/a2dp device) which has a fixed pin of 1234. When I try to pair the device it fails after attempting to use 0000, with no opportunity to enter any other pin.

It might be caused by the hard code in bluez-gnome, see bluez-gnome-1.8 source code wizard/main.c
static gboolean pincode_callback(DBusGMethodInvocation *context,
DBusGProxy *device, gpointer user_data)
{
..............

/* Most headsets are using 0000 as pincode */
if (target_type == BLUETOOTH_TYPE_HEADSET ||
target_type == BLUETOOTH_TYPE_HEADPHONE)
pincode = "0000";
...........
}

Anyone has come across this similar issue? Any suggestions?

Thanks!
Wan Shuang

--
Does it work with simple-agent?