RĂ©initialiser un port USB (usbreset)


Installer "usbreset" :

pgd@rpi01:~ $ wget -c --no-check-certificate https://gist.githubusercontent.com/x2q/5124616/raw/3f6e5f144efab2bc8e9d02b95b8301e1e0eab669/usbreset.c -O usbreset.c

pgd@rpi01:~ $ cc usbreset.c -o usbreset               

pgd@rpi01:~ $ chmod +x usbreset                       


List your USB devices via lsusb command
pgd@rpi01:~ $ lsusb                                   


You should see USB device entries in your output and check device you want to reset for.
Bus 002 Device 003: ID 0fe9:9010 DVICO
Run usbreset program with arguments :
pgd@rpi01:~ $ sudo ./usbreset /dev/bus/usb/002/003