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 / 512
511  |  513
Subject: 
Re: NQC on Linux dilema...
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Sat, 1 Apr 2000 15:07:56 GMT
Viewed: 
9437 times
  
In article <FsBL7s.EHF@lugnet.com>, "Theodore Morse"
<camquate@yahoo.com> wrote:

> > Does the program just hang, or does it eventually (several seconds
> > later) give up and print an error message?
> > 
> > Try 'verbose' mode and post the results:
> > 
> > nqc -v -d test.nqc
> > 
> > One possibility is that somehow the port is configured for hardware
> > handshaking and that is causing the open() to block.  You can check for
> > this case by adding a suitable printf in  PSerial_unix::Open() (in the
> > file platform/PSerial_unix.cpp).  Some other Unix variants (notably
> > IRIX) have some trouble with this...one fix is to change
> > 
> >   if ((fTerm = open(name, O_RDWR)) < 0) {
> > 
> > to
> > 
> >   if ((fTerm = open(name, O_RDWR | O_NDELAY)) < 0) {
> > 
> > I'm not sure why this matters...or why almost every other system out
> > there doesn't need the O_NDEALY...but its at least worth a try.
> > 
> > Dave Baum
> > 
> > --
> > reply to: dbaum at enteract dot com
> 
> Ok, here it is: It just sits there, after sending about 5 lines of hex
> code to
> the RCX with that -v option. it will not send any more code after that,
> no
> matter how long you wait. I have not such thing as a PSerial_unix.cpp
> file does
> not exist. Not sure what is wrong...

Can you send me the output from nqc -v?  A lot depends on exactly what
is being sent and received.

As for PSerial_unix.cpp, you would only have that if you were building
nqc from sources.  If you've downloaded a binary rpm or some other
non-source distribution, then you won't have it.

Dave Baum

--
reply to: dbaum at enteract dot com



Message has 1 Reply:
  Re: NQC on Linux dilema...
 
(...) OK, here it goes: (I am in root) Output_Start: Downloading program: Tx: 55 ff 00 10 ef 10 ef Rx: 55 ff 00 10 ef 10 10 ef 55 Tx: 55 ff 00 10 ef 10 ef Rx: ff 00 ef 10 ef 10 ff ae ed 00 10 ef 10 ef 55 ff 00 ef 10 ef 10 Tx: 55 ff 00 50 af 50 af (...) (27 years ago, 1-Apr-00, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: NQC on Linux dilema...
 
(...) Ok, here it is: It just sits there, after sending about 5 lines of hex code to the RCX with that -v option. it will not send any more code after that, no matter how long you wait. I have not such thing as a PSerial_unix.cpp file does not (...) (27 years ago, 1-Apr-00, to lugnet.robotics.rcx.nqc)

8 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
    

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