Sunday, January 28, 2007

Wiimote and Java

These few days I was trying to hack an Wiimote, the cool remote controller for Wii. If you're not familiar with this, here is a nice passionate community about it: Wiili

Anyway, my development environment consists of:

  • one wiimote
  • one bluetooth dongle (intuix) supported by BlueSoleil
  • WindowsXP SP2 (mainly) / Debian Linux (nothing done here yet)
Since I wanted to use 'processing' to play with the Wiimote, I've worked for a Java-related platform. The starting point was to find a good and preferably free implementation of Java Bluetooth stack. And I had to face the following problems
  • BlueCove: This cannot get a proper local device address of my dongle. It just says 000000000000. According to several articles,
  • avetana: This says "No supported stack installed or no dongle available". I guess it's because I couldn't put the address of my dongle correctly when I've got the free demo of avetana. The address of my dongle is 10:11:11:11:11:11(or 11:11:11:11:11:11), and with this address I cannot download avetana.
In sum, I couldn't manage to get any JSR-82 implementation working with my dongle. I was about to give up my dongle and order another dongle which supports MS Bluetooth drivers. But I couldn't. Because it still works in other programming languages!
  • I took a look at other programs at Wiili, such as DarwiinRemote(for OS X) and Wiinmote(for XP). Afterwards I found that Wiinmote, in Delphi(precisely in Pascal), uses a library named HID controller. This HID controller basically uses PnP devices. That means, this Wiinmote just considers my Wiimote as a general PnP device. And it works perfectly!
What I'm wondering now is if I can get around seeking for any JSR-82 implementation by using PnP communication, for example. Probably the easiest way is just buying a new Bluetooth dongle from a well-known brand, in the list above. But... I don't like it. :( I mean, my dongle is still working very well in other languages. Why not Java? Should I really compile the HID controller into DLL and connect it with Java by JNI?

8 comments:

Cady said...

People should read this.

R. Stecca said...

It looks like with the latest version of BlueCove the Linux Bluez support is added.

Quoting: "Linux BlueZ support added in BlueCove version 2.0.3 as additional GPL licensed module."

Anonymous said...

good afternoon dudes. I'm actually into shoes and I had been searching as far as something that meticulous make. The prices as regards the sneakers are all over 200 dollars everwhere. But finally I base this location selling them for half price. I exceptionally want those [url=http://www.shoesempire.com]prada sneakers[/url]. I will absolutely order them. what can you tell me about these?

Anonymous said...

Hello. And Bye.

Anonymous said...

good morning everyone. I'm actually into shoes and I was searching allowing for regarding that meticulous model. The prices for the shoes are about 220 dollars on every site. But completely I base this location selling them for the benefit of half price. I absolutely like these [url=http://www.shoesempire.com]gucci sneakers[/url]. I will definetly buy them. what can you say about it?

Anonymous said...

good evening bros. I'm actually into shoes and I have been digging as far as something that particular make. The prices due to the fact that the velcros are approximately 340 bucks on every page. But for all I set this site selling them for half price. I in reality want these [url=http://www.shoesempire.com]gucci sneakers[/url]. I will probably purchase these. what do you think?

Anonymous said...

good evening ppl. I'm really into shoes and I was looking for the sake of that exact brand. The prices due to the fact that the velcros were all over 330 dollars on every page. But definitively I set this area selling them for the benefit of half price. I absolutely want those [url=http://www.shoesempire.com]gucci sneakers[/url]. I will definetly purchase these. what do you think?

Anonymous said...

alabama auburn accutane legal career

http://accutane.socialgo.com