310 likes | 465 Views
Università degli Studi di Messina Cloud Summer School Almere , July 22-26 th , 2013. Sensors and Clouds . Prof. Massimo Villari mvillari@unime.it. Eng. Giuseppe Tricomi gtricomi@unime.it. Agenda:. First Day: System Setup ( CleverUniMeSens )
E N D
UniversitàdegliStudidi Messina Cloud Summer School Almere, July 22-26th, 2013 Sensors and Clouds Prof. Massimo Villari mvillari@unime.it Eng. Giuseppe Tricomi gtricomi@unime.it
Agenda: • First Day: • System Setup (CleverUniMeSens) • Configurations for External DB LAMP based(sensordb) • Data Production (SensoracquisitionGenerator) • Data Acquisition (CleverUniMeSens) • Second Day : • Sensor Web Enablement (SWE): SOS/SAS • Real-Time Data Retrieval with a Multi User Chat XMPP (MUC) • On-Demand Data Retrieval with CleverAdministratorSHELL • Third Day: • Clever as a Federated VIM • Demo with OpenStack and Clever
Widespread availability of cheap sensing devices • On-board components built into a wide range of systems (e.g., smartphones, indash units, body sensor networks...) • Advances in pervasive computing techniques • Many application scenarios: healthcare, smart city, domotic, traffic assistant, ... • Many concepts, standards and projects: • Internet of Things (IoT) • OGC Sensor Web Enablement (SWE),W3C Semantic Sensor Networks (SSN),... Introduction
Cloud computing • Cloud computing might be the GLUE for aggregating heterogeneous systems Data provisioning systems: • for capturing information from the physical world • interacting with heterogeneous devices and observation environments • characterized by high processing capabilities • able to store and manage huge amount of data
Cloud-based Data Provisioning Service • Subscribing step
Service Design • Data provisioning service compliant with the Sensor Web Enablement (SWE) standard defined by the Open Geospatial Consortium. • XML-based languages • W3C SemanticSensorNetworks: a newontology to describe sensors and observations • is based on the semantic annotation of OGC-SWE • Data accessed through a XMPP Multi-User Chat (MUC) • decentralized service, high degree of scalability, high number of hosts involved, flexibility in the system, interoperability and native security features based on TLS/SSL • Message oriented middleware for Cloud • XML-based document • XML-based data storage (SEDNA)
Virtual Pervasive Element C-SENSOR Reader
Virtual Pervasive Element DB Name: sensorml C-SENSOR Reader DB Name: sensordb
XMPP COMMUNICATION CLUSTER MANAGER ELECTION (see Log) CLUSTER MANAGER SERVER XMPP ACCESS (see Log) CHECK PRESENCE OF CLUSTER MANAGER (see Log) ADMINISTRATION CLIENT HOST MANAGERS SHELL-test@ conference.localhost test@ conference.localhost SERVER XMPP ACCESS (see Log) SERVER XMPP ACCESS SEVER XMPP @author: Giuseppe Tricomi
SHELL-test@ conference.localhost test@ conference.localhost CLEVER MUCs
Basic Commands (under Ubuntu/Debian) • SEDNA DB: • To start: • sudo /opt/sedna/bin/se_gov • To create the Clever DB: • sudo /opt/sedna/bin/se_cdbcleverDatabase • To execute the DB: • sudo /opt/sedna/bin/se_smcleverDatabase • To remove the DB • sudo /opt/sedna/bin/se_ddbcleverDatabase • To stop: • sudo /opt/sedna/bin/se_stop
All in one VM: user=test pw=testpass • XMPP Server (Ejabberd) • Client XMPP (tkabber) • XML-DB (SEDNA) • CleverUnimeSens: • CleverCloud • CleverAdministration • LAMP (PhpMyAdmin), • MySQL DB: • VirtualSensor DB • SensorML DB (basisforCleverSenscompliant SAS/SOS) • SensoracquisitionGenerator
Basic Commands (under Ubuntu/Debian) • The CleverCloud path is: • /home/test/CleverUnimeSens/trunk/clevercloud • To start Clever: • (in clevercloudfolder) java –jardist/clever.jar • The CleverAdministration path is: • /home/test/CleverUnimeSens/trunk/cleverAdministration • To start CleverAdminitration: • (in cleverAdministrationfolder) java –jardist/cleveradministration.jar
Inside clevercloudfolder 1-configuration_clustercoordinator.xml 2-configuration_initiator.xml 3-configuration_Readers.xml 4-configuration_sasagent.xml 5-configuration_sosagent.xml
3-configuration_Readers.xml DB Name: sensordb
5-configuration_sosagent.xml DB Name: sensorml
Inside cleverAdministrationfolder 1-config_clever_cli.xml
SEDNA DB Client • Sudo java -jar /home/test/sednaadmin-bin-0.1.5/sednaadmin-bin/SednaAdmin.jar
SEDNA DB Client • for$r in document("cleverData")/clever/cluster/hm/agent/SASPubblicationHistoryreturn$r
Homeworks • Experiment with CleverUniMESens VM • Try to remove the Virtual DB (sensordb) and reinstall it (sensordb.sql) • Fill the sensordb using SensoracquisitionGenerator (see the next slide) • Seeifsensorml DB is filled • SeeifSEDNA DB is filled
Homeworks:SensoracquisitionGenerator • Configure it: • SensoracquisitionGenerator/cfg/Configuration.xml • Run it: • cdSensoracquisitionGenerator/ • Java –jardist/SensoracquisitionGenerator.jar