First of all, thanks for LeJOS and the LeJOS Eclipse plugin.
For the last couple of nights I've been trying to get myself setup with Eclipse 3.4, LeJOS and get my 5 pbricks talking to each other using my Windows XP based PC via Infrared. I'm using Java 5 / JDK 1.5.0.15.
I downloaded and installed Eclipse 3.4 and installed it, no problems there.
Installed the LeJOS plugin (org.lejos.ldt_1.2.0.zip) which works fine. LeJOS can be downloaded to my RCX and LeJOS projects can be created, and it can launch and download lejos programs to my RCXs.
LeJOS firmware won't download when Fast Mode is enabled in the LeJOS section of the Eclipse preferences dialog, the error that's displayed is:
"Delete firmware failed: Tower error: bad response from rcx
Delete firmware failed: Tower error: bad response from rcx"
(it appears twice)
Is there a fix for this issue?
Next up, the newer LeJOS plugin - eclipse_leJOS3.zip - didn't work at all to start with - nothing appeared on the menu and the plugin wasn't listed in help/about/plugin-details. I then ran eclipse.exe with the --refresh option from the command line and now I see the icon on the toolbar and the prefs page is present, however when I try and download the firmware to the RCX it says:
"An internal error occurred during: "leJOS firmware download".
close"
Any ideas?
My next issue is regarding LeJOS 3.0.0-RC2 and RCXPort.
The Java code below, for the PC not the RCX, opens an RCXPort on COM2, waits, and then exits.
- Code: Select all
import java.io.IOException;
import josx.rcxcomm.*;
public class LEGORemote {
private static RCXPort rcxPort;
public static void main(String[] args)
throws
InterruptedException
{
try {
rcxPort = new RCXPort("COM2");
Thread.sleep(1000);
} catch (IOException e) {
System.out.println(e.getMessage());
}
}
}
If I use LeJOS 2.1.0 it works fine, I tried 3.0.0-RC2 first and it fails with the message: "Tower error: bad ir link"
Other people also seem to have the same issue with LeJOS 3.0.0-RC2 - (search this forum RCXPort).
I looked though the code and it's failing on this line in Tower.java, line 41:
- Code: Select all
int status = open(_tty, fastMode);
it's being called by LLCHandler.java, line 34:
- Code: Select all
tower.openTower(false);
using the debugger I confirmed that _tty is set to "COM2" and fastMode is 'false'.
If anyone has a solution please let me know!
Thanks again,
Dom
