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 / 3380
    LEGO remote controller problem —Christian Hornung
   Hi, I have problems getting the LEGO IR remote controller to work (using brickOS 0.2.6.10). I wrote a small test program that installs a lr handler function which simply displays the received key value on the LCD. But when running this and pressing (...) (21 years ago, 27-Jul-03, to lugnet.robotics.rcx.legos)
   
        Re: LEGO remote controller problem —Michael Obenland
   Hi Christian, (...) No program, no help. If you send me the sources, I will take a look and try to figure out the problem. In fact, I use the remote control without a problem. Regards, Michael (21 years ago, 27-Jul-03, to lugnet.robotics.rcx.legos)
   
        Re: LEGO remote controller problem —Christian Hornung
   Hi Michael, Thank you very much for your answer. Well, there isn't really much source, here we go: #include <conio.h> #include <unistd.h> #include <remote.h> #include <dsensor.h> int my_lr_handler(unsigned int etype, unsigned int key) { cputw(key); (...) (21 years ago, 28-Jul-03, to lugnet.robotics.rcx.legos)
   
        Re: LEGO remote controller problem —Michael Obenland
     (...) I compiled your program and it did everything. No problem on my side. If you don't start your program, does the remote control work? Attach a motor at A, B and C and try to run it with the remote. Or try to run your program with the P1 button. (...) (21 years ago, 28-Jul-03, to lugnet.robotics.rcx.legos)
    
         Re: LEGO remote controller problem —Christian Hornung
     (...) No, it doesn't. The IR indicator flickers, but running motors or starting the program doesn't work. In fact, I didn't know that there is a "default handler" until reading your message. Might the problem be caused by wrong versions of gcc or (...) (21 years ago, 28-Jul-03, to lugnet.robotics.rcx.legos)
    
         Re: LEGO remote controller problem —Michael Obenland
     (...) Strange. To get it clear: If you download a fresh made brickOS.srec, you can't use the remote control to start a motor or start a program and if you press the beep-key, the rcx does not beep?? Does your remote work with the original Lego (...) (21 years ago, 28-Jul-03, to lugnet.robotics.rcx.legos)
    
         Re: LEGO remote controller problem —Mark Riley
       "Michael Obenland" <obenland@t-online.de> wrote in message news:HIqqFv.1Iwz@lugnet.com... (...) starting (...) I think the call to lr_shutdown() in Christian's program clobbered things such that the remote may no longer be useable unless the power (...) (21 years ago, 28-Jul-03, to lugnet.robotics.rcx.legos)
    
         Re: LEGO remote controller problem —Christian Hornung
     Hi Michael, Thank you for sending me your brickOS.srec and .lds files. When I use these ones, the remote control works just fine, with or without the lr_startup and lr_shutdown calls, and with or without a running program. (...) Yes, exactly. I have (...) (21 years ago, 28-Jul-03, to lugnet.robotics.rcx.legos)
    
         Re: LEGO remote controller problem —Michael Obenland
     (...) Great. (...) I use h8300-hms-gcc-3.1-1.i386.rpm h8300-hms-binutils-2...1.i386.rpm but I never heard from anyone that some gcc version produces a bad brickOS system. Strange, indeed. Regards, Michael (21 years ago, 28-Jul-03, to lugnet.robotics.rcx.legos)
    
         Re: LEGO remote controller problem —Christian Hornung
     (...) Then this is the first time ;) It was indeed the compiler. Using those versions you named in your message, my compiled brickOS.srec file works as well. The lr_startup and lr_shutdown calls don't make any difference, whether they are in or out. (...) (21 years ago, 29-Jul-03, to lugnet.robotics.rcx.legos)
   
        Re: LEGO remote controller problem —Mark Riley
   Try removing the calls to lr_startup() & lr_shutdown(). I think these already get called outside of your program. (Sorry, don't have time to test right now). Mark "Christian Hornung" <c-hornung@gmx.de> wrote in message news:HIq2o2.Ht4@lugnet.com... (...) (21 years ago, 28-Jul-03, to lugnet.robotics.rcx.legos)
 

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