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 / *2124 (-40)
  Re: How do I find my kernel size?
 
You have to comment CONF_PROGRAM if you commented CONF_TM, but I am not sure if you still can download your program without CONF_PROGRAM. I don't think you can comment CONF_TM. Zhengrong ---...--- (...) (23 years ago, 7-Nov-01, to lugnet.robotics.rcx.legos)
 
  How do I find my kernel size?
 
Hi, Is the kernel size simply the size of the legos.srec file? I thought so initially, however my legos.srec file is 18800(or close to) and im pretty sure ive allocated more than than 19k using dynamic memory. Obviously this is more than 32k in (...) (23 years ago, 7-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: About LNP_HOSTADDR & LNP_HOSTMASK
 
The only concern that I would have with this kind of an implementation is that if you plan on changing your brick's LNP address, you have to remember what address it used to be while you're downloading a program. It's not a huge deal, but it's an (...) (23 years ago, 6-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: About LNP_HOSTADDR & LNP_HOSTMASK
 
Well, I will try to make a patch for this modification. Zhengrong (...) (23 years ago, 6-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: About LNP_HOSTADDR & LNP_HOSTMASK
 
looks fine to me. not a bad idea! -albert "Zhengrong Zang" <mikezang@iname.com> wrote in message news:GMBBt6.C4J@lugnet.com... (...) (23 years ago, 6-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: corect me please
 
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)
 
  Re: Unable to compile helloworld.c
 
Addendum: It seems bad to put legOS under /usr/lib. Please get a fresh legOS.tar.z from legOS.sourceforge.net and install it in your user home directory. (for me, that means in /home/obi. So legOS home is /home/obi/legOS at my linux system) You will (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: Unable to compile helloworld.c
 
(...) <sigh> I'm not sure either. Actually no idea so far. It seams that makelx is called with wrong parameters. But why? Did you successfully made the demos in the demo dir? (...) That puzzles me, too. The compiler and the binutils come as a rpm (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: Unable to compile helloworld.c
 
Well!I looked in the makefile and couldn't see anything wrong with the path.As for having legOS under usr/lib, it was done at the time of installing the rpm and I hadn't specified any path.Now,I tried copying config.h and putting it in the 'include' (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: Unable to compile helloworld.c
 
(...) The error messages state that helloworld includes conio.h which tries in line 41 to include config.h. Helloworld includes unistd.h which includes time.h which tries in line 32 to include config.h. So, conio.h, unistd.h and time.h are found, (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
 
  About LNP_HOSTADDR & LNP_HOSTMASK
 
I found these MACROs are only used in lnp.c as below: kernel/lnp.c: lnp_buffer[3]=LNP_HOSTADDR | (srcport & LNP_PORTMASK); kernel/lnp.c: if(LNP_HOSTADDR == (dest & LNP_HOSTMASK)) {... You have to recompile legOS as this reason, if we can use two (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: corect me please
 
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: Unable to compile helloworld.c
 
Mike, I made the changes in the Makefile by removing rover.lx and others.I didn't have to change the path of KERNEL or other Makefile files as the Project directory is in legOS directory.This time when I tried make helloworld.lx, I get the following (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: Unable to compile helloworld.c
 
Michael explained very detail, you can do as below if you don't want to do too complex: Make your Project directory inside ../legOS directory, copy Makefile from demo to Project directory, change PROGRAMS=helloworld.lx rover.lx linetrack.lx (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
 
  corect me please
 
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: Unable to compile helloworld.c
 
(...) Ok. Now lets look at your "projects" dir. You take helloworld.c from demo and put it into "projects". Then you also put the Makefile you find in the demo dir into "projects", so you have two files: helloworld.c and Makefile. You now must edit (...) (23 years ago, 4-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: Unable to compile helloworld.c
 
Ok let me explain the whole process that I did.I downloaded the .rpm files for legOS,binutils and egcs and installed them.After that according to the HowTo documentation I wanted to test the compiler by compiling a simple program.I looked into the (...) (23 years ago, 4-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: Unable to compile helloworld.c
 
What do you mean Project directory? there is no this directory if I remember! Zhengrong (...) (23 years ago, 4-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: Unable to compile helloworld.c
 
I compiled in the Project directory. -Rajendra (...) (23 years ago, 4-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: Unable to compile helloworld.c
 
did you compile in demo directory? Zhengrong -------- (...) (23 years ago, 4-Nov-01, to lugnet.robotics.rcx.legos)
 
  Unable to compile helloworld.c
 
Hi! I was trying to compile the helloworld.c program by using "make helloworld.lx" but I get an error "make:*** No rule to make target 'helloworld.lx'.Stop." I had placed helloworld.c file alongwith Makefile.common in /usr/lib/legOS/Project (...) (23 years ago, 4-Nov-01, to lugnet.robotics.rcx.legos)
 
  Re: legOS codeI need example code of rcx2rcx communication.
 
(...) 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)
 
  Re: legOS codeI need example code of rcx2rcx communication.
 
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: Couldn't download egcs files
 
Quoting Rajendra Kumar Penugonda : (...) How can I get those files?Also I was able to download the binutils (...) "/usr/local/crossgcc...-hms/lib", depending the way you unpacked the archive. Remember that the tar command can not set the first '/' (...) (23 years ago, 28-Oct-01, to lugnet.robotics.rcx.legos)
 
  Adjust Switch Time
 
When you made a Motorized Switch Point, if you want to use RCX to control it, this switch time is important value, a suitable time is better to switch point. You can find my AdjustSwitch.c for legOS, that can help you to do this. (URL) (23 years ago, 28-Oct-01, to lugnet.robotics.rcx.legos, lugnet.trains)
 
  Couldn't download egcs files
 
Hi! I tried to download the egcs files from the source site but was not able to do so.How can I get those files?Also I was able to download the binutils files.I did according to the Howto document but when I did "make install",I got the following (...) (23 years ago, 27-Oct-01, to lugnet.robotics.rcx.legos)
 
  Re: LegOS USB Support (for RCX 2.0)
 
Well, you can have the modified source files, if that's what you mean. But if you have the RS232 IR tower from 1.0 or 1.5, then you don't need the USB patch. - Hary (...) (23 years ago, 27-Oct-01, to lugnet.robotics.rcx.legos)
 
  Re: Problems installing in Win98
 
I am trying to setup legOS on a Windows ME machine following the directions posted by Max Bowsher. I am using Cygwin 1.3.3 which comes with gcc 2.95.3-5. Everything goes fine until I try to make the gcc cross compiler using the command 'make (...) (23 years ago, 26-Oct-01, to lugnet.robotics.rcx.legos)
 
  Re: LegOS USB Support (for RCX 2.0)
 
Can you make a patch file? Although I still don't have it. But I can add it my patch for remote and message when I got it. Zhengrong (...) (23 years ago, 26-Oct-01, to lugnet.robotics.rcx.legos)
 
  LegOS USB Support (for RCX 2.0)
 
I have added USB support to LegOS's firmdl, dll, and lnp under Windows. If anyone also has the USB IR tower (which LegOS's tools can't work with normally) instead of the RS232 tower, I can send out the modified source. - Hary (23 years ago, 26-Oct-01, to lugnet.robotics.rcx.legos)
 
  Re: Crosscompiler??
 
(...) For cygwin (Linux like environment fow Windows) go to (URL) newlib go to (URL) all the other GNU stuff go to (URL) (23 years ago, 25-Oct-01, to lugnet.robotics.rcx.legos)
 
  Crosscompiler??
 
Hi!Everyone, Can somebody help me get the crosscomplier and the related files -egcs,binutils and h8300-hitach-hms? Regards, Raj ___...___ Get your FREE download of MSN Explorer at (URL) (23 years ago, 24-Oct-01, to lugnet.robotics.rcx.legos)
 
  Re: legOS codeI need example code of rcx2rcx communication.
 
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)
 
  Remote Control Train with legOS
 
I made a short legOS program to use remote control train in smooth speed, you can find it at my homepage. RCX Controlled LEGO Train Projects (URL) (23 years ago, 23-Oct-01, to lugnet.robotics.rcx.legos, lugnet.trains)
 
  legOS codeI need example code of rcx2rcx communication.
 
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)
 
  lnpd for other OSes
 
Hi all, Does anyone know of any lnpd ports to non-linux and non-windows operating systems? I'm trying to get lnpd to work for Solaris 7, and would rather use someone else's hacked up code than port lnpd myself =P Along similar lines, has anybody (...) (23 years ago, 16-Oct-01, to lugnet.robotics.rcx.legos)
 
  New to legOS
 
Hi!Friends, I am quite new to this field but I must say I am enjoying my time spent on this.I am having some problems having the legOS work.I am not finding the h8300-hitachi-hms to download.The one that I found and downloaded doesn't seem to work (...) (23 years ago, 13-Oct-01, to lugnet.robotics.rcx.legos)
 
  Re: 1.0,1.5 or 2.0 ? what gives ?
 
(...) Instead of using resistors, you can use RAW mode which measures how far in the sensor was pushed. Then use a bit of tape to prevent one of the sensors from being pushed in all the way. BTW, I am lucky enough to have a defective touch sensor (...) (23 years ago, 9-Oct-01, to lugnet.robotics.rcx.legos)
 
  RE: power_off()
 
(...) Mike, I ran into a similar problem when debugging pbForth years ago. Make sure that the stack pointer is saved somewhere in the on-chip memory of the RCX BEFORE putting the RCX to sleep. The sleep function puts the external RAM into a (...) (23 years ago, 8-Oct-01, to lugnet.robotics.rcx.legos)
 
  power_off()
 
Hi I have been trying to get the power_off() function to work, but every time I call it it either hangs the RCX just before turning off, or turns the RCX off and I can not turn it back on. In both cases I have to remove the batteries and wait for (...) (23 years ago, 8-Oct-01, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more | 40 more

Redisplay Messages:  All | Compact

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