IoT infrastructure for the management of a set of distributed vending machines
The project consists in several different applications that need to be executed in a precise order.
First, it must be executed Cooja and opened one of the two simulations provided in the folder "Simulations". It is warmly recommended to use the "final_simul_3_mote" simulation instead the other one because it is configured with a minor number of motes (three motes + one BR). If the user has not a sufficient hardware capability, it could compromise the behavior of the application.
sh runCooja &
/∗ Open the simulation and start it.∗/
cd Contiki/rpl−border−router−cooja
make connect−router−cooja
CSE of the MN and of the IN must be start first.
###IN-CSE
cd Infrastructure/OM2M/IN_CSE
sh start.sh
###MN-CSE
cd Infrastructure/OM2M/MN_CSE
sh start.sh
After the CSE applications, the ADN must be executed. The IN ADN must be executed as last and only after the MN has finished to discover the VMs, the ADN IN could be executed. After that, it could take a while for a setup. The ADN IN waits that the ADN MN has retrieved all the resource values and created all the content instances and this process is very slow with a large number of motes.
cd Infrastructure/SVM/
mvn clean install
cd Infrastructure/SVM/SVM_MN
java −jar target/SVM_MN−0.0.1−SNAPSHOT−jar−with−dependencies.jar
cd Infrastructure/SVM/SVM_IN
java −jar target/SVM_IN−0.0.1−SNAPSHOT−jar−with−dependencies.jar
Open "index.html" in the web browser, located in the WebApp
folder.