This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create /etc/udev/rules.d/99-usb-serial.rules: | |
| SUBSYSTEM=="usb", ACTION=="add" ATTR{idVendor}=="01a86", ATTR{idProduct}=="7523", RUN+="/home/pi/connect.py", TAG+="systemd" | |
| ATTR{idVendor}=="01a86", ATTR{idProduct}=="7523" are printer specific and for an Sovol SV06. You can find yours with lsusb on your pi while the printer is connected. | |
| The script mentioned in the rule (/home/pi/connect.py) looks as follows: | |
| ``` | |
| #!/usr/bin/python3 |