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 / 2417
2416  |  2418
Subject: 
Re: control RCX from PC
Newsgroups: 
lugnet.robotics.rcx
Date: 
Fri, 16 Apr 2004 11:52:45 GMT
Viewed: 
3212 times
  
In lugnet.robotics.rcx, Benjamin Sigonneau wrote:
Hi all,

I'm writing down some practical work for students that learn computer
science. The goal is to teach them how a serial communication works.

Therefore, we want them to write a program that listens to serial
communications. 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.

I once thought about using a tool such as the hyperterminal program from
embedded with Windows, but I don't think it should be able to deal with
the usb IR tower being a serial device. I also thought about BricxCC
with has a tool that looks like a remote control, but I don't know what
this tool sends to the RCX.

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.

    *or*
    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

I hope this helps.  Good luck with your class!

- Chris.



Message has 1 Reply:
  Re: control RCX from PC
 
(...) 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 ? (...) Remote" program. Am I right ? If so, it would be quite easy for me to (...) (20 years ago, 18-Apr-04, to lugnet.robotics.rcx)

Message is in Reply To:
  control RCX from PC
 
Hi all, I'm writing down some practical work for students that learn computer science. The goal is to teach them how a serial communication works. Therefore, we want them to write a program that listens to serial communications. The PC will send (...) (20 years ago, 15-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