2022年9月30日 星期五

使用電腦執行 Klipper 控制 MKS Gen_L V2.1

想使用 docker 來測試 klipper,參考 https://github.com/mkuf/prind


那個 type-B 的 USB 接頭實在很煩,線又很短,有空來換成 type-c 的接頭吧。連上後,使用 dmesg 顯示訊息如下。

------------------------------------
[   55.491549] usb 2-1.1: new full-speed USB device number 4 using ehci-pci
[   55.601246] usb 2-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice=81.34
[   55.601265] usb 2-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   55.601272] usb 2-1.1: Product: USB Serial
[   55.601901] ch341 2-1.1:1.0: ch341-uart converter detected
[   55.606120] usb 2-1.1: ch341-uart converter now attached to ttyUSB0
-----------------------------------

使用 Gentoo,必須設定和編譯 Kernel,新增 module「USB Winchiphead CH341 Single Port Serial Driver (USB_SERIAL_CH341)」。

--------------------
mks@mkspi:~/klipper$ make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  Flashing out/klipper.elf.hex to /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 via avrdude

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: reading input file "out/klipper.elf.hex"
avrdude: writing flash (30148 bytes):

Writing | ################################################## | 100% 4.83s

avrdude: 30148 bytes of flash written
avrdude: verifying flash memory against out/klipper.elf.hex:
avrdude: load data flash data from input file out/klipper.elf.hex:
avrdude: input file out/klipper.elf.hex contains 30148 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 3.68s

avrdude: verifying ...
avrdude: 30148 bytes of flash verified

avrdude: safemode: Fuses OK (E:FD, H:D8, L:FF)

avrdude done.  Thank you.

--------------------

從 MKS 的文件找到的 PIN 腳圖,把用到的 PIN 腳改成 Klipper 使用的標號。




沒有留言:

張貼留言

網誌存檔