Deploying to gh-pages from @ Klipper3d/klipper@1cc6398074 🚀

This commit is contained in:
KevinOConnor
2025-05-04 00:06:21 +00:00
parent 9d64784cd9
commit 06b88075fb
308 changed files with 12816 additions and 2971 deletions

View File

@@ -1366,8 +1366,8 @@
<li class="md-nav__item">
<a href="Load_Cell.md" class="md-nav__link">
None
<a href="Load_Cell.html" class="md-nav__link">
Load Cells
</a>
</li>
@@ -1481,8 +1481,8 @@
<h1 id="_1">安装<a class="headerlink" href="#_1" title="Permanent link">&para;</a></h1>
<p>这些说明假设软件将在运行 Klipper 兼容前端的 Linux 主机上运行。建议使用 SBC小型板计算机例如 Raspberry Pi 或基于 Debian Linux 设备作为主机(有关其他选项,请参阅 <a href="FAQ.html#can-i-run-klipper-on-something-other-than-a-raspberry-pi-3">FAQ</a>)。</p>
<p>就本说明而言,主机与 Linux 设备相关,而 mcu 与印刷电路板相关。SBC 与术语“小型板计算机”相关,例如 Raspberry Pi</p>
<p>These instructions assume the software will run on a Linux-based host running a Klipper-compatible front end. It is recommended that a SBC(Small Board Computer) such as a Raspberry Pi or Debian-based Linux device be used as the host machine (see the <a href="FAQ.html#can-i-run-klipper-on-something-other-than-a-raspberry-pi-3">FAQ</a> for other options).</p>
<p>For the purposes of these instructions, host relates to the Linux device and mcu relates to the printer board. SBC relates to the term Small Board Computer such as the Raspberry Pi.</p>
<h2 id="klipper">获取 Klipper 配置文件<a class="headerlink" href="#klipper" title="Permanent link">&para;</a></h2>
<p>大多数 Klipper 设置由“打印机配置文件”printer.cfg 决定,该文件将存储在主机上。通常可以通过在 Klipper <a href="https://github.com/Klipper3d/klipper/blob/master/config/">config 目录</a> 中查找以“printer-”前缀开头且与目标打印机相对应的文件来找到适当的配置文件。Klipper 配置文件包含安装过程中需要的有关打印机的技术信息。</p>
<p>如果 Klipper 配置目录中没有合适的打印机配置文件,请尝试搜索打印机制造商的网站,看看他们是否有合适的 Klipper 配置文件。</p>
@@ -1493,13 +1493,13 @@
<p>目前最好的选择是通过 <a href="https://moonraker.readthedocs.io/">Moonraker web API</a> 检索信息的前端,也可以选择使用 <a href="https://octoprint.org/">Octoprint</a> 来控制 Klipper。</p>
<p>用户可自行选择使用哪种工具,但底层的 Klipper 在所有情况下都是相同的。我们鼓励用户研究可用的选项并做出明智的决定。</p>
<h2 id="sbc">获取 SBC 的操作系统映像<a class="headerlink" href="#sbc" title="Permanent link">&para;</a></h2>
<p>有多种方法可以获取用于 SBC 的 Klipper 操作系统映像,大多数方法取决于您希望使用哪种前端。这些 SBC 板的一些制造商还提供自己的以 Klipper 为中心的映像。</p>
<p>两个主要的基于 Moonraker 的前端是 <a href="https://docs.fluidd.xyz/">Fluidd</a> <a href="https://docs.mainsail.xyz/">Mainsail</a>,后者具有预制的安装映像 <a href="http://docs.mainsailOS.xyz">"MainsailOS"</a>,它有适用于 Raspberry Pi 和一些 OrangePi 变体的选项。</p>
<p>There are many ways to obtain an OS image for Klipper for SBC use, most depend on what front end you wish to use. Some manufacturers of these SBC boards also provide their own Klipper-centric images.</p>
<p>The two main Moonraker-based front ends are <a href="https://docs.fluidd.xyz/">Fluidd</a> and <a href="https://docs.mainsail.xyz/">Mainsail</a>, the latter of which has a premade install image <a href="https://docs-os.mainsail.xyz/">"MainsailOS"</a>, this has the option for Raspberry Pi and some OrangePi variants.</p>
<p>Fluidd 可以通过 KIAUHKlipper 安装和更新助手)进行安装,如下所述,它是所有 Klipper 的第三方安装程序。</p>
<p>OctoPrint 可以通过流行的 OctoPi 镜像或通过 KIAUH 安装,此过程在 <OctoPrint.md> 中有说明</p>
<h2 id="kiauh">通过 KIAUH 安装<a class="headerlink" href="#kiauh" title="Permanent link">&para;</a></h2>
<p>通常,您会从 SBC 的基本映像(例如 RPiOS Lite开始或者在 x86 Linux 设备的情况下,从 Ubuntu Server 开始。请注意,不建议使用桌面版本,因为某些辅助程序可能会阻止某些 Klipper 功能运行,甚至屏蔽对某些打印板的访问。</p>
<p>KIAUH 可用于在运行 Debian 的各种 Linux 系统上安装 Klipper 及其相关程序。更多信息请访问 <a href="https://github.com/dw-0/kiauh">https://github.com/dw-0/kiauh</a></p>
<p>Normally you would start with a base image for your SBC, RPiOS Lite for example, or in the case of an x86 Linux device, Ubuntu Server. Please note that Desktop variants are not recommended due to certain helper programs that can stop some Klipper functions from working and even mask access to some printer boards.</p>
<p>KIAUH can be used to install Klipper and its associated programs on a variety of Linux-based systems that run a form of Debian. More information can be found at <a href="https://github.com/dw-0/kiauh">https://github.com/dw-0/kiauh</a></p>
<h2 id="_2">构建和刷写微控制器<a class="headerlink" href="#_2" title="Permanent link">&para;</a></h2>
<p>要编译微控制器代码,首先在主机设备上运行以下命令:</p>
<div class="highlight"><pre><span></span><code>cd ~/klipper/
@@ -1510,7 +1510,7 @@ make menuconfig
<div class="highlight"><pre><span></span><code>make
</code></pre></div>
<p>如果<a href="#obtain-a-klipper-configuration-file">打印机配置文件</a>顶部的注释描述了"flashing"最终固件镜像到打印机控制板的特殊步骤,那么请遵循这些步骤,然后继续进行<a href="#configuring-octoprint-to-use-klipper">配置OctoPrint</a></p>
<p>If the comments at the top of the <a href="#obtain-a-klipper-configuration-file">printer configuration file</a> describe custom steps for "flashing" the final image to the printer control board, then follow those steps and then proceed to <a href="#configuring-octoprint-to-use-klipper">configuring OctoPrint</a>.</p>
<p>否则,通常采用以下步骤来"flash"打印机控制板。首先,需要确定连接到微控制器的串行端口。然后,运行以下程序:</p>
<div class="highlight"><pre><span></span><code>ls /dev/serial/by-id/*
</code></pre></div>
@@ -1520,8 +1520,8 @@ make menuconfig
</code></pre></div>
<p>通常,每台打印机都有自己独特的串行端口名称。此唯一名称将在刷新微控制器时使用。上面的输出中可能有多行 - 如果是这样,请选择与微控制器相对应的行。如果列出了许多项目并且选择不明确,请拔下电路板并再次运行命令,缺少的项目将是您的打印板(有关更多信息,请参阅 <a href="FAQ.html#wheres-my-serial-port">FAQ</a>)。</p>
<p>对于带有 STM32 或克隆芯片、LPC 芯片和其他芯片的常见微控制器,通常需要通过 SD 卡进行初始 Klipper 闪存。</p>
<p>使用此方法进行刷写时,务必确保打印板未通过 USB 连接到主机,因为某些电路板能够将电源反馈给电路板并阻止刷写开始。</p>
<p>For common micro-controllers with STM32 or clone chips, LPC chips and others, it is usual that these need an initial Klipper flash via SD card.</p>
<p>When flashing with this method, it is important to make sure that the print board is not connected with USB to the host, due to some boards being able to feed power back to the board and stopping a flash from occurring.</p>
<p>对于使用 Atmega 芯片的常见微控制器,例如 2560代码可以使用类似以下内容进行烧录</p>
<div class="highlight"><pre><span></span><code>sudo service klipper stop
make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
@@ -1538,9 +1538,9 @@ sudo service klipper start
<p>It is important to note that RP2040 chips may need to be put into Boot mode before this operation.</p>
<h2 id="klipper_2">配置 Klipper<a class="headerlink" href="#klipper_2" title="Permanent link">&para;</a></h2>
<p>The next step is to copy the <a href="#obtain-a-klipper-configuration-file">printer configuration file</a> to the host.</p>
<p>Arguably the easiest way to set the Klipper configuration file is using the built in editors in Mainsail or Fluidd. These will allow the user to open the configuration examples and save them to be printer.cfg.</p>
<p>Arguably the easiest way to set the Klipper configuration file is using the built-in editors in Mainsail or Fluidd. These will allow the user to open the configuration examples and save them to be printer.cfg.</p>
<p>Another option is to use a desktop editor that supports editing files over the "scp" and/or "sftp" protocols. There are freely available tools that support this (eg, Notepad++, WinSCP, and Cyberduck). Load the printer config file in the editor and then save it as a file named "printer.cfg" in the home directory of the pi user (ie, /home/pi/printer.cfg).</p>
<p>Alternatively, one can also copy and edit the file directly on the host via ssh. That may look something like the following (be sure to update the command to use the appropriate printer config filename):</p>
<p>Alternatively, one can also copy and edit the file directly on the host via SSH. That may look something like the following (be sure to update the command to use the appropriate printer config filename):</p>
<div class="highlight"><pre><span></span><code>cp ~/klipper/config/example-cartesian.cfg ~/printer.cfg
nano ~/printer.cfg
</code></pre></div>
@@ -1558,9 +1558,9 @@ nano ~/printer.cfg
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
</code></pre></div>
<p>After creating and editing the file it will be necessary to issue a "restart" command in the command console to load the config. A "status" command will report the printer is ready if the Klipper config file is successfully read and the micro-controller is successfully found and configured.</p>
<p>After creating and editing the file, it will be necessary to issue a "restart" command in the command console to load the config. A "status" command will report that the printer is ready if the Klipper config file is successfully read and the micro-controller is successfully found and configured.</p>
<p>在定制打印机配置文件时Klipper 报告配置错误是很正常的情况。如果发生错误,请对打印机配置文件进行必要的修正,并发出"restart",直到"status"报告打印机已准备就绪。</p>
<p>Klipper reports error messages via the command console and via pop up in Fluidd and Mainsail. The "status" command can be used to re-report error messages. A log is available and usually located in ~/printer_data/logs this is named klippy.log</p>
<p>Klipper reports error messages via the command console and pop-ups in Fluidd and Mainsail. The "status" command can be used to re-report error messages. A log is available and usually located at <code>~/printer_data/logs/klippy.log</code>.</p>
<p>在Klipper报告打印机已就绪后继续进入<a href="Config_checks.html">配置检查文件</a>,对配置文件中的定义进行一些基本检查。其他信息见主<a href="Overview.html">文档参考</a></p>