Wiimote on Android 4.2

vowywowy

Senior Member
Apr 13, 2011
90
11
0
Oshawa
I think I have found a way to connect a wiimote to 4.2 devices like the Nexus 10, but I need some help. In the Bluetooth menu off 4.2 you are able to find the wiimote and then it asks you for the PIN. Now here lies the problem: What is the PIN for the wiimote? Well I know a way to solve the PIN but I am not skilled enough to actually solve it. Allow me to elaborate below

1. Download the App: https://play.google.com/store/apps/details?id=com.ccpcreations.android.bluetoothmacfinder it will allow to find the wiimotes MAC address. Mine is: 00:19:1D:C2:25:CF yours will be different.

THIS IS WHERE I NEED HELP! I HAVE NO IDEA HOW TO ACTUALLY CALCULATE THE PIN! I AM NOT KNOWLEDGEABLE IN C AND HAVE NO CLUE WHAT THE OUTPUT OF THE CODE WILL BE!
2. Use this method to calculate the PIN of your Wiimote:
Lets assume my Wiimote is being used and has the bluetooth address "00:19:1D:C2:25:CF". If you want the PIN for bluetooth pairing in a simple string, do the following(This is 'C' code):

char pin[6];
pin[0] = 0x00;
pin[1] = 0x19;
pin[2] = 0x1D;
pin[3] = 0xC2;
pin[4] = 0x25;
pin[5] = 0xCF;

Now "pin" contains your bluetooth pin that should be used for pairing your devices.

I HAVE NOT MADE IT TO THIS STAGE YET AND WOULD LIKE TO TEST IT!
3. Press the the red 'sync' button on the back of the Wiimote and then search for devices on your android device. When the Wiimote shows up, tap on it and enter the PIN you received from the 'C' code earlier.
I only assume that this would connect the Wiimote as an ambient bluetooth device.

4. Now install Wiimote Controller App (THIS IS JUST FOR THE WIIMOTE IME SO THAT THE INPUTS ARE RECOGNIZED BY EMULATORS AND OTHER APPS): https://play.google.com/store/apps/...BjcmVhdGlvbnMuYW5kcm9pZC5XaWlVc2VBbmRyb2lkIl0

5. Now you can use the Wiimote as you did before on your pre-4.2 devices :)

***NOTE: THIS IS NOT GUARANTEED TO WORK! AS STATED EARLIER I NEED HELP DECIPHERING THE WIIMOTE'S PIN!
 

ansysic

Senior Member
Nov 12, 2009
102
55
0
Germany
Are you sure, that this function creates the PIN for the Wiimote? Haven't found a source for this, but would be interested just 4 fun.

Edit: found something but doesn't work for me: http://forum.wiibrew.org/read.php?11,6850

--Found out wiimote mac address from "wiipair" (GUI version...this quoted the wiimote MAC as 23:53:81:81:02:05, whereas windows thinks its 05:02:81:81:53:23)
--Typed out "23 53 81 81 02 05" in notepad (maybe try reversing this depending on how you found out the wiimote MAC)
--Select all, copy, paste from notepad into hex editor ("HxD")
--Saved file from hex editor
--renamed hex editor file to have .txt extension
--opened this file in notepad
--select all, copy
--go to add bluetooth device
--hold 1+2 on the remote
--paste in pass code
--win :D :D
Additional info: http://wiibrew.org/wiki/Wiimote#Bluetooth_Pairing
 
Last edited:

NuclearFej

New member
Dec 27, 2012
3
0
0
Tried this (just converted straight from hex to ASCII values). Didn't work. :(
No passcode, 0000, & 1234 did not work either.

Anyone figured out a way to get Wiimotes working on 4.2.1?

Sent from my Nexus 10 using xda app-developers app
 

ItsMeMasih

Senior Member
Jan 16, 2011
177
9
0
Orange County
Tried this (just converted straight from hex to ASCII values). Didn't work. :(
No passcode, 0000, & 1234 did not work either.

Anyone figured out a way to get Wiimotes working on 4.2.1?

Sent from my Nexus 10 using xda app-developers app
I'm in the same boat. I've trid 0000 and 1234 but I don't think either one of these will work. From what I understand, each Wiimote's pin is unique and tied to the BT MAC address, hence the decode methods discussed.

I assume the OP was suggesting a method to decode the Wiimote pin using the BT MAC address to pair using the standard BT recovery method in Android's "Settings" menu. Similar to how you would pair a BT keyboard or a BT headset. Can the OP or anyone confirm if any of the methods used in this thread work with JB 4.2.1?
 

b0dge

Senior Member
Oct 23, 2009
177
5
0
Last edited:

