Lab Activity: Contiki FlashRadio

Since

18.12 lab

Till

22.01 lab

Points

1

Write an app that scans the 2.4 GHz channels for any activity by measuring their RSSI.

The app samples RSSI on a channel as fast as it is possible. When an user presses the button, it prints statistics for the current channel in a format: <RSSI>: <number of such samples> (ignore measurements lower than -100 and higher than -10). Then the app resets statistics and starts sampling the next channel.

When a mote is reset or re-plugged, the app starts sampling the same channel that was being sampled before. It also lights a LED during reads and writes from/to the flash.

Be inspired by examples/sky/sky-collect.c and examples/sky/example-coffee.c.