Since I turn off my printer once in a while and keep the RPi running it would be convenient to detect the MCU connection via USB and trigger an firmware-restart. I searched with the klipper context and found the following USB rule that I adapted to look for my MCU:
in /etc/udev/rules.d/98-klipper.rules I use:
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="614e", ACTION=="add", RUN+="/bin/sh -c '/bin/echo FIRMWARE-RESTART > /tmp/printer'"
the ACTION part will obviously not work with RatOS - is it just a different path to the "printer"? Or is it a completely different command that triggers a firmware restart?
Thanks!