Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ujs

Pages: 1 2 3 4 5 6 ... 9
46
Wiimote Interactive Whiteboard / Re: Java Wiimote Whiteboard Help
« on: January 16, 2009, 11:26:45 AM »
Could you give me the direct url to download WINCOMM it seems to have brought by Broadcom. I cannot find the stack on the site,

I don't normally use Windows and installed the WIDCOMM drivers a long time ago. Back then, this was the URL to go: http://www.broadcom.com/products/bluetooth_update.php

It's now redirecting to this MoGo Mouse page, whatever that is.

Uwe

48
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

49
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

50
How hard is it to change (hack) the Mac MAC address?

I'm not sure you meant it, but it might be possible to change the host Bluetooth device address (BDA) to something where an ASCII sequence exists, and then do the pairing. At least I found this article that explains how to change the BDA on Linux.

For example one could change the BDA to 30:30:30:30:30:30 and then use the passkey '000000' to do the pairing with the Wiimote.

However, the problem is that you change the BDA which will confuse all your previously paired Bluetooth devices (like cellphones). They'll all need to be paired again to the computer. And I guess strange things would happen if two devices with the same BDA tried to connect.
There is, after all, a good reason why the BDA is unique (first 3 bytes identify the vendor, see http://www.coffer.com/mac_find/ to check your own).


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...


Uwe

51
Hi, I'm sorry to say but you two (Ben and Lucas) seem to be missing something here.

The required PIN is the hosts's Bluetooth address, backwards (last byte first), in binary (6 bytes).

That means the Bluetooth MAC address of the computer (e.g., USB dongle or internal module), not the Wiimote's.
Let's take Ben's address for example: 00:19:5B:5B:E3:81
As I understand it, you have to reverse it byte-wise: 81:E3:5B:5B:19:00

Most current Bluetooth implementations don't deal with this correctly, as they usually consider the PIN to be a regular ASCII string (no 00 bytes, etc).

That's the real problem here. When you for instance enter '0' into the passphrase field of the pairing assistant, this gets converted to the byte 00110000 (30 in Hex), because the '0' is interpreted as an ASCII character (http://www.asciitable.com). At least this is what Wiibrew suggests and it seems plausible to me.
As you'll notice, there is no ASCII character that is mapped to the byte 00000000. Thus it's impossible to enter Ben's MAC, and any other address that contains 00.

As far as I understand, you would need to hack the Bluetooth pairing assistant of your operating system to directly enter a binary (or hexadecimal) passphrase.


Uwe

52
Hi, a couple month ago I've actually written a simple application to record acceleration data from multiple Wiimotes at the same time.
I'm going to put it on my website over the next few days...

It's released now: http://www.uweschmidt.org/wiimote-logger

Uwe

53
Hi, a couple month ago I've actually written a simple application to record acceleration data from multiple Wiimotes at the same time.
I'm going to put it on my website over the next few days...

Uwe

54
Wiimote Interactive Whiteboard / Re: outline of the program
« on: January 02, 2009, 12:37:40 PM »
i want to see if I can write this program to other types of languages and see if its possible. like c++ or vb.. java is complicated. this way I'll be more comfortable modifying the program. sorry for disturbance.  :)

It surely is possible to port the application to other languages. I started my app as a simple port of Johnny Lee's software.
I suggest you look at Johnny's code first, since his app (and hence the code) is smaller than mine.

See the following threads to get a better understanding of the calibration:
http://www.wiimoteproject.com/wiimote-whiteboard/math-behind-projection-rectification/
http://www.wiimoteproject.com/wiimote-whiteboard/calibration/msg1668/#msg1668


Btw, I highly doubt that Java is more complicated than C++, but that's always subjective :).

Uwe

55
Wiimote Interactive Whiteboard / Re: outline of the program
« on: December 31, 2008, 08:27:39 AM »
... which part of the whole program is for this function (only the outline, what should i put in it (mouse interruption or control strategy etc.).

I don't understand what you mean.

also any suggestion of good books or any reference where i can learn java? i know it sounds fanatical but I'm more than willing to learn. thanks in advance... :D

Maybe you can just tell what you want to do in the end? You want to understand the code, because...?


Uwe

56
Wiimote Interactive Whiteboard / Re: outline of the program
« on: December 30, 2008, 02:48:48 PM »
hi.... does anyone know the outline used in calibration program (java)? i mean, example the mouse interruption etc. part of the program and its functions. thanks

Hi, I can only help if you ask specific questions.

Uwe

58
Wiimote Interactive Whiteboard / Re: Where can I get the source code from?
« on: November 23, 2008, 10:23:54 PM »
but... i was sure it was possible to create standalone executable files?

actually... while wriing this reply, i did a google on the subject: you can create an exe with 3rd party applications

this is much more desirable - since the people who i would give the application to would be clueless to everything and all they want is to launch one file - and not do anything else!

do you know if creating an exe with a 3rd party application will cause any problems in anyway?

You can create .exe for sure, but most tools that let you do this don't remove the dependency to Java. They just "wrap" the Java .class or .jar files.
There should also be tools that convert Java code or bytecode to machine code or something else. I highly doubt that they'll work for my application since I and some of the libraries use JNI to do OS-specific things.
You're welcome to try to convert the app but I won't look into it.

Uwe


59
Wiimote Interactive Whiteboard / Re: Where can I get the source code from?
« on: November 22, 2008, 06:32:04 AM »
but you need to have java installed for your application?
would it be ok to create an executable file so that the application could be given to someone without java?

Yes, you need Java 5 or later to run my application.
I don't think there is a way to convert it to an executable that can be run without Java.

Uwe

60
Wiimote Interactive Whiteboard / Re: Where can I get the source code from?
« on: November 20, 2008, 04:42:05 AM »
Hi OM,

I assume Johnny Lee's code is freely available
But JoonBin's isn't?
From what I have read, JoonBin has made some big enhancements from the original?
I'd like to make and add a few alterations.

If I can't get JoonBin's code... can I get Johnny Lee's code + smoothing code and make something as good as JoonBin's?
(I think I've read on JoonBin's website that he got the smoothing code from somewhere else?)

Johnny's code can be downloaded from his website.

I don't know about Boon Jin's source code, I can just tell you about the smoothing.
It was first suggested by one of my users and then implemented as a simple average of the last few position coordinates.
Boon Jin then adopted that feature for his software.

I've also added an adaptive smoothing method to the latest version of my software. Most users won't notice the difference, but it works much better for slow cursor movements. More details about in the documentation wiki.
My Java source code, which includes smoothing, is freely available at my website.


Uwe

Pages: 1 2 3 4 5 6 ... 9