Dear Tripurari,
If u r using windows then there needs to be a small change in the RemoteControlMessenger.java file.

Somewhere in line 146 or somewhere close to that find the code:
fTower = new Tower("/dev/usb/legousbtower0");

Change the above line to:
fTower = new Tower("usb");

Compile this Java file and add the generated class file (RemoteControlMessenger.class) to the pcrcxcomm.jar file from the lib folder. You may have to replace the existing class file with the correct package path.... If all the above sounds a little pain to you, then I'll pass on my pcrxcomm.jar if u ask me to !!

--
Regards,
Saptarshi PURKAYASTHA

You Live by CHOICE, Not by CHANCE



On 4/26/06, Tripurari Volpe <[EMAIL PROTECTED]> wrote:
Well, I finally got the sample outstream stuff to compile and run (sorta)... but now I have a new problem.

I compile and run the sample program samples/comms/outstream/Read.java, and run it on my PC.  It works, up to a point. Specifically, when it tries to create a new RCXPort, it runs into a TowerException informing me of a "write failure"...

I read Walt White's recent thread about the "Tower error: write failure" issue, and changing the value of RCXTTY to lowercase did indeed help (before, I couldn't even download firmware or programs).  However, the problem with the Read.java program itself still persists.  Does anyone know why it could be failing to access the tower? It's properly installed and connected - the tower works just fine with the RIS 2.0 software, and when downloading with firmdl or lejosdl...

I apologize for bothering this list so much, but I have a project that I need to finish very soon, and this link between the PC and the RCX is the last hurdle, that has proven to be an incredibly frustrating difficulty... All I want to do is pass some data from the RCX to the PC, for gosh sakes! :-)  Any help at all would be appreciated.



P.S: Incidentally, I notice that there's a second constructor for RCXPort, taking a string argument "port"... The API documentation says nothing - what exactly does this constructor do? Might it be helpful to me right now?

P.P.S:  I gave the lower-level Tower class a try, and that actually worked, though a bit awkardly. I think I could manage to put together what I need with just this, but if Tower works, why doesn't RCXPort...?

Reply via email to