next up previous contents
Next: Without TinyOS Up: Installing the Cricket embedded Previous: Installing the Cricket embedded   Contents

With TinyOS

This section describes how to program and/or modify the embedded code on the Cricket units. This chapter assumes some familiarity with the TinyOS platform; details on that platform are at http://www.tinyos.net/

You need a programming board (also called a ``programmer'') to program Cricket units with the TinyOS-based software image. Cricket can be programmed using the same programmers as Mica2 motes. We use the MIB510CA model.

The package providing the TinyOS-based embedded source code for Cricket contains only changed/added files. The files provided are in two separate directories in the top level tos directory:

   /apps/Cricket/             Cricket application
   /apps/Makerules            Makerules with the addition of the cricket 
                              platform.
   /tos/platform/cricket/     Cricket platform directory

The current version of the Cricket embedded software works with TinyOS version 1.1.6. To install the development environment, install TinyOS 1.1.6 and copy the files included in the Cricket package to the corresponding TinyOS path.

The embedded source code for the Cricket units has two parts:

  1. The Cricket platform.
  2. The Cricket application.

The Cricket platform contains all the software differences that handle the differences between the Cricket hardware and the Mica2 hardware. The Cricket application is the software that incorporates the beacon and listener algorithms.

After installing TinyOS and copying in the Cricket package, install the Cricket application by typing:

        # MIB510=<SERIAL_PORT> (e.g., /dev/ttyS0)
        # make cricket install

The above lines assume you have a MIB510CA programmer connected to a serial port. Check the TinyOS documentation for details on other programmers.

Note: Currently, by default, TinyOS erases the Cricket flash each time it is reprogrammed. As a result, Cricket configuration parameters that were saved before the reprogramming action will be lost and reset to the default values.

Note: This document does not currently discuss how to modify the embedded software or how to write TinyOS-based Cricket applications. A future version of the document will address these issues.


next up previous contents
Next: Without TinyOS Up: Installing the Cricket embedded Previous: Installing the Cricket embedded   Contents
Michel Goraczko 2004-12-02