��Module-4��IoT Platforms Design Methodology�Chapter 5.1 -5.2 and 5.3 case study(optional)��
�IoT Platforms Design Methodology�
Introduction
IoT System Overview
Complexity in Design
Design Challenges
Introduction
Design Challenges contd..
Introduction
Proposed IoT Design Methodology
loT Design Methodology
Figure 5.1: Steps involved in IoT system design methodology
IoT Design Methodology – Smart Home Automation Example
Introduction & Overview
The 10 design steps are:
1. Purpose & Requirements
2. Process Model
3. Domain Model
4. Information Model
5. Service Specification
6. IoT Level
7. Functional View
8. Operational View
9. Integration
10. Application Development.
Physical vs Virtual Entities in IoT Design
Conceptual Difference
An IoT system models every real-world object (the Physical Entity) with a corresponding digital representation called a Virtual Entity. The Physical Entity exists in the tangible world and interacts with the environment, while the Virtual Entity mirrors its state, stores data, and enables monitoring or control through software.
Physical vs Virtual Entity – Comparison Table
Aspect | Physical Entity | Virtual Entity |
Definition | Real-world object that can be sensed or controlled. | Digital twin representing the physical object in software. |
Existence | Exists in the physical environment (hardware). | Exists in cyberspace as data structures or services. |
Example (Smart Home) | Light bulb, LDR sensor, room. | Light_VE and Room_VE (software representations). |
Function | Performs real sensing or actuation. | Stores and updates attributes like light_state or light_level. |
Data Source | Provides sensor readings and actuator states. | Receives updates and sends control instructions. |
Purpose | Carry out the real physical operation. | Enable digital monitoring, analysis, and control. |
Linkage | Connected via IoT device such as Raspberry Pi. | Connected through APIs or databases to its physical counterpart. |
How Physical and Virtual Entities Interact
In Smart Home Automation, the Physical Entity (Light bulb) connects through Raspberry Pi hardware. The Pi reads data from the LDR sensor and executes control commands on the bulb using a relay. Meanwhile, its Virtual Entity (Light_VE) in software stores the bulb’s current state ('ON' or 'OFF'). When the user switches the light from the web interface, the Virtual Entity updates first, sending the instruction to the Physical Entity. Similarly, when the sensor detects darkness, the Controller updates the Virtual Entity before toggling the real bulb. This continuous synchronization ensures that digital and physical realities remain consistent.
Key Summary
Feature | Physical Entity | Virtual Entity |
Nature | Tangible hardware object. | Intangible software object. |
Location | Real world (house, environment). | Digital world (system database, cloud). |
Role | Executes sensing and actuation. | Represents, monitors, and controls the PE. |
Update Mechanism | Updated through sensors and actuators. | Updated through controllers and APIs. |
Example | Actual light bulb. | Digital light object (Light_VE). |
Steps 1–3
Step No. & Name | Explanation | Smart Home Automation Example |
Step 1:1. Purpose & Requirements | Defines why the system is being built and what it should achieve, including functional and non-functional requirements. | Goal: Automate light control using Auto and Manual modes. Requirements: local control, authentication, remote access. |
Step 2:Process Model | Models system behavior using process diagrams to represent decision flows and transitions. | Auto Mode: LDR detects brightness and toggles light. Manual Mode: user toggles via web interface. |
Step 3:Domain Model | Identifies main entities and relationships—both physical and virtual—along with devices and services. | Entities: Room & Light (Physical); Virtual Entities: Room_VE, Light_VE; Device: Raspberry Pi; Services: Mode, State, Controller. |
Steps 4–6: Data and System Structuring
Step No. & Name | Explanation | Smart Home Automation Example |
Step 4:Information Model | Defines data attributes and relationships between virtual entities in the IoT system. | Room → light_level; Light → light_state. Light switches ON when room brightness is low. |
Step 5: Service Specification | Specifies services that perform system tasks, including inputs, outputs, and communication endpoints. | Mode Service: Auto/Manual; State Service: ON/OFF; Controller Service: controls automation logic. |
Step 6: IoT Level | Specifies IoT level, determining where computation and storage occur (local or cloud). | IoT Level 1 – local processing on Raspberry Pi; fast and independent of cloud connectivity. |
Steps 7–9: Functional, Operational & Integration Views
Step No. & Name | Explanation | Smart Home Automation Example |
Step 7: Functional View | Groups functionalities into Functional Groups (FGs): Device, Communication, Service, Management, Security, Application. | Device FG: Raspberry Pi, LDR, Relay; Communication FG: Wi-Fi, REST API; Service FG: Controller; Application FG: Web UI. |
Step 8: Operational View | Defines operational and deployment details, including communication protocols and hosting. | Raspberry Pi hosts Django REST and MySQL locally; communicates via Wi-Fi; includes authentication. |
Step 9:Integration | Integrates hardware and software components and ensures end-to-end working before deployment. | LDR connected via ADC to GPIO pins; Relay controls light; Python script manages automation. |
Step 10 & Summary
Step No. & Name | Explanation | Smart Home Automation Example |
Step 10: Application Development | Develops the user-facing interface for monitoring and control; ensures synchronization and feedback. | Django web app allows users to switch between Auto/Manual modes and view real-time light status. |
Summary | All 10 steps ensure logical progression from system concept to implementation, promoting modularity and reliability. | Smart Home Automation demonstrates efficient local control, real-time responsiveness, and structured design. |
Step 1: Purpose & Requirements Specification
Step 2: Process Model Specification
Step 3: Domain Model Specification
Step 4: Information Model Specification
Step 5: Service Specifications
Step 6: IoT Level Specification
Step 7: Functional View Specification
Step 8: Operational View Specification
Step 9: Device & Component Integration
Step 10: Application Development
Summary and Flow
loT Design Methodology
Applying this to our example of a smart home automation system, the purpose and requirements for the system may be described as follows:
Step 1: Purpose & Requirements Specification
loT Design Methodology
loT Design Methodology
Step 2: Process Specification
Figure 5.2: Process specification for home automation IoT system
loT Design Methodology
Figure 5.2: Process specification for home automation IoT system
Understanding the Process Specification Diagram
Story Flow: Auto Mode vs Manual Mode
Connecting the Logic: Structure and Behavior
loT Design Methodology
Step 3: Domain Model Specification
loT Design Methodology
loT Design Methodology
Physical Entity :
Virtual Entity :
loT Design Methodology
Device :
loT Design Methodology
Resource :
loT Design Methodology
Service :
IoT Design Methodology – Step 3: Domain Model Specification
Detailed explanation and storytelling for Smart Home Automation example
Introduction – Building the Conceptual World
Understanding the Domain Model Diagram
Physical Entity – The Real-World Characters
Virtual Entity – The Digital Twin
Device – The Bridge Between Worlds
Resource – The Software Backbone
Service – The Interface of Interaction
Interpreting the Domain Model as a Story
Conclusion – Importance of Domain Model Specification
loT Design Methodology
Step 4: Information Model Specification
loT Design Methodology
Figure 5.4: Information model of the home automation IoT system
IoT Design Methodology – Step 4: Information Model Specification
Detailed explanation and storytelling for the Smart Home Automation example
Introduction – Defining the Information Model
Virtual Entities and Their Attributes
Storytelling – Information Model Diagram Explanation
Logical Flow and Relationships in the Information Model
Real-World Story – From Information to Action
Conclusion – Importance of the Information Model
loT Design Methodology
Step 5: Service Specifications
Figure 5.5: Deriving services from process specification and information model for home automation IoT system
loT Design Methodology
loT Design Methodology
Controller service of the home automation IoT system
Figure 5.6: Controller service of the home automation IoT system
loT Design Methodology Mode service
Figure 5.7: Service specification for home automation IoT system - mode service
loT Design Methodology State Service
Figure 5.7: Service specification for home automation IoT system - state service
loT Design Methodology
IoT Design Methodology – Step 5: Service Specifications
Detailed explanation and storytelling for the Smart Home Automation example
Introduction – Defining Service Specifications
Deriving Services from Process and Information Models
Mode Service – Managing System Behavior
State Service – Controlling the Light Appliance
Controller Service – The Core Automation Logic
Storytelling – How Services Interact
Conclusion – Role of Services in IoT Design
loT Design Methodology
Step 6: loT Level Specification
Figure 5.9: Deployment design of the home automation IoT system
IoT Design Methodology – Step 6: IoT Level Specification
Detailed explanation and storytelling for Smart Home Automation deployment design
Introduction – Understanding IoT Level Specification
Local Level Architecture – The Edge Processing Zone
REST Communication and Local Database Management
Monitoring Node and Cloud Integration Possibility
Storytelling – A Day with the Smart Home System
Conclusion – Importance of IoT Level Specification
loT Design Methodology
The Functional Groups (FG) included in a Functional View include:
Device :
Step 7: Functional View Specification
loT Design Methodology
Communication :
loT Design Methodology
Services :
loT Design Methodology
loT Design Methodology
loT Design Methodology
IoT Design Methodology – Step 7: Functional View Specification
Detailed explanation and storytelling for Smart Home Automation Functional Groups (FGs)
Introduction – Understanding Functional View Specification
Device Functional Group – The Physical Backbone
Communication Functional Group – The Network Enabler
Services Functional Group – The Operational Core
Management, Security, and Application Functional Groups
Mapping Deployment Level to Functional Groups
Storytelling – How Functional Groups Work Together
Conclusion – Importance of Functional View Specification
loT Design Methodology
Step 8: Operational View Specification
loT Design Methodology
Step 8: Operational View Specification
loT Design Methodology
loT Design Methodology
Services:
1. Controller Service - Hosted on device, implemented in Python and run as a native service.
2. Mode service - REST-ful web service, hosted on device, implemented with Django-REST Framework.
3. State service - REST-ful web service, hosted on device, implemented with Django-REST Framework.
Application:
loT Design Methodology
Security:
Management:
IoT Design Methodology – Step 8: Operational View Specification
Detailed explanation and storytelling for Smart Home Automation operational deployment
Introduction – Understanding Operational View Specification
Devices and Communication Setup
Services Hosting – The System’s Operational Core
Application and Database Hosting
Security and Management View
Storytelling – A Day in the Life of the IoT System
Conclusion – Importance of Operational View Specification
loT Design Methodology
Step 9: Device & Component Integration
IoT Design Methodology – Step 9: Device & Component Integration
Detailed explanation and storytelling for Smart Home Automation hardware integration
Introduction – Understanding Device & Component Integration
Hardware Components and Their Roles
Circuit Integration and Connections
Software-Hardware Synchronization
Storytelling – A Practical Scenario
Importance of Device & Component Integration
loT Design Methodology
Step 10: Application Development
IoT Design Methodology – Step 10: Application Development
Detailed explanation and storytelling for Smart Home Automation Application Design
Introduction – The Role of Application Development
Application Overview
Functional Workflow of the Application
Design Features and Technologies Used
Storytelling – A Real-Life Use Case
System Synchronization and User Feedback
Conclusion – Completing the IoT Design Cycle
Case Study on loT System for Weather Monitoring
Case Study on loT System for Weather Monitoring
Fig. shows the process specification for the weather monitoring system.
Case Study on loT System for Weather Monitoring
Fig. shows the domain model for the weather monitoring system.
Case Study on loT System for Weather Monitoring
Fig. shows the information model for the weather monitoring system.
Case Study on loT System for Weather Monitoring
Case Study on loT System for Weather Monitoring
Fig. shows the specification of the controller service for the weather monitoring system.
Case Study on loT System for Weather Monitoring
Case Study on loT System for Weather Monitoring
Case Study on loT System for Weather Monitoring
Fig. shows an example of mapping deployment level to functional groups for the weather monitoring system.
Case Study on loT System for Weather Monitoring
Fig shows an example of mapping functional groups to operational view specifications for the weather monitoring system
Case Study on loT System for Weather Monitoring
Figure shows a schematic diagram of the weather monitoring system.
7.1 Understanding IoT Devices
An Internet of Things (IoT) device refers to any physical object equipped with a unique identifier that can send or receive data over a network. These devices connect to the internet and exchange information either about themselves or their surroundings using embedded sensors. Through this connectivity, IoT devices enable seamless communication with servers, storage systems, and other devices. The primary purpose of IoT devices is to facilitate intelligent monitoring, remote control, and automation of various real-world systems.
How IoT Devices Work
Examples of IoT Devices
7.1.1 Basic Building Blocks of an IoT Device
An IoT device consists of several essential modules based on its functionality. The sensing module gathers data from onboard or attached sensors such as temperature, humidity, or light intensity. The actuation module performs actions on physical devices, for example switching appliances on or off. The communication module enables the transfer of collected data to servers or cloud storage and receives commands from remote applications. Finally, the analysis and processing module interprets the sensed data and enables intelligent decision-making.
Single-Board Computer (SBC) Based IoT Device
A commonly used IoT device is a single-board computer such as the Raspberry Pi. It is widely accessible, inexpensive, and supported by extensive online resources. Before examining its architecture, it is important to understand the general building blocks of an SBC-based IoT device. These include the CPU, GPU, RAM, storage, and various interfaces such as UART, SPI, I2C, CAN, SD, MMC, and audio/video modules.
Figure 7.1: Block Diagram of an IoT Device
Overview of the IoT Device Block Diagram
Core Processing and Multimedia Blocks
Interfaces, Storage, and Memory Systems
Exemplary Device: Raspberry Pi
7.3 About the Raspberry Pi Board
Processor, USB, Ethernet, and Video/Audio Interfaces
GPIO, Display, Camera, LEDs, Storage, and Power
END