mcarans / resetusb

List USB devices and reset a USB device from the command line
MIT License
106 stars 38 forks source link

Request for clarification #3

Open TangoOversway opened 3 months ago

TangoOversway commented 3 months ago

Not a bug or issue, but I'd like to get a better understanding of this. Do search terms in this work at al like udev rules? Or do I just search for a string and then it returns a device path? And if I use search, can I have it create a device path for the first device it finds that matches the search?

I know this is being picky, but an actual example or two would help a lot!

mcarans commented 3 months ago

If you use the listpci or list command line parameter, under "search string" you will see the string that will be searched for whatever substring you give.

TangoOversway commented 3 months ago

Thank you.

So it provides a list of what matches the search string? I take it we also can't add a path for it to reset the device to, or can we?

mcarans commented 3 months ago

If you want to use path, you can use the path or pathpci command line parameters. You can see all the possible command line parameters using python reset_usb.py help