unsupported wiimote

287 views
Skip to first unread message

al...@paranoici.org

unread,
Aug 31, 2012, 1:34:34 PM8/31/12
to python-w...@googlegroups.com
Python-whiteboard and cwiid don't work with
these wiimote models:

LMA-RVL-WR/C C4
LMA-RVL-WR/Z-C4
LMB-RVL-WR/Z-C4
LMB-RVL-WR/Z-C6
LMA-RVL-WR/Z-C4

Are there some hacker that can help use to fix these problems

Pietro Pilolli

al...@paranoici.org

unread,
Aug 31, 2012, 2:27:59 PM8/31/12
to python-w...@googlegroups.com
I have been loocking for a solution on the net and I have seen that
some programs has resolved this issue.
The good neews is that we can fix it.

We need a not supported wiimote, a C coder, the cwwid code
(https://github.com/abstrakraft/cwiid) and some luck.
(I have not a not supported yet wiimote)

I have seen the patch at
http://code.google.com/r/adlr-mplus/source/detail?r=8fac488c591377e1381cec529824f5c53c588bbf&name=macbuild_wiimotefix

Non avendo il dispositivo mi sono limitato a leggere le patch e alcuni
parti delle cwiid e credo che con due patch
si possa risolvere
After reading the patch I'm sure that there are some problems in cwiid
- libcwiid/bluetooth.c:111

/* Filter by name */
if (!(flags & BT_NO_WIIMOTE_FILTER) &&
strncmp((*bdinfo)[bdinfo_count].name, WIIMOTE_NAME,
BT_NAME_LEN) &&
strncmp((*bdinfo)[bdinfo_count].name,
WIIBALANCE_NAME, BT_NAME_LEN)) {
continue;
}
wher WIIMOTE_NAME is defined in libcwiid/cwiid_internal.h as:

#define WIIMOTE_NAME "Nintendo RVL-CNT-01"

Here we can see that the devices different by "Nintendo RVL-CNT-01"
will be neglected.
Here we must add as valid names:
"Nintendo RVL-CNT-01-TR"
"Nintendo RVL-WBC-01"

- libcwiid/bluetooth.c:104

/* timeout (10000) in milliseconds */
if (hci_read_remote_name(sock, &dev_list[i].bdaddr,
BT_NAME_LEN,
(*bdinfo)[bdinfo_count].name,
10000)) {
cwiid_err(NULL, "Bluetooth name read error");
err = 1;
goto CODA;
}

This check could fail


With some luck we could solve the issue.
If anyone want found to fix it please write it in mailing list.
I'm available to support the development.

Pietro Pilolli

al...@paranoici.org

unread,
Aug 31, 2012, 2:43:53 PM8/31/12
to python-w...@googlegroups.com
Errata corridge: "Nintendo RVL-WBC-01" is the wiimote balance and it is
handled correctly
"Nintendo RVL-CNT-01-TR" is missing
a patch similar to with the new name is needed for sure:
http://abstrakraft.org/cwiid/attachment/ticket/99/cwiid-nykowand.patch

Maritza

unread,
May 5, 2013, 10:50:52 PM5/5/13
to python-w...@googlegroups.com
Hello Prieto, i have a wii remote LMB-RVL-WR/Z-C4 and the phyton whiteboard can not recognize it, i downloaded the version 1.0.4. Still i am trying and i can not use it  
: (  .
I have a very little experience in Linux    : (

What can i do ? thnx : ) 

al...@paranoici.org

unread,
May 6, 2013, 4:37:40 AM5/6/13
to python-w...@googlegroups.com
On 06.05.2013 02:50, Maritza wrote:
> Hello Prieto, i have a wii remote LMB-RVL-WR/Z-C4 and the phyton
> whiteboard can not recognize it, i downloaded the version 1.0.4. Still
> i am trying and i can not use it
> : ( .
> I have a very little experience in Linux : (
>
> What can i do ? thnx : )

Be sure that the problem is the wiimote (could be library version or
bluetooth dongle).
Try to take a well known supported model and try if you are able
to connect to it from your computer then retry to use the
LMB-RVL-WR/Z-C4.
In this way we will be sure that the code does not work with
LMB-RVL-WR/Z-C4.

The model seems a new Wiimote plus model and then this might work only
syncronizing it with the sync red button
below the battery pack and not with the usual 1+2 button pressure. Put
a paper ball between the battery pack and the red button,
in this way it will stay pushed and the blue light will blink to report
the in progress sync.
Infact in the new models pressing 1+2 buttons use a different sync way
with some unknown authorization stuff bypassed using the red sync
button.

An other issue; I remember that you must be sure that you are synching
the bluetooth with python whiteboard. Do not use the bluettoth applet
and be
sure that the bluettoth manager ignore the device.

I help that this suggestions can help you (and I hope that no more code
patch are required).

Pilolli Pietro

> El viernes, 31 de agosto de 2012 12:34:35 UTC-5, alpha escribió:
>
>> Python-whiteboard and cwiid don't work with
>> these wiimote models:
>>
>> LMA-RVL-WR/C C4
>> LMA-RVL-WR/Z-C4
>> LMB-RVL-WR/Z-C4
>> LMB-RVL-WR/Z-C6
>> LMA-RVL-WR/Z-C4
>>
>> Are there some hacker that can help use to fix these problems
>>
>> Pietro Pilolli
>
> El viernes, 31 de agosto de 2012 12:34:35 UTC-5, alpha escribió:
>
>> Python-whiteboard and cwiid don't work with
>> these wiimote models:
>>
>> LMA-RVL-WR/C C4
>> LMA-RVL-WR/Z-C4
>> LMB-RVL-WR/Z-C4
>> LMB-RVL-WR/Z-C6
>> LMA-RVL-WR/Z-C4
>>
>> Are there some hacker that can help use to fix these problems
>>
>> Pietro Pilolli
>
> --
> You received this message because you are subscribed to the Google
> Groups "python-whiteboard" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to python-whitebo...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out [1].
>
>
>
> Links:
> ------
> [1] https://groups.google.com/groups/opt_out

Maritza Luna

unread,
May 14, 2013, 5:51:33 PM5/14/13
to python-w...@googlegroups.com
Hi Prieto,

I did your instructions and i can not syncronize it , how can i know what is the correct library version ? the python whiteboard  1.0.4 has the correct or i need to modify with a patch ? if i need to modify, what app can i use ?. What bluetooth manager i need to use ? .

thanks.

--
You received this message because you are subscribed to a topic in the Google Groups "python-whiteboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-whiteboard/xVOwjlSwnoI/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to python-whiteboard+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



al...@paranoici.org

unread,
May 19, 2013, 6:06:37 AM5/19/13
to python-w...@googlegroups.com
Dear python-whiteboard mailing list,
especially to Pere Negre

Now the python-whiteboard works with new Wiimote Plus and old model one
but a lot of people have some problems because don't know the "red
button sync trick".
I remarks that now python-whiteboard with Wiimote Plus RVL-CNT-01-TR
works only
holding the red button under the battery pack and IT DOES NOT WORK
SYNCHYND WITH 1+2 buttons
in from of the wiimote.

In order to solve this problems I suggest two issue:
1) In the case that is detected RVL-CNT-01-TR python-whiteboard must
write a message as
"Hold the red sync button under the battery pack" insead of "Press
1+2..."
2) It seems that is possible use the 1+2 buttons sync implementing a
bluetooth pairing.
The pin can be easily calculated starting from mac
(Let see "Bluetooth Communication/Bluetooth Pairing" on
http://wiibrew.org/wiki/Wiimote)

The first one is a short term solution. (Pere Negre could you fix it?
Someone else?)
The second one requires skills and a Wiimote Plus (Someone is
interested to investigate about it?)

Sorry for the request but now I have no more time to code but I think
that these improvements can help
a lot of people.

Thanks in advance to alls

Pilolli Pietro
Reply all
Reply to author
Forward
0 new messages