dnabiker

New member
Jan 10, 2013
1
0
0
I'm next to useless in C programming but I believe a more complete version of that sample would be
Code:
#include <stdio.h>

int main(int argc, const char * argv[])
{

    // insert code here...
    char pin[6];
    pin[0] = 0x3A;
    pin[1] = 0xA1;
    pin[2] = 0x6F;
    pin[3] = 0x69;
    pin[4] = 0xA7;
    pin[5] = 0x64;
    printf(pin);
    return 0;
}
The main addition being printf which will print the contents of "pin". You can see the output if you compile and run it such as I've done at codepad.org/o1lpe4Kb

The problem of some values not converting properly remains unfortunately. The output should be 6 characters but a1 and a7 give funny output. a1 converts to i easily enough in most calculators but a7 is § which I could see causing problems. The fact remains that some bytes in most bluetooth MACs cant be properly translated. At first, spoofing the device MAC seams like an easy fix and it may be on some devices however my rom doesn't seem to have any simple options to accomplish this. I have read some success stories based around entering the MAC hex values in a hex editor and then saving as a text; anyone who has had success with this method, please post your results so we might see exactly what the wiimote is looking for. If i continue researching this tomorrow, I'll be looking at /data/misc/bluedroid/btconfig.xml. This is the only file i could find which references my MAC address and it appears as though it includes device pairing info, my hope is that info can be manipulated to bypass the pairing helper.
 

Vindictus

New member
Sep 16, 2011
2
0
0
So, I assume that there still is no solution for this? :/
I've spent the last 2 hours looking for a way around this infuriating pairing issue. None of the wiiremote apps work, the pin is always asked for and whatever I type is always refused. I'm not even running Android 4.2, but 4.1.2 via Cyanogenmod10, so I have no idea why I'm even getting this PIN screen.

So I ended up dropping $15 on a wiimote that won't work when I was lead to believe that it did. Just have to wait, I guess.
 

erikieperikie

Senior Member
Dec 7, 2011
157
48
0
Apeldoorn
On 4.1.2 it should be possible. Running a Wiimote app and pairing it with your device should not be a problem, and neither ask for a key.

Maybe you should check out some youtube videos that show how easily this is done. I recommend videos made by Armando Ferreira. He's done one or two about gaming with a controller on Android.
 

Vindictus

New member
Sep 16, 2011
2
0
0
On 4.1.2 it should be possible. Running a Wiimote app and pairing it with your device should not be a problem, and neither ask for a key.

Maybe you should check out some youtube videos that show how easily this is done. I recommend videos made by Armando Ferreira. He's done one or two about gaming with a controller on Android.
I know how it's done, as I said I've used multiple apps. Every time, the pin is asked for. I've tried XDA threads aimed at ascertaining the pin, but they don't work either. My only choice now is to run a different ROM.
 

bacon612

Senior Member
Jan 9, 2012
1,337
569
133
Oh man. I just got off a flight that I was planning on playing some super Mario bros world on my Xoom. Just upgraded it to 4.2.1 and no go on the Wii mote sync. Looking forward to a solution. I wonder if 4.2.2 will fix this. Worked fine for me on 4.2.1.

Sent from my Infectious Rezound using xda premium
 

erikieperikie

Senior Member
Dec 7, 2011
157
48
0
Apeldoorn
Oh man. I just got off a flight that I was planning on playing some super Mario bros world on my Xoom. Just upgraded it to 4.2.1 and no go on the Wii mote sync. Looking forward to a solution. I wonder if 4.2.2 will fix this. Worked fine for me on 4.2.1.

Sent from my Infectious Rezound using xda premium
I wonder the same. Isn't there some bluetooth fix in 4.2.2? I hope some dev(s) find a solution for us Wiimote owners.
 

JeroenGijselaar

Senior Member
May 13, 2010
550
248
0
It's so sad to see that there's still no fix for this, even after the fix of the SixAxis app 2 months ago. I think we'll probably never see the wiimote connected to android anymore. Unless there will be a dev to look into this...
 

bacon612

Senior Member
Jan 9, 2012
1,337
569
133
The dev for the wiimote app in the play store is aware of the issue and claims to be working on it. I havent given up hope yet.

Sent from my Xoom using XDA Premium HD app
 

erikieperikie

Senior Member
Dec 7, 2011
157
48
0
Apeldoorn
The dev for the wiimote app in the play store is aware of the issue and claims to be working on it. I havent given up hope yet.

Sent from my Xoom using XDA Premium HD app
It's stated that for a long time already................. But don't give up hope, Android rocks and some power user will fix our 4.2 devices some day...