Project for the Internet of Things course of the MSc's degree in Computer Engineering at University of Pisa.
The project is about a smart park, exploiting presence sensors to count the number of occupied/free park slots, smart traffic lights to visually understand if the park is full, and flame detectors to react as fast as possible to a possible fire detected in the park.
- br contains the source code of the border router
- coap-sensors contains the source code of smart park lots and smart traffic lights
- mqtt-sensor contains the source code of the flame detectors
- smartPark-collector cotains the source code of the Java collector
- simulations contains the files related to the tests presented in the report, chapter 3
In order to execute the test 1 described in the report, the following steps are needed:
- Download the entire folder and put it in the
contiki-ng/examples
folder. - Inside the
smartPark-collector
folder compile the collector with the following command:mvn clean install
- Run the MQTT Broker
- Import the MySQL database contained in
smartParkDB.sql
- Open cooja and import the simulation
simulations/test1_simulated
- In Cooja, configure the border router to use tunslip6:
Inside the
Tools > Serial Socket (SERVER) > Contiki 1 Start
br
folder execute:make TARGET=cooja connect-router-cooja
- Inside the
smartPark-collector
folder, start the collector with the following command:java -jar target/smartPark-collector-0.0.1-SNAPSHOT.jar
- Start the simulation on Cooja