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 / 10123
10122  |  10124
Subject: 
Re: Sending RCX message using the PC
Newsgroups: 
lugnet.robotics
Date: 
Mon, 17 Jan 2000 17:55:54 GMT
Viewed: 
697 times
  
Hello,

I've made something like that in java. I've started out with the rcxport of
Scott Lewis (www.slewis.com/rcxport/) and made a little console application
with it that accepts a port identifier and a value as parameters.
It works under Linux and under Win95/98, but you do need the Java Comm API
(http://java.sun.com/products/javacomm/index.html). With Win95/98, you only
need to add the comm.jar to your classpath, but with Linux there are a few more
steps to be taken. If you intend to use it with Linux, let me know and I'll
post the exact instructions.
Under Win95/98, use the following syntax : java -classpath
%classpath%;comm.jar;rcxport.jar rcxport.RCXPortApp name_of_the_port
value_to_send
where name_of_the_port is of course the port where your IR tower is connected
(eg COM1) and the value_to_send is the hexadecimal value of the decimal
message. To be more precise, you decide on a certain value, convert it to it's
hexadecimal value, send that, and in your RCX program you get the decimal value
. So if your RCX program expects 22, send 16.
Here's where you can get the rcxport.jar with everything you need(except the
java Comm API) : http://bewoner.dma.be/rcx/rcxport.jar
Hope this helps...

In lugnet.robotics, Denis Cousineau writes:
Hi,

I've seen in Dan Baum's book that the PC can be used to send
messages (as if it was itself a RCX) to other RCX.
Does anyone knows the procedure? Please send details
so that I can myself program this.  If you have code lines,
that's even better (whatever the language).

Ultimately, I would like to make the smallest .exe that would
use one number on the command line and send this number as
a message to RCX present in the range of the IR tower.

Thanks for the help,
Denis.
--

Denis Cousineau, Postdoc           *****************************
Cognitive psychology               *                           *
Indiana University                 * Etudiant devant l'eternel *
Psychology Building                *                           *
Bloomington, 47405                 *****************************

Office: (812) 856-5217             Fax:    (812) 855-1086
E-mail: decousin@indiana.edu       http://Prelude.PSY.UMontreal.CA/~cousined



Message is in Reply To:
  Sending RCX message using the PC
 
Hi, I've seen in Dan Baum's book that the PC can be used to send messages (as if it was itself a RCX) to other RCX. Does anyone knows the procedure? Please send details so that I can myself program this. If you have code lines, that's even better (...) (25 years ago, 17-Jan-00, to lugnet.robotics)

3 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