Open source WiiFlash 0.4 Server (written in Java) for Mac OS X
WiiFlashServerJ is a Java application built on top of the great WiiremoteJ library by Michael Diamond which also uses the Bluecove library. WiiFlashServerJ sends and receives data from the Wiimote via WiiremoteJ. The data is transformed to a byte array in a way the WiiFlash 0.4 library can handle it.
In the current version all data from a Wiiremote can be sent (button states, battery level, the acceleration axes, 4 IR points and sizes and data from the Nunchuck extension). Data sent from the Classic Controller extension has not been tested yet and can be considered ‘guessplimented’. Its possible to activate the vibrating and LEDs as well as activate the Mouse mode by WiiFlash now. If an error occurs while connecting the Wiimote is removed again.
Note
The software should be considered experimental for the time being. There is no guarantee the data sent by WiiFlashServerJ is exactly the same as by the Windows version provided by WiiFlash. WiiFlashServerJ was coded on lazy weekends and without insight into the interna of the official (Windows) version.
Download
WiiFlashServerJ (Alpha version, 14 Apr. 2008)
WiiFlashServerJ (Alpha version, 24 Apr. 2008)
The Zip files include the Application as .app and the Java source code.
Known Issues
- Sometimes Wiiremote is not properly connected and in that case does not send data (properly)
- Sometimes its not possible to activate the LEDs, or rumble function
- If Nunchuck extension is plugged in, the IR point size does not change.
- Point size, battery level and perhaps some other data (extensions?) are sent, but values could differ from what the windows server sends. (Feedback would be great…)
- Battery level is just read once, when connecting or extensions are connected / disconnected. Working on that one…
- Button states and IR start playing random. In this case you are porbably using an older version of the WiiFlash API.
(Since the frist release of WiiFlash 0.4 there have been small, but important changes: In “Wiimote.as” -> “function update” -> pack.position = 36 has been changed to 37 and in WiiSocket.as you will find a “I80″ in the newer version. So make sure you have the newer version of WiiFlash 0.4.)
- Nunchuck does not send data. This sometimes happens, just restart WiiFlashServerJ
- Classic Controller has not been tested yet
Used libraries and software
Java Wiiremote library: WiiremoteJ
Java Bluetooth library: Bluecove
Flash Wiiremote library WiiFlash



8 Comments, Comment or Ping
Thibault Imbert
Awesome news Alan !
WiiFlash on Mac !
kind regards,
Thibault
Apr 14th, 2008
panpan
fantastique, grandiose, glamour !
Apr 14th, 2008
Laurent Dochy
Happy happy joy joy a mac version!
The wiimote works fine on the mac server but I don’t seem to recieve any data from the nunchuk. Any ideas what could cause the problem.
thanx.
Laurent
Apr 16th, 2008
panpan
i’ve the same problem
the numchuck don’t realy works. it is detect in Log, but isn’t in wiiflash.
Apr 21st, 2008
admin
Nunchuck should work now… Thanks all for your feedback. It’s been valuable help!
Alan
Apr 24th, 2008
Gilles
Thanks a lot for this Mac port!
The connecting takes a few tries to succeed (on my Macbook Pro), but besides that it works great!
You’re a lifesaver
Apr 29th, 2008
Jeff
hi,
thanks for this mac version :-).
Everything works fine, but I have a hard time getting ir info. When I use ir leds or plain candles as a sensor bar, wiiflash on my windows pc gives data constantly about ir points et cetera, but on my macbook and this mac server (with the latest api too), ir data very seldom come in. Is this a known issue?
Thanks a lot though,
Jeff.
May 7th, 2008
Reply to “Open source WiiFlash 0.4 Server (written in Java) for Mac OS X”