Comment 13 for bug 284994

Revision history for this message
DanielRoesler (diafygi) wrote : Re: bluetooth-wizard unable to pair headset

lotus49 wrote:
> Same for me. I am trying to pair with a BT-Q880 GPS receiver and
> obviously, there is no way to enter a PIN so bluetooth in Intrepid is
> now useless for anything except keyboards.

I believe the latest snapshot of bluez-gnome adds support for some GPS receivers:
http://git.kernel.org/?p=bluetooth/bluez-gnome.git;a=commit;h=3db5bad47fafeebd8213fd85b8f47d2147d9250f

However, continually adding supported pin codes to the source code isn't really a long term solution. It would be better if there was an option to enter your own pin. Anyone know how to do this? I'm not familiar enough with gtk to feel comfortable adding this feature.

A possible catch-all patch (temporarily, at least), would be to change the default code tried from random to "0000," since it's what most devices use.

For example, from http://git.kernel.org/?p=bluetooth/bluez-gnome.git;a=tree
/bluez-gnome/wizard/main.c
----------CHANGE----------
line 548: target_pincode = g_strdup_printf("%d", g_random_int_range(1000, 9999));
-------------TO---------------
line 548: target_pincode = g_strdup_printf("%d", "0000");
-------------------------------
I'm not able to test this currently, can someone give it a try? I think the reason the number is randomly 1000-9999 is because leading zeros are not transferred correctly.