ASWX2 - Printer auto-reconnect on power on (#12)

This commit was merged in pull request #12.
This commit is contained in:
2024-03-30 03:40:26 +01:00
parent c3efeb2e12
commit 564886383e
3 changed files with 43 additions and 1 deletions

View File

@@ -80,7 +80,8 @@ BED_MESH_OUTPUT
| Brand | Filament desc | Printing temp | Build Plate temp | Retractation Distance | | Brand | Filament desc | Printing temp | Build Plate temp | Retractation Distance |
|-----------|---------------|---------------|------------------|-----------------------| |-----------|---------------|---------------|------------------|-----------------------|
| Geeetech | Black | 205°C | 60°C | 0.75mm | | Geeetech | Black | 200°C | 60°C | 0.75mm |
| Geeetech | White | 200°C | 60°C | 0.75mm |
| Geeetech | Silk Silver | 205°C | 60°C | 0.75mm | | Geeetech | Silk Silver | 205°C | 60°C | 0.75mm |
## PETG ## PETG
@@ -214,6 +215,47 @@ make flash FLASH_DEVICE=2e8a:0003
Once flashed, the board will automatically reboot and goes back in operation mode. Once flashed, the board will automatically reboot and goes back in operation mode.
# OctoKlipper: Auto-reconnect printer after power-on
[Source](https://arnav.jain.se/2020/auto-restart-klipper-when-ender3-connected-to-pi/) by Arnav Jain.
Start off by accessing Octopi using ssh. \
Then create the `98-klipper.rules` file in the /etc/udev/rules.d/ folder:
```
ssh octoprint
sudo touch /etc/udev/rules.d/98-klipper.rules
```
Retreive `idVendor` and `idProduct` for the Klipper MCU:
1. Retrieve Klipper MCU ID
```
lusb
```
![Find Klipper MCU ID](images/aswx2-find-mcu-id.png)
2. Retrieve `idVendor` and `idProduct` using the Klipper MCU ID
```
lsusb -v -d 1d50:614e | grep id
```
![idVendor and idProduct](images/aswx2-klipper-mcu-idvendor-idproduct.png)
Then add the following text into the `98-klipper.rules` file just created:
1. Edit the `98-klipper.rules` file
```
sudo nano /etc/udev/rules.d/98-klipper.rules
```
2. Add text (remove the `0x` at the begining of the IDs)
```
## rule to restart klipper when the printer is connected via usb
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="614e", ACTION=="add", RUN+="/usr/bin/sudo -u pi /bin/sh -c '/bin/echo RESTART > /tmp/printer'"
```
Finally, re-load the udev rules:
```
sudo udevadm control --reload-rules
```
# Resources / Links # Resources / Links
* [Runout sensor bracket SIDEWINDER X2 by LeLudoLAb - Thingiverse](https://www.thingiverse.com/thing:5027268) * [Runout sensor bracket SIDEWINDER X2 by LeLudoLAb - Thingiverse](https://www.thingiverse.com/thing:5027268)

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB