# thesaajii/cisco-iot-project architecture

> Architecture diagram of the GitHub repository thesaajii/cisco-iot-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thesaajii/cisco-iot-project
- Repository: https://github.com/thesaajii/cisco-iot-project

## Overview

##### Project type and purpose
- This is a network‐centric home automation simulation built entirely in Cisco Packet Tracer (.pkt file).
- Purpose: model and test a smart home that integrates multiple sensor/actuator subsystems (fire, motion, temperature, CO, door control) over a wired/wireless network.

##### File structure
- Top-level files:
- Home Automation System.pkt – the Packet Tracer project, containing all devices, connections, and configurations.
- README.md – descriptive overview, feature list, instructions.

##### Key insights from the README
- Six subsystems:
- Fire detection & sprinklers
- Motion-activated fans
- Temperature control (thermostat → HVAC)
- Wireless device integration (lights, cameras, alarms)
- CO detection & ventilation
- Door access control (keypad/biometric locks)
- All devices are configured and tested via Cisco PT’s simulation engine.

##### Elements
- Clear labels: sensor types, actuator types, network nodes (switch1, WAP_A, router).
- Sensors = green circles
- Actuators = orange rectangles
- Network devices = blue trapezoids
- Controller/UI = purple hexagons
- Zones or subnets: group by VLAN or Wi-Fi SSID if applicable.

1. Open the .pkt in Cisco Packet Tracer and list all devices in use.
3. Around the switch and WAP, position clusters of sensors and actuators for each feature area.
4. Home automation gateway (server/PC) connected to the switch.
5. Remote user PCs or mobile devices connected to the WAP.
– Smoke detector → Home gateway
– Gateway → Sprinkler module
– PIR sensor → Fan controller → Fan
– Thermostat → HVAC
– CO sensor → Ventilation
– Door keypad → Door lock

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Network Core
    subgraph "Network Core"
        direction TB
        Router["Router"]:::network
        Switch1["Switch"]:::network
        WAP1["Wireless AP"]:::network
    end

    Router --> Switch1
    Switch1 --> WAP1

    %% Controller and UI
    subgraph "Control & Management"
        direction TB
        Gateway["Home Automation Gateway"]:::controller
        UI["User Interface (PC/Mobile)"]:::controller
    end

    Switch1 --> Gateway
    WAP1 -- Wireless --> UI
    UI -->|"HTTP POST /api/command"| Gateway

    %% Zones and Subsystems
    subgraph "Living Room Zone"
        direction TB
        Smoke["Smoke Detector"]:::sensor
        Sprinkler["Sprinkler Module"]:::actuator
        Motion["PIR Motion Sensor"]:::sensor
        Fan["Motion-Activated Fan"]:::actuator
    end

    subgraph "Bedroom Zone"
        direction TB
        Thermostat["Thermostat"]:::sensor
        HVAC["HVAC Unit"]:::actuator
        CO["CO Detector"]:::sensor
        Vent["Ventilation Fan"]:::actuator
    end

    subgraph "Entry Zone"
        direction TB
        DoorKeypad["Door Keypad/Biometric"]:::sensor
        DoorLock["Electric Door Lock"]:::actuator
    end

    %% Data Flows
    Smoke -->|"SNMP Trap"| Gateway
    Gateway -->|"Activate Sprinkler"| Sprinkler
    Motion -->|"Event"| Gateway
    Gateway -->|"Turn On Fan"| Fan
    Thermostat -->|"HTTP GET /temp"| Gateway
    Gateway -->|"Setpoint Command"| HVAC
    CO -->|"MQTT Publish"| Gateway
    Gateway -->|"Vent On"| Vent
    DoorKeypad -->|"Auth Request"| Gateway
    Gateway -->|"Unlock Command"| DoorLock

    %% Documentation
    subgraph "Documentation"
        direction TB
        PKT["Home Automation Simulation"]:::docs
        README["Project Overview (README.md)"]:::docs
        REPORT["Detailed Report (Report CNN.pdf)"]:::docs
    end

    %% Click Events
    click PKT "https://github.com/thesaajii/cisco-iot-project/blob/main/Home Automation System.pkt"
    click README "https://github.com/thesaajii/cisco-iot-project/blob/main/README.md"
    click REPORT "https://github.com/thesaajii/cisco-iot-project/blob/main/Report CNN.pdf"

    %% Styles
    classDef sensor fill:#9f6,stroke:#060,stroke-width:1px
    classDef actuator fill:#f96,stroke:#f60,stroke-width:1px
    classDef network fill:#6cf,stroke:#06c,stroke-width:1px,stroke-dasharray: 5 2
    classDef controller fill:#c6f,stroke:#60c,stroke-width:1px
    classDef docs fill:#ddd,stroke:#999,stroke-width:1px,stroke-dasharray: 2 2
```
