To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 2420
2419  |  2421
Subject: 
Re: control RCX from PC
Newsgroups: 
lugnet.robotics.rcx
Date: 
Sun, 18 Apr 2004 12:49:38 GMT
Viewed: 
3377 times
  
On Fri, 16 Apr 2004 11:52:45 GMT
"Chris Phillips" <drvegetable@attbi.com> wrote:
In lugnet.robotics.rcx, Benjamin Sigonneau wrote:
The PC will send "commands" to the RCX, and the RCX
will apply those orders ; examples are "move ahead" or "turn left".
The RCX program will be written in C using Kekoa Proudfoot's libRCX.

I think I should be ok with the RCX program. However, I still wonder
how to send the commands from the PC to the RCX through the serial
connection. The PCs are running under Windows 2000 and the
Mindstorms robots use the usb IR tower.

Does anybody :
    1. knows about a program that would do what I want, ie send a
    string
to the RCX throught the usb IR tower

I have a simple WIN32 console application (with C source code) that
opens the USB tower to listen for messages from the RCX.  You can
easily modify this program (using the WriteFile() API system function)
to talk to the RCX.

   http://www.drvegetable.com/download/samplecode/

It's not exactly what you're asking for, but it might get you started.

I just looked over it, and it seems very near to my needs. I may try to
modify it for writing to the USB tower. Thanks.

By the way, which C++ compiler do you use ?

    2. what are the messages sent by the remote control tool from
BricxCC ?

I have documented the messages that are sent by the Mindstorms IR
remote control, which are probably the same ones used by BricxCC:

   http://www.drvegetable.com/irremote_protocol.html

That should be. I suppose those are the codes you use in your "Virtual
Remote" program. Am I right ? If so, it would be quite easy for me to
write a RCX program that waits for such messages and performs he right
actions.

The disclaimer only talks about personal use. Would you allow me to use
your piece of software in classroom?


I hope this helps.  Good luck with your class!

It did. Thanks.

--
Benjamin Sigonneau
PhD student, LANDE project
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 73 29



Message has 1 Reply:
  Re: control RCX from PC
 
(...) I usually use the Microsoft C++ 6.0 compiler for my Windows programs, although the code should compile with little/no modification in any Windows-compatible C++ compiler. (Both the Borland and the GNU/GCC compilers should be able to rebuild (...) (21 years ago, 19-Apr-04, to lugnet.robotics.rcx)

Message is in Reply To:
  Re: control RCX from PC
 
(...) I have a simple WIN32 console application (with C source code) that opens the USB tower to listen for messages from the RCX. You can easily modify this program (using the WriteFile() API system function) to talk to the RCX. (URL) not exactly (...) (21 years ago, 16-Apr-04, to lugnet.robotics.rcx)

7 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