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 / 15186
15185  |  15187
Subject: 
Re: Serial Port Protocol
Newsgroups: 
lugnet.robotics
Date: 
Tue, 17 Apr 2001 01:02:06 GMT
Viewed: 
809 times
  
douglas edric stanley <destanley@mac.com> wrote:
... some confusing with repeated messages ...

Here is an example that I hope clears things up:

You said you know how to make the RCX beep.  You didn't go into details,
but to summarize, it is something to the effect of sending it 51 00 encoded
in 55 ff 00 with complements and checksums.  Other beeps are made by
sending 51 01 or 51 02 etc in the same fashion.

Now lets say you made the RCX beep once.  To get it to beep again
immediately after the first beep, you need to toggle the 08 bit of the
opcode.  In this case, the opcode is 51, Play Sound.  Flipping the 08 bit
gives you 59 instead of 51, since 51 XOR 08 is 59.  Now say you got the RCX
to beep a second time.  Next time, you need to send 51.

That is what it means to toggle the 0x08 bit.

If you take a look at the Opcode Reference for play sound:

http://graphics.stanford.edu/~kekoa/rcx/opcodes.html#play_sound

you will note that it is listed as 51/59.  These are the two versions of
Play Sound, one with the 08 bit set, one without.

Anyways, let me know if you are still confused.

-Kekoa



Message has 1 Reply:
  Re: Serial Port Protocol
 
(...) No. That was perfect. Several people have written off the list to know more about my serial port adaptation for Director <> RCX. It's absolutely not finished, and has some little bugs, but it works. So here's the Lingo code anyway. It won't (...) (24 years ago, 18-Apr-01, to lugnet.robotics)

Message is in Reply To:
  Serial Port Protocol
 
Hi all. I'm new to the list. I'm using Robolab and NQC on a Mac, interfacing with Macromedia Director 8 through the serialXtra. So far so good, thanks in no small part to the info posted by Dave Baum and Kekoa Proudfoot. I can make the Lego "beep" (...) (24 years ago, 17-Apr-01, to lugnet.robotics)

4 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