To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 98
    Listening to IR via NQC —Matthew Miller
   I know that NQC can send IR messages; can it -- or any other command-line program -- listen to the IR port and dump any incoming messages to a file (or stdout)? (25 years ago, 23-Sep-99, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
   
        Re: Listening to IR via NQC —Kekoa Proudfoot
     (...) If I understand you correctly, then this is more difficult than it sounds, because the IR tower shuts down after a few seconds after the PC stops transmitting. Things work fine if the PC initiates a conversation (e.g. by asking the RCX to send (...) (25 years ago, 23-Sep-99, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
    
         Re: Listening to IR via NQC —Matthew Miller
     (...) Yes, that is what I'm looking for. Unless anyone else knows of anything, I guess it's time to dive into the coding. :) (...) Yeah, that would work great. Does anyone have code that does this? (Don't want to reinvent the wheel...) I know of (...) (25 years ago, 24-Sep-99, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
    
         Re: Listening to IR via NQC —Jack Perdue
     (...) FWIW, I did something similar to this using NQC and the Datalog. It uses variable0 for polling and letting the PC know the Datalog has some "stuff" it wants to send. (URL) (25 years ago, 28-Sep-99, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
   
        Re: Listening to IR via NQC —Dave Baum
   (...) You can sometimes fake it by sending "bad" codes in -raw mode with verbose mode turned on (-v) and a long timeout (-t). For example, to examine the Lego remote codes I kept typing this: nqc -v -t 2000 -raw 10 Since I didn't have an RCX around (...) (25 years ago, 24-Sep-99, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
   
        Re: Listening to IR via NQC —Matthew Miller
   (...) Cool, that'd be great. What I'm looking for is: nqc -listen and then all IR messages sent by the RCX via SendMessage would get dumped, one per line, in decimal, to stdout. Additional parameters could make the format be comma-delimited, (...) (25 years ago, 24-Sep-99, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
 

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