To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 2541
2540  |  2542
Subject: 
Re: legOS help needed
Newsgroups: 
lugnet.robotics
Date: 
Fri, 8 Jan 1999 08:03:46 GMT
Original-From: 
Claus Kalle <kalle@*stopspam*rrz.uni-koeln.de>
Viewed: 
1505 times
  
At 09:30 07.01.99 -0600, Lageson, Tom wrote:
...
the srec file (e.g. firmdl light-sensor.srec).  When I run firmdl using
firmdl light-sensor_srec it says it can't open the file.  I have set
DEFAULTTTY=COM3 for my computer (win95).  The firmdl was compiled using NT
SP3 at work.  I transported the firmdl.exe and the cygwin32.dll (I am using

I did the same thing with crynwr's cygwin and legos some days ago and found
out that I have to set RCX_PORT to COM1 or so and not DEFAULTTTY or such
name by checking the source of firmdl.c:
...
#ifdef LINUX
#define DEFAULTTTY   "/dev/ttyS0" /* Linux - COM1 */
#else
#define DEFAULTTTY   "/dev/ttyd2" /* IRIX - second serial port */
#endif
...
    /* Open the serial port */

    if ((tty = getenv("RCX_PORT")) == NULL)
tty = DEFAULTTTY;

    fd = rcx_init(tty);
...
even if the doc at firmdl.c start says irritatingly:
*
*  Set DEFAULTTTY to the serial device you want to use.
*  Set the RCXTTY environment variable to override DEFAULTTTY.
*
probably the author meant setting the #define, not an env var when talking
about DEFAULTTY and mistyped RCXTTY later into RCX_PORT...

So set RCX_PORT in the environment and it will work.

Gruss, Claus Kalle
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
11 hours ago
Custom Search

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