| View previous topic :: View next topic |
| Author |
Message |
mg
Joined: 08 Jan 2008 Posts: 4
Digg It |
Posted: Wed Jan 09, 2008 4:36 pm Post subject: Cannot connect to WiiMote: Not Supported on winsock |
|
|
Hello, I'm trying to use wiiremoteJ on my thinkpad running on win vista with latest widcomm bt drivers. I'm using bluecove 2.0.2 and WiiRemoteJ 1.01.
I keep getting the following error, and I do not really know where to look for the problem, any ideas?
Many thanks in advance
-----
| Code: |
BlueCove version 2.0.2 on winsock
09.01.2008 17:18:47 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FEIN: Nintendo RVL-CNT-01...
09.01.2008 17:18:47 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FEIN: is a WiiRemote!
09.01.2008 17:18:47 wiiremotej.WiiRemote construct
INFO: btl2cap://00191D73BF94
09.01.2008 17:18:47 wiiremotej.WiiRemoteDiscoverer getWiiRemote
SCHWERWIEGEND: Error getting device!
java.io.IOException: WiiRemote failed to connect!
at wiiremotej.WiiRemote.construct(WiiRemote.java:286)
at wiiremotej.WiiRemote.<init>(WiiRemote.java:210)
at wiiremotej.WiiRemoteDiscoverer.getWiiRemote(WiiRemoteDiscoverer.java:86)
at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:226)
at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:186)
at WRLImpl.main(WRLImpl.java:168)
Caused by: com.intel.bluetooth.NotSupportedIOException: Not Supported on winsock
at com.intel.bluetooth.BluetoothStackMicrosoft.l2OpenClientConnection(BluetoothStackMicrosoft.java:668)
at com.intel.bluetooth.BluetoothL2CAPClientConnection.<init>(BluetoothL2CAPClientConnection.java:32)
at com.intel.bluetooth.MicroeditionConnector.openImpl(MicroeditionConnector.java:397)
at com.intel.bluetooth.MicroeditionConnector.open(MicroeditionConnector.java:506)
at javax.microedition.io.Connector.open(Connector.java:95)
at wiiremotej.WiiRemote.construct(WiiRemote.java:280)
... 5 more
java.lang.NullPointerException
at WRLImpl.main(WRLImpl.java:169)
|
|
|
| Back to top |
|
 |
ludc
Joined: 09 Jan 2008 Posts: 3
Digg It |
Posted: Wed Jan 09, 2008 4:56 pm Post subject: |
|
|
Hi,
Your program is using the microsoft stack which does not support L2CAP.
See the bluecove website in order to know how to force bluecove to use your widcomm drivers.
Ludovic |
|
| Back to top |
|
 |
mg
Joined: 08 Jan 2008 Posts: 4
Digg It |
Posted: Wed Jan 09, 2008 11:15 pm Post subject: |
|
|
Thank you!
Starting with
| Code: | | -Dbluecove.stack.first=widcomm |
did the trick. But then i got another strange errors.
After putting the bluecove dll from bluecove-googlecode-com/svn/build/win-dlls/BTW%20DK%206.1/ into my bluecove.jar I fixed that too (remember, windows vista .
But now I am running into the next error :/
"failed to assign PSM 0x11"
| Code: |
BlueCove version 2.0.2 on widcomm
10.01.2008 00:10:28 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FEIN: Nintendo RVL-CNT-01...
10.01.2008 00:10:28 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FEIN: is a WiiRemote!
10.01.2008 00:10:28 wiiremotej.WiiRemote construct
INFO: btl2cap://00191D73BF94
10.01.2008 00:10:28 wiiremotej.WiiRemoteDiscoverer getWiiRemote
SCHWERWIEGEND: Error getting device!
java.io.IOException: WiiRemote failed to connect!
at wiiremotej.WiiRemote.construct(WiiRemote.java:286)
at wiiremotej.WiiRemote.<init>(WiiRemote.java:210)
at wiiremotej.WiiRemoteDiscoverer.getWiiRemote(WiiRemoteDiscoverer.java:86)
at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:226)
at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:186)
at WRLImpl.main(WRLImpl.java:168)
Caused by: javax.bluetooth.BluetoothConnectionException: failed to assign PSM 0x11
at com.intel.bluetooth.BluetoothStackWIDCOMM.l2OpenClientConnectionImpl(Native Method)
at com.intel.bluetooth.BluetoothStackWIDCOMM.l2OpenClientConnection(BluetoothStackWIDCOMM.java:696)
at com.intel.bluetooth.BluetoothL2CAPClientConnection.<init>(BluetoothL2CAPClientConnection.java:32)
at com.intel.bluetooth.MicroeditionConnector.openImpl(MicroeditionConnector.java:397)
at com.intel.bluetooth.MicroeditionConnector.open(MicroeditionConnector.java:506)
at javax.microedition.io.Connector.open(Connector.java:95)
at wiiremotej.WiiRemote.construct(WiiRemote.java:280)
... 5 more
java.lang.NullPointerException
at WRLImpl.main(WRLImpl.java:169)
|
|
|
| Back to top |
|
 |
