Wii + Ruby
Some notes
The demo was running on (K)Ubunutu 8.04. To get the WiiRemoteJ java code running, avetanaBT.jar was used.
To get that build, libavetanaBT.so was compiled. And that needed a patch so that WiiRemoteJ would not raise an exception after connecting to the wiimote.
avetanaBT
From the README: “AvetanaBluetooth – Implementation of the JSR82 specification from the Sun Microsystems Company using BlueZ”
Get it from SourceForge
You may need to add this to c/BlueZ.cpp if, when you get things running, you are getting connection errors
JNIEXPORT void JNICALL Java_de_avetana_bluetooth_stack_BlueZ_cancelInquiry (JNIEnv *env, jclass obj) {
/* Close the specified HCI device */
//printf("Function called: %s, %i\n"__FILE__, __LINE__);
//hci_close_dev(dd);
return;
}
The Bluetooth Dongle
An IOGear GBU421 Bluetooth 2.0 USB Micro Adapter was used. It Just Works on Ubuntu, and works fine on Vista when you install the WIDCOMM drivers from the included CD.
$25 at Fry’s Electronics. It’s really small, and looks, in fact, like a blue tooth.
Links
If you have questions about any of this, contact James Britt at james.britt@gmail.com
