Integrated Sensor Networks

dr inż. M. Wójcikowski

TinyOS – Data transmission

1)  Basing on OscillosopeAppC application and PhotoC module used in the prevoius lab, implement the application, which transmits the light intensity measurements though the radio network.

2)  Program the node with the modified application OscillosopeAppC. For tests, use printf when the node is connected to the base station.

3)  Remove the node from the base station, insert the batteries and run the node.

4)  Install another node in the base station.

5)  Program the new node with BaseStation application. At programming, give it the address 100+<number of your computer >. Leave the node in the base station – it will be used as data sink. Applicaction BaseStation sends the received data throughits serial ports.

6)  Start the program Serial Forwarder in Ubuntu (PC). This program captures data from serial port and clones data to other applications on PC. Only one application can use serial port on PC, thanks to Serial Forwarder data can be used by multiple apps. To run Serial Forwarder use the following command:

java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB<no>:iris &

where <no> denotes the upper USB port.

7)  Leave the Serial Forwarder running in the background.

 

Ekran aplikacji Serial Forwarder

8)  Go back to folder Oscilloscope, enter subdirectory java and start data visuallization application using the command:

./run

For volunteers

Realize the transmission of two parameters simultaneously: light + temperature.