RAP, the robos ad-hoc protocol, is an ad-hoc communication protocol implemented on top of the robos operating system for Lego Mindstorms. I let students in my embedded software class implement the protocol; for this reason, I do not give here the full implementation. I give here, however, some files that are helpful in the implementation.

Note: To view an attachment, for instance, a .c file, go to the Attachments page and click on View.

RAP Protocol Description

RAP Tarballs and Howtos

Running lnpd

You don't have to be root to run lnpd, except for one reason: If your serial chip (uart) is a 16550A with builtin FIFO, this FIFO should be disabled. To do this, you have 2 options:

Like most programs that use the serial port, lnpd will try to create a lock-file in /var/lock, and terminate if it cannot create this file. In my distribution, /var/lock is only writeable by group uucp, so i had to put myself into group uucp. Another option is to start lnpd with option --nolock. In this case, lnpd will not care at all about lockfiles.

Look at the README file in the rap directory for more options.

C Files

Other Tarballs

There are only for the instructor's reference:

RAP: Robos Ad-Hoc Protocol (last edited 2007-05-15 16:02:46 by LucaDeAlfaro)