X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=apps%2Ftosthreads%2Fapps%2FTestBasicsbSensors%2FTestBasicsbSensorsAppC.nc;h=0bc9f115e7ae53710b26ed6da44f5af4962468a6;hp=351628c11ccc01d5e247691b91937a98cbb47f20;hb=271cd0bf03be7364a29a9746cc4be25f76481db5;hpb=7a60e64a56d51713af119b386176192060f696f7 diff --git a/apps/tosthreads/apps/TestBasicsbSensors/TestBasicsbSensorsAppC.nc b/apps/tosthreads/apps/TestBasicsbSensors/TestBasicsbSensorsAppC.nc index 351628c1..0bc9f115 100644 --- a/apps/tosthreads/apps/TestBasicsbSensors/TestBasicsbSensorsAppC.nc +++ b/apps/tosthreads/apps/TestBasicsbSensors/TestBasicsbSensorsAppC.nc @@ -30,6 +30,22 @@ */ /** + * This application is used to test the threaded version of the API for accessing + * sensors on the basicsb sensor board. + * + * This application simply takes sensor readings in an infinite loop from the + * Photo and Temperature sensors on the basicsb sensor board and forwards them + * over the serial interface. Upon successful transmission, LED0 is toggled. + * + * A successful test will result in the TestBasicsbSensors mote constantly + * flickering LED0. Additionally, messages containing the sensor readings should + * be forwarded over the serial interface as verified by running the following + * for the platform of interest: + * java net.tinyos.tools.Listen -comm serial@/dev/ttyUSBXXX: + * + * Once this java application is running, you should see output containing the + * sensor readings being streamed to your terminal. + * * @author Kevin Klues (klueska@cs.stanford.edu) */ @@ -37,12 +53,12 @@ configuration TestBasicsbSensorsAppC { } implementation { components MainC, TestBasicsbSensorsC; - components new ThreadC(100) as MainThread; + components new ThreadC(125) as MainThread; components new BlockingPhotoC(); components new BlockingTempC(); components BlockingSerialActiveMessageC; - components new BlockingSerialAMSenderC(100); + components new BlockingSerialAMSenderC(128); MainC.Boot <- TestBasicsbSensorsC; TestBasicsbSensorsC.MainThread -> MainThread;