To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2090
    legOS codeI need example code of rcx2rcx communication. —Chris Daniel
   Hello, I want to use one RCX with 2 rotation sensors as a remote to control a second rcx. I own Extreme Mindstorms,have read the legOS howto,and checked the cvs at (URL) Any and all help would be appreciated. ldaiel2@prodigy.net (23 years ago, 20-Oct-01, to lugnet.robotics.rcx.legos)
   
        Re: legOS codeI need example code of rcx2rcx communication. —Albert Huang
   Hi Chris, I just started experimenting with brick-to-brick rcx communication. This is some code that I got working. It doesn't do a whole lot, but it demonstrates the basics of what you need to do. There are two bricks involved. Hostmask is 0xf0. (...) (23 years ago, 24-Oct-01, to lugnet.robotics.rcx.legos)
   
        Re: legOS codeI need example code of rcx2rcx communication. —Chris Daniel
     Albert, Thanks for responding to my post! I had trouble compileing the code maybe you could help or e-mail me the original.Thanks here is the error report: brick1.c: In function `read_from_ir': brick1.c:40: warning: passing arg 1 of `memcpy' di rget (...) (23 years ago, 29-Oct-01, to lugnet.robotics.rcx.legos)
    
         Re: legOS codeI need example code of rcx2rcx communication. —Bill Weiss
     (...) Chris, First, I think the code in the main function should be as follows: int main( int argc, char* argv[] ) { char buf[256]; int len; //notice the variable i is missing lnp_address_set_handler( 1, port_handler ); while(1) { len = (...) (23 years ago, 30-Oct-01, to lugnet.robotics.rcx.legos)
   
        corect me please —Chris Daniel
   Thanks Bill with your help the code Albert gave me compiles nicely! Now i (...) //This is what I tried in LegOS/boot/config.h: #define CONF_LNP_HOSTMASK 0xf0 #define CONF_LNP_HOSTADDR 0x10 //Then in a cygnus window I created a kernal make realclean (...) (23 years ago, 4-Nov-01, to lugnet.robotics.rcx.legos)
   
        Re: corect me please —Zhengrong Zang
   You need to use util/dll -r1 boot/brick1.lx or Try for help util/dll Zhengrong (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
   
        Re: corect me please —Albert Huang
   I think you actually want dll -r10 the -r flag specifies which RCX to download the specified program to. you need the 10 because it is read in as a hex address. When you use (...) basically, whatever you set the HOSTADDR to, needs to match what you (...) (23 years ago, 6-Nov-01, to lugnet.robotics.rcx.legos)
 

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