To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.scoutOpen lugnet.robotics.scout in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Scout / 151
150  |  152
Subject: 
Re: legOS
Newsgroups: 
lugnet.robotics.scout
Date: 
Tue, 13 Feb 2001 03:30:31 GMT
Viewed: 
2647 times
  
In article <G8n6H3.EA@lugnet.com>, "Alex" <neo@fortworks.com> wrote:

"could not open serial port" generally means one of these things:

1) You told NQC to use a serial port that doesn't exist.  By default, it
will try to use
Mac - modem port
Win - COM1
Unix - /dev/ttyS0

You can override this with a -S option.

How would you tell NQC to use COM2?
like this?
NQC -s COM2
or somthing like that?

nqc -SCOM2

You need to be careful about upper/lower case for options.  I know its
annoying, but there are a *lot* of options, so case is important.  In
the case of specifying the serial port, the option is immediately
followed by the serial port name (no space).  Kinda like the -I, -L, -D
and other options for gcc.

When in doubt, type

nqc -help

which prints a summary of the options.  For example:

nqc version 2.2 r2 (built Oct 22 2000, 14:25:55)
     Copyright (C) 1998-2000 David Baum.  All Rights Reserved.
Usage: nqc [options] [actions] [ - | filename ] [actions]
   - : read from stdin instead of a source_file
Options:
   -1: use NQC 1.x compatability mode
   -T<target>: target can be RCX, CM, Scout, or RCX2
   -d: download program
   -n: prevent the system file (rcx.nqh) from being included
   -D<sym>[=<value>] : define macro <sym>
   -E[<filename>] : write compiler errors to <filename> (or stdout)
   -I<path>: search <path> for include files
   -L[<filename>] : generate code listing to <filename> (or stdout)
   -O<outfile>: specify output file
   -S<portname>: specify serial port
   -U<sym>: undefine macro <sym>
Actions:
   -run: run current program
   -pgm <number>: select program number
   -datalog | -datalog_full: upload datalog
   -near : set IR to near mode
   -far : set IR to far mode
   -watch <time> | now : set RCX time
   -firmware <filename> : download firmware
   -firmfast <filename> : download firmware at quad speed
   -sleep <timeout> : set RCX sleep timeout
   -msg <number> : send IR message to RCX
   -raw <data> : format data as a packet and send to RCX
   -remote <value> <repeat> : send a remote command to the RCX
   -clear : erase all programs and datalog in RCX
   -api : dump the standard api file (e.g. rcx.nqh) to stdout
   -help : display command line options

--
reply to: dbaum at enteract dot com



Message has 1 Reply:
  Re: legOS
 
(...) I tried what you said quite a bit but it just says "usage error: try nqc-help' to display options" My serial port works fine for my Scout Tool program. and I have tried to switch the RCX to the scout like this "nqc -T Scout" and "nqc -TScout" (...) (24 years ago, 13-Feb-01, to lugnet.robotics.scout)

Message is in Reply To:
  Re: legOS
 
(...) How would you tell NQC to use COM2? like this? NQC -s COM2 or somthing like that? (24 years ago, 12-Feb-01, to lugnet.robotics.scout)

15 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