We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › wrj4P5, WiiRemote P5 Library - Alpha
Pages: 1 ... 8 9 10 11 12 ... 16
wrj4P5, WiiRemote P5 Library - Alpha (Read 93301 times)
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #135 - Sep 20th, 2008, 4:38pm
 
hi everybody and blindfish,

blindfish wrote on Sep 8th, 2008, 2:51pm:
I've just updated to processing 0148 and I'm now getting an error with wrj4P5 alpha-007:
....
now wrj4P5 alpha-008 released.

compatible with processing 0148+
for Leopard (OS 10.5+), use bluecove-2.0.3+
http://code.google.com/p/bluecove/

*bluecove2.0.3 is available for Unix,Windows and OSX

thank you, blindfish.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #136 - Oct 17th, 2008, 6:47pm
 
I am running OS 10.5.5, with Bluecove 2.0.3 and wrj4P5-008

Unfortunately I am only able to connect about 30% of the time. When it does connect it works fine, but about 70% of the time it crashes while trying to find the wiimote.


Here is the error that I get:

java.io.IOException: Error sending data!
at wiiremotej.WiiRemote.sendCommand(WiiRemote.java:526)
at wiiremotej.WiiRemote.setInputReport(WiiRemote.java:803)
at wiiremotej.WiiRemote.setInputReport(WiiRemote.java:809)
at wiiremotej.WiiRemote.setIRSensorEnabled(WiiRemote.java:1537)
at wiiremotej.WiiRemote.setIRSensorEnabled(WiiRemote.java:1495)
at lll.wrj4P5.WiiRimokon.addTalker(WiiRimokon.java:128)
at lll.wrj4P5.Wrj4P5.wiiDeviceDiscovered(Wrj4P5.java:318)
at wiiremotej.WiiRemoteJ$1.run(WiiRemoteJ.java:362)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.io.IOException: Connection closed
at com.intel.bluetooth.BluetoothStackOSX.l2Send(Native Method)
at com.intel.bluetooth.BluetoothL2CAPConnection.send(BluetoothL2CAPConnection.java:
126)
at wiiremotej.WiiRemote.sendCommand(WiiRemote.java:522)
... 8 more



My guess is that it's trying to sendCommand before the connection is properly established.

I have found that http://www.uweschmidt.org/wiimote-whiteboard
Uwe Schmidt's wiimote-whiteboard, which also uses the WiiRemoteJ is able to connect reliably on my system, so I don't think it's a problem with WiiRemoteJ or the bluetooth stack.

Any ideas on how I can fix this problem?

Thanks.

Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #137 - Oct 19th, 2008, 9:56am
 
hi, kdoerksen

my mac has the same env. (is your mac PPC?)
i've found the more chance relative to OS10.4.11, but not so frequency (70% fail!)
but in some case, the BT-Utility stuck, and doesn't work till re-insert my BTdongle.

more information you have?

btw, i examined the source of WhiteBoard project, and find some workaround to avoid some exception.
if you don't know the above behavior of the BT-Utility, you may feel the frequent fails.
if this is the point, i will add the same workaround in the next release.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #138 - Oct 20th, 2008, 11:30pm
 
I'm running on an Intel-based MacBook. I am using the internal bluetooth. Sometimes the BT-Utility doesn't seem to release the connection, in which case I usually disable and re-enable bluetooth and I'm back to my 30% connection rate.

If you could add some more exception handling in the wrj4p5 initialization routine, it would probably help me!

Also is there some way that I can handle the exception if the connection fails? If there was I could have my software try the connection again until it succeeds. However, I'm unaware of a way to detect the connection success or failure because of the way the connection routine runs in a thread.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #139 - Oct 24th, 2008, 5:01pm
 
It looks like the alpha-008 release has the same problem as posted by blindfish:
blindfish wrote on Sep 8th, 2008, 2:51pm:
I've just updated to processing 0148 and I'm now getting an error with wrj4P5 alpha-007:

Exception in thread "Animation Thread" java.lang.NoSuchMethodError: processing.core.PApplet.loadImageSync(Ljava/awt/Image;)Lprocessing/core/PImage;

It looks like 'loadImageSync' has been removed from PApplet...

I've posted a bug on Classic's sourceforge page, but I'd like to know how blindfish recompiled the library:
Quote:
...I was able to download your source and test this out by commenting out the offending code and recompiling the library.

Blindfish, would you be able to either post a quick how-to, or post links to a good place to start for compiling java libraries.  I'm a complete novice at building java libs, so any good starters would be appreciated.  Cheers.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #140 - Oct 25th, 2008, 2:20pm
 
>kdoerksen
i've just uploaded alpha-009, avoids the stuck of the BT-Utl with the exception.
would you try it? it will be moderate the failure probability, i hope.
i think the try to re-connect is hard to do with the WiiremoteJ. sorry

some discussions are in
http://www.wiili.com/forum/strange-problems-with-wiiremotej-und-macosx-1051-leopard-t3325-s14.html

http://code.google.com/p/bluecove/issues/detail?id=25

> wayfarer_boy
what is version of your wrj4P5?
alpha-008+ doesn't use the loadImageSync, no more.
would you confirm above?
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #141 - Oct 27th, 2008, 12:33pm
 
Sorry classic - I've left a reply in the bug tracker.  It was, of course, my fault.  I don't know how many versions of processing/wrj4p5 I'd gone through, but I must have had a mix of different versions in my library. I deleted the lot and reinstalled everything, and what do you know?  I worked perfectly.

Apologies for being a complete arse.

