1 of 31

ELECTRICAL AND ELECTRONICS ENGINEERING

IOT & ITS APPLICATIONS

(18EC743)

Module-III

2 of 31

  • Outline

IoT Design Methodology that includes:

  • Purpose & Requirements Specification
  • Process Specification
  • Domain Model Specification
  • Information Model Specification
  • Service Specifications
  • IoT Level Specification
  • Functional View Specification
  • Operational View Specification
  • Device & Component Integration
  • Application Development

3 of 31

IoT Design Methodology – Steps

4 of 31

1) Purpose & Requirements Specification

In this step, the system purpose, behavior and requirements (such as data collection requirements, data analysis requirements, system management requirements, data privacy and security requirements, user interface requirements, ...) are captured.

Applying this to our example of a smart home automation system, the purpose and requirements for the system may be described as follows:

5 of 31

6 of 31

Step 2: Process Specification

In this step, the use cases of the IoT system are formally described based on and derived from the purpose and requirement specifications.

7 of 31

8 of 31

9 of 31

3.Domain Model Specification

10 of 31

11 of 31

Information Model Specification:

  • Information model defines structure of the information in the IoT system. EX: attributes of virtual entities, relations etc…
  • In the home automation there are two virtual entities-virtual entity is the light appliance(with attribute-light state) and virtual entity for the room(with attribute-light level)

12 of 31

13 of 31

5) Service specifications:

Service specifications define the services in the IoT system, service types, service inputs/output, service schedules, service preconditions and service effects.

14 of 31

15 of 31

16 of 31

17 of 31

6) Level Specification

The sixth step is the iot design methodology to define the IOT levels for the system.

Ex: Home Automation IOT System Which Is Level-1

18 of 31

19 of 31

7) The functional view specification:

  • The FV Defines The Functions Of The IOT Systems Grouped In To Various Functional Groups(fgs).
  • Each Functional Group Either Provides Functionalities For Interacting With Instances Of Concept Defined In The Domain Model Or Provides Information Related To These Concepts.

The Functional Groups (Fg) Included In A Functional View Include:

Device:the Device FG Contains Devices For Monitoring And Control. In The Home Automation Example,the Device FG Includes A Single Board Mini-computer,a Light.

20 of 31

Communication:The communication FG includes the communication protocols that from the backbone of IOT systems and enable network connectivity.

  • The communication FG also includes the communication APIs such as RESETand Websocket.that are used by the services and applications to exchange data over the network.

Ex: In the home automation the communication protocol include 802.119(linK layer),IPv4/IPv6(network layer),TCP(transport layer)and HTTP(application layer)

Services: Services for device monitoring,device control services,data publishing services and services for device discovery.

Ex: in home automation there are two REST services(mode and state service) and one native service(controller service).

21 of 31

Management:The management FG includes all functionalities that are needed to configure and manage IOT system.

Security: the security FG includes machanisms for the IOT system such as authentication,authorization,data security etc…

Application:the application FG includes applications that provide an interface to users to control and monitor various aspects of the iot system.

22 of 31

23 of 31

24 of 31

8) Operational view specification

Operations are defined such as service hosting options,storage options,application hosting options etc..

25 of 31

26 of 31

27 of 31

9) Device and component integration:

The ninth step in the IoT design methodology is the integration of the devices and components. Figure shows a schematic diagram of the home automation IoT system. The devices and components used used in this example are Rasberry Pi mini computer, LDR sensor and relay switch actuator.

28 of 31

29 of 31

10)Application development:

The final step in the IoT design methodology is to develop the IoT application. Figure 5.13 shows a screenshot of the automation web application. The application has controls for the mode(auto on or off) and light(on or off). In the auto mode, the IOT system controls the light appliances automatically based on the lighting conditions in the room. When auto mode is enabled the light control in the application is disabled and it reflects the current state of the light. When the auto mode is disabled the light control is enabled and it is used manually controlling the light.

30 of 31

31 of 31

Motivation For Using Python:

  • Python is a minimalistic language with english-like keywords and fewer syntactical constructions as compared to other languages.this makes python eaiser to learn and understand,
  • Python code is compact as compared to other languages.
  • Python is interpreted language and does not require an explist complition step.
  • The python interpreter converts the python code to the inermediate byte code,specific to the system.
  • Python is supported on wide range of platforms,hence python code is easily web applications.

Ex: Python web applications developed with python web frameworks such as Django.

Ex: Analysis components i.e machine learning components developed using python libraries such as scikit-learn.