# dhayaanidhijg/embedded_wifi_gateway architecture

> Architecture diagram of the GitHub repository dhayaanidhijg/embedded_wifi_gateway, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dhayaanidhijg/embedded_wifi_gateway
- Repository: https://github.com/dhayaanidhijg/embedded_wifi_gateway

## Overview

Embedded_WiFi_Gateway is a Raspberry Pi setup project for creating an Ethernet-backed WiFi access point for IoT clients. The principal workflow is an operator running the setup script, which configures NetworkManager for the hotspot and arranges a boot-time WiFi power-save fix; clients then connect to the access point and use the Ethernet uplink. The README also documents regional settings and package-signing remediation. No source excerpts were provided, so relationships below rely on README statements rather than inspected implementation details.

Main entry points: [`scripts/setup_hotspot.sh`](https://github.com/dhayaanidhijg/embedded_wifi_gateway/blob/main/scripts/setup_hotspot.sh) (Setup script)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Gateway setup"]
  node_setup_script["Setup script<br/>[setup_hotspot.sh]"]
  node_raspberry_pi["Raspberry Pi"]
  node_regional_config["Regional settings"]
  node_apt_trust["APT trust setup"]
  node_package_repos["Package repositories"]
end

subgraph group_network["Network access"]
  node_networkmanager["NetworkManager"]
  node_ethernet["Ethernet uplink"]
  node_wifi_clients(("WiFi clients"))
end

subgraph group_stability["Radio stability"]
  node_crontab["Boot-time job"]
  node_iw["iw power control"]
  node_wifi_radio["WiFi radio"]
end

node_operator(("Operator"))

node_operator -->|"runs"| node_setup_script
node_setup_script -->|"configures hotspot"| node_networkmanager
node_ethernet -->|"supplies internet"| node_networkmanager
node_networkmanager -->|"provides WiFi access"| node_wifi_clients
node_setup_script -->|"sets up"| node_regional_config
node_setup_script -->|"persists fix"| node_crontab
node_crontab -->|"runs at boot"| node_iw
node_iw -->|"disables power save"| node_wifi_radio
node_setup_script -->|"updates trust"| node_apt_trust
node_apt_trust -->|"verifies signatures"| node_package_repos

click node_setup_script "https://github.com/dhayaanidhijg/embedded_wifi_gateway/blob/main/scripts/setup_hotspot.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_setup_script,node_raspberry_pi,node_regional_config,node_apt_trust,node_package_repos toneBlue
class node_networkmanager,node_ethernet,node_wifi_clients toneAmber
class node_crontab,node_iw,node_wifi_radio toneMint
class node_operator toneIndigo
```

## Components

### Gateway setup

- [Setup script](https://github.com/dhayaanidhijg/embedded_wifi_gateway/blob/main/scripts/setup_hotspot.sh): `scripts/setup_hotspot.sh`
- **Raspberry Pi**
- **Regional settings**
- **APT trust setup**
- **Package repositories**

### Network access

- **NetworkManager**
- **Ethernet uplink**
- **WiFi clients**

### Radio stability

- **Boot-time job**
- **iw power control**
- **WiFi radio**

### Other components

- **Operator**

## Connections

- Operator → Setup script: runs (evidence: `README.md`)
- Setup script → NetworkManager: configures hotspot (evidence: `README.md`)
- Ethernet uplink → NetworkManager: supplies internet (evidence: `README.md`)
- NetworkManager → WiFi clients: provides WiFi access (evidence: `README.md`)
- Setup script → Regional settings: sets up (evidence: `README.md`)
- Setup script → Boot-time job: persists fix (evidence: `README.md`)
- Boot-time job → iw power control: runs at boot (evidence: `README.md`)
- iw power control → WiFi radio: disables power save (evidence: `README.md`)
- Setup script → APT trust setup: updates trust (evidence: `README.md`)
- APT trust setup → Package repositories: verifies signatures (evidence: `README.md`)
