Running OscilloscopeRF on the Imote2
The Imote2 comes with a different set of TinyOS sensor components. As such, the original OscilloscopeRF that comes with TinyOS-1.x cannot run on the Imote2. This demo shows how OscilloscopeRF can be modified to work on Imote2s.
The sensor component used in this demo is BasicSensorboardAccelDataC, which is located in tinyos-1.x/contrib/imote2/tos/sensorboards/BasicSensorboard. While this component is intended to be used as part of Imote2's driver framework (see this posting on the Imote2 Yahoo group), using it directly is sufficient for this demo.
The Imote2 accelerometer readings are signed 16-bit integers. This differs from Mica2, MicaZ, and TelosB motes, which provide unsigned 16-bit integers. To display these measurements correctly, GraphPanel.java is modified to convert the readings into signed integers (see lines 250-251 of GraphPanel.java).
The instructions below assume that you have TinyOS-1.x on a Windows XP PC with the Imote2 extensions. If you do not or are not sure, follow these instructions.
Running the Demo
Download the source file and extract the tar archive into tinyos-1.x/apps. The files will be extracted into subdirectory OscilloscopeRF_Imote2.
Compile the application for the Imote2 platform:
cd /opt/tinyos-1.x/apps/OscilloscopeRF_Imote2 make imote2 debug
If you get error:
cc1: /cygdrive/e/wasabi_drops/wasabi031117/install031117/include: No medium found cc1: /cygdrive/e/wasabi_drops/wasabi031117/install031117/lib/gcc-lib/xscale-elf/Wasabi-3.3.1/include: No medium found cc1: /cygdrive/e/wasabi_drops/wasabi031117/install031117/xscale-elf/sys-include: No medium found cc1: /cygdrive/e/wasabi_drops/wasabi031117/install031117/xscale-elf/include: No medium found
Either put a disk into drive E, or remove the drive from your system.