| View previous topic :: View next topic |
| Author |
Message |
Shuzz
Joined: 14 Jan 2008 Posts: 12
Digg It |
Posted: Fri Feb 01, 2008 11:16 am Post subject: |
|
|
Hi guys,
first off, sorry for not posting for such a long time, but I became the father of two sweet little daughters about a week ago and therefore didn't have the time or nerves to tinker with WiiRemoteJ.
Anyway, as I said I've posted the issue to the bluecove mai, but so far the response was not really helpful:
| Bluecove List wrote: |
As far as I can understand the problem is in WiiRemote application.
Since application is Closed Source I can't advise what is wrong with it.
As far as I can tell bluecove does not close open connection when application is
terminated. This may be a bug....
The best option is to try evaluation version of avetanaBluetooth and see if you have
the same problems.
|
I'll do as I'm told and try out avetanaBluetooth, but I'd rather use Bluecove because it's free.
Further testing also showed that if I'm persistent enough and restart the application several times it will normally work eventually, but so far I cannot see a pattern.
More as I'm making progress... |
|
| Back to top |
|
 |
Shuzz
Joined: 14 Jan 2008 Posts: 12
Digg It |
Posted: Tue Feb 12, 2008 7:49 am Post subject: |
|
|
Hi!
Just wanted to let you know about the progress of the bug posting on the bluecove list.
http://code.google.com/p/bluecove/issues/detail?id=25
The guys there think it may have to do with a timing issue in the connection process. |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 435
Digg It |
Posted: Wed Feb 13, 2008 5:01 am Post subject: |
|
|
I've done some testing and am trying to work with the author of Bluecove on the issue. _________________ Cha0s |
|
| Back to top |
|
 |
Shuzz
Joined: 14 Jan 2008 Posts: 12
Digg It |
Posted: Tue Feb 19, 2008 9:41 am Post subject: |
|
|
| Cha0s wrote: | | I've done some testing and am trying to work with the author of Bluecove on the issue. |
Yes, I saw that on the bluecove list.
Unfortunately, my kids and job don't leave much free time for me to play around with WiiRemoteJ.
Thanks a lot for your effort though, it's much appreciated!
Another question: I'm currently coding two classes that can record and playback WiiRemoteJ events.
(Intended for a colleague who does not own a Wiimote but would like to play around with IR data anyway... )
The recording part is no problem and already done, events are written into a properties file which can later on be easily parsed by the playback class.
The playback part is harder though.
I already have a class that a WiiRemoteListener can register with and which will playback the events.
So far, so good.
But in order to really be a drop-in replacement, the playback class would have to extend WiiRemote, which is not possible as far as I see because I do not have access to the WiiRemoteJ sourcecode.
Would you be interested in including these recording/playback classes into WiiRemoteJ?
They could help with lots of programming problems since people could exchange their code AND testing data recorded live from a WiiMote.
Including them would be quite trivial I think, all that is needed is a common interface for the classes WiiRemote and WiiRemoteEventPlayer.
Maybe contact me via PM in case you are interested.
Cheers,
Shuzz |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 435
Digg It |
Posted: Tue Feb 19, 2008 5:18 pm Post subject: |
|
|
Hrmm... Well, I'm not sure that that's quite within the scope of the library, but I definitely want to make it possible for other people to do this. I've added a dummy constructor for WiiRemote that creates a remote that's not actually connected to anything. You could use this to create events (note: you would have to create an EventGenerator class to actually generate the events).
I'll get this release out next Sunday. Please keep me up to date with how your event recording/replaying library works out. Do feel free to release it on your own. I fully support the existence of such a library, but I don't think it's strictly a part of WiiRemoteJ.  _________________ Cha0s |
|
| Back to top |
|
 |
Cogo
Joined: 20 Feb 2008 Posts: 4
Digg It |
Posted: Wed Feb 20, 2008 1:50 pm Post subject: |
|
|
I also have problems using WiiRemoteJ + bluecove (both 2.0.2 and 2.0.3), with the widcomm stack in Windows. It works the first run, but then I get the following error and needs to reboot Windows to get it working again:
BlueCove version 2.0.2 on widcomm
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:57)
at Main.main(Main.java:12)
Caused by: javax.bluetooth.BluetoothStateException: No errors in WIDCOMM stack
at com.intel.bluetooth.BluetoothStackWIDCOMM.getLocalDeviceBluetoothAddress(Native Method)
at javax.bluetooth.LocalDevice.<init>(LocalDevice.java:66)
at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:71)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:86)
at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:49)
... 1 more
Kind of the same problem with Mac OS X Leopard, but there it succeeds with connecting the remote after some tries. |
|
| Back to top |
|
 |
Cogo
Joined: 20 Feb 2008 Posts: 4
Digg It |
Posted: Sat Feb 23, 2008 1:00 pm Post subject: |
|
|
| The thing is that the Bluetooth service as a whole stops working after having executed something using Bluecove and WiiRemoteJ. I always have to restart the computer to get it up and running again. Isn't this extremely strange? The whole Bluetooth stack seems to crash by just calling a method in a Java program... |
|
| Back to top |
|
 |
|