SKILL.md
只读
名称
iot
描述
使用 PlantUML 语法配合设备与传感器图元图标绘制物联网(IoT)架构图。非常适合智能家居、工业物联网(IIoT)、车队管理、边缘计算及传感器网络布局等场景。
物联网(IoT)架构图生成器
快速上手: 选择设备/传感器图标 → 放置边缘网关 → 连接云端服务 → 按区域分组 → 用 ```plantuml 代码块包裹。
⚠️ 重要提示: 必须使用
```plantuml或```puml代码围栏。切勿使用```text— 否则无法渲染为架构图。
核心规则
- 每个图表都以
@startuml开头,以@enduml结尾 - 典型 IoT 数据流建议使用
left to right direction(设备 → 边缘 → 云端) - 物联网服务与设备图标统一采用
mxgraph.aws4.*图元语法 - 默认颜色会自动应用 — 无需手动指定
fillColor或strokeColor - 使用
rectangle "Zone" { ... }或package "Site" { ... }进行分组 - 有向数据流使用
-->,异步/事件驱动数据流使用..>(虚线)
完整图元参考: 查阅 stencils/README.md 获取 9500+ 个可用图标。
Mxgraph 图元语法
mxgraph.aws4.<icon> "Label" as <alias>
核心物联网图元
| 分类 | 图元 | 用途 |
|---|---|---|
| 物联网平台 | iot_core, internet_of_things, iot_1click |
核心物联网中心 / 消息代理 |
| 边缘/网关 | greengrass, iot_device_gateway, freertos, iot_expresslink |
边缘计算与设备网关 |
| Greengrass | iot_greengrass_component, iot_greengrass_nucleus, iot_greengrass_stream_manager |
边缘运行时组件 |
| 设备管理 | iot_device_management, iot_device_defender, iot_device_tester, iot_over_the_air_update |
设备预置、安全检测与 OTA 升级 |
| 数据分析 | iot_analytics, iot_analytics_channel, iot_analytics_pipeline, iot_analytics_dataset, iot_analytics_data_store |
物联网数据处理流水线 |
| 事件/规则 | iot_events, iot_device_defender_iot_device_jobs |
事件检测与任务执行 |
| 数字孪生 | iot_twinmaker, iot_sitewise, iot_sitewise_asset, iot_sitewise_asset_model |
资产建模与可视化 |
| 车队/设备群 | iot_fleetwise, iot_device_management_fleet |
车辆与设备群遥测 |
设备与传感器图元
| 分类 | 图元 |
|---|---|
| 传感器 | sensor, iot_thing_temperature_sensor, iot_thing_humidity_sensor, iot_thing_vibration_sensor, iot_thing_temperature_humidity_sensor, iot_thing_temperature_vibration_sensor |
| 执行器 | actuator, iot_thing_relay, iot_thing_stacklight |
| 工业设备 | factory, iot_thing_industrial_pc, iot_thing_plc |
| 智能家居 | thermostat, alexa_enabled_device, alexa_smart_home_skill, camera, camera2 |
| 通信协议 | mqtt_protocol, iot_lorawan_protocol, iot_greengrass_protocol |
| 船舶/车辆 | iot_sailboat, iot_fleetwise |
| 机器人 | robomaker, iot_roborunner |
连接类型
| 语法 | 含义 | 适用场景 |
|---|---|---|
A --> B |
实线箭头 | 同步 API / 数据流 |
A ..> B |
虚线箭头 | 异步遥测 / MQTT 发布 |
A -- B |
实线 | 物理连接 / 双向链路 |
A --> B : "label" |
带标签连接 | 标注协议或数据名称 |
快速示例
@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
@enduml
物联网架构类型
| 类型 | 用途 | 核心图元 | 示例 |
|---|---|---|---|
| 智慧工厂 | 工业物联网监控 | sensor, iot_thing_plc, greengrass, iot_sitewise |
smart-factory.md |
| 智能家居 | 全屋智能自动化 | thermostat, alexa_enabled_device, camera, iot_core |
smart-home.md |
| 车队遥测 | 车辆/设备群追踪 | iot_fleetwise, iot_core, iot_analytics |
fleet-telemetry.md |
| 边缘计算 | 边缘端本地数据处理 | greengrass, freertos, iot_greengrass_component |
edge-computing.md |
| 数字孪生 | 资产建模与仿真 | iot_twinmaker, iot_sitewise_asset_model, iot_sitewise |
digital-twin.md |
| 传感器网络 | 分布式传感器 Mesh 网络 | sensor, iot_lorawan_protocol, iot_device_gateway |
sensor-network.md |
| 设备管理 | 设备批量预置与 OTA 升级 | iot_device_management, iot_device_defender, iot_over_the_air_update |
device-management.md |
| 机器人调度 | 机器人集群编排与调度 | robomaker, iot_roborunner, greengrass |
robotics.md |






