| View previous topic :: View next topic |
| Author |
Message |
mharkus
Joined: 15 Jan 2008 Posts: 7
Digg It |
Posted: Thu Jan 24, 2008 3:18 am Post subject: |
|
|
| Also, take a look at http://code.google.com/p/bluecove/wiki/stacks. It says here L2CAP is not currently supported by Bluecove for Bluesoleil stack. I'm not sure if this protocol is what's being used by the API to open a connection with the wiimote. |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 493
Digg It |
Posted: Thu Jan 24, 2008 3:49 pm Post subject: |
|
|
That could be the issue, though I thought some people had had success with it. Apparently version 3.2.2.8 is the latest supported version. Perhaps that will work? If not, I'd try going with WIDCOMM.
P.S. The WiiRemote definitely uses L2CAP. _________________ Cha0s |
|
| Back to top |
|
 |
joey.enfield
Joined: 22 Jan 2008 Posts: 10 Location: Ireland
Digg It |
Posted: Thu Jan 24, 2008 3:58 pm Post subject: |
|
|
Hey, I've kinda got it working anyhow. I've managed to connect to the wii mote using the WIDCOMM stack. I followed the instruction and got the required files to install the WIDCOMM stack on
http://www.dev-toast.com/2007/01/05/uncrippling-bluetooth-in-vista-rtm
Now I have another problem. I am able to connect fine once. Then when I exit the program It seems that the device does not disconnect from the wii mote. The next time I try to run the program I get an error
| Quote: |
BlueCove version 2.0.3-SNAPSHOT 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 testing.WRLImpl.main(WRLImpl.java:4
Caused by: javax.bluetooth.BluetoothStateException: Bluetooth Device is not ready
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
|
When I restart the computer it works fine again for 1 run. I'm guessing that this is a problem with BlueCove not shutting down the connection correctly, but then again my device doesn't seem to be made for Widcomm drivers as I had to go to a bit of trouble to get it working correctly as i showed above...
But at least its kinda working!!!!!!!!
Does anyone know a way around this problem? |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 493
Digg It |
Posted: Thu Jan 24, 2008 4:01 pm Post subject: |
|
|
Yes. Disconnect the remote by holding down its power button. This is half BlueCove's fault and half WiiRemoteJ's fault. It should be fixed in the next release of WiiRemoteJ. _________________ Cha0s |
|
| Back to top |
|
 |
joey.enfield
Joined: 22 Jan 2008 Posts: 10 Location: Ireland
Digg It |
Posted: Thu Jan 24, 2008 4:19 pm Post subject: |
|
|
Thats perfect!!!!
Cha0s your a legend!!!!! |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 493
Digg It |
Posted: Thu Jan 24, 2008 7:28 pm Post subject: |
|
|
I try.
I'll see if I can work on the main components of the next release this weekend (read: I'll try to learn projection theory this weekend). _________________ Cha0s |
|
| Back to top |
|
 |
Fizi
Joined: 27 Jan 2008 Posts: 4 Location: Australia
Digg It |
Posted: Sun Jan 27, 2008 10:51 pm Post subject: |
|
|
I have the same error as Joey when running bluesoleil.
However, when I run with widcomm, I get:
| Code: | java.lang.IllegalStateException: Bluetooth failed to initialise. There is probably a problem with your local stack or API.
...
caused by: javax.bluetooth.BluetoothStateException: Bluetooth stack not detected |
When I try to run using winsock, it simply overrides my preference and reverts to bluesoleil.
I only installed anything for bluetooth withing the last 2 days, so everything is up-to-date. I'm running XP.
Last edited by Fizi on Sun Jan 27, 2008 10:53 pm; edited 1 time in total |
|
| Back to top |
|
 |
|