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 / *1644 (-40)
  Re: LegOS 0.2.5 and LNP
 
(...) I cleaned up my code (found one bug!), the patch follows. As you may see now there are two semaphore, because two are the resources to give access to: the LNP buffer and the IR port. I modified the calling of the handlers to avoid race (...) (24 years ago, 20-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: undefined reference to `___ucmpsi2'
 
(...) With regards to this, it appears that Markus left out two necessary functions in lib/mint. Specifically, cmpsi2 and ucmpsi2. These are a part of librcx but apparently they were omitted from LegOS when Markus included support for the other (...) (24 years ago, 19-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: undefined reference to `___ucmpsi2'
 
(...) Another choice may be a cast in the switch statement, like this: static wakeup_t light_found(wakeup_t sens_num) { switch ((unsigned int)sens_num) { case 2: return (LIGHT(SENSOR_2) > THRESHOLD); break; case 3: return (LIGHT(SENSOR_3) > (...) (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: LegOS 0.2.5 and LNP
 
(...) Ok, I clean up the code and send you a patch. (...) This one is not yet ready. As soon as I do it you'll know. bye Bernardo (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: util/dll-src makefile patch
 
(...) current cvs (...) lnp.c under (...) windows. The other (...) They works. :-) Bye, Paolo. --- I'm an optimist, but I don't think it helps. (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: undefined reference to `___ucmpsi2'
 
Hi, The problem is that wakeup_t is an unsigned long, and in order to save space, the switch statement is optimized to call a library comparator, ucmpsi2. Since the argument to ds_scale is an unsigned int, the argument to LIGHT should also be an (...) (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  undefined reference to `___ucmpsi2'
 
I get this error when linking if I have the following in my source code in a wait_event function: #define THRESHOLD (unsigned short)50 static wakeup_t light_found(wakeup_t sens_num) { switch (sens_num) { case 2: return (LIGHT(SENSOR_2) > THRESHOLD); (...) (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: pass by refrence or value?
 
Did you care to declare your global variable as volatile? this (normaly) prevent the compiler to optimize memory access and force it to read the actual value of the variable each time it need it ( instead of localy storing it in a register wich will (...) (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  c++ changes
 
After some prompting, I have made the method names in the c++ classes uniform in case. Unfortunately, the changes are not backward compatible. Please let me know of any problems you discover. If I don't hear of any problems, I'll check in the (...) (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  util/dll-src makefile patch
 
Hi, Here is a set of patches for util/dll-src/Makefile against the current cvs version. The first patch avoids the need of a symbolic link to lnp.c under unix. Can somebody please let me know if it works under windows. The other patches are for (...) (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  pass by refrence or value?
 
Hi all, i have a slight problem with legosv0.2.5 . The program code on the rcx is set up so that there is serverall callback methods which get called when a message comes in on the particular port for that object or class. These callback methods set (...) (24 years ago, 18-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: LegOS 0.2.5 and LNP
 
(...) Btw. README is (...) Ooops... :-) Changed to 0.2.5 version inside. (...) transport (...) packets of (...) mainly as way for (...) collisions, lost (...) which works as (...) write code to (...) To cut time (...) code that (...) directives (...) (24 years ago, 17-Jan-01, to lugnet.robotics.rcx.legos)
 
  LegOS 0.2.5 and LNP
 
Yesterday I downloaded legOS 0.2.5 and peeked at the code. Btw. README is not up to date. For last two month I was working with a friend of mine on a transport protocol implemented on top of LNP for the transmission of packets of unlimited size and (...) (24 years ago, 17-Jan-01, to lugnet.robotics.rcx.legos)
 
  legOS lcd management and thoughts on velocities
 
Hello! I' am french, from Paris ( a way to say: excuse my english... or feel free to correct it!). Few weeks ago I download legOS (v2.5), and I made my first step with it. First all I wish to thank all people involved in this project. This OS is (...) (24 years ago, 16-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: LEGO remote and LNP (legOS 0.2.4)
 
(...) My patch changes both, dll and the legOS kernel, to operate with odd parity. Did you both, reinstall the new kernel and use the new dll afterwards? You should also change the lnp daemon to odd parity if you are using it, I don't use it. (...) (...) (24 years ago, 15-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: Redhat 7 and legOS
 
Just following up my own message. I have just tried the instructions with kgcc in redhat 7. It fails with exactly the same problem. All binutils and egcs compiled normally with kgcc except for the one error specified in the HOWTO. Mike Ruelle (...) (24 years ago, 15-Jan-01, to lugnet.robotics.rcx.legos)
 
  Redhat 7 and legOS
 
I have gone through the HowTo setup legOS. The only problem I have had is that none of the demo code projects can compile. They all fail with [demo]# make /usr/local/crossgcc/...hi-hms-gcc -O2 -fno-builtin -fomit-frame-pointer -Wall (...) (24 years ago, 14-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: LNP Help
 
(...) Is there some reason you're not using liblnp? It will take care of all this junk for you and you just have to give it the data. (24 years ago, 14-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: Automatic switch
 
(...) 0.2.5 includes the idle timeout code. After 15 minutes of no activity (program isn't running, no buttons pushed) it will turn itself off. I added this feature when I woke up to discover I left the RCX on overnight for the third time. You can (...) (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: Automatic switch
 
Yes, but I don't know the API off the top of my head and I'm in a line outside right now so I can't look it up. It should be in the HOWTO, but if you can't find it, please write again later today and I'll find it. Luis (...) ---...--- "Nobody ever (...) (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  LNP Help
 
Hey, I am trying to get my computer to talk to 2 rcxs. I have the program and when I send ir messages to the RCX loaded with LegOS, it shows the IR port on. However I do not understand what the packets should look like with the intergrity layer. (...) (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  LNP in Java 2
 
I realized that the way the listing appears on the mail is far to be perfect. So here is an URL when you can download the files from : (URL) ! (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  Automatic switch
 
Is there any API for switching off the rcx, either immediately or after a givent period of inactivity (i.e a watchdog) ? (already used many batteries by forgetting to switch it off...). Thanx ! (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  LNP in Java
 
Hi there, Few weeks ago, someone's asked if there were any Java handler for LNP. Here we are ! There is one now. Including with this mail is the Java listing. What to do 1) download the JVM 2) download java communication API from Sun (lets you drive (...) (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  Remote control (again)
 
Hi all The following message (URL) a possible solution to the remote control problem, by "ignoring framing errors". I'm just wondering how this can be accomplished. Does anyone here know? Thanks ROSCO (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: LEGO remote and LNP (legOS 0.2.4)
 
(...) 1. Applying as is caused dll program to not work. 2. I set parity to none, and dll is fixed, but then my handler only gets called when remote key is released - all key-down messages are lost. I'm just wondering what I'm doing wrong? Thanks (...) (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  LNP handler timings
 
I'm writing a program that use LNP. My addressing handler function is big, so I measured the mean time requiered for executing that function (with a call in for loop, so having sub-ms precision). Mean time: 2.5 ms, with packets of ca. 250 bytes. I (...) (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)
 
  0.2.5 problem
 
After installing 0.2.5, you should run 'make realclean' to get rid of some files that may cause build problems. Specifically, there is .depend file in the boot directory. This will cause a kernel build to fail since this file is specific to Luis's (...) (24 years ago, 12-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: 'make' error with legOS-0.2.4 - request for assistance
 
Ross, Thanks for the input. Makefile.common and Makefile.user were in the top level directory (as a 'newbie' I had to take the file specified directory(ies) therein as correct). This evening I managed to successfully generate the 'simple.lx' file (...) (24 years ago, 12-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: 'make' error with legOS-0.2.4 - request for assistance
 
One more thing, did you successfully build the program "makelx" (does cygwin use .exe extensions?). Since you could build the kernel, my previous suggestion is probably wrong. If the makelx program is missing (or can't be found by make - check (...) (24 years ago, 11-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: 'make' error with legOS-0.2.4 - request for assistance
 
I think you need to type "make --unix" when building with Cygwin. If this fixes it, you'll want to find out what the environment variable for setting make defaults is. (...) (24 years ago, 11-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: problems building crosscompiler with gcc2.95.2
 
(...) I didn't have to do this. All I downloaded was binutils 2.10.1 and gcc 2.95.2, and followed the instructions in the legOS HOWTO, except for the difference between egcs and gcc I wrote. This was on a LinuxPPC, not sure if gcc behaves (...) (24 years ago, 11-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: problems building crosscompiler with gcc2.95.2
 
Hallo! (...) Thanks, but this was not all. I had to download newlib and then in gcc-2.95.2/ add the links: ln -s ../newlib-1.9.0/newlib newlib ln -s ../newlib-1.9.0/libgloss libgloss Then reconfigure with additional option --with-headers and make. (...) (24 years ago, 11-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: 'make' error with legOS-0.2.4 - request for assistance
 
(...) Ooops. Saw the subject again after hitting the "post" button. 8?( ROSCO (24 years ago, 11-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: 'make' error with legOS-0.2.4 - request for assistance
 
David, I seem to remember I had a similar problem (but I'm using Linux, so YMMV). In the Makefile, check that the lines where Makefile.common & Makefile.user are included specify the correct directory. They should be in the top-level LegOS (...) (24 years ago, 11-Jan-01, to lugnet.robotics.rcx.legos)
 
  'make' error with legOS-0.2.4 - request for assistance
 
The kernel is successfully loaded into the RCX and the 'ch7' directory holds the 'simple.c' source listing along with a copy of the 'Makefile'(all as per instructions in the book "Extreme Mindstorms" pp151 to 154 incl.) Running Cygwin B20 and in the (...) (24 years ago, 11-Jan-01, to lugnet.robotics.rcx.legos)
 
  DJGPP: Makefile.common change
 
I've checked in a minor change to makefile.common relating to DJGPP. If you have been having problems getting the DJGPP toolset to work, you should have better luck after getting this updated file. You should also refer to my web page at (URL) as (...) (24 years ago, 10-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: Time a call to a function
 
(...) The global sys_time contains the number of milliseconds since... well, since something. I think it's how long the RCX has been powered on since the last firmware download. It's probably updated every millisecond. It's a 32-bit number, so it (...) (24 years ago, 9-Jan-01, to lugnet.robotics.rcx.legos)
 
  Time a call to a function
 
Hi, I am trying to determine the cpu time it takes to implement a number of additions and multiplications in a function, each time I call it, so to make it faster by improving the algorithm. It would be helpfull to display the result on the RCX lcd. (24 years ago, 9-Jan-01, to lugnet.robotics.rcx.legos)
 
  Re: problems building crosscompiler with gcc2.95.2
 
(...) It's not important. We don't use those libraries. (...) Include '-i' (must be lowercase) in your command line to get MAKE to ignore errors and continue with the build. make -i cross LANGUAGES="c c++" Rossz (24 years ago, 8-Jan-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