|
In lugnet.robotics.rcx.java, Roger Glassey wrote:
|
Hi Anders In lugnet.robotics.rcx.java, Anders Gaasedal wrote:
|
My problem is the communication speed from the PC to RCX, it takes about 0.5
sec before the IR tower sends the message (1 byte) to the RCX. I use the
lejos software and the pcrcxcomm.jar and I use the RCXF7PORT for
communication.
|
I could not repeat your experiment exactly because I dont have a joy stick.
So instead I wrote a pair of programs that send single byte messages between
the PC and the RCX. The RCX adds 1 to the incoming byte and immediately send
it back. The PC then echoes it back to the RCX. I am using the LeJos
RCXF7Port, InputStream and OutputStream. I count about 4.2 round trip
messages per second. The PC side code sends the first byte in response to a
mouse click. The delay between the mouse click and the tower light coming on
is too short to observe. The light then appears to stay on continuously.
Perhaps the delay you are seeing is not in the communications, but somewhere
else in your code? Good luck, Roger
|
Hi Roger,
Thank you for your help, it is a bit strange that you dont see any problems,
since it is the same protocols we are using. I dont think the joystick is the
problem since I have the same problem with inputs from keyboard or mouse, but I
will try to review my code again, and see if I can find any bugs. I would be
very glad if you will send your example to my email.
Thanks, Anders
|
|
Message is in Reply To:
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|