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 / 16905
16904  |  16906
Subject: 
RE: WSH & Spirit.ocx (used to be firmware update)
Newsgroups: 
lugnet.robotics
Date: 
Tue, 1 Jan 2002 02:59:14 GMT
Original-From: 
Nathan Nesbit <nathann@windows{spamless}.microsoft.com>
Viewed: 
778 times
  
I'm resending this with the file renamed.  It seems like a lot of e-mail
gateways block attachments that end in .VBS



-----Original Message-----
From: Nathan Nesbit
Sent: Monday, December 31, 2001 6:53 PM
To: 'Andreas Stabno'; lego-robotics@crynwr.com
Subject: WSH & Spirit.ocx (used to be firmware update)


I've been meaning to make a web page about a recent experiement of mine.
I never get around to it so I figure I ought to just post it now.  I was
wondering if one could use VBScript to program an RCX via spirit.ocx.
So I tried it.  And it works great.  Windows Script Host (WSH) can
interface with spirit.ocx just fine.

So if you are interested in programming the RCX using Spirit.ocx then
WSH provides a free way to do so.  Any WSH langauage should work with it
just fine (VBScript & JavaScript are built in already).  Other languages
have WSH plugins which are available from 3rd parties (for example I
believe there is a Perl version for WSH).

One interesting thing I think this should make easy is to make calls to
spirit.ocx inside a web page, or on a web server.  Seems like it would
be an interesting way to write a custom remote control for a given
robotic design.  Or allow people to remote control (or program) your RCX
via a browser and your web server.  I'm sure other people have probably
done this already, so I doubt this is anything new.

You can get the lastest version of WSH from
http://www.microsoft.com/scripting  WinXP has the latest version in it.
Win2k has a slightly older version (which shouldn't matter for spirit
programming).  I think all other versions of Windows need the download
installed.

In VBScript one creates the an instance of the spirit object like this.
Set oSpirit = CreateObject("Spirit.SpiritCtrl.1")
One can then use the SDK docs from Lego to do stuff.

Attached is a VBS file that I used to experiment with.  It should be
enough to get anyone started.

Enjoy

-----Original Message-----
From: Andreas Stabno [mailto:similego@home.com]
Sent: Sunday, December 30, 2001 3:48 PM
To: lego-robotics@crynwr.com
Subject: Re: firmware update


In lugnet.robotics, Dave Baum writes:
What version of RcxCC and/or NQC are you using?  Old versions had
trouble with the larger firmware files (such as firm0328.lgo).  Grab
the latest version of RcxCC (now called BricxCC) from
http://members.aol.com/johnbinder/bricxcc.htm or alternatively you can
just replace the nqc.exe file with a more recent version from
http://www.enteract.com/~dbaum/nqc/index.html

Also, is this firmware different from that contained in the Vision
Command system?

I think its the same.

Dave

Thanks for everybody's help.  It does appear that I was using an older
version of RCXCC or NQC.  Also, the firmware of the Vision Command was
precisely what I needed.

Now I only need to find a free Visual Basic compiler if such a thing
exists.

Build well,

Andreas Stabno
http://www.lugnet.com/~19/


--
MIME ATTACHMENTS DISCARDED:

1.  Content-Type: text/plain;
    name="spirit.vbs.txt"
    Content-Transfer-Encoding: base64
    Content-Description: spirit.vbs.txt
    Content-Disposition: attachment;
    filename="spirit.vbs.txt"
    Content-Length: 1420



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
10 hours ago
Custom Search

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