The aim of this project is to develop an IoT application to monitor the orchard in a smart way. In particular, thanks to both sensors and actuator that communicate with a Cloud Computing application, the farmer can monitor his orchards.
We work on Ubuntu VM in which is pre-installed Contiki-NG and we only simulate the motes work in Cooja. For this reason we have first to run the container with the contikier
command and then in the path tools/cooja
run the app with the ant run
command. Once in Cooja, we can deploy the nodes in two ways:
- Open a preconfigured simulation (file with .csc extension).
- Open a new simulation, deploy first the border-router from the file
border-router.c
and then as many nodes as you wants from the filecoap_server_sprinkler.c
. Then we have to right click on the border-router, set it as SERVER and click on START.
At this point, we have to open a new terminal to start the border router. As we have done before, we have to run the container and then must go into the border-router's project folder. At this point we have to run the command:
make TARGET=cooja connect-router-cooja
Now, the border-router is active and ready to perfrom its actions. At this point we can start the simulation and after that we can open our Cloud Computing application. Open in terminal the main folder, go into coap-server folder
and perform the following command:
mvn package
At this point, the application is compiled and the file is ready to run. With the following command, the IoT application starts:
java -jar target/coap-server-0.0.1-SNAPSHOT.jar
You can find the documentation in the wiki.