Smart Stepper - USB, Soft and hard reset

USB Reset way #1 - bind/unbind

The following unbind command will kill complete USB chip for session if you type only "1-1". It will cut through SSH so you need to reboot manually. You only want to kill certain parts. So at first list all usb devices and then do some echo "1-1.2" to kill port 2 only. Unbinding will power off the devices like uhubctl does!

#list USB
cd /sys/bus/usb/drivers/usb
ls -alF

#turn OFF USB chip
echo '1-1.2' |sudo tee /sys/bus/usb/drivers/usb/unbind

#turn ON USB chip
echo '1-1.2' |sudo tee /sys/bus/usb/drivers/usb/bind

USB Reset way #2 - uhubctl

This tool can power on / power off / cycle USB devices. This was successfully tested on Raspberry Pi 3B

Very useful and important information: https://github.com/mvp/uhubctl

apt install libusb-1.0-0-dev
cd /opt
git clone https://github.com/mvp/uhubctl
cd uhubctl/
make
/opt/uhubctl/uhubctl -r 500 -l 1-1 -p 2 -a off #works to make devices completely dead (power off). 

/opt/uhubctl/uhubctl -l 1-1 -p 2 -a on #revive (power on)

Warnings

lsusb
lsusb -t
lsusb -v -d 0x1209: > stepperDump.log

 


Version #1
Erstellt: 2026-06-08 15:42:26 CEST von Mario Voigt
Zuletzt aktualisiert: 2026-06-08 15:43:22 CEST von Mario Voigt