Deploying to gh-pages from @ Klipper3d/klipper@848a78d1a5 🚀

This commit is contained in:
KevinOConnor
2023-02-20 16:07:14 +00:00
parent bc59ba8d7d
commit 6913c09690
56 changed files with 283 additions and 288 deletions

View File

@@ -1379,7 +1379,7 @@ sudo update-rc.d octoprint defaults
<div class="highlight"><pre><span></span><code>sudo systemctl start octoprint
</code></pre></div>
<p>需要确定可以访问 OctoPrint 网络服务器 - 它应该可以通过这个链接访问: <a href="http://beaglebone:5000/">http://beaglebone:5000/</a></p>
<p>需要确定可以访问 OctoPrint 网络服务器 - 它应该可以通过这个链接访问:<a href="http://beaglebone:5000/">http://beaglebone:5000/</a></p>
<h2 id="_2">构建微控制器代码<a class="headerlink" href="#_2" title="Permanent link">&para;</a></h2>
<p>要编译的 Klipper 微控制器代码需要先将编译配置设为“Beaglebone PRU”</p>
<div class="highlight"><pre><span></span><code>cd ~/klipper/

View File

@@ -1627,7 +1627,7 @@
<p>如果能用某种方式将 bootloader 刷写到微控制器,使用该方式通常也能完成程序刷写操作,但是,这种直接刷写可能会将 bootloader 覆盖掉。相对地bootloader 只允许用户刷写应用程序区域。因此,尽可能使用 bootloader 完成程序的刷写。</p>
<p>该文档将尽可能介绍常见的bootloaders刷入bootloader所需的步骤和触发bootloader进行程序刷写的流程。该文档亦非官方指引这只是在Klipper开发人员使用过程中收集到的有用信息。</p>
<h2 id="avr">AVR 微控制器<a class="headerlink" href="#avr" title="Permanent link">&para;</a></h2>
<p>总体上来说Arduino项目是8位Atmel Atmega微控制器的引导程序和刷写程序的好的参考。特别是" boards.txt "文件。 <a href="https://github.com/arduino/Arduino/blob/1.8.5/hardware/arduino/avr/boards.txt">https://github.com/arduino/Arduino/blob/1.8.5/hardware/arduino/avr/boards.txt</a>是一个有用的参考。</p>
<p>总体上来说Arduino项目是8位Atmel Atmega微控制器的引导程序和刷写程序的好的参考。特别是" boards.txt "文件。<a href="https://github.com/arduino/Arduino/blob/1.8.5/hardware/arduino/avr/boards.txt">https://github.com/arduino/Arduino/blob/1.8.5/hardware/arduino/avr/boards.txt</a>是一个有用的参考。</p>
<p>要刷写引导程序本身AVR 芯片需要一个外部硬件刷写工具(它使用 SPI 与芯片进行通信)。这个工具可以购买(例如,在网上搜索 "avr isp"、"arduino isp "或 "usb tiny isp"。也可以使用另一个Arduino或Raspberry Pi来闪存AVR引导程序例如在网上搜索 "用raspberry pi编程AVR")。下面的例子是在假设使用 "AVR ISP Mk2 "类型的设备的情况下编写的。</p>
<p>"avrdude "程序是最常用的工具用于刷写atmega芯片包括引导程序刷写和应用程序刷写</p>
<h3 id="atmega2560">Atmega2560<a class="headerlink" href="#atmega2560" title="Permanent link">&para;</a></h3>
@@ -1678,7 +1678,7 @@ avrdude -cavrispv2 -patmega1284p -P/dev/ttyACM0 -b115200 -U lock:w:0x0F:m
<h3 id="at90usb1286">At90usb1286<a class="headerlink" href="#at90usb1286" title="Permanent link">&para;</a></h3>
<p>本文件不包括向At90usb1286刷写引导程序的方法也不包括向该设备刷写一般应用。</p>
<p>来自pjrc.com的Teensy++设备带有一个专用的引导程序。它需要一个来自 <a href="https://github.com/PaulStoffregen/teensy_loader_cli">https://github.com/PaulStoffregen/teensy_loader_cli</a>的定制刷写工具。可以用这个工具来刷写一个应用程序,例如:</p>
<p>来自pjrc.com的Teensy++设备带有一个专用的引导程序。它需要一个来自<a href="https://github.com/PaulStoffregen/teensy_loader_cli">https://github.com/PaulStoffregen/teensy_loader_cli</a>的定制刷写工具。可以用这个工具来刷写一个应用程序,例如:</p>
<div class="highlight"><pre><span></span><code>teensy_loader_cli --mcu=at90usb1286 out/klipper.elf.hex -v
</code></pre></div>
@@ -1740,7 +1740,7 @@ program samd21_sam_ba.bin verify
<div class="highlight"><pre><span></span><code>source [find target/atsame5x.cfg]
</code></pre></div>
<p>获得一个引导程序--很多引导程序可以从 <a href="https://github.com/adafruit/uf2-samdx1/releases/latest">https://github.com/adafruit/uf2-samdx1/releases/latest</a>获得。例如:</p>
<p>获得一个引导程序--很多引导程序可以从<a href="https://github.com/adafruit/uf2-samdx1/releases/latest">https://github.com/adafruit/uf2-samdx1/releases/latest</a>获得。例如:</p>
<div class="highlight"><pre><span></span><code>wget &#39;https://github.com/adafruit/uf2-samdx1/releases/download/v3.7.0/bootloader-itsybitsy_m4-v3.7.0.bin&#39;
</code></pre></div>
@@ -1759,10 +1759,10 @@ at91samd bootloader 16384
<div class="highlight"><pre><span></span><code>stm32flash -w out/klipper.bin -v -g 0 /dev/ttyAMA0
</code></pre></div>
<p>注意如果使用树莓派的3.3V串口stm32flash协议使用的串行奇偶校验模式树莓派的 "mini UART "并不支持。关于在树莓派的GPIO引脚上启用完整的UART的细节 <a href="https://www.raspberrypi.com/documentation/computers/configuration.html#configuring-uarts">https://www.raspberrypi.com/documentation/computers/configuration.html#configuring-uarts</a></p>
<p>注意如果使用树莓派的3.3V串口stm32flash协议使用的串行奇偶校验模式树莓派的 "mini UART "并不支持。关于在树莓派的GPIO引脚上启用完整的UART的细节<a href="https://www.raspberrypi.com/documentation/computers/configuration.html#configuring-uarts">https://www.raspberrypi.com/documentation/computers/configuration.html#configuring-uarts</a></p>
<p>刷写后,将 "boot 0 "和 "boot 1 "都恢复设为低电平,以便在复位后从闪存启动。</p>
<h3 id="stm32duino-stm32f103">带有 stm32duino 引导加载程序的 STM32F103<a class="headerlink" href="#stm32duino-stm32f103" title="Permanent link">&para;</a></h3>
<p>"stm32duino "项目有一个USB功能的引导程序-参见: <a href="https://github.com/rogerclarkmelbourne/STM32duino-bootloader">https://github.com/rogerclarkmelbourne/STM32duino-bootloader</a></p>
<p>"stm32duino "项目有一个USB功能的引导程序-参见:<a href="https://github.com/rogerclarkmelbourne/STM32duino-bootloader">https://github.com/rogerclarkmelbourne/STM32duino-bootloader</a></p>
<p>这个引导程序可以通过3.3V的串口用类似以下的命令来刷写:</p>
<div class="highlight"><pre><span></span><code>wget &#39;https://github.com/rogerclarkmelbourne/STM32duino-bootloader/raw/master/binaries/generic_boot20_pc13.bin&#39;
@@ -1866,11 +1866,11 @@ stm32flash -w hid_bootloader_SKR_PRO.bin -v -g 0 /dev/ttyAMA0
<p>与STM32F1一样STM32F4使用hid-flash工具来上传二进制文件到MCU。关于如何构建和使用hid-flash的细节请参见上面的说明。</p>
<p>可能需要手动进入引导程序,这可以通过设置 "boot 0 "为低电平,"boot 1 "为高电平并上电来完成。编程完成后,设备断电,将 "boot 1 "重设为低电平,这样应用程序就会被加载。</p>
<h2 id="lpc176xsmoothieboards">LPC176x微控制器Smoothieboards<a class="headerlink" href="#lpc176xsmoothieboards" title="Permanent link">&para;</a></h2>
<p>本文件没有描述刷写引导程序本身的方法--见: <a href="http://smoothieware.org/flashing-the-bootloader">http://smoothieware.org/flashing-the-bootloader</a>以获得关于该主题的进一步信息。</p>
<p>Smoothieboards通常带有一个来自 <a href="https://github.com/triffid/LPC17xx-DFU-Bootloader">https://github.com/triffid/LPC17xx-DFU-Bootloader</a>的bootloader。当使用这个引导程序时应用程序必须以16KiB的起始地址进行编译。用这个引导程序刷写应用程序的最简单方法是将应用程序文件例如<code>out/klipper.bin</code>复制到SD卡上一个名为<code>firmware.bin</code>的文件然后用该SD卡重新启动微控制器。</p>
<p>本文件没有描述刷写引导程序本身的方法--见:<a href="http://smoothieware.org/flashing-the-bootloader">http://smoothieware.org/flashing-the-bootloader</a>以获得关于该主题的进一步信息。</p>
<p>Smoothieboards通常带有一个来自<a href="https://github.com/triffid/LPC17xx-DFU-Bootloader">https://github.com/triffid/LPC17xx-DFU-Bootloader</a>的bootloader。当使用这个引导程序时应用程序必须以16KiB的起始地址进行编译。用这个引导程序刷写应用程序的最简单方法是将应用程序文件例如<code>out/klipper.bin</code>复制到SD卡上一个名为<code>firmware.bin</code>的文件然后用该SD卡重新启动微控制器。</p>
<h2 id="openocd">在树莓派上运行OpenOCD<a class="headerlink" href="#openocd" title="Permanent link">&para;</a></h2>
<p>OpenOCD是一个软件包可以进行底层的芯片编程和调试。它可以使用树莓派上的GPIO引脚与各种ARM芯片通信。</p>
<p>本节描述了如何安装和启动OpenOCD。它来自于以下的说明 <a href="https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi">https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi</a></p>
<p>本节描述了如何安装和启动OpenOCD。它来自于以下的说明<a href="https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi">https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi</a></p>
<p>开始下载和编译软件(每个步骤可能需要数分钟,"make "步骤可能需要30分钟以上</p>
<div class="highlight"><pre><span></span><code>sudo apt-get update
sudo apt-get install autoconf libtool telnet

View File

@@ -1370,7 +1370,7 @@
<p>为了使用 CAN 总线,主机需要一个适配器。目前有两种常见的选择:</p>
<ol>
<li>使用<a href="https://www.waveshare.com/rs485-can-hat.htm">Waveshare Raspberry Pi CAN hat</a>或其众多克隆中的一个。</li>
<li>使用一个USB CAN适配器例如 <a href="https://hacker-gadgets.com/product/cantact-usb-can-adapter/">https://hacker-gadgets.com/product/cantact-usb-can-adapter/</a>。有许多不同的USB到CAN适配器—当选择时我们建议验证它是否能运行<a href="https://github.com/candle-usb/candleLight_fw">candlelight 固件</a>。(不幸的是我们发现一些USB适配器运行有缺陷的固件并被锁死所以在购买前要进行核实。</li>
<li>使用一个USB CAN适配器例如<a href="https://hacker-gadgets.com/product/cantact-usb-can-adapter/">https://hacker-gadgets.com/product/cantact-usb-can-adapter/</a>。有许多不同的USB到CAN适配器—当选择时我们建议验证它是否能运行<a href="https://github.com/candle-usb/candleLight_fw">candlelight 固件</a>。(不幸的是我们发现一些USB适配器运行有缺陷的固件并被锁死所以在购买前要进行核实。</li>
</ol>
<p>还需要将主机操作系统配置为使用适配器。通常可以通过创建一个名为 <code>/etc/network/interfaces.d/can0</code> 的新文件来实现,该文件包含以下内容:</p>
<div class="highlight"><pre><span></span><code>auto can0

View File

@@ -1411,7 +1411,7 @@
</li>
<li>
<p>提交的版权是否清晰、无偿、兼容?新的 C 文件和 Python 文件应该有一个明确的版权声明。请看现有文件以了解推荐格式。不推荐在对现有文件进行小的修改时对该文件进行版权声明。</p>
<p>从第三方来源获取的代码必须与 Klipper 的许可证GNU GPLv3兼容。大型的第三方代码添加应被添加到<code>lib/</code>目录中(并遵循 &lt;../lib/README&gt;中描述的格式)。</p>
<p>从第三方来源获取的代码必须与 Klipper 的许可证GNU GPLv3兼容。大型的第三方代码添加应被添加到<code>lib/</code>目录中(并遵循<a href="https://github.com/Klipper3d/klipper/blob/master/lib/README">../lib/README</a>中描述的格式)。</p>
<p>提交者必须提供一个<a href="#format-of-commit-messages">Signed-off-by 行</a>,使用他们的真实全名。它表明提交者同意<a href="developer-certificate-of-origin">开发者源头证书</a></p>
</li>
<li>

View File

@@ -1402,7 +1402,7 @@
<h2 id="_2">社区论坛<a class="headerlink" href="#_2" title="Permanent link">&para;</a></h2>
<p>有一个用来讨论 Klipper 的 <a href="https://community.klipper3d.org">Klipper 社区 Discourse 服务器</a></p>
<h2 id="discord">Discord 聊天<a class="headerlink" href="#discord" title="Permanent link">&para;</a></h2>
<p>我们有一个用来讨论Klipper的Discord服务器它的邀请链接是 <a href="https://discord.klipper3d.org">https://discord.klipper3d.org</a></p>
<p>我们有一个用来讨论Klipper的Discord服务器它的邀请链接是<a href="https://discord.klipper3d.org">https://discord.klipper3d.org</a></p>
<p>这个服务器是由 Klipper 爱好者社区运行,致力于讨论 Klipper。它允许进行用户间的实时聊天。</p>
<h2 id="klipper">我有一个关于 Klipper 的问题<a class="headerlink" href="#klipper" title="Permanent link">&para;</a></h2>
<p>我们收到的许多问题在 <a href="Overview.html">Klipper 文档</a>中已经有了答案。请务必阅读该文档并遵循其中提供的指示。</p>

View File

@@ -2007,7 +2007,7 @@ TEST_RESONANCES AXIS=1,-1 OUTPUT=raw_data
</code></pre></div>
<p>以生成<code>/tmp/resonances.png</code>,对比共振的数据。</p>
<p>对标准构型的三角洲打印机A塔210°B塔330°C塔~90°执行</p>
<p>对标准构型的三角洲打印机A塔~210°B塔~330°C塔~90°执行</p>
<div class="highlight"><pre><span></span><code>TEST_RESONANCES AXIS=0,1 OUTPUT=raw_data
TEST_RESONANCES AXIS=-0.866025404,-0.5 OUTPUT=raw_data
TEST_RESONANCES AXIS=0.866025404,-0.5 OUTPUT=raw_data

View File

@@ -1360,13 +1360,13 @@
<h1 id="_1">赞助<a class="headerlink" href="#_1" title="Permanent link">&para;</a></h1>
<p>Klipper是自由软件。我们依赖于赞助商的慷慨支持。请考虑赞助Klipper或支持我们的赞助商。</p>
<h2 id="bigtreetech">BIGTREETECH<a class="headerlink" href="#bigtreetech" title="Permanent link">&para;</a></h2>
<p>[<img src="./img/sponsors/BTT_BTT.png" width="200" /></p>
<p><a href="https://bigtree-tech.com/collections/all-products"><img src="./img/sponsors/BTT_BTT.png" width="200" /></a></p>
<p>BIGTREETECH是Klipper的官方主板赞助商。BIGTREETECH致力于开发创新和有竞争力的产品更好地服务于3D打印社区。在<a href="https://www.facebook.com/BIGTREETECH">Facebook</a><a href="https://twitter.com/BigTreeTech">Twitter</a>上关注他们。</p>
<h2 id="klipper">Klipper的开发者们<a class="headerlink" href="#klipper" title="Permanent link">&para;</a></h2>
<h3 id="kevin-oconnor">Kevin O'Connor<a class="headerlink" href="#kevin-oconnor" title="Permanent link">&para;</a></h3>
<p>Kevin 是项目原作者和当前Klipper的维护。支持链接在 <a href="https://ko-fi.com/koconnor">https://ko-fi.com/koconnor</a> 或者 <a href="https://www.patreon.com/koconnor">https://www.patreon.com/koconnor</a></p>
<p>Kevin 是项目原作者和当前Klipper的维护。支持链接在<a href="https://ko-fi.com/koconnor">https://ko-fi.com/koconnor</a> 或者 <a href="https://www.patreon.com/koconnor">https://www.patreon.com/koconnor</a></p>
<h3 id="eric-callahan">Eric Callahan<a class="headerlink" href="#eric-callahan" title="Permanent link">&para;</a></h3>
<p>Eric是bed_mesh、spi_flash和其他几个Klipper模块的作者。Eric的支持页面 <a href="https://ko-fi.com/arksine">https://ko-fi.com/arksine</a></p>
<p>Eric是bed_mesh、spi_flash和其他几个Klipper模块的作者。Eric的支持页面<a href="https://ko-fi.com/arksine">https://ko-fi.com/arksine</a></p>
<h2 id="klipper_1">相关的Klipper项目<a class="headerlink" href="#klipper_1" title="Permanent link">&para;</a></h2>
<p>Klipper经常与其他自由软件一起使用。也请考虑使用或支持这些项目。</p>
<ul>

View File

@@ -1974,7 +1974,7 @@
<li><code>retract_length</code><code>retract_speed</code><code>unretract_extra_length</code><code>unretract_speed</code>firmware_retraction 模块的当前设置。如果 <code>SET_RETRACTION</code> 命令改变它们,这些设置可能与配置文件不同。</li>
</ul>
<h2 id="gcode_macro">gcode_macro<a class="headerlink" href="#gcode_macro" title="Permanent link">&para;</a></h2>
<p>[gcode_macro &lt;名称&gt; 对象提供了以下信息:</p>
<p><a href="Config_Reference.html#gcode_macro">gcode_macro &lt;名称&gt;</a> 对象提供了以下信息:</p>
<ul>
<li><code>&lt;变量名&gt;</code><a href="Command_Templates.html#variables">gcode_macro 变量</a> 的当前值。</li>
</ul>
@@ -2046,7 +2046,7 @@
<li><code>live_extruder_velocity</code>当前请求的挤出机速度单位mm/s</li>
</ul>
<h2 id="output_pin">output_pin<a class="headerlink" href="#output_pin" title="Permanent link">&para;</a></h2>
<p>[output_pin &lt;配置名称&gt; 对象提供以下信息:</p>
<p><a href="Config_Reference.html#output_pin">output_pin &lt;配置名称&gt;</a> 对象提供以下信息:</p>
<ul>
<li><code>value</code>:由<code>SET_PIN</code>指令设置的引脚“值”。</li>
</ul>

File diff suppressed because one or more lines are too long

Binary file not shown.