iot
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseIoT Architecture Diagram Generator
IoT架构图生成器
Quick Start: Select device/sensor icons → Place edge gateways → Connect to cloud services → Group into zones → Wrap in fence.
```plantuml⚠️ IMPORTANT: Always useor```plantumlcode fence. NEVER use```puml— it will NOT render as a diagram.```text
快速上手: 选择设备/传感器图标 → 放置边缘网关 → 连接到云服务 → 按区域分组 → 用代码块包裹。
```plantuml⚠️ 重要提示: 请始终使用或```plantuml代码块,永远不要使用```puml—— 它不会渲染为图表。```text
Critical Rules
核心规则
- Every diagram starts with and ends with
@startuml@enduml - Use for typical IoT data flows (Device → Edge → Cloud)
left to right direction - Use stencil syntax for IoT service and device icons
mxgraph.aws4.* - Default colors are applied automatically — you do NOT need to specify or
fillColorstrokeColor - Use or
rectangle "Zone" { ... }for groupingpackage "Site" { ... } - Directed flows use , async/event-driven flows use
-->(dashed)..>
Full stencil reference: See stencils/README.md for 9500+ available icons.
- 所有图表都以开头,以
@startuml结尾@enduml - 典型IoT数据流(设备 → 边缘 → 云)请使用(从左到右布局)
left to right direction - IoT服务和设备图标使用模板语法
mxgraph.aws4.* - 默认颜色会自动应用 —— 你不需要手动指定或
fillColorstrokeColor - 使用或
rectangle "Zone" { ... }进行分组package "Site" { ... } - 定向流使用,异步/事件驱动流使用
-->(虚线)..>
完整模板参考: 查看stencils/README.md获取9500+可用图标。
Mxgraph Stencil Syntax
Mxgraph模板语法
mxgraph.aws4.<icon> "Label" as <alias>mxgraph.aws4.<icon> "Label" as <alias>Core IoT Stencils
核心IoT模板
| Category | Stencils | Purpose |
|---|---|---|
| IoT Platform | | Central IoT hub / message broker |
| Edge/Gateway | | Edge computing & device gateway |
| Greengrass | | Edge runtime components |
| Device Mgmt | | Fleet provisioning, security, OTA |
| Analytics | | IoT data processing pipeline |
| Events/Rules | | Event detection & job execution |
| Digital Twin | | Asset modeling & visualization |
| Fleet | | Vehicle & device fleet telemetry |
| 类别 | 模板名 | 用途 |
|---|---|---|
| IoT平台 | | 中心IoT枢纽/消息代理 |
| 边缘/网关 | | 边缘计算与设备网关 |
| Greengrass | | 边缘运行时组件 |
| 设备管理 | | 车队部署、安全、OTA升级 |
| 分析 | | IoT数据处理流水线 |
| 事件/规则 | | 事件检测与任务执行 |
| 数字孪生 | | 资产建模与可视化 |
| 车队 | | 车辆与设备车队遥测 |
Device & Sensor Stencils
设备与传感器模板
| Category | Stencils |
|---|---|
| Sensors | |
| Actuators | |
| Industrial | |
| Smart Home | |
| Protocols | |
| Boats/Vehicles | |
| Robotics | |
| 类别 | 模板名 |
|---|---|
| 传感器 | |
| 执行器 | |
| 工业 | |
| 智能家居 | |
| 协议 | |
| 船舶/车辆 | |
| 机器人 | |
Connection Types
连接类型
| Syntax | Meaning | Use Case |
|---|---|---|
| Solid arrow | Sync API / data flow |
| Dashed arrow | Async telemetry / MQTT publish |
| Solid line | Physical / bidirectional link |
| Labeled connection | Describe protocol or data |
| 语法 | 含义 | 使用场景 |
|---|---|---|
| 实线箭头 | 同步API / 数据流 |
| 虚线箭头 | 异步遥测 / MQTT发布 |
| 实线 | 物理 / 双向链路 |
| 带标签的连接 | 描述协议或数据 |
Quick Example
快速示例
plantuml
@startuml
left to right direction
rectangle "Factory Floor" {
mxgraph.aws4.sensor "Temp\nSensor" as s1
mxgraph.aws4.iot_thing_plc "PLC" as plc
}
mxgraph.aws4.greengrass "Greengrass\nEdge" as gg
mxgraph.aws4.iot_core "IoT Core" as core
mxgraph.aws4.iot_analytics "IoT\nAnalytics" as analytics
s1 --> gg : MQTT
plc --> gg
gg --> core
core --> analytics
@endumlplantuml
@startuml
left to right direction
rectangle "Factory Floor" {
mxgraph.aws4.sensor "Temp\nSensor" as s1
mxgraph.aws4.iot_thing_plc "PLC" as plc
}
mxgraph.aws4.greengrass "Greengrass\nEdge" as gg
mxgraph.aws4.iot_core "IoT Core" as core
mxgraph.aws4.iot_analytics "IoT\nAnalytics" as analytics
s1 --> gg : MQTT
plc --> gg
gg --> core
core --> analytics
@endumlIoT Architecture Types
IoT架构类型
| Type | Purpose | Key Stencils | Example |
|---|---|---|---|
| Smart Factory | Industrial IoT monitoring | | smart-factory.md |
| Smart Home | Home automation | | smart-home.md |
| Fleet Telemetry | Vehicle fleet tracking | | fleet-telemetry.md |
| Edge Computing | Local processing at edge | | edge-computing.md |
| Digital Twin | Asset modeling & simulation | | digital-twin.md |
| Sensor Network | Distributed sensor mesh | | sensor-network.md |
| Device Management | Fleet provisioning & OTA | | device-management.md |
| Robotics | Robot fleet orchestration | | robotics.md |
| 类型 | 用途 | 核心模板 | 示例 |
|---|---|---|---|
| 智能工厂 | 工业IoT监控 | | smart-factory.md |
| 智能家居 | 家庭自动化 | | smart-home.md |
| 车队遥测 | 车辆车队追踪 | | fleet-telemetry.md |
| 边缘计算 | 边缘侧本地处理 | | edge-computing.md |
| 数字孪生 | 资产建模与仿真 | | digital-twin.md |
| 传感器网络 | 分布式传感器网格 | | sensor-network.md |
| 设备管理 | 车队部署与OTA升级 | | device-management.md |
| 机器人 | 机器人群体编排 | | robotics.md |