167 lines
12 KiB
XML
167 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<mxfile host="app.diagrams.net" modified="2026-05-10T00:00:00.000Z"
|
|
agent="AI-Drawio-Replicator" version="24.0.0" type="device">
|
|
<diagram id="page-1" name="嵌入式系统分层架构">
|
|
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10"
|
|
guides="1" tooltips="1" connect="1" arrows="1"
|
|
fold="1" page="1" pageScale="1"
|
|
pageWidth="1400" pageHeight="900"
|
|
background="#ffffff">
|
|
<root>
|
|
<mxCell id="0"/>
|
|
<mxCell id="1" parent="0"/>
|
|
|
|
<!-- 应用层容器 -->
|
|
<mxCell id="2" value="应用层 Application Layer<br><span style="font-size:12px;">【业务逻辑】</span>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ff99ff;strokeColor=#333333;strokeWidth=2;align=center;verticalAlign=top;fontSize=16;fontStyle=1;" vertex="1" parent="1">
|
|
<mxGeometry x="100" y="50" width="1200" height="120" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 应用层模块 -->
|
|
<mxCell id="3" value="业务状态机" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="2">
|
|
<mxGeometry x="50" y="40" width="160" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="4" value="采集控制逻辑" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="2">
|
|
<mxGeometry x="260" y="40" width="160" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="5" value="故障处理模块" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="2">
|
|
<mxGeometry x="470" y="40" width="160" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="6" value="人机交互逻辑" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="2">
|
|
<mxGeometry x="680" y="40" width="160" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 服务层容器 -->
|
|
<mxCell id="7" value="服务层 Service Layer<br><span style="font-size:12px;">【通用能力】</span>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#99ccff;strokeColor=#333333;strokeWidth=2;align=center;verticalAlign=top;fontSize=16;fontStyle=1;" vertex="1" parent="1">
|
|
<mxGeometry x="100" y="200" width="1200" height="120" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 服务层模块 -->
|
|
<mxCell id="8" value="数据存储服务" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="7">
|
|
<mxGeometry x="30" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="9" value="协议解析服务" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="7">
|
|
<mxGeometry x="210" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="10" value="日志系统服务" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="7">
|
|
<mxGeometry x="390" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="11" value="算法滤波服务" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="7">
|
|
<mxGeometry x="570" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="12" value="定时任务服务" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="7">
|
|
<mxGeometry x="750" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 设备驱动层容器 -->
|
|
<mxCell id="13" value="设备驱动层 Device Driver Layer<br><span style="font-size:12px;">【设备操作】</span>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#99ffcc;strokeColor=#333333;strokeWidth=2;align=center;verticalAlign=top;fontSize=16;fontStyle=1;" vertex="1" parent="1">
|
|
<mxGeometry x="100" y="350" width="1200" height="120" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 设备驱动层模块 -->
|
|
<mxCell id="14" value="传感器驱动" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="13">
|
|
<mxGeometry x="30" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="15" value="Flash驱动" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="13">
|
|
<mxGeometry x="210" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="16" value="UART/485驱动" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="13">
|
|
<mxGeometry x="390" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="17" value="ADC/DAC驱动" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="13">
|
|
<mxGeometry x="570" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="18" value="继电器/执行器驱动" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="13">
|
|
<mxGeometry x="750" y="40" width="180" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 硬件抽象层容器 -->
|
|
<mxCell id="19" value="硬件抽象层 HAL Layer<br><span style="font-size:12px;">【硬件封装】</span>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffcc99;strokeColor=#333333;strokeWidth=2;align=center;verticalAlign=top;fontSize=16;fontStyle=1;" vertex="1" parent="1">
|
|
<mxGeometry x="100" y="500" width="1200" height="120" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 硬件抽象层模块 -->
|
|
<mxCell id="20" value="寄存器操作封装" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="19">
|
|
<mxGeometry x="50" y="40" width="160" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="21" value="时钟/中断管理" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="19">
|
|
<mxGeometry x="260" y="40" width="160" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="22" value="GPIO抽象接口" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="19">
|
|
<mxGeometry x="470" y="40" width="160" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="23" value="外设基础封装" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="19">
|
|
<mxGeometry x="680" y="40" width="160" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 硬件层容器 -->
|
|
<mxCell id="24" value="硬件层 Hardware Layer<br><span style="font-size:12px;">【物理实体】</span>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#cccccc;strokeColor=#333333;strokeWidth=2;align=center;verticalAlign=top;fontSize=16;fontStyle=1;" vertex="1" parent="1">
|
|
<mxGeometry x="100" y="650" width="1200" height="120" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 硬件层模块 -->
|
|
<mxCell id="25" value="MCU内核" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="24">
|
|
<mxGeometry x="30" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="26" value="片内外设" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="24">
|
|
<mxGeometry x="210" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="27" value="外部传感器" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="24">
|
|
<mxGeometry x="390" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="28" value="执行机构" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="24">
|
|
<mxGeometry x="570" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<mxCell id="29" value="通信模块" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#333333;strokeWidth=1;align=center;verticalAlign=middle;fontSize=12;" vertex="1" parent="24">
|
|
<mxGeometry x="750" y="40" width="140" height="60" as="geometry"/>
|
|
</mxCell>
|
|
|
|
<!-- 主连线 -->
|
|
<mxCell id="30" value="" style="endArrow=classic;html=1;strokeColor=#333333;strokeWidth=2;" edge="1" parent="1" source="2" target="7">
|
|
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
|
<mxPoint x="700" y="170" as="sourcePoint"/>
|
|
<mxPoint x="700" y="200" as="targetPoint"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
|
|
<mxCell id="31" value="" style="endArrow=classic;html=1;strokeColor=#333333;strokeWidth=2;" edge="1" parent="1" source="7" target="13">
|
|
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
|
<mxPoint x="700" y="320" as="sourcePoint"/>
|
|
<mxPoint x="700" y="350" as="targetPoint"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
|
|
<mxCell id="32" value="" style="endArrow=classic;html=1;strokeColor=#333333;strokeWidth=2;" edge="1" parent="1" source="13" target="19">
|
|
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
|
<mxPoint x="700" y="470" as="sourcePoint"/>
|
|
<mxPoint x="700" y="500" as="targetPoint"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
|
|
<mxCell id="33" value="" style="endArrow=classic;html=1;strokeColor=#333333;strokeWidth=2;" edge="1" parent="1" source="19" target="24">
|
|
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
|
<mxPoint x="700" y="620" as="sourcePoint"/>
|
|
<mxPoint x="700" y="650" as="targetPoint"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram>
|
|
</mxfile> |