Deploying to gh-pages from @ Klipper3d/klipper@a8883d83e3 🚀

This commit is contained in:
KevinOConnor
2022-08-24 00:03:59 +00:00
parent 1253c22ff6
commit 831e7e3ba5
24 changed files with 398 additions and 393 deletions

View File

@@ -1358,7 +1358,7 @@
<h1 id="can">CAN 总线<a class="headerlink" href="#can" title="Permanent link">&para;</a></h1>
<p>本文档描述了 Klipper 的 CAN 总线支持。</p>
<h2 id="_1">硬件设备<a class="headerlink" href="#_1" title="Permanent link">&para;</a></h2>
<p>Klipper currently supports CAN on stm32 and rp2040 chips. In addition, the micro-controller chip must be on a board that has a CAN transceiver.</p>
<p>Klipper目前支持在stm32和rp2040芯片上使用CAN总线。此外微控制器芯片必须连接到一个CAN收发器。</p>
<p>要针对 CAN 进行编译,请运行 <code>make menuconfig</code>并选择"CAN Bus"作为通信接口。最后,编译微控制器代码并将其刷写到目标控制版上。</p>
<h2 id="_2">主机硬件<a class="headerlink" href="#_2" title="Permanent link">&para;</a></h2>
<p>为了使用 CAN 总线,主机需要一个适配器。目前有两种常见的选择:</p>
@@ -1402,7 +1402,7 @@ canbus_uuid: 11aa22bb33cc
<ul>
<li>“桥接MCU” 实际上并不在CAN总线上。传入和传出的消息不会占用CAN总线上的带宽。因此位于CAN总线上的其他适配器无法看到MCU。</li>
<li>有必要在Linux中配置<code>can0</code> 或类似接口以便与总线通信。然而Klipper 会忽略 Linux的CAN总线速度和 CAN 总线bit-timing选项。目前CAN总线的频率需要在 "make menuconfig "中指定。Linux中指定的总线速度会被忽略。</li>
<li>Whenever the "bridge mcu" is reset, Linux will disable the corresponding <code>can0</code> interface. To ensure proper handling of FIRMWARE_RESTART and RESTART commands, it is recommended to replace <code>auto</code> with <code>allow-hotplug</code> in the <code>/etc/network/interfaces.d/can0</code> file. For example:</li>
<li>每当 "bridge mcu "被重置时Linux 将禁用相应的<code>can0</code> 接口。为了确保正确处理 FIRMWARE_RESTART RESTART 命令,建议在<code>/etc/network/interfaces.d/can0</code> 文件中用<code>allow-hotplug</code> 替换<code>auto</code> 。例如:</li>
</ul>
<div class="highlight"><pre><span></span><code>allow-hotplug can0
iface can0 can static