I can also say that alpha-009 works brilliantly on Mac OS X 10.4 (albeit with a lot of NATIVE: ###### output - is this coming from bluecove-2.0.3, WiiRemoteJ-v1.5 or wrj4P5 - and can I turn it off?)
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #142 - Oct 27th, 2008, 2:14pm
 
wayfarer_boy wrote on Oct 27th, 2008, 12:33pm:
I can also say that alpha-009 works brilliantly on Mac OS X 10.4 (albeit with a lot of NATIVE: ###### output - is this coming from bluecove-2.0.3, WiiRemoteJ-v1.5 or wrj4P5 - and can I turn it off)
thank you for your feedback.

would you close your tracking item on my project page
and
i haven't encounter the NATIVE: ###### output. this sounds from JNI, but i don't know.

btw., your combination is the newest version.
-between Wrj4P5 and WiiremoteJ
 Wrj4P5 005-  and  WiiremoteJ 1.4-  (w/o BalanceBoard)
 Wrj4P5 006+  and  WiiremoteJ 1.5+ (wt. BalanceBoard)
-for Leopard&Linux, use BlueCove 2.0.3+. (and for Tiger&Win)
-for Processing0148+, use Wrj4P5 008+.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #143 - Oct 28th, 2008, 10:44pm
 
How to minimize the logging of bluecove (at least I think it's bluecove).  I was getting this message with wrj4p5 connect()

Code:
og4j:WARN No appenders could be found for logger (com.intel.bluetooth).
log4j:WARN Please initialize the log4j system properly.

So, took a look at log4j's manual and javadoc pages:
http://logging.apache.org/log4j/1.2/manual.html
http://logging.apache.org/log4j/1.2/apidocs/index.html

and added
Code:
import org.apache.log4j.Logger; 


and this to setup
Code:
Logger logger = Logger.getLogger("com.intel.bluetooth");
logger.setLevel(Level.ERROR);

Hope that helps someone.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #144 - Oct 29th, 2008, 6:59am
 
Hello. Classiclll

http://www.brockcraft.com/wp-content/uploads/2008/05/myfirstwii.png

I tried on the mac.
It is the same as the picture.
I gave him the way you used.
However, this does not move the rectangle.
I do not know why.
I hope you know.

And even if the windows xp running in the way you work?
I tried, but failed in xp.
If you know how to let me know.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #145 - Oct 29th, 2008, 1:53pm
 
wayfarer_boy wrote on Oct 28th, 2008, 10:44pm:
How to minimize the logging of bluecove (at least I think it's bluecove).
:
and added
:
and this to setup
:
Hope that helps someone.

thank you for your feed back, wayfarer_boy
but, i think the log4j on your PC may be installed incorrectly,
and the BlueCove may not need the log4j.
see
http://groups.google.com/group/bluecove-users/browse_thread/thread/2c70904425ef776b/c2651976470a2004?lnk=gst&q=log4j#c2651976470a2004
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #146 - Oct 29th, 2008, 2:09pm
 
hi yosyua.
yosyua wrote on Oct 29th, 2008, 6:59am:
http://www.brockcraft.com/wp-content/uploads/2008/05/myfirstwii.png
this png shows that the wrj4p5 still waiting the user operation to connect the remote.
the message pane says "trying to find wii".

if you insert one script "if (wii.isConnecting()) return;" at the first line of draw(), you get an image to guide that "push 1 & 2 (button)" for connection.
if the script is not, no guide image is showed but wrj4p5 still waits your push.

the connecting process is performed asynchronously.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #147 - Nov 20th, 2008, 12:47pm
 
kspksp wrote on Jan 26th, 2008, 5:50pm:
YEEHAW, i did it!

it works!
i deinstall bluesoleil and install the Widcomm driver.

I use this:
http://www.dev-hack.com/pafiledb/index.php?act=view&id=2

Thank you Classiclll

Hey I used the installer supplied from your link and it crashed my system, and I mean it crashed it in a way that I had to reinstall (it would just boot up to a bluescreen)...
This means than I have a fresh and clean windows to experiment with, but still haven't got a clue how to connect my wii controller.
I would be really nice if someone could just send me a working version of a complete processing that is working, and the name of the bluetooth stick plus the software installed driving it.
I´m running XP Pro, SP3.....and it´s driving me nuts that I can´t get the thing working with my wii.
Thanks in advance XXX

P.S. It also might have been a conflict with my older bluetooth driver not having been removed propperly so the driver conflict resulted in my computer bluescreening...

P.P.S If it is too much asking for a ready to go and setup Processing the files and where to put them would be good enough, but I really tried it all, but never came any further than "BlueCove version 2.0.3 on winsock
trying to find a wii" so it seems like BlueCove is not working with my installed stack, and or bluetooth stick.

Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #148 - Nov 21st, 2008, 12:03pm
 
O.K. what I wrote was on my reinstalled windows, so after registering at avetana again it says...

avetanaBluetooth version 1.3.18a
trying to find a wii

So I think I´ll need to get me a Widcomm driver for my Bluetooth Dongle now?

In my Processing\libraries\wrj4P5\library i do have the following...

avetanaBluetooth.jar
bluecove-2.0.3.jar
Loc.jar
WiiRemoteJ.jar
wrj4P5.jar

Am I on my way?

XXX






Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #149 - Nov 21st, 2008, 1:48pm
 
hi MobyDick
have you paired your PC and your wiiremote with pushing the red button in the battery payload?
if you not, you may need the operation, i think.

and/or

try widcomm with avetana or bluecove (never both).
Pages: 1 ... 8 9 10 11 12 ... 16