Default PIN for bluez-gnome wizard

Daniel Roesler diafygi at gmail.com
Sun Nov 9 06:02:18 UTC 2008


Howdy all,

I have a partial patch for Bug #284994, which points out a problem
with PIN codes in the bluez-gnome wizard. Right now, the code randomly
selects a PIN code for the user to enter on the device. However, on
many devices you cannot input a custom PIN code, so the device fails
to connect. Most simple devices this affects have the default code
"0000", so I changed a line of in the bluez-gnome to try that as a
default.

/bluez-gnome-1.8/wizard/main.c near the bottom
-----------FROM-----------
target_pincode = g_strdup_printf("%d", g_random_int_range(1000, 9999));
-------------TO-------------
target_pincode = g_strdup_printf("0000");
-----------------------------

This patch will only work for devices who's default code is "0000".
Ideally, the user should be able to set their own code instead of a
random one. I'm not a programmer and don't have any experience with
gtk, so I don't know how to implement the ideal feature. Anyway, just
wanted to see if a partial patch could be added to the updates.

Avast!
Daniel Roesler
diafygi at gmail.com




More information about the Ubuntu-devel-discuss mailing list