Temperature reading application: Difference between revisions
| Line 1: | Line 1: | ||
This Nesc/TinyOS application is for measuring the temperature with maximum of two sensors. One acts like a '''Base Station''' and has to be connected with the USB connection to the computer. The second acts like a '''Remote Station''' and transmitts its temperature reading via the radio to the '''Base Station'''. At the final stage, the base station transmitts the complete data, both temperature readings, to the computer every second. | This Nesc/TinyOS application is for measuring the temperature with maximum of two sensors. One acts like a '''Base Station''' and has to be connected with the USB connection to the computer. The second acts like a '''Remote Station''' and transmitts its temperature reading via the radio to the '''Base Station'''. At the final stage, the base station transmitts the complete data, both temperature readings, to the computer every second. | ||
In this document it is described how to install the Nesc/TinyOS, how to retreive the the data and how to interpret the data. | In this document it is described how to install the Nesc/TinyOS, how to retreive the the data and how to interpret the data. | ||
Revision as of 12:53, 15 April 2007
This Nesc/TinyOS application is for measuring the temperature with maximum of two sensors. One acts like a Base Station and has to be connected with the USB connection to the computer. The second acts like a Remote Station and transmitts its temperature reading via the radio to the Base Station. At the final stage, the base station transmitts the complete data, both temperature readings, to the computer every second. In this document it is described how to install the Nesc/TinyOS, how to retreive the the data and how to interpret the data.
It is assumed that the installation of TinyOS 1.x and Nesc is installed with the nessecary components.
Installation of the application
Extract the TRead application in the folder /tinyos-1.x/apps/. Then in the folder xxx/tinyos-1.x/apps, install the application by following line:
make telosb && installXXXXXXXX
NOTE!
In the file TReadM.nc, at the top, there is a preprocessor definition #define BASE_STATION.
When installing for the Remote station, comment this line and install as described above. For Base Station, leave it as it is.