Deploying to gh-pages from @ Klipper3d/klipper@2357221bb4 🚀
This commit is contained in:
@@ -1358,7 +1358,7 @@
|
||||
<h1 id="can">CAN 总线<a class="headerlink" href="#can" title="Permanent link">¶</a></h1>
|
||||
<p>本文档描述了 Klipper 的 CAN 总线支持。</p>
|
||||
<h2 id="_1">硬件设备<a class="headerlink" href="#_1" title="Permanent link">¶</a></h2>
|
||||
<p>Klipper目前只支持 stm32 芯片的CAN。此外,微控制器芯片必须支持 CAN并且你使用的主板必须有 CAN 收发器。</p>
|
||||
<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>要针对 CAN 进行编译,请运行 <code>make menuconfig</code>并选择"CAN Bus"作为通信接口。最后,编译微控制器代码并将其刷写到目标控制版上。</p>
|
||||
<h2 id="_2">主机硬件<a class="headerlink" href="#_2" title="Permanent link">¶</a></h2>
|
||||
<p>为了使用 CAN 总线,主机需要一个适配器。目前有两种常见的选择:</p>
|
||||
@@ -1384,7 +1384,7 @@ iface can0 can static
|
||||
</code></pre></div>
|
||||
|
||||
<p>如果检测到未初始化的 CAN 设备,上述命令将报告如下行:</p>
|
||||
<div class="highlight"><pre><span></span><code>Found canbus_uuid=11aa22bb33cc
|
||||
<div class="highlight"><pre><span></span><code>Found canbus_uuid=11aa22bb33cc, Application: Klipper
|
||||
</code></pre></div>
|
||||
|
||||
<p>每个设备将有一个独特的标识符。在上面的例子中,<code>11aa22bb33cc</code>是微控制器'的"canbus_uuid" 。</p>
|
||||
@@ -1402,8 +1402,13 @@ 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>每当 "桥接 mcu "被重置时,Linux 将禁用相应的<code>can0</code> 接口。一般来说,这可能需要运行诸如 "ip up "之类的命令来重新启动接口。因此,Klipper FIRMWARE_RESTART 命令 (或配置改变后的常规 RESTART) 可能需要重新启动<code>can0</code> 接口。</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>
|
||||
</ul>
|
||||
<div class="highlight"><pre><span></span><code>allow-hotplug can0
|
||||
iface can0 can static
|
||||
bitrate 500000
|
||||
up ifconfig $IFACE txqueuelen 128
|
||||
</code></pre></div>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
@@ -1019,8 +1019,8 @@
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#cmd_set_nodeid" class="md-nav__link">
|
||||
CMD_SET_NODEID 消息
|
||||
<a href="#cmd_set_klipper_nodeid-message" class="md-nav__link">
|
||||
CMD_SET_KLIPPER_NODEID message
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@@ -1325,8 +1325,8 @@
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#cmd_set_nodeid" class="md-nav__link">
|
||||
CMD_SET_NODEID 消息
|
||||
<a href="#cmd_set_klipper_nodeid-message" class="md-nav__link">
|
||||
CMD_SET_KLIPPER_NODEID message
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@@ -1377,13 +1377,13 @@
|
||||
<h3 id="cmd_query_unassigned">CMD_QUERY_UNASSIGNED 消息<a class="headerlink" href="#cmd_query_unassigned" title="Permanent link">¶</a></h3>
|
||||
<p>该命令查询所有尚未被分配 <code>canbus_nodeid</code> 的微控制器。未分配的微控制器将以 RESP_NEED_NODEID 响应消息进行回应。</p>
|
||||
<p>CMD_QUERY_UNASSIGNED 消息格式是:<code><1-byte message_id = 0x00></code></p>
|
||||
<h3 id="cmd_set_nodeid">CMD_SET_NODEID 消息<a class="headerlink" href="#cmd_set_nodeid" title="Permanent link">¶</a></h3>
|
||||
<h3 id="cmd_set_klipper_nodeid-message">CMD_SET_KLIPPER_NODEID message<a class="headerlink" href="#cmd_set_klipper_nodeid-message" title="Permanent link">¶</a></h3>
|
||||
<p>这个命令根据微处理器给定的 <code>canbus_uuid</code> 给相应的微处理器分配一个 <code>canbus_nodeid</code>。</p>
|
||||
<p>CMD_SET_NODEID 的消息格式是:<code><1-byte message_id = 0x01><6-byte canbus_uuid><1-byte canbus_nodeid></code></p>
|
||||
<p>The CMD_SET_KLIPPER_NODEID message format is: <code><1-byte message_id = 0x01><6-byte canbus_uuid><1-byte canbus_nodeid></code></p>
|
||||
<h3 id="resp_need_nodeid">RESP_NEED_NODEID 消息<a class="headerlink" href="#resp_need_nodeid" title="Permanent link">¶</a></h3>
|
||||
<p>RESP_NEED_NODEID消息格式为:<code><1字节message_id = 0x20><6字节canbus_uuid></code></p>
|
||||
<p>The RESP_NEED_NODEID message format is: <code><1-byte message_id = 0x20><6-byte canbus_uuid><1-byte set_klipper_nodeid = 0x01></code></p>
|
||||
<h2 id="_2">数据包<a class="headerlink" href="#_2" title="Permanent link">¶</a></h2>
|
||||
<p>通过 CMD_SET_NODEID 命令分配了节点 ID 的微控制器可以发送和接收数据包。</p>
|
||||
<p>A micro-controller that has been assigned a nodeid via the CMD_SET_KLIPPER_NODEID command can send and receive data packets.</p>
|
||||
<p>带有节点接收 CAN 总线ID(<code>canbus_nodeid * 2 + 256</code>)的消息中的数据包被简单地添加到一个缓冲区,当一个完整的<a href="Protocol.html">mcu 协议消息</a>被找到时,其内容会被解析和处理。数据被视为比特流(byte stream)- Klipper信息块的开头不需要与CAN bus的数据包开头对齐。</p>
|
||||
<p>类似地,mcu 协议消息响应通过将消息数据插入到具有节点发送 CAN 总线 ID 的一个或多个数据包(<code>canbus_nodeid * 2 + 256 + 1</code>)并从微控制器发送到主机。</p>
|
||||
|
||||
|
||||
@@ -5149,7 +5149,7 @@ extruder:
|
||||
</code></pre></div>
|
||||
|
||||
<h2 id="_18">温度传感器<a class="headerlink" href="#_18" title="Permanent link">¶</a></h2>
|
||||
<p>Klipper 包括许多类型的温度传感器的定义。这些传感器可以在任何需要温度传感器的配置分段中使用(例如<code>[extruder]</code>或<code>[heated_bed]</code>分段)。</p>
|
||||
<p>Klipper includes definitions for many types of temperature sensors. These sensors may be used in any config section that requires a temperature sensor (such as an <code>[extruder]</code> or <code>[heater_bed]</code> section).</p>
|
||||
<h3 id="_19">常见热敏电阻<a class="headerlink" href="#_19" title="Permanent link">¶</a></h3>
|
||||
<p>常见的热敏电阻。在使用这些传感器之一的加热器分段中可以使用以下参数。</p>
|
||||
<div class="highlight"><pre><span></span><code>sensor_type:
|
||||
|
||||
@@ -801,6 +801,13 @@
|
||||
bed_mesh
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#bed_screws" class="md-nav__link">
|
||||
bed_screws
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -1534,6 +1541,13 @@
|
||||
bed_mesh
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#bed_screws" class="md-nav__link">
|
||||
bed_screws
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -1819,6 +1833,14 @@
|
||||
<li><code>profile_name</code>、<code>mesh_min</code>、<code>mesh_max</code>、<code>probed_matrix</code>、<code>mesh_matrix</code>:关于当前活跃的 bed_mesh 配置信息。</li>
|
||||
<li><code>profiles</code>:当前定义的配置,使用 BED_MESH_PROFILE 进行设置。</li>
|
||||
</ul>
|
||||
<h2 id="bed_screws">bed_screws<a class="headerlink" href="#bed_screws" title="Permanent link">¶</a></h2>
|
||||
<p>The following information is available in the <code>Config_Reference.md#bed_screws</code> object:</p>
|
||||
<ul>
|
||||
<li><code>is_active</code>: Returns True if the bed screws adjustment tool is currently active.</li>
|
||||
<li><code>state</code>: The bed screws adjustment tool state. It is one of the following strings: "adjust", "fine".</li>
|
||||
<li><code>current_screw</code>: The index for the current screw being adjusted.</li>
|
||||
<li><code>accepted_screws</code>: The number of accepted screws.</li>
|
||||
</ul>
|
||||
<h2 id="configfile">configfile<a class="headerlink" href="#configfile" title="Permanent link">¶</a></h2>
|
||||
<p><code>configfile</code> 对象中提供了以下信息(该对象始终可用):</p>
|
||||
<ul>
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
100
zh/sitemap.xml
100
zh/sitemap.xml
@@ -2,252 +2,252 @@
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>None</loc>
|
||||
<lastmod>2022-08-18</lastmod>
|
||||
<lastmod>2022-08-19</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
</urlset>
|
||||
Binary file not shown.
Reference in New Issue
Block a user