IoT - Lecture 9
IoT - Lecture 9
Internet of Things
Devices or sensors network data collection at a device local-server, local files, dedicated data store, at a coordinating node, a
local node of a distributed DBMS, Internet-connected server of data centre, server or distributed database nodes or a cloud
infrastructure
Cloud computing paradigm for data collection, storage, computing and services
Example
The Microsoft cloud platform consists of:
(i) Microsoft finished services and solutions; (ii) Microsoft building
block services (Dynamic CRM Online, Sharepoint Online;
Exchange Online, dot Net, SQL, ASP dot Net, Office Live and
Windows Live Services); (iii) Cloud infrastructure services
(Windows Azure for compute, storage and resource management
services); and (iv) Global foundation services (Hardware,
networking, deployment and operations services). The platform
includes development tools (Visual Studio, Windows server,
Visual C++, Visual Basic, visual C# and dot Net)
EVERYTHING AS A SERVICE AND CLOUD SERVICE
MODELS
• Cloud connects the devices, data, applications, services, persons and
business
• Cloud computing can be considered by a simple equation:
Cloud Computing = SaaS + Paas + IaaS + DaaS
• SaaS (Software as a Service) The software is made available to an
application or service on demand
• PaaS (Platform as a Service) The platform is made available to a developer of
an application on demand
• IaaS (Infrastructure as a Service). The infrastructure (data stores, servers,
data centres and network) is made available to a user or developer of
application on demand
• DaaS (Data as a Service) Data at a data centre is made available to a user or
developer of application on demand
EVERYTHING AS A SERVICE AND CLOUD SERVICE MODELS
EVERYTHING AS A SERVICE AND CLOUD SERVICE MODELS
Example
• Give examples of Saas, PaaS, IaaS, DaaS service
models for cloud computing.
EVERYTHING AS A SERVICE AND CLOUD SERVICE MODELS
Solution
• SaaS Applications of Google Docs for online office, MS Windows Live for
online office applications, MS Exchange Labs, TCS iON (Integrated IT-as-a-
Service), Salesforce.com for extensible Customer Relations Management
(CRM) system
• PaaS SuiteFlex for business process development NetSuite tools, MS Azure
for Windows applications programming and execution environment, server
platforms of EC2 and GoGrid, application platforms of Force Com, Google
App engine for scalable execution environment for web applications, and TCS
platform BPO solutions, Xively, Nimbits, AWS IoT, IBM IoT Foundation, Cisco
IoT, IOx and Fog, TCS CUP.
• IaaS infrastructure services—Amazon Virtual Servers, GoGrid virtual servers,
Elastic Computing Cloud (EC2), Cloud.com open source IaaS, TCS
Transformation Solutions, Cisco IaaS, and IBM BlueCloud shared
infrastructure service that automate fluctuating demands for the IT resources
• DaaS Data storage platforms of Tata Communications 10 X, Apple and Cisco
for the DaaS.
IoT cloud-based services using Thingspeak other platforms
Example
A server provisions for generation and communication of data points, objects,
streams, alerts, triggers and feeds applying the rules for filtering and
calculations. Consider streetlights Internet Example 1.2. Assume that each
streetlight device node generates the following data: (i) streetlightID, (ii)
ambientLightCondition aLC (= dark or daylight), (iii) trafficDensity tD (=
VehiclesPassingPerSec), (iv) functionality func (= streetlight functional or
nonFunctional) which streams to the streetlights group server locally.
Assume that a streetServer provides a local control and feeds the data streams
to IoTStreetLightsServer (ILS) at a cloud. Three applications (services), central
controller, Maintenance Service and Traffic_Lights_Control_Service connect to
the cloud for feeds of messages and alerts from an ILS hosted at the cloud.
Suggest the data points, datastreams, triggers and feeds for the ILS at the
cloud.
IoT cloud-based services using Thingspeak other platforms
Solution
DataPoints or each streetlight are (i) aLC (= 1 or 0), (ii) trafficPresence (= 1 or 0), (iii) tD
(iv) funct (= 1 or 0) and (v) activate.
The streetServer controls locally the deactivation of the individual lights when aLC =
daylight and when tD = 0 even when a trigger activate (Central controller activates the
streetlight yes or no) is received from the controller. This is an energy-saving measure.
The server receives in the feeds trigger activate for each streetlightID from the controller.
The server feeds the controller datastreams for the (i) streetID, streetServerID and
streetTrafficDensity messages and (ii) streetlightID. A functionality alert feeds when the
func = 0 and that means the streetlight needs maintenance.
Central controller receives the feeds from the clouds. The controller generates the
following data points,
(i) streetlightID (ii) activate (Central Controller command activate the streetlight yes or
no) (iv) tD (v) func .
The controller generates the feeds as follows:
1. feed_ID, streetServerID, streetlightID and activate for the streetServer
2. feed_ID, streetlightID and functionality Alert for Maintenance Service.
3. feed_ID, streetServerID and streetTrafficDensity datastream for
Traffic_Lights_Control_Service.
ThingSpeaks
• ThingSpeak is a Web Service (REST API) that lets you collect and
store sensor data in the cloud and develop Internet of Things
applications.
• It works with Arduino, Raspberry Pi and MATLAB (premade
libraries and APIs exists).
• But it should work with all kind of Programming Languages, since
it uses a REST API and HTTP.
https://thingspeak.com
* ThingSpeak is free for small non-commercial projects 2
ThingSpeak
https://thingspeak.com
ThingSpeak
• ThingSpeak is an IoT analytics platform service that lets you
collect and store sensor data in the cloud and develop Internet of
Things applications.
• The ThingSpeak service also lets you perform online analysis and
act on your data. Sensor data can be sent to ThingSpeak from any
hardware that can communicate using a REST API
• ThingSpeak is a Web Service (REST API) that lets you collect and
store sensor data in the cloud and develop Internet of Things
applications.
https://thingspeak.com
* ThingSpeak is free for small non-commercial projects 4
What is ThingSpeak?
https://se.mathworks.com/videos/introduction-to-thingspeak-107749.html
ThingSpeak + LabVIEW
LabVIEW www.ThingSpeak.com
Configuration and Settings
SubVI
ThingSpeak + Web Browser
• We can use a standard Web Browser in order to put data to
ThingSpeak or to get data from ThingSpeak
www.ThingSpeak.com
Data Analysis
Arduino + Wi-Fi Shield
ThingSpeak + Visual Studio/C#
apiKey = “xxxxxxxxxxxxxxxxxxxxx";
webMethod;
25
IoT cloud-based services using Thingspeak other platforms
Many cloud PaaS and SaaS platforms are now available for IoT