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 / 742
741  |  743
Subject: 
Re: Communicatin between NQC and legOS
Newsgroups: 
lugnet.robotics.rcx
Date: 
Sat, 23 Sep 2000 06:26:05 GMT
Viewed: 
1474 times
  
In article <G16wrp.Au0@lugnet.com>, "Rainer Balzerowski"
<Balze2@gmx.net> wrote:

Hi folks,

is it possible to communicate between two RCX, one running NQC, one
running
legOS ?

I have to solve this problem for using a RCX programmed with legOS and
the
Vision Command camera.
The vision command camera software requires an "alive-message" via IR
from the
RCX at least every 5 seconds.
This works fine with NQC [SendMessage(x)] but does not work with legOS
[lnp_integrity_write(test,1)].

Where are the differences between this to functions ?
Is there a frame around the transmitted data using NQC ?
If so what does it look like ?


The protocol used by the standard firmware (which is what NQC relies on)
is described on these sites:

http://graphics.stanford.edu/~kekoa/rcx/
http://www.crynwr.com/lego-robotics/

the opcode of interest is F7 (thats what gets sent as a transmitted
message).  The entire packet would look like this:

55 ff 00 f7 08 x ~x s ~s

where x is the message you want to send
~x is the one's complement of x
s is the checksum (f7 + x)
~s is the one's complement of the checksum

For example, sending message 1:

55 ff 00 f7 08 01 fe f8 07

Dave


p.s.  You can also spy on nqc to figure out the packet.  Tell nqc to
send the message, and enable verbose mode:

nqc -v -msg 1

--
reply to: dbaum at enteract dot com



Message has 1 Reply:
  Re: Communicatin between NQC and legOS
 
(...) OK, but do i have to create this frame using legos ?? I tried but it doesn't work. (thank you so far dave baum ! I received your book today, hope this will help me.) (24 years ago, 26-Sep-00, to lugnet.robotics.rcx)

Message is in Reply To:
  Communicatin between NQC and legOS
 
Hi folks, is it possible to communicate between two RCX, one running NQC, one running legOS ? I have to solve this problem for using a RCX programmed with legOS and the Vision Command camera. The vision command camera software requires an (...) (24 years ago, 20-Sep-00, to lugnet.robotics.rcx)

6 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