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 / 601
600  |  602
Subject: 
Re: (Failed) Getting LegOS 0.2.2 working on Windows
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 22 Dec 1999 01:24:16 GMT
Viewed: 
1689 times
  
Jeff Chrisope wrote:

In lugnet.robotics.rcx.legos, Peter Van der Beken writes:

chili : /legOS util/dll demo/helloworld.lx
sending keepalive: Invalid argument
Haven't seen this. could you try with the original loader.c, lx.c and
rcxtty.c and tell us what error it gives then. (They should be backed up as
loader.c.orig, etc. Rename the patched files as loader.c.new to keep them
around). Also, use the -v flag (dll -v demo/helloworld.lx).

Peter

Hey --

More info about this odd bug. Installed 0.2.3, and the bug is still there.

So the rcxInit() stuff appears to be the problem. Any further ideas on what
the heck could be wrong?


i dont´t know if you have already fixed this, anyways, there is a bug in
sigio_handler. The struct timeval last is used uninitialized and should
be static. Today i sent the following little patch to Markus.

------- schnips schnips --------

--- loader.c.orig       Tue Dec 21 22:55:41 1999
+++ loader.c    Tue Dec 21 22:56:51 1999
@@ -155,10 +155,12 @@
   return -1;
}

+static struct timeval last;
+
void sigio_handler(int signo) {

   if(signo==SIGIO) {
-    struct timeval last,now;
+    struct timeval now;
     unsigned long diff;

     unsigned char buffer[256];
@@ -213,6 +215,7 @@
   } while(diff < 100000);
   read(rcxFD(),buffer,256);

+  gettimeofday(&last,0);
   // install IO handler
   //
   signal(SIGIO,sigio_handler);

------- schnips schnips --------



Message has 1 Reply:
  Re: (Failed) Getting LegOS 0.2.2 working on Windows
 
(...) I hadn't fixed that - but it doesn't appear to make a difference. I patched both the original sources and the post-WINNT-specific-patches, but no change in behavior: the RCX answers are never heard using the original sources, and the (...) (25 years ago, 22-Dec-99, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: (Failed) Getting LegOS 0.2.2 working on Windows
 
(...) Hey -- More info about this odd bug. Installed 0.2.3, and the bug is still there. A bit more tweaking revealed: * Compiling with the original (.orig, pre-patch versions of loader, lx, and rcxtty) yielded - after changing O_ASYNC to FASYNC - (...) (25 years ago, 21-Dec-99, to lugnet.robotics.rcx.legos)

13 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