Hello,
the Whiteboard ist great work. Unfortunately i cannot use the WiimoteLogger under Ubuntu 9.04. I copied with zip the bluecove already into the WiimoteLogger.jar, described for WiiWhiteboard but the start fail.
SCHWERWIEGEND: Application class org.uweschmidt.wiimote.logger.WiimoteLogger failed to launch
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
Can you help me
Hi,
I just checked WiimoteLogger.jar and realized that I created it in a different way (in comparison to Wiimote Whiteboard). Try starting Wiimote Logger like that:
java -cp bluecove-gpl-2.0.3.jar -jar WiimoteLogger.jar
Uwe
Thanks for your help,
but still the programm doesn’t start. I can connect the wiimote via bluetooth described in http://wiki.ubuntuusers.de/Wiimote but
sudo java -cp bluecove-gpl-2.1.0.jar -jar WiimoteLogger.jar
(i tried with and without sudo and also the bluecove-gpl-2.0.3.jar as you suggested)
always ends with a lot of failures.
Caused by: javax.bluetooth.BluetoothStateException: BlueCove com.intel.bluetooth.BluetoothStackBlueZ not available
SCHWERWIEGEND: Application class org.uweschmidt.wiimote.logger.WiimoteLogger failed to launch
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
Hi,
Thanks for your help, but still the programm doesn’t start.
I was just guessing that it might work. After starting my dusty linux box and actually trying it myself, I found this to be working:
java -cp bluecove-gpl-2.0.3.jar:WiimoteLogger.jar org.uweschmidt.wiimote.logger.WiimoteLogger
Uwe
On my Ubuntu system it still hangs.
I tried sun-java (java-6-sun-1.6.0.13) and open java but the error remains. My system is Ubuntu 9.04 with the above mentioned java versions.
Native Library bluecove not available
19.05.2009 17:43:24 org.jdesktop.application.Application$1 run
SCHWERWIEGEND: Application class org.uweschmidt.wiimote.logger.WiimoteLogger failed to launch
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
Currently i’am using gtkwhiteboard and wminput and there is no connection problem.
For me the WiimoteLogger would enhance my physics lessons tremendously.
Thanks for your work and help.
Hi,
I tried sun-java (java-6-sun-1.6.0.13) and open java but the error remains. My system is Ubuntu 9.04 with the above mentioned java versions.
I’m running Ubuntu 8.04 with Java (Sun) version 1.6.0_07 on a 32-bit machine. I found this post which may the explanation for your problem.
I made a new release that uses BlueCove 2.1 (and the newer WiiRemoteJ 1.6a). It should be started like this: java -cp bluecove-gpl-2.1.0.jar:WiimoteLogger.jar org.uweschmidt.wiimote.logger.WiimoteLogger
Uwe
Thanks for your help.
as normal user it is still not working correctly
java -cp bluecove-gpl-2.1.0.jar:WiimoteLogger.jar org.uweschmidt.wiimote.logger.WiimoteLogger
24.05.2009 19:45:21 com.sun.corba.se.impl.ior.IORImpl getProfile
WARNUNG: "IOP00511201: (INV_OBJREF) IOR must have at least one IIOP profile"
but as sudo it works fine. (normal user can’t save data to a file)
Now i have the next problem, because i am a german user, the comma is used as decimal separator and you use it as a field seperator. data looks like that:
0,019, 1, -0,222222, 0,189474, 0,932039, 0, 0
0,081, 1, -0,244444, 0,168421, 0,970874, 0, 0
it is no real problem to import it to openoffice using fixed width, but it is a bit harder to use tools like gnuplot. Is there a possibility to use tabs or semicolon as field seperator?
Thanks J. Almer
Hi,
as normal user it is still not working correctly [..] but as sudo it works fine. (normal user can’t save data to a file)
that’s odd, maybe you don’t have the permissions for the folder you want to save the file to.
Is there a possibility to use tabs or semicolon as field seperator?
Yes, it’s defined in WiimoteDataHandler.java in line 66: private static final String SEP = “, “;
So you could just download the source code, change SEP to whatever you like and compile & start the app with the included Ant build script. I don’t really want to make a new release just because of that.
An easier solution would be to just change the locale to English to get a point instead of a comma as decimal separator:
java -Duser.language=en -cp bluecove-gpl-2.1.0.jar:WiimoteLogger.jar org.uweschmidt.wiimote.logger.WiimoteLogger
Uwe
The trick with the locale is working fine.
There was a mistake in my failure description. WiimoteLogger is also working for a normal user, but sometimes it doesn’t connect correctly to the Wiimote and then you can’t see the battery status. But a new start normally fix the problem (no user problems)
Thanks for all your help and for the fantastic programm.
Hi,
WiimoteLogger is also working for a normal user, but sometimes it doesn’t connect correctly to the Wiimote and then you can’t see the battery status. But a new start normally fix the problem (no user problems)
I’ve been experiencing the same thing. Maybe it is due to the bluecove-gpl-2.1.0.jar.
Uwe
Hallo Uwe, I want to test your script under windows 2000 SP4, but I can’t start it. Doubleklick onWiimoteLogger.jar and nothing happens what can I do?
Thanks Chris
Hi Chris,
Doubleklick on WiimoteLogger.jar and nothing happens what can I do?
try starting the app on the command line with java -jar WiimoteLogger.jar. That should print an error message which hopefully makes the problem easier to understand.
Uwe
Hello Uwe…
An error message is funny… Thousends :D
http://www.imagebanana.com/view/7a67kkgw/jufo.png
Thanks Chris
Hi Chris,
it seems like you’re using the Toshiba Bluetooth stack, which is apparently not supported by BlueCove, the Bluetooth library used in my app. You need to use the WIDCOMM stack on Windows in combination with my program; please see this thread for more details.
Uwe
Hello Uwe,
thaks for that information, but unfortunately I didn’t found a download link for WIDCOMM. (Also on the last post of your linked thread)
Can you give me the direct link?
Thanks Chris
Hi Chris,
I can’t give you a direct link to download the WIDCOMM stack, I’m not even sure if it’s free to download. According to Wikipedia:
Widcomm was the first Bluetooth stack for the Windows operating system. The stack was initially developed by a company named Widcomm Inc., which was acquired by Broadcom Corporation in April 2004. Broadcom continues to license the stack for inclusion with many Bluetooth-powered end-user devices.
So maybe you need a licensed Bluetooth stick to (legally) use the WIDCOMM stack…
Uwe
Hello Uwe… what do you think, can I use BlueSoleil with a Toshiba Bluetootstick?
I test it tomorrow and then I write you again.
Chris
Hi Chris,
I’m almost certain that anything except WIDCOMM won’t work. Here’s why:
L2CAP support available only on Windows WIDCOMM Stack, Linux BlueZ and Mac OS X Stack.
— http://code.google.com/p/bluecove/wiki/Documentation
My app uses L2CAP over BlueCove…
Uwe
I so badly want it to work… but it just won’t launch on OS X. I’ve tried all the command line variants listed in previous comments, but still no go. :(
Hi Pete,
have you tried starting it with java -d32 -jar WiimoteLogger.jar
Very sorry for the late reply, I’m currently traveling…
I have it working on my install of Ubuntu, except that my log files are always empty. It shows no errors. Any suggestions?
Hi Steve,
maybe this is a permission problem (see previous comment)? Try starting the app as root.
Sorry for the late reply.
Hi Uwe, I was trying to play with your WiimoteLogger and gave the command java -jar WiimoteLogger.jar under windows 7 32 bit.
However, though the program runs (I mean I can see the application window), I always get the following run-time error:
Jan 31, 2012 12:59:34 PM wiiremotej.WiiDeviceDiscoverer getDevice
SEVERE: Error getting device!
java.io.IOException: WiiRemote failed to connect!
at wiiremotej.WiiRemote.construct(WiiRemote.java:321)
at wiiremotej.WiiRemote.(WiiRemote.java:223)
at wiiremotej.WiiDeviceDiscoverer.getDevice(WiiDeviceDiscoverer.java:121
at wiiremotej.WiiRemoteJ.findDeviceInternal(WiiRemoteJ.java:342)
at wiiremotej.WiiRemoteJ.access$100(WiiRemoteJ.java:24)
at wiiremotej.WiiRemoteJ$1.run(WiiRemoteJ.java:426)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.intel.bluetooth.NotSupportedIOException: Not Supported on winsock
at com.intel.bluetooth.BluetoothStackMicrosoft.l2OpenClientConnection(Bl
at com.intel.bluetooth.BluetoothL2CAPClientConnection.(BluetoothL2
at com.intel.bluetooth.MicroeditionConnector.openImpl(MicroeditionConnec
at com.intel.bluetooth.MicroeditionConnector.open(MicroeditionConnector.
at javax.microedition.io.Connector.open(Connector.java:97)
at wiiremotej.WiiRemote.construct(WiiRemote.java:313)
... 6 more
BlueCove stack shutdown completed
My machine is Acer ravelmate 6492, with WIDCOMM Bluetooth stack!
Looking for your reply.
Regards Maks
Hi Maks,
try starting the app with java -Dbluecove.stack=widcomm -jar WiimoteLogger.jar
to force using the WIDCOMM stack.
Hi Uwe, Now, there are other problems. First I guess, the program - WiimoteLogger -differentiate between RVL-CNT-01 and RVL-CNT-01-TR wii remote model. Though both of them are Wii motion plus, but my guess RVL-CNT-01-TR is a later production. It has SYNC button interface visible from outside. Whereas in the older production i.e. in RVL-CNT-01, SYNC button is inside the remote cover which is only visible when you open the batter cover. From my experience with WiimoteLogger, it seems it is vulnerable when trying to connect with RVL-CNT-01-TR type - sometimes it is successful and but most of the times not! Whereas with the RVL-CNT-01 model it seems to be working fine!
I have also tried to play with multiple remote. If both RVL-CNT-01 and RVL-CNT-01-TR remote are paired with your pc/laptop, the program will never accept/find the RVL-CNT-01-TR! But if there is multiple wii RVL-CNT-01 remote is paired with your pc/laptop, WiimoteLogger is able to connect with all of them (almost always). However, there is another problem I have experienced with WiimoteLogger - although it can connect with multiple wii RVL-CNT-01 remote, when it writes the captured data into a file, it only writes data from the second remote(I have played with 2 remote). I have tried this several times and found that the file always contains data from the second remote (wii id 2).
I will be eagerly waiting to hear from you. Any suggestion to handle these issues will be highly appreciated.
Regards Maks
I get the following error when I try to run it on osx lion, any help much appreciated
Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: javax/bluetooth/BluetoothStateException
DarwiinRemote and DarwiinRemoteLives don’t work under OS X 10.9. I thought I’d try your app even though I’d really like a live graph. Your app immediately quits with the following error.
10/20/14 17:35:26.533 WiimoteLogger[73780]: dlopen(/private/var/folders/8b/v2r1lw2122q97w4xqjn420000000gp/T/bluecove_hornelen_0/libbluecove.jnilib, 1): no suitable image found. Did find:
/private/var/folders/8b/v2r1lw2122q97w4xqjn420000000gp/T/bluecove_hornelen_0/libbluecove.jnilib: no matching architecture in universal wrapper
Hi Uwe, I am currently working on a project of wiimote whiteboard and I am not able to connect my wiimote to the PC. I am using Eclipse IDE to run the java program under windows 7 64-bit. My machine is Dell Latitude, with Microsoft Bluetooth stack! Though the program runs (I mean I can see the application window), I always get the run-time error saying that Winsock is not supported