Goals   Requirements analysis   State Machine   Implementation   Families 

Project
An infrared network abstraction for EPOS on the Lego RCX
Staff
Crineu Tres
Igor Tibes Ghisi
Roberto Hartke Neto
Questions? E-mail us.

Implementation

Control bytes have the most significant bit set to 1. Data bytes have it set to 0.

For more details, see the state machine section.

The max data bytes in a package is 106 (122 with the identification bit). That's a 127 bytes package (3 for the header, 1 for length, 1 for ID and 122 for data).

Sending

If the other host don't answer with an ACK, the protocol tries to send a package three times.

There's an attibute to hold the timeout value.

Receiving

The device sends a byte to the protocol, it analizes it depending on the actual state of the protocol and returns a value. It can be an error, an okay, or a value that says the package is not yet completed.

Comments
None
News
None