SlideShare ist ein Scribd-Unternehmen logo
1 von 6
Downloaden Sie, um offline zu lesen
Kongu Engineering College
Continuous Assessment Test-2
18CST63 Mobile Communication and IoT
1) Role of Things in IoT:
-Things refer to IoT devices that have unique identities
-It can perform remote sensing, actuating and monitoring capabilities
- It can exchange data with other connected devices and applications or collect data
from other devices and process either locally or send the data to centralized servers or cloud
based application back-ends for processing the data or perform some tasks locally and other
tasks within the IoT infrastructure based on temporal and space constraints
2) IoT Level for controlling air conditioner:
Ans: Level-1
3) Characteristics of Bigdata:
 Volume
 Variety
 Velocity
4) Functional Blocks of IOT:
 Application
 Device
 Management
 Security
 Communication
 Services
5) Purpose of information model:
 It defines the structure of all the information in IoT system
 It does not describe the specifics of how the information is represented or stored
 For virtual entities in the domain model, information model adds more details to it by
defining their attributes and relations
6) Generic Block diagram of IoT:
7) Interfaces used for data transfer in Raspberry Pi:
 Serial
 SPI
 I2C
8) Python program for LED (output pin:15):
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(15,GPIO.OUT)
While True:
GPIO.output(15,True)
Time.sleep(10)
GPIO.output(15,False)
Time.sleep(20)
9) IoT and M2M:
Criteria M2M IoT
Communication Focus below Network Layer Focus above Network Layer
Machines Homogeneous Machine
Type
Heterogeneous Machine
Type
Hardware vs Software Emphasis is on hardware Emphasis is on software
Storage On-premises storage Data is collected in cloud
10)Various layers of protocol:
PART-B
11) i) Different communication models: (6 Marks)
1. Request Response Communication Model
Client sends the request and the server responds to the request
2. Push-Pull Communication Model
Data producers push the data to queues and the consumers pull the data from the
queues
3. Publish Subscribe Communication Model
It involves Publishers, brokers and consumers
Publishers are the source of data
Consumers subscribe to the topic managed by the broker
4. Exclusive Pair Communication Model
It is bidirectional, fully duplex communication model that uses a persistent connection
between the client and the server
ii) Role of IOT in Home Automation: (any 2 applications) (4 Marks)
 Smart Lighting
 Smart Appliances
 Intrusion detection
 Smoke/Gas detector
13) i) Python program for Traffic light with Raspberry Pi: (5
Marks)
import time, random, RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
LED_RED = 2
LED_AMBER = 3
LED_GREEN = 4
def setupgpio():
GPIO.setup(LED_RED, GPIO.OUT)
GPIO.setup(LED_AMBER, GPIO.OUT)
GPIO.setup(LED_GREEN, GPIO.OUT)
def red (val):
GPIO.output (LED_RED, LEDON)
GPIO.output (LED_AMBER, LEDOFF)
GPIO.output (LED_GREEN, LEDOFF)
time.sleep(val)
def amber (val):
GPIO.output (LED_RED, LEDOFF)
GPIO.output (LED_AMBER, LEDON)
GPIO.output (LED_GREEN, LEDOFF)
time.sleep(val)
def green (val):
GPIO.output (LED_RED, LEDOFF)
GPIO.output (LED_AMBER, LEDOFF)
GPIO.output (LED_GREEN, LEDON)
time.sleep(val)
def basicSequence (val):
count = 0
while count < val:
red (5)
amber (3)
green (10)
count += 1
while True:
setupgpio( )
basicSequence (5)
GPIO.cleanup( )
exit( )
ii) Python packages for IoT: (5 Marks)
 JSON
 XML
 HTTPLib and URLLib
 SMTPLib
(Example of any two packages)
12. Design: (8 Marks)
 Purpose & Requirements Specification
 Process Specification
 Domain Model Specification
 Information Model Specification
 Service Specifications
 IoT Level Specification (Level 4/Level 5/Level 6)
 Functional View Specification
 Operational View Specification
 Device & Component Integration
 Application Development
Components: (2 Marks)
 Leakage detection Sensor
 Expiry date indication Sensor
 Accelerometer
 Gyroscope
14. IoT monitoring for air pollution: (10 Marks)
a) Communication Protocol : Bluetooth/ Zigbee/ Wifi/ Cellular/LoRaWan
b) Communication Model: Request Response /Push Pull/ Exclusive Pair/ Publish Subscribe
c) Enabling Technologies: Wireless Sensor Network/Cloud Computing/Big data
analytics/Commnication Protocols/ Embedded systems
d) Application Layer Design: Suitable protocol
e) Communication APIs: REST – Based / WebSocket – Based
f) Process specification Diagram:
(1 Mark each and 4 Marks for Justification)

Weitere ähnliche Inhalte

Ähnlich wie CAT-II Answer Key.pdf

What we've done so far with mago3D, an open source based 'Digital Twin' platf...
What we've done so far with mago3D, an open source based 'Digital Twin' platf...What we've done so far with mago3D, an open source based 'Digital Twin' platf...
What we've done so far with mago3D, an open source based 'Digital Twin' platf...
SANGHEE SHIN
 
Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Implementation of vehicle ventilation system using node mcu esp8266 for remot...Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Journal Papers
 
Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Implementation of vehicle ventilation system using node mcu esp8266 for remot...Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Conference Papers
 

Ähnlich wie CAT-II Answer Key.pdf (20)

IRJET - IoT based Facial Recognition Quadcopter using Machine Learning Algorithm
IRJET - IoT based Facial Recognition Quadcopter using Machine Learning AlgorithmIRJET - IoT based Facial Recognition Quadcopter using Machine Learning Algorithm
IRJET - IoT based Facial Recognition Quadcopter using Machine Learning Algorithm
 
IOT based Industrial Automation using Raspberry Pi
IOT based Industrial Automation using  Raspberry PiIOT based Industrial Automation using  Raspberry Pi
IOT based Industrial Automation using Raspberry Pi
 
ARIMA Based Weather Prediction Model using IoT and Open Source Data
ARIMA Based Weather Prediction Model using IoT and Open Source DataARIMA Based Weather Prediction Model using IoT and Open Source Data
ARIMA Based Weather Prediction Model using IoT and Open Source Data
 
IoT Based Advertising System
IoT Based Advertising SystemIoT Based Advertising System
IoT Based Advertising System
 
Using Zabbix in IoT Architecture
Using Zabbix in IoT ArchitectureUsing Zabbix in IoT Architecture
Using Zabbix in IoT Architecture
 
What we've done so far with mago3D, an open source based 'Digital Twin' platf...
What we've done so far with mago3D, an open source based 'Digital Twin' platf...What we've done so far with mago3D, an open source based 'Digital Twin' platf...
What we've done so far with mago3D, an open source based 'Digital Twin' platf...
 
Internet of things Unit I
Internet of things   Unit IInternet of things   Unit I
Internet of things Unit I
 
IoT ( M2M) - Big Data - Analytics: Emulation and Demonstration
IoT ( M2M) - Big Data - Analytics: Emulation and DemonstrationIoT ( M2M) - Big Data - Analytics: Emulation and Demonstration
IoT ( M2M) - Big Data - Analytics: Emulation and Demonstration
 
Monitoring AC Drive by using RS485 & GSM Module
Monitoring AC Drive by using RS485 & GSM ModuleMonitoring AC Drive by using RS485 & GSM Module
Monitoring AC Drive by using RS485 & GSM Module
 
IRJET- IoT Based Swachch Bharat Abhiyan
IRJET-	 IoT Based Swachch Bharat AbhiyanIRJET-	 IoT Based Swachch Bharat Abhiyan
IRJET- IoT Based Swachch Bharat Abhiyan
 
IRJET- Machine Learning for Weather Prediction and Forecasting for Local Weat...
IRJET- Machine Learning for Weather Prediction and Forecasting for Local Weat...IRJET- Machine Learning for Weather Prediction and Forecasting for Local Weat...
IRJET- Machine Learning for Weather Prediction and Forecasting for Local Weat...
 
Paper id 27201415
Paper id 27201415Paper id 27201415
Paper id 27201415
 
Pradeep_Embedded
Pradeep_EmbeddedPradeep_Embedded
Pradeep_Embedded
 
IRJET- Iot based Interactive Display Unit using Raspberry PI
IRJET- Iot based Interactive Display Unit using Raspberry PIIRJET- Iot based Interactive Display Unit using Raspberry PI
IRJET- Iot based Interactive Display Unit using Raspberry PI
 
IRJET- IoT and Bigdata Analytics Approach using Smart Home Energy Managem...
IRJET-  	  IoT and Bigdata Analytics Approach using Smart Home Energy Managem...IRJET-  	  IoT and Bigdata Analytics Approach using Smart Home Energy Managem...
IRJET- IoT and Bigdata Analytics Approach using Smart Home Energy Managem...
 
Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Implementation of vehicle ventilation system using node mcu esp8266 for remot...Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Implementation of vehicle ventilation system using node mcu esp8266 for remot...
 
Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Implementation of vehicle ventilation system using node mcu esp8266 for remot...Implementation of vehicle ventilation system using node mcu esp8266 for remot...
Implementation of vehicle ventilation system using node mcu esp8266 for remot...
 
