Author Topic: Perminant Wiimote Sync (Do you know how to directly enter a hexadecimal passkey)  (Read 84820 times)

Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Yeah I found heeps of research into Linux changing the BT MAC Address and lots of people asking if it can be done on MAC/Win but no answers.

I actually just tried that on Linux. Pairing the Wiimote with the passkey '000000' worked when I changed the host Bluetooth address to 30:30:30:30:30:30.

The other option would be to leave the BDA as it is, and then enter the passkey directly in hexadecimal while pairing the Wimote. Paring is usually done by some sort of connection assistant which would have to be changed to offer this option. I have no idea how hard it would be to do this...

This would be ideal as once connected I just press the 'On' button then run my Wiimote Application.

Any programmers interested???

I don't think this is easy to do for the (mostly) "closed-source" Operating Systems (i.e., Windows and Mac OS X). I guess Linux is the most likely candidate to get that feature if someone bothers to implement it.


Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
ujs
I don't have access to linux, could you test something for me to see if this is worth pursueing. I know changing the MAC address to 30:30:30:30:30:30 is unrealistic as will cause lots of security issues and conflicts if used in the same location. So if my MAC address is 00:19:5B:5B:E3:81 say I just changed the first byte (00) to a nominal alpha numeric this would maintain security and allow pairing.

Could you try:
1. Changing your linux MAC address to a random alpha numeric 6 byte string
2. Create the necessary binary
3. Sync & pair wiimote
4. Test by running application, close application, turning off wiimote, turn on wiimote, start application (and random variations of these)

Essentially Uwe I hoping to see if this is worth further exploration as will resolve a host of issues and barriers to teh braoder acceptance of this technology.

Obviously if you can't get it to work (30:30:30:30:30:30 in my mind is not a broad based solution) then its no longer worth exploring.

As always thanks for your deep knowledge and quality input.

benpaddlejones :)


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Idea!
I just remembered that I still have the direct contacts for the BT team at Bluesoleil from when they came aboard to help with the 'Bluesoleil Blue Screen of Death'.

If we can prove this works on Linux and provide a structured example (hoping you can cover this Uwe) then they may be able to assist us.

benpaddlejones :)


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
So if my MAC address is 00:19:5B:5B:E3:81 say I just changed the first byte (00) to a nominal alpha numeric this would maintain security and allow pairing.
No, this wouldn't work. If you check the ASCII table, printable characters range from 0x20 to 0x7E (the prefix '0x' denotes hexadecimal numbers).

Could you try:
1. Changing your linux MAC address to a random alpha numeric 6 byte string
2. Create the necessary binary
3. Sync & pair wiimote
4. Test by running application, close application, turning off wiimote, turn on wiimote, start application (and random variations of these)
Changing the MAC address and then pairing the Wiimote should work not only with 30:30:30:30:30:30, but with any MAC that has an ASCII representation.
I don't know what to test after I pair the Wiimote. You seem to have a clear idea of how this is supposed to work in the end...

I just remembered that I still have the direct contacts for the BT team at Bluesoleil from when they came aboard to help with the 'Bluesoleil Blue Screen of Death'.
You could ask them if there is any way to directly enter a hexadecimal passkey, instead of ASCII.

I wouldn't pursue the idea of changing the MAC address any further. As you say, you want a mainstream solution that makes the whole thing easier, not harder ;)


Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Uwe
You could ask them if there is any way to directly enter a hexadecimal passkey, instead of ASCII.
That was the answer I was looking for.

benpaddlejones :)


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline Metacore

  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Is Thex here?

It was my understanding that WiimoteConnect uses the Windows bluetooth stack API(possibly a hacked version, as someone mentioned). I was wondering if maybe the API itself lets you pass a PIN in hex or binary, or if it is limited to ASCII as well.

Anyway, at the moment, passing a binary key through an existing stack seems like the only viable solution.
BlueSoleil seems perfect, since they have already shown they are willing to listen, and work toward making using the Wiimote easier to connect. In fact, they can build it into their Gamii add-on. Hopefully, if BlueSoleil were to do it, maybe other competitors would take notice, and at least allow it to be done through the API.

So, any response from them yet?



Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Metacore
Yes they are already adding to the Gamii add-on, they are also going to release an API specifically for us. But That takes time, they are really doing us a favour with no direct income stream so will take time.

benpaddlejones :)


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline Zero3K

  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Any way for it to be done using Microsoft's Bluetooth stack?



Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Zero3K
Sadly no   :'(

we tried, we failed!

benpaddlejones :)


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline jrl290

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
So I tried changing the MAC address of the bluetooth host adapter to 30:30:30:30:30:30 and it won't pair with the wiimote (passkey 000000) in BlueSoliel. Sadly for some reason my USB Linux Drive (Ubuntu 8.10) isn't letting me change the passkey else I'd try it there. HID Services work fine without pairing. Any suggestions?