Hi Gal,
 
It sounds like you are using Windows. Are you also using Eclipse? You probably need to turn the NXT off/on after each time you try something, otherwise it tends to hang. Also, make sure your code isn't still running when you turn the NXT back on. Once you get things running smoothly there shouldn't be a need to turn it off/on every time.
 
- Brian
----- Original Message -----
From: Gal Smith
Sent: Monday, October 02, 2006 12:56 AM
Subject: [Lejos-discussion] Question about icommand 0.4

Hello,

I have the icommand 0.4 installed and I am trying to get it to work.

I am trying to get the sample Melody.java to work.  I am running it within Eclipse.  It either hangs and does nothing as below under OUTPUT1 or says the port is in use like OUTPUT2.  The bluetooth connection is being attempted because the bluetooth icon in the systray changes momentarily when I run it.

I have successfully bluetooth controlled my NXT bot with the bundled Legos software and the Microsoft Robotics Studio, but I prefer Java.  Any suggestions to try would be appreciated.  If you need any info to help diagnose I would be happy to send it. 

If this is not the place for this or there are other places I should also try please email me back and let me know.  In fact could someone please send me a reply that this email was received just so I'll know I am sending to a live address.

Thanks for your time.

OUTPUT1
NXTCOMM = COM3
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7

OUTPUT2
NXTCOMM = COM3
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
Error while connecting NXTCommand() constructor
gnu.io.PortInUseException: Unknown Application
    at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
    at icommand.nxtcomm.NXTComm.open(NXTComm.java:52)
    at icommand.nxtcomm.NXTCommand.<clinit>(NXTCommand.java:16)
    at icommand.platform.nxt.FileSystem.upload (FileSystem.java:28)
    at Melody.main(Melody.java:17)
Exception in thread "main" java.lang.NullPointerException
    at icommand.nxtcomm.NXTComm.sendData(NXTComm.java:105)
    at icommand.nxtcomm.NXTCommand.openWrite (NXTCommand.java:101)
    at icommand.platform.nxt.FileSystem.upload(FileSystem.java:28)
    at Melody.main(Melody.java:17)




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion

Reply via email to