 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
lmg
Joined: 19 Mar 2008 Posts: 1
Digg It |
Posted: Wed Mar 19, 2008 8:23 pm Post subject: processing + avetana + bluez-utils 3.19-0ubuntu3 (gutsy) |
|
|
hi there, this is my first post.
after quite some trial and error I finally got everything to work and here's how:
software used:
> processing-0135
> wrj4p5 alpha-004
> Loc beta-002
> WiiRemoteJ v1.3
> avetanaBT 20070719
processing-0135/libraries/
wrj4P5/library/
avetanaBT.jar
WiiRemoteJ.jar
wrj4P5.jar
Loc/library/
Loc.jar
compiling avetana from source worked just fine (with all the dependencies installed) but the resulting avetanaBT.jar didn't work, so I had to make some changes in avetanas source-file c/BlueZ.cpp
add this method:
| Code: |
NIEXPORT void JNICALL Java_de_avetana_bluetooth_stack_BlueZ_cancelInquiry (JNIEnv *env, jclass obj) {
/* Close the specified HCI device */
//printf("Function called: %s, %i\n"__FILE__, __LINE__);
//hci_close_dev(dd);
return;
}
|
change this:
| Code: |
if(transmitMTU!=-1 || receiveMTU!=-1) {
/*** modified by lmg to work with the wiimote
maybe this breaks other devices! ***/
transmitMTU = 185;
receiveMTU = 185;
/** end of modifications **/
opts.omtu = (transmitMTU==-1?672:transmitMTU);
|
@ClassicIII: this was mentioned somewhere in this thread, but you might want to change it in the HowTo to make it work with the latest avetanaBT version.
after this changes to the source I compiled avetanaBT.jar:
this might be ubuntu gutsy-specific, but since the problem mainly occurs there, I'll post it. (pwd: /home/lmg/avetana/)
| Code: |
$ export JDK_HOME=/usr/lib/jvm/java-1.5.0-sun
$ export BIN_DIR=/home/lmg/avetana/binaries
$ make clean
$ ./install
$ cp /home/lmg/avetana/binaries/avetanaBT.jar /home/lmg/processing/libraries/wrj4P5/library/
|
you certainly want to change the "/home/lmg" part!
hope this saves you some time!
some funky processing sketches using the wii soon...
greetings, lmg |
|
| Back to top |
|
 |
Classiclll
Joined: 10 Feb 2007 Posts: 95 Location: Japan
Digg It |
Posted: Thu Mar 20, 2008 4:48 am Post subject: |
|
|
hi, lmg
deeply thank you for your feedback, because i have no experiments on Linux.
| lmg wrote: | | Code: | processing-0135/libraries/
wrj4P5/library/
avetanaBT.jar
WiiRemoteJ.jar
wrj4P5.jar
Loc/library/
Loc.jar |
|
that is my document(wiki) error. i've update your point and current state around JSR82.
| lmg wrote: | compiling avetana from source worked just fine (with all the dependencies installed) but the resulting avetanaBT.jar didn't work, so I had to make some changes in avetanas source-file c/BlueZ.cpp
add this method:
...
change this:
...
@ClassicIII: this was mentioned somewhere in this thread, but you might want to change it in the HowTo to make it work with the latest avetanaBT version. | Code: |
$ export JDK_HOME=/usr/lib/jvm/java-1.5.0-sun
$ export BIN_DIR=/home/lmg/avetana/binaries
$ make clean
$ ./install
|
|
this is the good tips for WiiremoteJ (not only for Wrj4P5), please post the reference this tips into the parent thread "WiiremoreJ".
| lmg wrote: | | Code: |
$ cp /home/lmg/avetana/binaries/avetanaBT.jar /home/lmg/processing/libraries/wrj4P5/library/
|
you certainly want to change the "/home/lmg" part! :wink:
hope this saves you some time!
some funky processing sketches using the wii soon...
greetings, lmg |
thank you again!, and i'm looking forward your "funky" skeches. _________________ Classiclll |
|
| Back to top |
|
 |
turboconnard

Joined: 25 Mar 2008 Posts: 8
Digg It |
Posted: Thu Mar 27, 2008 1:40 pm Post subject: Hello |
|
|
Hello guys, thank you for all those posts, my wiimote finaly works on ubuntu, eclipse etc...
I just have problems with IR...
I try with a sensor bar and candles but all I can get is "-1.0" for all properties
The sensorbar is ok, it works with the wii  |
|
| Back to top |
|
 |
Classiclll
Joined: 10 Feb 2007 Posts: 95 Location: Japan
Digg It |
|
| Back to top |
|
 |
turboconnard

Joined: 25 Mar 2008 Posts: 8
Digg It |
Posted: Thu Mar 27, 2008 4:46 pm Post subject: |
|
|
Hi, Classiclll !
I'm at work so I can't check now... I'll tell you in few hours.
I'm sure to compile the latest avetana ( 2007 07 19) and use the wrj4p5 alpha 004... but I can't remember my WiiRemotej version.
ps : awesome work ! |
|
| Back to top |
|
 |
turboconnard

Joined: 25 Mar 2008 Posts: 8
Digg It |
Posted: Thu Mar 27, 2008 10:03 pm Post subject: more infos... |
|
|
I use :
Avetana 20070719
WiiremoteJ 1.3
wrj4P5 alpha 004
Loc beta 2
I compile my application on eclipse with Java-6-sun-1.6.0.03
no error... but no values... |
|
| Back to top |
|
 |
turboconnard

Joined: 25 Mar 2008 Posts: 8
Digg It |
Posted: Thu Mar 27, 2008 10:20 pm Post subject: |
|
|
ok, if my wiimote is in front of the sensor bar when I start the application, I have the first 2 leds points (two red ellipse) ... and then, nothing moves.
| Code: |
println(wii.rimokon.irLights[0]);
|
gives :
| Code: |
avetanaBluutooth version 1.3.17
trying to find a wii
Discover called # 0
(-1.0,-1.0,-1.0)
(-1.0,-1.0,-1.0)
(-1.0,-1.0,-1.0)
(-1.0,-1.0,-1.0)
(-1.0,-1.0,-1.0)
(-0.5043988,-0.85267276,0.6)
(-0.5043988,-0.85267276,0.6)
(-0.5043988,-0.85267276,0.6)
(-0.5043988,-0.85267276,0.6)
...
| [/code] |
|
| Back to top |
|
 |
|
|
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
|