# inotdream/mt5700webui-openwrt-server architecture

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

- Interactive diagram: https://gitdiagram.com/inotdream/mt5700webui-openwrt-server
- Repository: https://github.com/inotdream/mt5700webui-openwrt-server

## Overview

This is an OpenWrt AT-modem management package: a browser UI exposes modem/network controls, messaging, system information and upgrades, while a Python server provides AT-command connectivity and monitoring/notifications. The LuCI app configures the service and presents debug/log tools. The main path is user action → web UI → WebSocket/server → modem command, with results displayed in the UI. The excerpts show the debug WebSocket and several UI command calls; backend routing and most bundled-page interactions are not sampled, so those links are marked unverified.

Main entry points: [`at-webserver/files/usr/bin/at-server.py`](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py) (AT WebSocket Server), [`at-webserver/files/www/5700/umi.ec9b4b52.js`](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/umi.ec9b4b52.js) (Web App Shell), [`luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/logs.js`](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/logs.js) (Notification Logs), [`luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/config.js`](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/config.js) (Service Config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_admin["LuCI Administration"]
  node_luci_config["Service Config<br/>[config.js]"]
  node_luci_debug["AT Debug<br/>[debug.js]"]
  node_luci_logs["Notification Logs<br/>[logs.js]"]
end

subgraph group_webui["Modem Web UI"]
  node_web_shell["Web App Shell<br/>[umi.ec9b4b52.js]"]
  node_network_dial["Dial Controls"]
  node_network_info["Network Status"]
  node_network_settings["Network Settings"]
  node_sms_center["SMS Center"]
  node_sms_settings["SMS Settings"]
  node_system_info["System Info"]
  node_system_upgrade["Firmware Upgrade"]
  node_terminal["AT Terminal"]
end

subgraph group_backend["AT Service"]
  node_server["AT WebSocket Server<br/>[at-server.py]"]
  node_at_connection["AT Connection<br/>[at-server.py]"]
  node_signal_monitor["Signal Monitor<br/>[at-server.py]"]
  node_frequency_control["Band Locking<br/>[at-server.py]"]
  node_notifications["Event Notifications<br/>[at-server.py]"]
end

subgraph group_ops["Runtime Operations"]
  node_uci_config["UCI Config"]
  node_log_file[("Service Log")]
  node_log_clear["Log Clear CGI"]
end

node_operator(("Operator"))
node_modem["AT Modem"]

node_operator -->|"configures"| node_luci_config
node_luci_config -->|"saves settings"| node_uci_config
node_operator -->|"enters commands"| node_luci_debug
node_luci_debug -->|"WebSocket commands"| node_server
node_operator -.->|"uses"| node_web_shell
node_web_shell -.->|"opens page"| node_network_dial
node_web_shell -.->|"opens page"| node_network_info
node_web_shell -.->|"opens page"| node_network_settings
node_web_shell -.->|"opens page"| node_sms_center
node_web_shell -.->|"opens page"| node_sms_settings
node_web_shell -.->|"opens page"| node_system_info
node_web_shell -.->|"opens page"| node_system_upgrade
node_web_shell -.->|"opens page"| node_terminal
node_network_dial -.->|"sends commands"| node_server
node_network_settings -.->|"sends commands"| node_server
node_network_info -.->|"requests status"| node_server
node_sms_center -.->|"manages messages"| node_server
node_sms_settings -.->|"configures messaging"| node_server
node_system_info -.->|"requests details"| node_server
node_system_upgrade -.->|"requests upgrade"| node_server
node_terminal -.->|"sends commands"| node_server
node_server -.->|"uses connection"| node_at_connection
node_at_connection -.->|"exchanges AT"| node_modem
node_server -.->|"monitors signal"| node_signal_monitor
node_server -.->|"applies band lock"| node_frequency_control
node_server -.->|"dispatches events"| node_notifications
node_luci_logs -->|"reads log"| node_log_file
node_luci_logs -->|"requests clearing"| node_log_clear
node_log_clear -.->|"clears log"| node_log_file

click node_luci_config "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/config.js"
click node_luci_debug "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/debug.js"
click node_luci_logs "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/logs.js"
click node_web_shell "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/umi.ec9b4b52.js"
click node_network_dial "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__Network__Dial__index.a360ac4c.async.js"
click node_network_info "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__Network__Info__index.30901ff8.async.js"
click node_network_settings "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__Network__Settings__index.893ddec9.async.js"
click node_sms_center "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__SMS__Center__index.88186f3e.async.js"
click node_sms_settings "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__SMS__Settings__index.c3a79efc.async.js"
click node_system_info "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__System__Info__index.a04926af.async.js"
click node_system_upgrade "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__System__Upgrade__index.d7af163b.async.js"
click node_terminal "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__AT__Terminal__index.2ff1b893.async.js"
click node_server "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py"
click node_at_connection "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py"
click node_signal_monitor "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py"
click node_frequency_control "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py"
click node_notifications "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py"
click node_uci_config "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/etc/config/at-webserver"
click node_log_clear "https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/cgi-bin/at-log-clear"

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_luci_config,node_luci_debug,node_luci_logs toneBlue
class node_web_shell,node_network_dial,node_network_info,node_network_settings,node_sms_center,node_sms_settings,node_system_info,node_system_upgrade,node_terminal toneAmber
class node_server,node_at_connection,node_signal_monitor,node_frequency_control,node_notifications toneMint
class node_uci_config,node_log_file,node_log_clear toneRose
class node_operator,node_modem toneIndigo
```

## Components

### LuCI Administration

- [Service Config](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/config.js): `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/config.js`
- [AT Debug](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/debug.js): `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/debug.js`
- [Notification Logs](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/logs.js): `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/logs.js`

### Modem Web UI

- [Web App Shell](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/umi.ec9b4b52.js): `at-webserver/files/www/5700/umi.ec9b4b52.js`
- [Dial Controls](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__Network__Dial__index.a360ac4c.async.js): `at-webserver/files/www/5700/p__CPE__Network__Dial__index.a360ac4c.async.js`
- [Network Status](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__Network__Info__index.30901ff8.async.js): `at-webserver/files/www/5700/p__CPE__Network__Info__index.30901ff8.async.js`
- [Network Settings](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__Network__Settings__index.893ddec9.async.js): `at-webserver/files/www/5700/p__CPE__Network__Settings__index.893ddec9.async.js`
- [SMS Center](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__SMS__Center__index.88186f3e.async.js): `at-webserver/files/www/5700/p__CPE__SMS__Center__index.88186f3e.async.js`
- [SMS Settings](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__SMS__Settings__index.c3a79efc.async.js): `at-webserver/files/www/5700/p__CPE__SMS__Settings__index.c3a79efc.async.js`
- [System Info](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__System__Info__index.a04926af.async.js): `at-webserver/files/www/5700/p__CPE__System__Info__index.a04926af.async.js`
- [Firmware Upgrade](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__System__Upgrade__index.d7af163b.async.js): `at-webserver/files/www/5700/p__CPE__System__Upgrade__index.d7af163b.async.js`
- [AT Terminal](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/5700/p__CPE__AT__Terminal__index.2ff1b893.async.js): `at-webserver/files/www/5700/p__CPE__AT__Terminal__index.2ff1b893.async.js`

### AT Service

- [AT WebSocket Server](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py): `at-webserver/files/usr/bin/at-server.py`
- [AT Connection](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py): `at-webserver/files/usr/bin/at-server.py`
- [Signal Monitor](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py): `at-webserver/files/usr/bin/at-server.py`
- [Band Locking](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py): `at-webserver/files/usr/bin/at-server.py`
- [Event Notifications](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/usr/bin/at-server.py): `at-webserver/files/usr/bin/at-server.py`

### Runtime Operations

- [UCI Config](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/etc/config/at-webserver): `at-webserver/files/etc/config/at-webserver`
- **Service Log**
- [Log Clear CGI](https://github.com/inotdream/mt5700webui-openwrt-server/blob/main/at-webserver/files/www/cgi-bin/at-log-clear): `at-webserver/files/www/cgi-bin/at-log-clear`

### Other components

- **Operator**
- **AT Modem**

## Connections

- Operator → Service Config: configures (evidence: `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/config.js`)
- Service Config → UCI Config: saves settings (evidence: `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/config.js`)
- Operator → AT Debug: enters commands (evidence: `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/debug.js`)
- AT Debug → AT WebSocket Server: WebSocket commands (evidence: `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/debug.js`)
- Operator → Web App Shell: uses
- Web App Shell → Dial Controls: opens page
- Web App Shell → Network Status: opens page
- Web App Shell → Network Settings: opens page
- Web App Shell → SMS Center: opens page
- Web App Shell → SMS Settings: opens page
- Web App Shell → System Info: opens page
- Web App Shell → Firmware Upgrade: opens page
- Web App Shell → AT Terminal: opens page
- Dial Controls → AT WebSocket Server: sends commands
- Network Settings → AT WebSocket Server: sends commands
- Network Status → AT WebSocket Server: requests status
- SMS Center → AT WebSocket Server: manages messages
- SMS Settings → AT WebSocket Server: configures messaging
- System Info → AT WebSocket Server: requests details
- Firmware Upgrade → AT WebSocket Server: requests upgrade
- AT Terminal → AT WebSocket Server: sends commands
- AT WebSocket Server → AT Connection: uses connection (evidence: `at-webserver/files/usr/bin/at-server.py`)
- AT Connection → AT Modem: exchanges AT
- AT WebSocket Server → Signal Monitor: monitors signal (evidence: `at-webserver/files/usr/bin/at-server.py`)
- AT WebSocket Server → Band Locking: applies band lock (evidence: `at-webserver/files/usr/bin/at-server.py`)
- AT WebSocket Server → Event Notifications: dispatches events (evidence: `at-webserver/files/usr/bin/at-server.py`)
- Notification Logs → Service Log: reads log (evidence: `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/logs.js`)
- Notification Logs → Log Clear CGI: requests clearing (evidence: `luci-app-at-webserver/htdocs/luci-static/resources/view/at-webserver/logs.js`)
- Log Clear CGI → Service Log: clears log
