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 

Need help with Java and the wiimote.
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ
View previous topic :: View next topic  
Author Message
SilentShaddow



Joined: 10 Feb 2008
Posts: 33

Digg It
PostPosted: Wed Feb 27, 2008 12:17 am    Post subject:

I spoke to the person that I know, that has been able to output the right stuff before and he said that you need some C or something, that might be just because he programs in C... feel free to correct me.
Back to top
View user's profile Send private message
mharkus



Joined: 15 Jan 2008
Posts: 7

Digg It
PostPosted: Wed Feb 27, 2008 12:43 am    Post subject:

Hi Shadow,

I'm not sure how will you interface your DMX to your PC but if it's via serial or parallel port, yes java can write to those ports. Here's a nice article about serial comms:

http://www.javaworld.com/javaworld/jw-05-1998/jw-05-javadev.html

But I agree with your friend that it is really easy to write programs that communicates with hardware using C. I've been using C before to write programs for controlling home appliances via SMS.




Cheers,
Marc
Back to top
View user's profile Send private message Yahoo Messenger
SilentShaddow



Joined: 10 Feb 2008
Posts: 33

Digg It
PostPosted: Wed Feb 27, 2008 12:45 am    Post subject:

The guy I spoke to has a USB converter, so I will be using that. DMX has 3 control cores... http://en.wikipedia[dot]org/wiki/DMX512-A
Back to top
View user's profile Send private message
Cha0s
Site Admin


Joined: 17 Jan 2007
Posts: 468

Digg It
PostPosted: Wed Feb 27, 2008 1:55 am    Post subject:

There is a USB framework for Java:
Implementations for Windows:
- http://javax-usb.org/
- http://www.steelbrothers.ch/jusb/
API: http://javax-usb.org/jdoc/
_________________
Cha0s
Back to top
View user's profile Send private message
SilentShaddow



Joined: 10 Feb 2008
Posts: 33

Digg It
PostPosted: Thu Feb 28, 2008 4:12 pm    Post subject:

Ive been searching for my JSR-82 thingy that I need to add to the classpath, and I just end up confused,

why do I need to add it? I thought the information was in the .dll file?
Back to top
View user's profile Send private message
Cha0s
Site Admin


Joined: 17 Jan 2007
Posts: 468

Digg It
PostPosted: Thu Feb 28, 2008 4:18 pm    Post subject:

JSR-82 is a Java framework that contains methods to implement Bluetooth support in Java. It should be a JAR file. You'll need to obtain it online (I recommend you get BlueCove, from bluecove.org). If WiiRemoteJ can't interface with Bluetooth, it can't connect to a remote. Wink
_________________
Cha0s
Back to top
View user's profile Send private message
SilentShaddow



Joined: 10 Feb 2008
Posts: 33

Digg It
PostPosted: Thu Feb 28, 2008 4:26 pm    Post subject:

Im downloading the BlueCove now, but I did some research and found out that up till now I have been using the Toshiba stack...

OK I have the BLueCove thingy,

stuff so far...
the command im trying to use:
C:\Users\Toby\Downloads\WiiRemoteJ\WiiRemoteJ_v1.2>javac -cp WiiRemoteJ.jar -cp BlueCove.jar DMXControl.java
the location of bluecove:
C:\Users\Toby\Downloads\BlueCove-2.0.2
C:\Users\Toby\Downloads\WiiRemoteJ
the code:


Code:
import WiiRemoteJ.jar;
import wiiremotej.event.*;
public class DMXControl
{
 public static void main(String args[]) throws Exception
 {
     WiiRemote remote = WiiRemoteJ.findRemote();
     remote.setLEDIlluminated(0, true);
     WiiRemoteAdapter listener = new WiiRemoteAdapter()
     {
         public void buttonInputReceived(WRButtonEvent evt)
         {
             if (evt.wasPressed(WRButtonEvent.B))
             {
                 System.out.println("yay");
             }
         }
     };
     remote.addWiiRemoteListener(listener);
 };
}
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
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

 
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