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 / 1671
1670  |  1672
Subject: 
Interactive communication with the RCX
Newsgroups: 
lugnet.robotics.rcx
Date: 
Wed, 24 Apr 2002 07:19:33 GMT
Viewed: 
2977 times
  
I have recently discussed with Kekoa an interesting issue that apparently
received scarce attention in the past.

I'm trying to have interactive communication between the
computer and the RCX through IR connected to an USB port:
sendind commands from the computer to the RCX,
while waiting for asynchronous event messages sent back from the RCX.
I'm using the LEGO firmware with the LASM assembly, but the problem
appears with any other substitute.
Each one of the two functions separate operates properly: I can reach a rate of
1/50ms for messages from the RCX and 1/100ms for commands from the computer
(send and receive the answer), however, when the two operations are
intermixed sometime the messages are corrupted.
Kekoa points out that the problem doesn't depend on the software but it is
intrinsic with the IR communication media that in practice isn't full duplex.
What is needed is to implement a kind of collision detection protocol
if one want to use an asynchronous communication mode, or polling event from
the computer (very bad solution), or continuous synchonization messages sent
from te computer to marshall the communication.

Someone can give me a suggestion? And particularly help me in implementing
a kind of protocol at the very button level of the brick?

Giuseppe Menga
menga@polito.it



Message has 1 Reply:
  Re: Interactive communication with the RCX
 
I don't think collision detection will be possible since the hardware/firmware does a checksum (at least in lego firmware), and no message is provided to the VM software (LASM), this prevents ACK/NAK protocols working. The Message() function does (...) (23 years ago, 24-Apr-02, to lugnet.robotics.rcx)

2 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