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 / 2067
2066  |  2068
Subject: 
Re: Transmitting a message from the RCX to the PC
Newsgroups: 
lugnet.robotics.rcx
Date: 
Thu, 22 May 2003 12:30:59 GMT
Viewed: 
3227 times
  
In lugnet.robotics.rcx, Michael Franklin Bosu writes:
Can somebody help me out with what is involved in transmitting a message from
the RCX to the PC. I have an application and I have tried to read the message
from the RCX on the PC, but i am not getting the desired results.

The one-byte messages supported by the RCX are not generally designed to go
from the RCX to the PC.  They are intended to go from the PC to the RCX, or
from one RCX to another.  One reason for this is that the original RS-232 IR
tower would not "listen" to IR unless it periodically sends out some data,
which made it very difficult for the PC to monitor for RCX messages without
stomping all over those messages.

That being said, you should be able to write your own software to use a USB
IR tower to listen for RCX communications and pluck out the one-byte message
values.  This is not incredibly difficult to do, but you will need to write
some custom DOS/Windows/Linux/Mac software that talks directly to the tower
instead of using the MindStorms SDK or any "off-the-shelf" software.

Perhaps a better way to get information from the RCX to the PC is to have
the PC poll the RCX.  Using the standard RCX firmware, you can store a data
value in one of the 32 program variables, then have the PC periodically send
an "interrogate variable value" opcode to the RCX.  The RCX will respond by
sending back the 16-bit value in that variable.  This will NOT work if you
have more than one RCX in the room, since they will all try to respond to
the PC poll and will walk all over each others' transmissions.

You could also look at the data logging features of the RCX.  This enables
the RCX to record a series of data values into a special buffer in the RCX
which can be uploaded later by a program running on the computer.  This is
good for sending data that is not time-critical, but obviously is not the
way to go if you need real-time messaging for your application.

Since you have still not provided more information about the programming
language/environment you are using or any details about your intended
application, it is difficult for anyone to provide you with a more detailed
response.  Instead of re-posting the same question every few days, you will
get better results if you give us more to work with.

I hope this helps.

- Chris.



Message has 2 Replies:
  Re: Transmitting a message from the RCX to the PC
 
(...) I'm not the originator of this thread but I am interested in the same problem. I'm intending to use MS visual c++ V4 spirt.ocx RIS 2.0 firmware and NQC (...) I do want to use two RCX's though. My plan is to have RCX No 2 send data to RCX No 1. (...) (22 years ago, 22-May-03, to lugnet.robotics.rcx)
  Re: Transmitting a message from the RCX to the PC
 
I'm posting this on behalf of John Donaldson who is having a problem with his emails bouncing, so this is his text verbatim. Why can't a mode where a two byte sequence is sent. The first byte is the bot address and the second byte is the data code. (...) (22 years ago, 22-May-03, to lugnet.robotics.rcx)

Message is in Reply To:
  Transmitting a message from the RCX to the PC
 
Hi, Can somebody help me out with what is involved in transmitting a message from the RCX to the PC. I have an application and I have tried to read the message from the RCX on the PC, but i am not getting the desired results. Thanks Michael (...) (22 years ago, 22-May-03, to lugnet.robotics.rcx)

11 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