My goal is to have Octoprint automatically reconnect to my printer when it powers on.
Printer is Prusa I3 Mk3 plugged in via USB to Raspberry PI B+
PI is running octopi (Version 0.15.1, running on Raspberry Pi 3 Model B Plus Rev 1.3)
Using the portlistener plugin if I physically remove the USB plug at one end and then plug it back in, I can see a kernel message on the PI and the port is detected and automatically reconnects.
If I poweroff the printer (currently doing this via a sonoff control but I don't think that is relevant - the end result is still no power to the printer as expected). Then no change is detected by the PI. I assume that it is still supplying power via the USB (the Prusa screen does turn off).
So the end result is power/on/off via printer power and the Serial connection will disconnect and never re-connect.
Has anyone else experienced this ? Any suggestions? I can see that there are some options to shut power to the USB ports via PI console but I would have to somehow link that to powering the printer on to then bounce the port..