Subject:
|
Re: New NQC API for RCX-Spybot or RCX-RC communication
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sun, 29 May 2005 10:45:10 GMT
|
Original-From:
|
Juergen Stuber <JUERGEN@JSTUBER.NETavoidspam>
|
Viewed:
|
1960 times
|
| |
| |
Hi Gabriel,
"Gabriel Petrut" <gpetrut@yahoo.com> writes:
> I am trying to emulate the infrared protocol on a
> different microcontroller.
> I want it to be able to be controlled by a Lego remote and
> to send/receive messages to Lego devices.
> What format does the Lego Remote protocol has?
the format is 38kHz or 76kHz modulated infrared,
with a standard 2400 baud serial format of
1 start bit, 8 data bits, odd parity, 1 stop bit
(modulated infrared on = 0, off = 1).
The packet format consists of a start byte 0x55,
after that each byte is followed by its complement
(this limits IR to be on half the time).
The 0x55 may be lost or mangled on reception.
The content bytes start with 0xff, then follow
a command byte, data for the command and a checksum
(all bytes with their complement as described above).
The remote sends RemoteCommand (0xd2) and 16 bit data
with one bit for each key.
The commands are documented in the Mindstorms SDK
(see http://mindstorms.lego.com/sdk2point5/default.asp)
in the file "LASM Byte codes.pdf".
Or see http://graphics.stanford.edu/~kekoa/rcx/ .
> My microcontroller can do a standard protocol like 8
> bit command followed by 8 bit device.
If you want to do this you need your own RCX firmware,
it is probably easier to change the microcontroller program.
Hope this helps
Jürgen
--
NO to software patents -- stop the European patents directive
Jürgen Stuber <juergen@jstuber.net>
http://www.jstuber.net/
gnupg key fingerprint = 2767 CA3C 5680 58BA 9A91 23D9 BED6 9A7A AF9E 68B4
|
|
Message is in Reply To:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|