Difference between revisions of "MansOS Apps examples"

From DiLab
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
Simple basics:
Simple basics:
* demo/Blink - simple blink of LEDs. Also works for PC platform.
* demo/Blink - simple blink of LEDs. Also works for PC platform.
* demo/CounterToLeds - displays an incrementing counter on the LEDs.


Sensing:
Sensing:
* demo/SensorToLeds - read light sensor, display value on LEDs.
* test/AdcTest - a simple program that scans all ADC channels and prints the values using the debugging mechanism macros PRINT, PRINNTLN and PRINTF.
* test/AdcTest - a simple program that scans all ADC channels and prints the values using the debugging mechanism macros PRINT, PRINNTLN and PRINTF.
* demo/SenseAndSend, demo/RadioSenseToLeds, demo/RadioSenseToLedsSockets - read light sensor, broadcast value over radio. When an other light value received over radio, display it on LEDs.
* demo/SensorToSerial - read light sensor, send value over UART.
* demo/UserButtonRead - read "User" button. Works on TelosB motes only (at the moment)


Communications:
Communications:
* demo/BaseStation - application for a base station mote, which works as a bridge between serial port and radio - all data received at one end is forwarded to the other
* demo/BaseStation - application for a base station mote, which works as a bridge between UART and radio - all data received at one end is forwarded to the other.
* demo/RadioToSerial - half of BaseStation - listen to radio, forward received data to UART.
* demo/CounterToSerial - an incrementing counter is sent over UART
* demo/RadioCountToLed - send an incrementing counter over radio. Listen to radio, when an other counter is received, display it on LEDs.
* demo/RssiToLeds - listen to radio, display RSSI of last received packet on the LEDs


Device driver demo:
Device driver demo:

Latest revision as of 12:14, 4 November 2010

There are several application examples located in <mansosroot>/apps directory.

Simple basics:

  • demo/Blink - simple blink of LEDs. Also works for PC platform.
  • demo/CounterToLeds - displays an incrementing counter on the LEDs.

Sensing:

  • demo/SensorToLeds - read light sensor, display value on LEDs.
  • test/AdcTest - a simple program that scans all ADC channels and prints the values using the debugging mechanism macros PRINT, PRINNTLN and PRINTF.
  • demo/SenseAndSend, demo/RadioSenseToLeds, demo/RadioSenseToLedsSockets - read light sensor, broadcast value over radio. When an other light value received over radio, display it on LEDs.
  • demo/SensorToSerial - read light sensor, send value over UART.
  • demo/UserButtonRead - read "User" button. Works on TelosB motes only (at the moment)

Communications:

  • demo/BaseStation - application for a base station mote, which works as a bridge between UART and radio - all data received at one end is forwarded to the other.
  • demo/RadioToSerial - half of BaseStation - listen to radio, forward received data to UART.
  • demo/CounterToSerial - an incrementing counter is sent over UART
  • demo/RadioCountToLed - send an incrementing counter over radio. Listen to radio, when an other counter is received, display it on LEDs.
  • demo/RssiToLeds - listen to radio, display RSSI of last received packet on the LEDs

Device driver demo:

  • demo/dev/BlinkDev - blink using the LEDs as a device.
  • demo/dev/AdcDev - ADC as a device.