Difference between revisions of "MansOS Apps examples"
(New page: There are several application examples located in <mansosroot>/apps directory. For example: * Blink - simple blink of LEDs. Also works for PC platform. * BlinkDev - blink using the LEDs...) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
There are several application examples located in <mansosroot>/apps directory. |
There are several application examples located in <mansosroot>/apps directory. |
||
Simple basics: |
|||
For example: |
|||
⚫ | |||
* demo/CounterToLeds - displays an incrementing counter on the LEDs. |
|||
Sensing: |
|||
⚫ | |||
* demo/SensorToLeds - read light sensor, display value on LEDs. |
|||
⚫ | |||
* 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: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* Command - a command line shell on a host computer accessing motes via unix-like commands such as ls and providing SMP - sensor management protocol to access, query, and command the motes and their resources aover the serial or USB port and wireless network. |
Latest revision as of 11: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.