增加了相关文档说明

This commit is contained in:
2026-05-11 10:32:35 +08:00
parent 0f5368bb51
commit 773b506f40
34 changed files with 6745 additions and 0 deletions

View File

@@ -0,0 +1,202 @@
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" modified="2026-05-10T08:42:00.000Z"
agent="AI-Drawio-Replicator" version="24.0.0" type="device">
<diagram id="hw-arch" name="Hardware Architecture">
<mxGraphModel dx="1200" dy="900" grid="1" gridSize="10"
guides="1" tooltips="1" connect="1" arrows="1"
fold="1" page="1" pageScale="1"
pageWidth="1169" pageHeight="827"
background="#ffffff">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- 整体外框 -->
<mxCell id="2" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;strokeWidth=3;" vertex="1" parent="1">
<mxGeometry x="60" y="20" width="1100" height="670" as="geometry"/>
</mxCell>
<!-- 左侧层级标签 -->
<mxCell id="3" value="对外接口层" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;fontColor=#000000;direction=west;" vertex="1" parent="1">
<mxGeometry x="15" y="80" width="40" height="80" as="geometry"/>
</mxCell>
<mxCell id="4" value="通信协议层" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;fontColor=#000000;direction=west;" vertex="1" parent="1">
<mxGeometry x="15" y="210" width="40" height="80" as="geometry"/>
</mxCell>
<mxCell id="5" value="核心控制层" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;fontColor=#000000;direction=west;" vertex="1" parent="1">
<mxGeometry x="15" y="355" width="40" height="80" as="geometry"/>
</mxCell>
<mxCell id="6" value="存储辅助层" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;fontColor=#000000;direction=west;" vertex="1" parent="1">
<mxGeometry x="15" y="490" width="40" height="80" as="geometry"/>
</mxCell>
<mxCell id="7" value="数据采集层" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;fontColor=#000000;direction=west;" vertex="1" parent="1">
<mxGeometry x="15" y="615" width="40" height="80" as="geometry"/>
</mxCell>
<!-- ========== Layer 1: 对外接口层 (橙色) ========== -->
<mxCell id="8" value="&lt;b&gt;HY911105AE&lt;/b&gt;&lt;br&gt;ETH Port 1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f6b26b;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="700" y="65" width="130" height="50" as="geometry"/>
</mxCell>
<mxCell id="9" value="&lt;b&gt;HY911105AE&lt;/b&gt;&lt;br&gt;ETH Port 2" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f6b26b;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="920" y="65" width="130" height="50" as="geometry"/>
</mxCell>
<mxCell id="10" value="&lt;b&gt;RS485&lt;/b&gt;&lt;br&gt;Interface" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f6b26b;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="345" y="65" width="100" height="50" as="geometry"/>
</mxCell>
<mxCell id="11" value="&lt;b&gt;RS232-1&lt;/b&gt;&lt;br&gt;Interface" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f6b26b;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="160" y="65" width="110" height="50" as="geometry"/>
</mxCell>
<mxCell id="12" value="&lt;b&gt;RS232-2&lt;/b&gt;&lt;br&gt;Interface" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f6b26b;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="300" y="65" width="110" height="50" as="geometry"/>
</mxCell>
<!-- ========== Layer 2: 通信协议层 (蓝色) ========== -->
<mxCell id="13" value="&lt;b&gt;RTL8305NBI-CG&lt;/b&gt;&lt;br&gt;Ethernet Switch" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="790" y="165" width="140" height="55" as="geometry"/>
</mxCell>
<mxCell id="14" value="&lt;b&gt;Network&lt;/b&gt;&lt;br&gt;Transformer" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="640" y="165" width="130" height="55" as="geometry"/>
</mxCell>
<mxCell id="15" value="&lt;b&gt;CH395F&lt;/b&gt;&lt;br&gt;ETH Controller" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="490" y="165" width="130" height="55" as="geometry"/>
</mxCell>
<mxCell id="16" value="&lt;b&gt;TP8485E-SR&lt;/b&gt;&lt;br&gt;RS485 Transceiver" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="330" y="165" width="130" height="55" as="geometry"/>
</mxCell>
<mxCell id="17" value="&lt;b&gt;CA-IS3722HS&lt;/b&gt;&lt;br&gt;Isolation Chip" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="150" y="165" width="130" height="55" as="geometry"/>
</mxCell>
<mxCell id="18" value="&lt;b&gt;TPT3232E&lt;/b&gt;&lt;br&gt;RS232 Transceiver" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="150" y="240" width="130" height="50" as="geometry"/>
</mxCell>
<!-- ========== Layer 3: 核心控制层 (蓝色大框+白色内部模块) ========== -->
<mxCell id="19" value="&lt;b&gt;STM32F407VGT6&lt;/b&gt;&lt;br&gt;Main Controller" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=14;fontStyle=1;align=center;verticalAlign=top;spacingTop=5;" vertex="1" parent="1">
<mxGeometry x="280" y="300" width="480" height="130" as="geometry"/>
</mxCell>
<!-- 内部接口模块 -->
<mxCell id="20" value="SPI1&lt;br&gt;(CH395F)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;fontColor=#000000;fontSize=10;" vertex="1" parent="19">
<mxGeometry x="25" y="40" width="120" height="35" as="geometry"/>
</mxCell>
<mxCell id="21" value="SPI2&lt;br&gt;(FLASH)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;fontColor=#000000;fontSize=10;" vertex="1" parent="19">
<mxGeometry x="175" y="40" width="120" height="35" as="geometry"/>
</mxCell>
<mxCell id="22" value="I2C&lt;br&gt;(RTC)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;fontColor=#000000;fontSize=10;" vertex="1" parent="19">
<mxGeometry x="325" y="40" width="120" height="35" as="geometry"/>
</mxCell>
<mxCell id="23" value="UART1&lt;br&gt;(RS485)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;fontColor=#000000;fontSize=10;" vertex="1" parent="19">
<mxGeometry x="25" y="85" width="120" height="35" as="geometry"/>
</mxCell>
<mxCell id="24" value="UART2&lt;br&gt;(RS232)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;fontColor=#000000;fontSize=10;" vertex="1" parent="19">
<mxGeometry x="175" y="85" width="120" height="35" as="geometry"/>
</mxCell>
<mxCell id="25" value="GPIO&lt;br&gt;(ADC)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;fontColor=#000000;fontSize=10;" vertex="1" parent="19">
<mxGeometry x="325" y="85" width="120" height="35" as="geometry"/>
</mxCell>
<!-- ========== Layer 4: 存储辅助层 (蓝色) ========== -->
<mxCell id="26" value="&lt;b&gt;GD5F2GQ5UE&lt;/b&gt;&lt;br&gt;SPI FLASH" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="350" y="470" width="160" height="55" as="geometry"/>
</mxCell>
<mxCell id="27" value="&lt;b&gt;SD2506API-G&lt;/b&gt;&lt;br&gt;RTC Clock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="560" y="470" width="160" height="55" as="geometry"/>
</mxCell>
<!-- ========== Layer 5: 数据采集层 (蓝色) ========== -->
<mxCell id="28" value="&lt;b&gt;TPAFE5160&lt;/b&gt;&lt;br&gt;8-Ch ADC (Parallel)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;fontColor=#000000;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="420" y="595" width="200" height="60" as="geometry"/>
</mxCell>
<!-- ========== 层间双向箭头 ========== -->
<mxCell id="29" value="" style="endArrow=classic;startArrow=classic;html=1;strokeColor=#000000;strokeWidth=3;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="620" y="140" as="sourcePoint"/>
<mxPoint x="620" y="160" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="30" value="" style="endArrow=classic;startArrow=classic;html=1;strokeColor=#000000;strokeWidth=3;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="620" y="280" as="sourcePoint"/>
<mxPoint x="620" y="300" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="31" value="" style="endArrow=classic;startArrow=classic;html=1;strokeColor=#000000;strokeWidth=3;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="620" y="430" as="sourcePoint"/>
<mxPoint x="620" y="450" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="32" value="" style="endArrow=classic;startArrow=classic;html=1;strokeColor=#000000;strokeWidth=3;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="620" y="550" as="sourcePoint"/>
<mxPoint x="620" y="570" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- ========== 芯片间连线 ========== -->
<!-- STM32 → 各外设 -->
<mxCell id="33" value="SPI" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;fontSize=10;" edge="1" parent="1" source="19" target="15">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="34" value="UART" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;fontSize=10;" edge="1" parent="1" source="19" target="16">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="35" value="UART" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;fontSize=10;" edge="1" parent="1" source="19" target="17">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="36" value="SPI" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;fontSize=10;" edge="1" parent="1" source="19" target="26">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="37" value="I2C" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;fontSize=10;" edge="1" parent="1" source="19" target="27">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="38" value="8-bit Parallel" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;fontSize=10;" edge="1" parent="1" source="19" target="28">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<!-- 网络链路 -->
<mxCell id="39" value="" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;" edge="1" parent="1" source="15" target="14">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="40" value="" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;" edge="1" parent="1" source="14" target="13">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="41" value="" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;" edge="1" parent="1" source="13" target="8">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="42" value="" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;" edge="1" parent="1" source="13" target="9">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<!-- 串口链路 -->
<mxCell id="43" value="" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;" edge="1" parent="1" source="16" target="10">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="44" value="" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;" edge="1" parent="1" source="17" target="18">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="45" value="" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;" edge="1" parent="1" source="18" target="11">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<mxCell id="46" value="" style="endArrow=classic;html=1;strokeColor=#000000;strokeWidth=1;" edge="1" parent="1" source="18" target="12">
<mxGeometry width="50" height="50" relative="1" as="geometry"/>
</mxCell>
<!-- ========== 底部图例 ========== -->
<mxCell id="47" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#9fc5e8;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="380" y="705" width="30" height="20" as="geometry"/>
</mxCell>
<mxCell id="48" value="系统功能模块" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontColor=#000000;" vertex="1" parent="1">
<mxGeometry x="420" y="700" width="120" height="30" as="geometry"/>
</mxCell>
<mxCell id="49" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f6b26b;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="620" y="705" width="30" height="20" as="geometry"/>
</mxCell>
<mxCell id="50" value="对外接口设备" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontColor=#000000;" vertex="1" parent="1">
<mxGeometry x="660" y="700" width="120" height="30" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>