Tested Distributions

I have tested robos-1.0 and these setup instructions on the following linux distributions:

Most likely, one of the two versions of robos can work also on other versions of linux. The differences between robos-1.0 and robos-2.0 are relatively minor.

Installing the Cross-Compiler

You don't need to do this for CMPE 117: the cross compiler is already installed.

First, you need to install the H8300 cross-compiler, unless it has already been installed. The Hitachi H8300 is the CPU found in the Lego Mindstorms. Depending on your distribution, proceed as follows:

Installing robos

lnpd

/!\ This still has not been tested under Ubuntu 2.10.

lnpd.tgz This is the package for listening to Lego packets from a PC.

Installation Instructions for lnpd

I tested this code, and I believe it is free of bugs.

Suggestions

You have to shut off both lnpd and lucatest before loading new programs onto the Lego brick, otherwise strange things may happen (the Lego goes into a funny state and stops working).

Also, you need to start a fresh instance of lnpd and lucatest from time to time.

Finally, as you can see from the documentation for lnpd, there may be a way to write all of your code for the PC, and debug it there first, and only later port it to the Lego brick. Once you get lnpd running, the Lego side and the PC side look the same to a running application. A final note Depending on the system, it might be the case that you can run lnpd (the first of the two windows above) only as root. Otherwise, the PC was not receiving any packets, essentially. I don't have this problem on my PCs, but if you have it in the lab, let me know.

Let me know if there are any problems.

License

robos is released under the Mozilla public licence, like legOS-0.2.4 (of which robos is a trivial derivative). For more information, read the LICENSE file distributed with the source code.

Robos Download and Setup Instructions (last edited 2007-04-30 22:42:16 by LucaDeAlfaro)