列出USB设备并从命令行重置其中之一
用法:
python reset_usb.py help : Show this help
sudo python reset_usb.py list : List all USB devices
sudo python reset_usb.py path /dev/bus/usb/XXX/YYY : Reset USB device using path /dev/bus/usb/XXX/YYY
sudo python reset_usb.py search "search terms" : Search for USB device using the search terms within the search string returned by list and reset matching device
sudo python rese
USB外围设备的通用设备监视器
该软件包使用libudev监视linux机器上任何已注册USB设备的状态。
要求
利卜杜夫
libusb
注册设备
为了注册设备,您需要以以下格式将设备详细信息输入到配置文件中
VID,PID,Name
VID = Vendor ID of th device
PID = Product ID of the device
Name = String indicating the name of the device (User defined)
* Use lsusb to find above mentioned details
用法
Observer pattern has been used in this project. An observer will have to be created to recieve notifications.
Pl