I don't think it'll make any difference, but try the latest SVN version.
Got a reply from the BlueZ folks, I think we may have found the problem,
although fixing it may be another matter.
[Donnie Smith]
Hthis is a tricky one.
One other idea to try (attached). Make sure you have no other bluetooth
devices around.
With this patch in place, it seem to connect ever time. I've tried 5
times so far.
Friendly,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [EMAIL
Aha - progress!
I actually commented 2 parts, now lets uncomment one of them and see what
happens.
Donnie
Index: libcwiid/bluetooth.c
===
--- libcwiid/bluetooth.c(revision 83)
+++ libcwiid/bluetooth.c(working copy)
@@
[Donnie Smith]
Aha - progress!
I actually commented 2 parts, now lets uncomment one of them and see what
happens.
Still work with the hci_open_dev() in place and the call to get the
name commented out. :)
Friendly,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with
[Donnie Smith]
Try this one. I added an error message if the device socket doesn't close,
and added a pause before the connect. I'm thinking perhaps the device
hasn't closed and cleaned up by the time wiimote_connect tries to connect to
it.
The addresses print out the same, so I'm thinking
Hthis is a tricky one.
One other idea to try (attached). Make sure you have no other bluetooth
devices around.
I've posted the question to the BlueZ-devel mailing list, hopefully someone
has come across something similar.
Donnie
Index: libcwiid/bluetooth.c
Hi !
For this kind of bug report, you better submit to cwiid's main trac system..
However, cwiid's author is CCed in this mail..
Romain
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Hello again, Petter.
This is a currently unsolved mystery experienced by a lot of people, and
unfortunately, I'm unable to duplicate it. I'd be much obliged if you could
help me debug it.
Thanks,
Donnie
[Donnie Smith]
Hello again, Petter.
This is a currently unsolved mystery experienced by a lot of people,
and unfortunately, I'm unable to duplicate it. I'd be much obliged
if you could help me debug it.
I'm happy to help debug it, but have no idea where to start. I've
done some initial
Le mardi 10 avril 2007 17:39, Petter Reinholdtsen a écrit :
[Donnie Smith]
Hello again, Petter.
This is a currently unsolved mystery experienced by a lot of people,
and unfortunately, I'm unable to duplicate it. I'd be much obliged
if you could help me debug it.
I'm happy to help
First thing I want to see is the bluetooth address that it finds: in
cwiid/wiimote/connect.c (assuming 0.5.02), declare a char bd_str[18] in
wiimote_connect, then after line 85, add:
ba2str(bdaddr, bd_str);
printf(found wiimote at %s\n, bd_str);
The output should match the address you get from
[Donnie Smith]
The output should match the address you get from hci_tool and lswm. I
suspect it won't.
I applied this patch to the svn version:
Index: wiimote/connect.c
===
--- wiimote/connect.c (revisjon 81)
+++
Try this one. I added an error message if the device socket doesn't close,
and added a pause before the connect. I'm thinking perhaps the device
hasn't closed and cleaned up by the time wiimote_connect tries to connect to
it.
The addresses print out the same, so I'm thinking it might be the
Package: wmgui
Version: 0.5.02-1
Severity: important
I ran into a problem with wmgui and wminput with the package I rebuilt
for Debian/etch. It fail to detect the Wii handset. I have to give
the handset ID on the command line to get it to detect it.
With wmgui, I select File-Connect, press 1
I tried the debugging steps described on the trac page, after fetching
the svn version of the source to get lswm. Here is the output:
% hcitool scan; hcitool inq 00:19:1D:C4:72:F8 ; LD_LIBRARY_PATH=../wiimote
./lswm
Scanning ...
00:19:1D:C4:72:F8 Nintendo RVL-CNT-01
I just tried to connect to the wiimote using an arm machine I have
available (Linksys NSLU2). This one was able to connect to the remote
without any problems. Here is the output from this machine:
slug:~# hcitool scan; hcitool inq 00:19:1D:C4:72:F8
Scanning ...
00:19:1D:C4:72:F8
16 matches
Mail list logo