To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 1926
1925  |  1927
Subject: 
Re: frame RCX reply how
Newsgroups: 
lugnet.robotics.rcx
Date: 
Sat, 1 Feb 2003 18:31:04 GMT
Viewed: 
4106 times
  
Anybody know more?  If noone does, then I'll have
to decipher code on the web that purportedly
works, such as:
http://graphics.stanford.edu/~kekoa/rcx/tools.html#Firmdl

I reached:
http://graphics.stanford.edu/~kekoa/rcx/firmdl3.tar.gz
71,680 bytes

Accordingly I'd now guess the firmdl3/rcx_comm.c algorithm for framing standard
RCX replies is:

rcx_send

1) Send the bytes of the command packet.

2) Loop to receive up to equally many bytes echoed.  If 100ms elapses twice
without receiving any bytes, then receive and toss bytes til 200ms elapses
twice without bytes or 4096 are received.  Don't worry if the first bytes
received were actually received before step (1).

rcx_recv

3) Loop to receive the reply up to the expected length.  Quit early if the
specified 50ms or 150ms timeout elapses twice without receiving any bytes.

rcx_wakeup_tower

4) Before using (1) .. (3), begin by confirming the packet x 10 FE 10 FE can be
sent and echoed.  [Perhaps this packet rarely disturbs a standard RCX?]

...

How inaccurate are my guesses?  Personally I'm vastly ignorant of the details
of the Linux serial API, but I knew a select in a past life.

Curiously, cluelessly, thankfully yours, Pat LaVarre



Message has 1 Reply:
  Re: frame RCX reply how
 
(...) can be (...) This is the PBAliveOrNot (or ping) packet type. It has the side- effect of reinitializing the toggle bit used to determine repeat packets. Do you have the Minsdstorms SDK? It covers all the standard LEGO packet types in detail: (...) (22 years ago, 1-Feb-03, to lugnet.robotics.rcx)

Message is in Reply To:
  frame RCX reply how
 
Anybody know how to divide the bytes incoming from the RCX IR replies into correct frames, preferably using javax.comm on a Linux/Windows PC? I'm told I might want to: 1) Expect first an exact echo of the command packet. 2) Expect the reply code to (...) (22 years ago, 31-Jan-03, to lugnet.robotics.rcx)

16 Messages in This Thread:







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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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