To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 941
940  |  942
Subject: 
Re: Power Down for RCX
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Wed, 31 Jan 2001 04:14:39 GMT
Viewed: 
2206 times
  
In article <G7wtw0.H61@lugnet.com>, "Chris Hood"
<mixer4663@pleasenospam.home.com> wrote:

I know that in the diagnostics window for the RCX Control Center you can
set
the "Power Down" time, this sends a message to the RCX about how long to
wait idle before power down. I would like to know the command (message)
to
send to the RCX to make it power down "now" if that is a possibility for
NQC
and the RCX.


There are two commands (available on the command line or within a
program).  The first sets the "sleep time", which is the number of
minutes before the RCX will turn itself off (0 means never sleep).  The
second requests that the RCX sleep immediately.  However, for some odd
reason, sleeping immediately won't do anything if the sleep time is set
to 0.

From within a program:

  SetSleepTime(15);  // set sleep time to 15 minutes
  SleepNow();  // sleep right now

From the command line:

Setting the sleep time to 15 minutes:

  nqc -sleep 15

Sleeping right now (no built-in option, but you can use -raw to build
the packet manually):

  nqc -raw 60

Combining both:

  nqc -sleep 15 -raw 60


Dave Baum

--
reply to: dbaum at enteract dot com



Message is in Reply To:
  Power Down for RCX
 
I know that in the diagnostics window for the RCX Control Center you can set the "Power Down" time, this sends a message to the RCX about how long to wait idle before power down. I would like to know the command (message) to send to the RCX to make (...) (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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