WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WiiRemoteJ.findRemote(); ???

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ
View previous topic :: View next topic  
Author Message
grid



Joined: 21 Dec 2007
Posts: 6

Digg It
PostPosted: Fri May 30, 2008 3:58 pm    Post subject: WiiRemoteJ.findRemote(); ???

Hello,
I tried to connect my WiiMote many many times but
Code:
WiiRemoteJ.findRemote();

can't find it.

Qutput:
Code:
BlueCove version 2.0.1 on bluesoleil


In BlueSoleil WiiMote is connected. I don't got a glue...

please help Wink

Thanks
grid
Back to top
View user's profile Send private message
Cha0s
Site Admin


Joined: 17 Jan 2007
Posts: 493

Digg It
PostPosted: Fri May 30, 2008 5:22 pm    Post subject:

#1. Get the latest BlueCove, 2.0.2.
#2. Do NOT connect the remote via BlueSoleil ahead of time. The entire connection process is handled via WiiRemoteJ. Connecting it ahead of time makes it impossible to find (since it is no longer discoverable).
_________________
Cha0s
Back to top
View user's profile Send private message
grid



Joined: 21 Dec 2007
Posts: 6

Digg It
PostPosted: Fri May 30, 2008 8:26 pm    Post subject:

Thanks, but It doesn't work at all.

MyCode:
Code:

while(true){
   try {

      WiiRemote mote = WiiRemoteJ.findRemote();

      System.out.println(mote);
      
   } catch (IllegalStateException e){
      e.printStackTrace();
   } catch (InterruptedException e){
      e.printStackTrace();
   }
}



I've got this output:
Code:
BlueCove version 2.0.2 on bluesoleil
java.io.IOException: WiiRemote failed to connect!
   at wiiremotej.WiiRemote.construct(WiiRemote.java:301)
   at wiiremotej.WiiRemote.<init>(WiiRemote.java:214)
   at wiiremotej.WiiRemoteDiscoverer.getWiiRemote(WiiRemoteDiscoverer.java:94)
   at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:208)
   at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:186)
   at Wiii.<init>(Wiii.java:9)
   at Wiii.main(Wiii.java:21)
Caused by: com.intel.bluetooth.NotSupportedIOException: Not Supported on bluesoleil
   at com.intel.bluetooth.BluetoothStackBlueSoleil.l2OpenClientConnection(BluetoothStackBlueSoleil.java:380)
   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:295)
   ... 6 more
null
...


And I am not connecting my WiiMote in bluesoleil ahead. Bluesoleil opens automaticly, should I connect when It's opend???
Back to top
View user's profile Send private message
yundi



Joined: 15 Mar 2008
Posts: 29

Digg It
PostPosted: Sat May 31, 2008 4:18 pm    Post subject:

Try using widcomm drivers instead of bluesoleil, I had a similar problem and it dissapeared when I installed widcomm.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group