<mxfile host="app.diagrams.net">
  <diagram id="STM32-CH395-交换机拓扑" name="Page-1">
    <mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1200" pageHeight="800" math="0" shadow="0">
      <root>
        <mxCell id="0"/>
        <mxCell id="1" parent="0"/>
        
        <!-- 左侧主控与接口芯片 -->
        <mxCell id="stm32" value="STM32F4" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#333333;fontSize=14;fontWeight=bold;" vertex="1" parent="1">
          <mxGeometry x="80" y="280" width="120" height="60" as="geometry"/>
        </mxCell>
        
        <mxCell id="ch395" value="CH395I" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#333333;fontSize=14;fontWeight=bold;" vertex="1" parent="1">
          <mxGeometry x="280" y="280" width="120" height="60" as="geometry"/>
        </mxCell>
        
        <!-- 交换机芯片 -->
        <mxCell id="switch" value="交换机芯片" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e8f4f8;strokeColor=#333333;fontSize=14;fontWeight=bold;" vertex="1" parent="1">
          <mxGeometry x="480" y="180" width="140" height="260" as="geometry"/>
        </mxCell>
        
        <!-- 上行口标注 -->
        <mxCell id="uplinkLabel" value="上行口" style="text;html=1;strokeColor=none;fillColor=none;align=right;verticalAlign=middle;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="420" y="280" width="50" height="20" as="geometry"/>
        </mxCell>
        
        <!-- 三个下行口网络变压器 -->
        <mxCell id="transformer1" value="网络变压器1" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#333333;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="700" y="180" width="120" height="40" as="geometry"/>
        </mxCell>
        
        <mxCell id="transformer2" value="网络变压器2" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#333333;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="700" y="290" width="120" height="40" as="geometry"/>
        </mxCell>
        
        <mxCell id="transformer3" value="网络变压器3" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#333333;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="700" y="400" width="120" height="40" as="geometry"/>
        </mxCell>
        
        <!-- 三个RJ45接口 -->
        <mxCell id="rj45_1" value="RJ45-1" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2e6;strokeColor=#333333;fontSize=12;fontWeight=bold;" vertex="1" parent="1">
          <mxGeometry x="900" y="180" width="100" height="40" as="geometry"/>
        </mxCell>
        
        <mxCell id="rj45_2" value="RJ45-2" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2e6;strokeColor=#333333;fontSize=12;fontWeight=bold;" vertex="1" parent="1">
          <mxGeometry x="900" y="290" width="100" height="40" as="geometry"/>
        </mxCell>
        
        <mxCell id="rj45_3" value="RJ45-3" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2e6;strokeColor=#333333;fontSize=12;fontWeight=bold;" vertex="1" parent="1">
          <mxGeometry x="900" y="400" width="100" height="40" as="geometry"/>
        </mxCell>
        
        <!-- 功能注释 -->
        <mxCell id="note1" value="（主站通信）" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="1010" y="180" width="120" height="40" as="geometry"/>
        </mxCell>
        
        <mxCell id="note2" value="（本地调试/级联）" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="1010" y="290" width="120" height="40" as="geometry"/>
        </mxCell>
        
        <mxCell id="note3" value="（备用/扩展）" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontSize=12;" vertex="1" parent="1">
          <mxGeometry x="1010" y="400" width="120" height="40" as="geometry"/>
        </mxCell>
        
        <!-- 连线与接口标注 -->
        <mxCell id="conn1" value="SPI/并口" style="endArrow=block;startArrow=block;html=1;edgeStyle=orthogonalEdgeStyle;labelPosition=top;verticalAlign=top;fontSize=12;" edge="1" parent="1" source="stm32" target="ch395">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        
        <mxCell id="conn2" value="RMII/MII" style="endArrow=block;startArrow=block;html=1;edgeStyle=orthogonalEdgeStyle;labelPosition=top;verticalAlign=top;fontSize=12;" edge="1" parent="1" source="ch395" target="switch">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        
        <mxCell id="conn3" value="下行口1" style="endArrow=block;html=1;edgeStyle=orthogonalEdgeStyle;labelPosition=top;verticalAlign=top;fontSize=12;" edge="1" parent="1" source="switch" target="transformer1">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="620" y="200" as="sourcePoint"/>
          </mxGeometry>
        </mxCell>
        
        <mxCell id="conn4" style="endArrow=block;html=1;edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="transformer1" target="rj45_1">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        
        <mxCell id="conn5" value="下行口2" style="endArrow=block;html=1;edgeStyle=orthogonalEdgeStyle;labelPosition=top;verticalAlign=top;fontSize=12;" edge="1" parent="1" source="switch" target="transformer2">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="620" y="310" as="sourcePoint"/>
          </mxGeometry>
        </mxCell>
        
        <mxCell id="conn6" style="endArrow=block;html=1;edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="transformer2" target="rj45_2">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        
        <mxCell id="conn7" value="下行口3" style="endArrow=block;html=1;edgeStyle=orthogonalEdgeStyle;labelPosition=top;verticalAlign=top;fontSize=12;" edge="1" parent="1" source="switch" target="transformer3">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="620" y="420" as="sourcePoint"/>
          </mxGeometry>
        </mxCell>
        
        <mxCell id="conn8" style="endArrow=block;html=1;edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="transformer3" target="rj45_3">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>