To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1104
1103  |  1105
Subject: 
Re: Blocking The Lego Remote?
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Sat, 28 Apr 2001 22:35:37 GMT
Viewed: 
2368 times
  
Chris Phillips wrote:

In lugnet.robotics.rcx.nqc, Stephen Fury writes:

Let me clarify.

although it still may not be possible, I just want to create 2 lego
BattleBot like robots.  A Scout based bot being controlled by one person
with the Lego Remote and a Second bot being controlled via RCX to RCX like
in the Lego RoboGladiators 1999 E3 event.  I just don't want the Lego Remote
that is to control the Scout BattleBot also be controlling the RCX
BattleBot.  If I can some how just program an RCX to ignore commands sent by
the Lego Remote i'll be all set.

This is a very basic problem with the whole LEGO IR protocol -- you can't
address a specific RCX/Scout without also reaching every other brick in the
room.  I believe this is the reason why the RCX has the short-range IR setting.

The approach I have taken when I have needed to do things like this in the
past is to use specific message numbers as commands to the different 'bots,
and then don't use the same message number in any two.  For example: Bot1
sees msg#1 as "forward", #2 as "back", #3 as "Turn left", #4 as "Turn
Right", #5 as "Punch", and Bot2 uses message #s 6-10 for the same purposes.

But in the heat of battle, you are going to have a lot of messages flying
around, and the two IR sources are very likely to cause interference with
each other.  In the best case, the bots won't do anything at all.  In the
worst case, transmission errors will result in incorrect message numbers
being interpreted by one or both bots.  For example, if player 1 sends
message #1 and then player 2 immediately sends message #8, both RCXes will
see the most recent message #8 unless the RCX happens to notice message #1
in the brief instant before #8 arrives.

This also doesn't allow you to use the direct motor control buttons on the
LEGO remote (or the start/stop task either, since these will definitely be
interpreted immediately by all RCXes and Scouts that are in the room,
regardless of whether they're running a program at the time.

You'd need to hack the firmware in order to get an RCX to ignore the remote.
I doubt that this would be trivial, especially since you would only want to
disable the immediate commands and not the IR messaging as well.  Perhaps
somebody who has spent more time sniffing through a dis-assembled firmware
than I have could tell you how.  And of course, you can't update the Scout
firmware, so you couldn't disable the remote from controlling the Scout in
any case.

The only way doing this may be using legOS and its LNP (lego network
protocol) with which you can use adressed devices. AFAIK legOS isn't
available for you're scout, so this won't work either. SORRY.

Regards

Rainer

P.S.: Can't you seperate them optically ??

Interesting thing about this -- the LEGO IR goes through LEGO!  For the
recent NELUG train display, I tried to build enclosures for my RCXes so that
I could control them one-at-a-time with the remote.  I found that the IR
went right through the walls and controlled all of the RCXes anyway.

Glass apparently will shield infra-red (or is that ultra-violet?  I always
forget...) so it might be possible to build an infra-red shield out of
non-LEGO materials.  Or possibly a LEGO box with very thick walls and no
overlapping seams would do the trick.

Aluminum foil wrapped around the RCX works...

Dean
--
Coin-Op's For Sale!: http://www.akasa.bc.ca/tfm/coin-op.html
Dean's Lego Workshop: http://www.akasa.bc.ca/tfm/lego_wr.html
Vancouver Lego Club: http://www.akasa.bc.ca/vlc



Message is in Reply To:
  Re: Blocking The Lego Remote?
 
(...) This is a very basic problem with the whole LEGO IR protocol -- you can't address a specific RCX/Scout without also reaching every other brick in the room. I believe this is the reason why the RCX has the short-range IR setting. The approach I (...) (24 years ago, 27-Apr-01, to lugnet.robotics.rcx.nqc)

6 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