Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 0/3] Support binary pin codes
@ 2011-04-02 19:51 David Herrmann
  2011-04-02 19:51 ` [PATCH 1/3] Add length argument to hci pincode reply David Herrmann
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: David Herrmann @ 2011-04-02 19:51 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: hadess, marcel, David Herrmann

This patch series allows passing binary bluetooth PINs to the hci handlers
by adding a pin_len argument. This is required to support devices which
require binary PINs like the Nintendo Wii Remote.

This patch series also adds Nintendo Wii Remote pairing support by hardcoding
the PIN. This was discussed earlier in:
http://thread.gmane.org/gmane.linux.bluez.kernel/3961

Marcel suggested automatic pairing inside the daemon by VID/PID detection
and this patch implements this approach. See:
http://thread.gmane.org/gmane.linux.bluez.kernel/3964


Regards
David

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] Support hardcoded Nintendo Wii Remote pins
@ 2011-04-06 10:04 Daniele Forsi
  2011-04-06 10:55 ` David Herrmann
  0 siblings, 1 reply; 10+ messages in thread
From: Daniele Forsi @ 2011-04-06 10:04 UTC (permalink / raw)
  To: linux-bluetooth

David Herrmann wrote:

> The Nintendo Wii Remote requires the destination bluetooth address
> as pincode.

according to my my tests they require the source address, ie the host
adapter's address

> +		/* Nintendo Wii Remote uses destination address as PIN */

better to document in that comment if it works when pressing the red
button or the 1+2 buttons

I tested your 3 patches against bluez git 4.91-32-gd7f412e and
gnome-bluetooth 2.32 but they didn't work for me for 2 reasons:
1) can't get vid/pid so when the remote is unknown the
read_device_id() call in your code fails to get vid/pid and the
specific pin is never tried; the same happens after a failed pairing
when the /var/lib/bluetooth/*/did file contains a line this:
00:1F:C5:25:36:87 FFFF 0000 0000 0000
2) the source vs destination address I mentioned above

It works for me if I manually edit that line with the values read from
another wiimote's line:
00:1F:C5:25:36:87 0002 057E 0306 0600
and if I change dba to sba here
>			memcpy(pinbuf, dba, 6);

how can I help you to debug these issues?

BTW pairing also works when I use the test code mentioned in
https://bugzilla.gnome.org/show_bug.cgi?id=603845#c6
-- 
Daniele Forsi

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-04-06 18:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-02 19:51 [PATCH 0/3] Support binary pin codes David Herrmann
2011-04-02 19:51 ` [PATCH 1/3] Add length argument to hci pincode reply David Herrmann
2011-04-02 19:51 ` [PATCH 2/3] Make adapter API accept binary pincodes David Herrmann
2011-04-02 19:51 ` [PATCH 3/3] Support hardcoded Nintendo Wii Remote pins David Herrmann
  -- strict thread matches above, loose matches on Subject: below --
2011-04-06 10:04 Daniele Forsi
2011-04-06 10:55 ` David Herrmann
2011-04-06 14:05   ` Daniele Forsi
2011-04-06 14:31     ` Bastien Nocera
2011-04-06 17:55       ` David Herrmann
2011-04-06 18:05         ` Bastien Nocera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox