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)

CAT-II Answer Key.pdf

  • 1.
    Kongu Engineering College ContinuousAssessment 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 ofinformation 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 ofprotocol: 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 SubscribeCommunication 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 ViewSpecification  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)