To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 346
345  |  347
Subject: 
Re: Communication Speed, PC -> RCX, LEJOS!
Newsgroups: 
lugnet.robotics.rcx.java, lugnet.lego.dacta, lugnet.robotics.edu, lugnet.robotics.rcx.legos
Date: 
Mon, 19 Jul 2004 14:04:23 GMT
Viewed: 
19128 times
  
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 don’t 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:
  Re: Communication Speed, PC -> RCX, LEJOS!
 
(...) I could not repeat your experiment exactly because I don’t 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 (...) (20 years ago, 14-Jul-04, to lugnet.robotics.rcx.java, lugnet.lego.dacta, lugnet.robotics.edu, lugnet.robotics.rcx.legos, FTX)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR