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 / 2416
2415  |  2417
Subject: 
control RCX from PC
Newsgroups: 
lugnet.robotics.rcx
Date: 
Thu, 15 Apr 2004 20:08:23 GMT
Viewed: 
3432 times
  
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
    *or*
    2. what are the messages sent by the remote control tool from
BricxCC ?

Any suggestion welcome. Thank you in advance.


--
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 3 Replies:
  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)
  Re: control RCX from PC
 
Salut Benjamin, (...) Lejos can do that, and it could also be used on the RCX. (...) I would bet on the RemoteCommand (0xD2) LASM command. There is a description in the SDK 2.5, "LASM byte codes.pdf", page 61. The SDK can be found by (URL) could (...) (21 years ago, 16-Apr-04, to lugnet.robotics.rcx)
  Re: control RCX from PC
 
(...) Here are a couple of websites that may help: (URL) got them from other members in response to my request for help with communication via the USB port. My request was posted on the NQC site: (URL) (21 years ago, 18-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
    

Custom Search

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