Using bluetooth with iCommand on Windows

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Using bluetooth with iCommand on Windows

Postby sbwhulio310 » Mon Dec 03, 2007 4:49 am

I need some help getting Bluetooth to work with iCommand.

I went thru the set up described in Brian Bagnall's book Maximum Lego NXT (Chapter 7) on a Windows 2000 platform. The NXT sees the laptop, and I could connect using Bluetooth to the laptop. It was paired on COM4.

We set up eclipse, the classpath, native libraries for RXTX, etc. and then tried sample programs. It seems to open the connection from iCommand, but then hangs --- doesn't do any of the other NXT commands. Here's the output on the melody test program:

------------------------------------
Properties location: C:\Documents and Settings\Administrator\icommand.properties
NXTCOMM = COM4
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Opened

--------------
Has anyone encountered this before? Any suggestions on what I can try?
Thanks!

------------------
Here's the program snippet:
NXTCommand.open();
System.out.println("Opened");
File myFile = new File("C:\\ProgramFiles\\icommand-0.6\\samples\\MonkeyIsland.rso");
byte status = FileSystem.upload(myFile);
if(status == 0)
System.out.println("File successfully uploaded");
else {
System.out.println("Error uploading " + myFile.getName() + ": " + Integer.toHexString(status));
return;
}
Sound.playSoundFile(myFile.getName());

NXTCommand.close();
---------------------
sbwhulio310
New User
 
Posts: 1
Joined: Mon Dec 03, 2007 4:21 am

Postby bbagnall » Wed Dec 12, 2007 5:53 pm

Try following the (somewhat convoluted) instructions in the readme file that comes with iCommand. Basically you shouldn't need to use RXTX anymore, just Bluecove, which comes with the iCommand download.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm


Return to NXJ Software

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests

more stuff