mg
Joined: 08 Jan 2008 Posts: 4
Digg It |
Posted: Wed Jan 09, 2008 11:21 pm Post subject: |
|
|
just to complete my last post, using the untouched bluecove.jar results in
| Code: |
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 WRLImpl.main(WRLImpl.java:79)
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
|
Do someone have any idea how to get this to run on Vista?
Many thanks in advance! |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 421
Digg It |
Posted: Thu Jan 10, 2008 12:43 am Post subject: |
|
|
You'll have to use BlueSoleil. However, there's a bug in BlueSoleil that requires a workaround in WiiRemoteJ (I'll release this on Sunday). In the meantime, just sit tight till Sunday. _________________ Cha0s |
|
| Back to top |
|
 |
liblio
Joined: 14 Jan 2008 Posts: 6
Digg It |
Posted: Mon Jan 14, 2008 1:20 am Post subject: |
|
|
Hello,
I'm in the same situation as mg (except i'm on a pc with XP SP1 instead of thinkpad with vista)
I use Java 1.6.0_02, BlueCove version 2.0.2, and widcomm.
I've correctly set classpath, path, .jar files are in good location (according to all previous infos in this post and others).
I don't initialize the wiimote in windows.
I have the same error : failed to assign PSM 0x11
| Code: | BlueCove version 2.0.2 on widcomm
11 janv. 2008 15:49:32 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FIN: Nintendo RVL-CNT-01...
11 janv. 2008 15:49:32 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FIN: is a WiiRemote!
11 janv. 2008 15:49:33 wiiremotej.WiiRemote construct
INFO: btl2cap://00191DA81566
11 janv. 2008 15:49:33 wiiremotej.WiiRemoteDiscoverer getWiiRemote
GRAVE: Error getting device!
java.io.IOException: WiiRemote failed to connect!
at wiiremotej.WiiRemote.construct(WiiRemote.java:286)
at wiiremotej.WiiRemote.<init>(WiiRemote.java:210)
at wiiremotej.WiiRemoteDiscoverer.getWiiRemote(WiiRemoteDiscoverer.java:86)
at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:226)
at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:186)
at WRLImpl.main(WRLImpl.java:135)
Caused by: javax.bluetooth.BluetoothConnectionException: failed to assign PSM 0x11
at com.intel.bluetooth.BluetoothStackWIDCOMM.l2OpenClientConnectionImpl(Native Method)
at com.intel.bluetooth.BluetoothStackWIDCOMM.l2OpenClientConnection(BluetoothStackWIDCOMM.java:696)
at com.intel.bluetooth.BluetoothL2CAPClientConnection.<init>(BluetoothL2CAPClientConnection.java:32)
at com.intel.bluetooth.MicroeditionConnector.openImpl(MicroeditionConnector.java:397)
at com.intel.bluetooth.MicroeditionConnector.open(MicroeditionConnector.java:506)
at javax.microedition.io.Connector.open(Connector.java:95)
at wiiremotej.WiiRemote.construct(WiiRemote.java:280)
... 5 more
java.lang.NullPointerException
at WRLImpl.main(WRLImpl.java:136) |
So I will try with bluesoleil.
But I have question, can I have bluesoleil and widcom at the same time without problems or conflicts ? |
|
| Back to top |
|
 |
liblio
Joined: 14 Jan 2008 Posts: 6
Digg It |
Posted: Mon Jan 14, 2008 2:20 pm Post subject: |
|
|
Just for info.
Before trying the pair bluecove / bluesoleil as mentionned above (as soon as I'm sure that there won't be conflicts between bluesoleil and widcomm), I tried avetana (with widcomm). Here is the error I get :
| Code: | avetanaBluetooth version 1.0.39
14 janv. 2008 13:20:03 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FIN: Nintendo RVL-CNT-01...
14 janv. 2008 13:20:03 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FIN: is a WiiRemote!
14 janv. 2008 13:20:04 wiiremotej.WiiRemote construct
INFO: btl2cap://00191DA81566
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00a2ac6b, pid=3084, tid=3100
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode)
# Problematic frame:
# j de.avetana.bluetooth.stack.BlueZ.openL2CAPNative(Ljava/lang/String;IZZZII)Lde/avetana/bluetooth/l2cap/L2CAPConnParam;+0
#
# An error report file with more information is saved as hs_err_pid3084.log
#
#
Running on Version : 1.4.2 Build 10
Local Address 00:09:DD:10:88:F7
Local Name RDC
Possibilites array 3F
Stack status changed! up
Exception to be thrown: Unable to find the bluetooth device! |
It's not absolutly important to answer me, but I like to understand what happened when code is running - or not - so if someone has infos about this error, I'd appreciate to read it. Thanks. |
|
| Back to top |
|
 |
|