jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
357 stars 59 forks source link

equivalent of gphoto2 --reset #148

Closed tsaizhenling closed 1 year ago

tsaizhenling commented 1 year ago

is there an api to reset the usb port of the device?

jim-easterbrook commented 1 year ago

Not that I know of. You can see what the gphoto2 command does here: https://github.com/gphoto/gphoto2/blob/master/gphoto2/main.c#L1683

It should be possible to do the same steps in python-gphoto2.