Week 5
Week 5
Week 5
Global Heterogeneity:
Heterogeneous IoT devices and their subnets
Semantic Conflicts:
Different processing logics applied to same IoT networked devices or applications.
Interoperability is a characteristic of a product or system, whose interfaces are completely understood, to work with other
products or systems, present or future, in either implementation or access, without any restrictions.
Communicate meaningfully
Exchange data or services
Need:
To fulfill the IoT objectives
Physical objects can interact with any other physical objects and can share their information
Any device can communicate with other devices anytime from anywhere
Machine to Machine communication(M2M), Device to Device Communication (D2D), Device to Machine Communication
(D2M)
Seamless device integration with IoT network
As an example for sensor node: TinyOS, SOS, Mantis OS, RETOS, and mostly vendor specific OS
As an example for personal computer: Windows, Mac, Unix, and Ubuntu
Different databases: DB2, MySQL, Oracle, PostgreSQL, SQLite, SQL Server, and Sybase
Different data representations
Different control models
Syntactic or semantic interpretations
User Interoperability
Interoperability problem between a user and a device
Device Interoperability
Interoperability problem between two different devices
User Interoperability
The following problems need to be solved
Device identification and categorization for discovery
Syntactic interoperability for device interaction
Semantic interoperability for device interaction
eCl@ss **
The standard is for classification and clear description of
cross-industry products
✔ The interoperability between devices and device user in term of message formats
✔ The message format from a device to a user is understandable for the user’s computer
✔ On the other hand, the message format from the user to the device is executable by the device
Middleware technology
Software middleware bridge
Dynamically map physical devices with different domains
Based on the map, the devices can be discovered and controlled, remotely
▪ The device can understand the meaning of user’s instruction that is sent from the user to the device.
▪ Semantic conflict refers to different processing logics applied to same IoT networked devices or applications.
▪ Similarly, the user can understand the meaning of device’s response sent from the device.
▪ UMB consists
UMB Core (UMB-C) : routing the universal metadata
message to the destination
UMB Adaptor (UMB-A): UMB Adaptors translate the local
middleware’s message into global metadata’s message The Architecture of Universal Middleware Bridge
Accepts analog and digital signals as input and Clock Speed 16MHz
gives desired output
Digital I/O 14
Analog Input 6
No extra hardware required to load a program into
the controller board PWM 6
UART 1
Interface USB via ATMega16U2
Set Up
Power the board by connecting it to a PC via USB cable
Launch the Arduino IDE
Set the board type and the port for the board
TOOLS -> BOARD -> select your board
TOOLS -> PORT -> select your port
Void Long
Int Char
Boolean Unsigned char
Byte Unsigned int
Word Unsigned long
Float Double
Array String-char array
Void Long
IIT Kharagpur Introduction to Internet of Things Week 5 22
Arduino Function Libraries
Input/Output Functions:
The arduino pins can be configured to act as input or output pins using the pinMode() function
Void setup ()
{
pinMode (pin , mode);
} digitalWrite() : Writes a HIGH or LOW value to a digital pin
Pin- pin number on the Arduino board analogRead() : Reads from the analog input pin i.e., voltage
Mode- INPUT/OUTPUT applied across the pin
<Datatype> array_name[size];
Ex: int arre[5];
Alternative Declaration:
int arre[]={0,1,2,3,4};
int arre[5]={0,1,2};
randomSeed(int v): reset the pseudo-random number generator with seed value v
Mechanical/Electro-mechanical device
Converts energy into motion
Mainly used to provide controlled motion to other components
Servo Motor
High precision motor
Provides rotary motion 0 to 180 degree
3 wires in the Servo motor
Black or the darkest one is Ground
Red is for power supply
Yellow for signal pin
Arduino provides different library- SERVO
to operate the servo motor
Create an instance of servo to use it in the
sketch
Servo myservo;
Does 6LoWPAN allow interoperability between IEEE802.15.4-based wireless devices, as well as other IP-based devices?
a. Yes
b. No
c. Not Applicable
Does 6LoWPAN allow interoperability between IEEE802.15.4-based wireless devices, as well as other IP-based devices?
a. Yes
b. No
c. Not Applicable
6LoWPAN allows interoperability between IEEE802.15.4-based wireless devices, as well as other IP-based
devices.
a. Electro-magnetism
b. PWM
c. Magnetism
d. None of these
a. Electro-magnetism
b. PWM
c. Magnetism
d. None of these
Servo motor works on PWM (Pulse width modulation) principle, means its angle of rotation is controlled by the
duration of applied pulse to its Control PIN.
• Which of the following is NOT a commonly available Arduino boards in the market?
a. Arduino Uno
b. Arduino Mega
c. Arduino Nano
d. Arduino Dyu
• Which of the following is NOT a commonly available Arduino boards in the market?
a. Arduino Uno
b. Arduino Mega
c. Arduino Nano
d. Arduino Dyu
• Different processing logics applied to same IoT networked devices or applications is classified as _______________.
a. Semantic conflict
b. Configuration conflict
c. Processing conflict
d. Heterogeneity conflict
• Different processing logics applied to same IoT networked devices or applications is classified as _______________.
a. Semantic conflict
b. Configuration conflict
c. Processing conflict
d. Heterogeneity conflict
a. Arduino exchange messages with the Serial Monitor at a data rate of 9600 bytes per second.
b. 9600 represent binary ones or zeros per second.
c. Both Arduino exchange messages with the Serial Monitor at a data rate of 9600 bytes per second and 9600
represent binary ones or zeros per second.
d. Arduino exchange messages with the Serial Monitor for 9600 simulation time.
a. Arduino exchange messages with the Serial Monitor at a data rate of 9600 bytes per second.
b. 9600 represent binary ones or zeros per second.
c. Both Arduino exchange messages with the Serial Monitor at a data rate of 9600 bytes per second and 9600
represent binary ones or zeros per second.
d. Arduino exchange messages with the Serial Monitor for 9600 simulation time.
a. ecl@ss
b. UNSPSC
c. Both UNSPSC and ecl@ss
d. None of these
a. ecl@ss
b. UNSPSC
c. Both UNSPSC and ecl@ss
d. None of these
• Which of the following is TRUE for the sketch command given below?
delay(1000);
• Which of the following is TRUE for the sketch command given below?
delay(1000);
a. Array
b. String object
c. Both array and string object
d. None of these
a. Array
b. String object
c. Both array and string object
d. None of these
• In syntactic interoperability between devices and device user, the message format from the user to the device is
_____________ by the device.
a. understandable
b. executable
c. Both understandable and executable
d. None of the above
• In syntactic interoperability between devices and device user, the message format from the user to the device is
_____________ by the device.
a. understandable
b. executable
c. Both understandable and executable
d. None of the above
• In a sketch, which of the following function initializes I/O variables and pin modes?
a. initialize()
b. loop()
c. init()
d. setup()
• In a sketch, which of the following function initializes I/O variables and pin modes?
a. initialize()
b. loop()
c. init()
d. setup()
• Which does pin 3 (from left to right, as shown in the figure below) in a digital humidity and temperature sensor
signify?
a. Power supply
b. Data
c. Ground
d. None of these
• Which does pin 3 (from left to right, as shown in the figure below) in a digital humidity and temperature sensor
signify?
a. Power supply
b. Data
c. Ground
d. None of these
a. LonWorks
b. Dropbox
c. ThingSpeak
d. All of these
a. LonWorks
b. Dropbox
c. ThingSpeak
d. All of these
LonWorks® is an open and interoperable system for building automation and is characterized by its flexible topology
and cross-system functions.
Refer to the book: S. Misra, A. Mukherjee, and A. Roy, 2020. Introduction to IoT.
Cambridge University Press.
a. Mesh
b. Star
c. Both mesh and star
d. Grid
a. Mesh
b. Star
c. Both mesh and star
d. Grid
UMB creates virtual maps among the __________ of all middleware home networks.
a. Virtual devices
b. Physical devices
c. Heterogeneous devices
d. Services
UMB creates virtual maps among the __________ of all middleware home networks.
a. Virtual devices
b. Physical devices
c. Heterogeneous devices
d. Services
UMB creates virtual maps among the physical devices of all the home networks such as HAVI, Jini, LonWorks, and
UPnP.
UMB converts physical devices into virtually abstracted one and translates local middleware’s message into global
metadata’s message.
What is sketch?
What is sketch?
Sketch is the program coded in Arduino IDE which mainly consists of two parts setup() and loop.
a. Semantic conflict.
b. Syntactic conflict.
c. System conflict.
d. Device conflict.
a. Semantic conflict.
b. Syntactic conflict.
c. System conflict.
d. Device conflict.
Semantic conflict occurs when different processing logics are applied to same IoT networked devices or applications.
a. 14
b. 54
c. 11
d. 16
a. 14
b. 54
c. 11
d. 16
a. Collaborative concept
b. Middleware technology
c. End devices
d. Cloud
a. Collaborative concept
b. Middleware technology
c. End devices
d. Cloud
Which of the following ontology utilize previous data to estimate what is going to happen?
a. Device ontology
b. Physical domain ontology
c. Estimation ontology
d. Virtual domain ontology
Which of the following ontology utilize previous data to estimate what is going to happen?
a. Device ontology
b. Physical domain ontology
c. Estimation ontology
d. Virtual domain ontology
a. UMB-A
b. UMB-C
c. UDT mapping
d. UMB-B
a. UMB-A
b. UMB-C
c. UDT mapping
d. UMB-B
a. Systematic interoperability.
b. Semantic interoperability.
c. Syntactic interoperability.
d. Device interoperability.
a. Systematic interoperability.
b. Semantic interoperability.
c. Syntactic interoperability.
d. Device interoperability.
Suppose that an IoT sensor node A works on wireless WiFi and senses pressure as a physical parameter in integer
number, and another IoT node B operates on IEEE 802.15.4 Zigbee and senses humidity as a floating point (decimal)
number. In this context, which among the following correctly describes the issues with the deployment.
a. Heterogeneity
b. Interoperability
c. Both heterogeneity and interoperability
d. Neither heterogeneity and interoperability
Suppose that an IoT sensor node A works on wireless WiFi and senses pressure as a physical parameter in integer
number, and another IoT node B operates on IEEE 802.15.4 Zigbee and senses humidity as a floating point (decimal)
number. In this context, which among the following correctly describes the issues with the deployment.
a. Heterogeneity
b. Interoperability
c. Both heterogeneity and interoperability
d. Neither heterogeneity and interoperability
Which UMB interoperability component is responsible for converting physical devices into virtually
abstracted ones?
a. UMB Adaptor
b. UMB Core
c. UMB Hypervisor
d. UMB Abstractor
Which UMB interoperability component is responsible for converting physical devices into virtually
abstracted ones?
a. UMB Adaptor
b. UMB Core
c. UMB Hypervisor
d. UMB Abstractor
a. Another user
b. Device
c. Both user and device
d. None of these
a. Another user
b. Device
c. Both user and device
d. None of these
a. eCl@ss
b. UNSPSC
c. EPC
d. Both (b) and (c)
a. eCl@ss
b. UNSPSC
c. EPC
d. Both (b) and (c)
a. Flow Table
b. Routing Table
c. Middleware Routing Table
d. Middleware Flow Table
a. Flow Table
b. Routing Table
c. Middleware Routing Table
d. Middleware Flow Table
The tool used to select a particular COM port for connecting Arduino to a serial connector is
called a sketch.
a. True
b. False
The tool used to select a particular COM port for connecting Arduino to a serial connector is
called a sketch.
a. True
b. False
Which kind of conflict occur when different processing logic are applied to same IoT
networked devices or applications?
a. Semantic conflict.
b. Syntactic conflict.
c. System conflict.
d. Device conflict.
Which kind of conflict occur when different processing logic are applied to same IoT
networked devices or applications?
a. Semantic conflict.
b. Syntactic conflict.
c. System conflict.
d. Device conflict.
a. 1
b. 2
c. 3
d. 4
a. 1
b. 2
c. 3
d. 4
a. 14
b. 54
c. 11
d. 16
a. 14
b. 54
c. 11
d. 16
a. 14
b. 54
c. 11
d. 16
a. Sensors
b. Actuators
c. Gateways
d. Routers
a. Sensors
b. Actuators
c. Gateways
d. Routers
a. main()
b. loop() and main()
c. setup() and loop()
d. setup() and main()
a. main()
b. loop() and main()
c. setup() and loop()
d. setup() and main()
A programmer is writing a Python code having several functions. S/he needs to use a variable that can be
accessed from any function present in the program. Additionally, the value of that variable may vary. Which of
the following variable types satisfy such criteria.
a. Local variable
b. Constant variable
c. Global variable
d. All of these
A programmer is writing a Python code having several functions. S/he needs to use a variable that can be
accessed from any function present in the program. Additionally, the value of that variable may vary. Which of
the following variable types satisfy such criteria.
a. Local variable
b. Constant variable
c. Global variable
d. All of these
What function is useful for generating the same set of random numbers every time a program is run?
a. randomgen()
b. randomint()
c. randomseed()
d. constrandom()
What function is useful for generating the same set of random numbers every time a program is run?
a. randomgen()
b. randomint()
c. randomseed()
d. constrandom()
a. True
b. False
a. True
b. False
When two IoT devices wish to communicate, semantic conflict in such a scenario in IoT
interoperability refers to____________________.
When two IoT devices wish to communicate, semantic conflict in such a scenario in IoT
interoperability refers to____________________.
Which of the following issues needs to be addressed while solving user interoperability?
Which of the following issues needs to be addressed while solving user interoperability?
Which UMB interoperability component is responsible for converting physical devices into virtually
abstracted ones?
a. UMB Adaptor
b. UMB Core
c. UMB Hypervisor
d. UMB Abstractor
Which UMB interoperability component is responsible for converting physical devices into virtually
abstracted ones?
a. UMB Adaptor
b. UMB Core
c. UMB Hypervisor
d. UMB Abstractor
a. True
b. False
a. True
b. False
a. A
b. B
c. C
d. D
a. A
b. B
c. C
d. D
a. ATM series
b. X86 series
c. ARM 64 series
d. ATMEGA series
a. ATM series
b. X86 series
c. ARM 64 series
d. ATMEGA series
a. False
b. True
a. False
b. True
a. digitalRead()
b. analogWrite()
c. analogRead()
d. None of these
a. digitalRead()
b. analogWrite()
c. analogRead()
d. None of these
a. INPUT
b. OUTPUT
c. None of these
d. Anyone of these is okay
a. INPUT
b. OUTPUT
c. None of these
d. Anyone of these is okay
a. True
b. False
a. True
b. False
a. Pneumatic actuator
b. Motor type actuator
c. Electro-mechanical switch
d. Thermal switch
a. Pneumatic actuator
b. Motor type actuator
c. Electro-mechanical switch
d. Thermal switch