UBIQUITOUS NETWORK TECHNICAL ROOM MONITORING SYSTEM MODEL USING WEB SERVICE
UBIQUITOUS NETWORK TECHNICAL ROOM MONITORING SYSTEM MODEL USING WEB SERVICE UBIQUITOUS NETWORK TECHNICAL ROOM MONITORING SYSTEM MODEL USING WEB SERVICE
UBIQUITOUS NETWORK TECHNICAL ROOM MONITORING SYSTEM MODEL USING WEB SERVICE
 
IRJET- Implementation of Cloud Robotics using Raspberry PI to Monitor Product...
IRJET- Implementation of Cloud Robotics using Raspberry PI to Monitor Product...IRJET- Implementation of Cloud Robotics using Raspberry PI to Monitor Product...
IRJET- Implementation of Cloud Robotics using Raspberry PI to Monitor Product...
 
The Design and Implementation of Intelligent Campus Security Tracking System
The Design and Implementation of Intelligent Campus Security Tracking SystemThe Design and Implementation of Intelligent Campus Security Tracking System
The Design and Implementation of Intelligent Campus Security Tracking System
 

Mehr von Selvaraj Seerangan

Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...
Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...
Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...
Selvaraj Seerangan
 
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
Selvaraj Seerangan
 

Mehr von Selvaraj Seerangan (20)

Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...
Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...
Unit 2,3,4 _ Internet of Things A Hands-On Approach (Arshdeep Bahga, Vijay Ma...
 
Unit 5 _ Fog Computing .pdf
Unit 5 _ Fog Computing .pdfUnit 5 _ Fog Computing .pdf
Unit 5 _ Fog Computing .pdf
 
CAT III Answer Key.pdf
CAT III Answer Key.pdfCAT III Answer Key.pdf
CAT III Answer Key.pdf
 
END SEM _ Design Thinking _ 16 Templates.pptx
END SEM _ Design Thinking _ 16 Templates.pptxEND SEM _ Design Thinking _ 16 Templates.pptx
END SEM _ Design Thinking _ 16 Templates.pptx
 
Design Thinking _ Complete Templates.pptx
Design Thinking _ Complete Templates.pptxDesign Thinking _ Complete Templates.pptx
Design Thinking _ Complete Templates.pptx
 
CAT 3 _ List of Templates.pptx
CAT 3 _ List of Templates.pptxCAT 3 _ List of Templates.pptx
CAT 3 _ List of Templates.pptx
 
[PPT] _ Unit 5 _ Evolve.pptx
[PPT] _ Unit 5 _ Evolve.pptx[PPT] _ Unit 5 _ Evolve.pptx
[PPT] _ Unit 5 _ Evolve.pptx
 
[PPT] _ Unit 4 _ Engage.pptx
[PPT] _ Unit 4 _ Engage.pptx[PPT] _ Unit 4 _ Engage.pptx
[PPT] _ Unit 4 _ Engage.pptx
 
[PPT] _ Unit 3 _ Experiment.pptx
[PPT] _ Unit 3 _ Experiment.pptx[PPT] _ Unit 3 _ Experiment.pptx
[PPT] _ Unit 3 _ Experiment.pptx
 
CAT 2 _ List of Templates.pptx
CAT 2 _ List of Templates.pptxCAT 2 _ List of Templates.pptx
CAT 2 _ List of Templates.pptx
 
Design Thinking - Empathize Phase
Design Thinking - Empathize PhaseDesign Thinking - Empathize Phase
Design Thinking - Empathize Phase
 
PSP LAB MANUAL.pdf
PSP LAB MANUAL.pdfPSP LAB MANUAL.pdf
PSP LAB MANUAL.pdf
 
18CSL51 - Network Lab Manual.pdf
18CSL51 - Network Lab Manual.pdf18CSL51 - Network Lab Manual.pdf
18CSL51 - Network Lab Manual.pdf
 
DS LAB MANUAL.pdf
DS LAB MANUAL.pdfDS LAB MANUAL.pdf
DS LAB MANUAL.pdf
 
CAT 1 _ List of Templates.pptx
CAT 1 _ List of Templates.pptxCAT 1 _ List of Templates.pptx
CAT 1 _ List of Templates.pptx
 
[PPT] _ UNIT 1 _ COMPLETE.pptx
[PPT] _ UNIT 1 _ COMPLETE.pptx[PPT] _ UNIT 1 _ COMPLETE.pptx
[PPT] _ UNIT 1 _ COMPLETE.pptx
 
CAT-1 Answer Key.doc
CAT-1 Answer Key.docCAT-1 Answer Key.doc
CAT-1 Answer Key.doc
 
Unit 3 Complete.pptx
Unit 3 Complete.pptxUnit 3 Complete.pptx
Unit 3 Complete.pptx
 
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
 
[PPT] _ Unit 2 _ Complete PPT.pptx
[PPT] _ Unit 2 _ Complete PPT.pptx[PPT] _ Unit 2 _ Complete PPT.pptx
[PPT] _ Unit 2 _ Complete PPT.pptx
 

Kürzlich hochgeladen

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Kürzlich hochgeladen (20)

Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

CAT-II Answer Key.pdf

  • 1. Kongu Engineering College Continuous Assessment Test-2 18CST63 Mobile Communication and IoT 1) Role of Things in IoT: -Things refer to IoT devices that have unique identities -It can perform remote sensing, actuating and monitoring capabilities - It can exchange data with other connected devices and applications or collect data from other devices and process either locally or send the data to centralized servers or cloud based application back-ends for processing the data or perform some tasks locally and other tasks within the IoT infrastructure based on temporal and space constraints 2) IoT Level for controlling air conditioner: Ans: Level-1 3) Characteristics of Bigdata:  Volume  Variety  Velocity 4) Functional Blocks of IOT:  Application  Device  Management  Security  Communication  Services
  • 2. 5) Purpose of information model:  It defines the structure of all the information in IoT system  It does not describe the specifics of how the information is represented or stored  For virtual entities in the domain model, information model adds more details to it by defining their attributes and relations 6) Generic Block diagram of IoT: 7) Interfaces used for data transfer in Raspberry Pi:  Serial  SPI  I2C 8) Python program for LED (output pin:15): import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(15,GPIO.OUT) While True: GPIO.output(15,True) Time.sleep(10) GPIO.output(15,False) Time.sleep(20) 9) IoT and M2M: Criteria M2M IoT Communication Focus below Network Layer Focus above Network Layer Machines Homogeneous Machine Type Heterogeneous Machine Type Hardware vs Software Emphasis is on hardware Emphasis is on software Storage On-premises storage Data is collected in cloud
  • 3. 10)Various layers of protocol: PART-B 11) i) Different communication models: (6 Marks) 1. Request Response Communication Model Client sends the request and the server responds to the request 2. Push-Pull Communication Model Data producers push the data to queues and the consumers pull the data from the queues
  • 4. 3. Publish Subscribe Communication Model It involves Publishers, brokers and consumers Publishers are the source of data Consumers subscribe to the topic managed by the broker 4. Exclusive Pair Communication Model It is bidirectional, fully duplex communication model that uses a persistent connection between the client and the server ii) Role of IOT in Home Automation: (any 2 applications) (4 Marks)  Smart Lighting  Smart Appliances  Intrusion detection  Smoke/Gas detector 13) i) Python program for Traffic light with Raspberry Pi: (5 Marks) import time, random, RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) LED_RED = 2 LED_AMBER = 3 LED_GREEN = 4 def setupgpio(): GPIO.setup(LED_RED, GPIO.OUT) GPIO.setup(LED_AMBER, GPIO.OUT)
  • 5. GPIO.setup(LED_GREEN, GPIO.OUT) def red (val): GPIO.output (LED_RED, LEDON) GPIO.output (LED_AMBER, LEDOFF) GPIO.output (LED_GREEN, LEDOFF) time.sleep(val) def amber (val): GPIO.output (LED_RED, LEDOFF) GPIO.output (LED_AMBER, LEDON) GPIO.output (LED_GREEN, LEDOFF) time.sleep(val) def green (val): GPIO.output (LED_RED, LEDOFF) GPIO.output (LED_AMBER, LEDOFF) GPIO.output (LED_GREEN, LEDON) time.sleep(val) def basicSequence (val): count = 0 while count < val: red (5) amber (3) green (10) count += 1 while True: setupgpio( ) basicSequence (5) GPIO.cleanup( ) exit( ) ii) Python packages for IoT: (5 Marks)  JSON  XML  HTTPLib and URLLib  SMTPLib (Example of any two packages) 12. Design: (8 Marks)  Purpose & Requirements Specification  Process Specification  Domain Model Specification  Information Model Specification  Service Specifications  IoT Level Specification (Level 4/Level 5/Level 6)
  • 6.  Functional View Specification  Operational View Specification  Device & Component Integration  Application Development Components: (2 Marks)  Leakage detection Sensor  Expiry date indication Sensor  Accelerometer  Gyroscope 14. IoT monitoring for air pollution: (10 Marks) a) Communication Protocol : Bluetooth/ Zigbee/ Wifi/ Cellular/LoRaWan b) Communication Model: Request Response /Push Pull/ Exclusive Pair/ Publish Subscribe c) Enabling Technologies: Wireless Sensor Network/Cloud Computing/Big data analytics/Commnication Protocols/ Embedded systems d) Application Layer Design: Suitable protocol e) Communication APIs: REST – Based / WebSocket – Based f) Process specification Diagram: (1 Mark each and 4 Marks for Justification)