Difference between revisions of "MansOS Apps examples"

From DiLab
Jump to: navigation, search
Line 7: Line 7:
Sensing:
Sensing:
* 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/RadioSenseToLeds - read light sensor, broadcast value over radio. When an other light value received over radio, display it on LEDs.


Communications:
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/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/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.


Device driver demo:
Device driver demo:

Revision as of 11:51, 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:

  • test/AdcTest - a simple program that scans all ADC channels and prints the values using the debugging mechanism macros PRINT, PRINNTLN and PRINTF.
  • demo/RadioSenseToLeds - read light sensor, broadcast value over radio. When an other light value received over radio, display it on LEDs.

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.

Device driver demo:

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