gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.06k stars 325 forks source link

Using --set-config with EOS 750D always fails after first use #186

Open dcf21 opened 7 years ago

dcf21 commented 7 years ago

gphoto2 seems to have some issues talking to my Canon EOS 750D. If I use --set-config to set an exposure length, it works the first time, but always fails on all subsequent calls:

dcf21@thebe:~$ gphoto2 --set-config /main/capturesettings/shutterspeed=10 dcf21@thebe:~$ gphoto2 --set-config /main/capturesettings/shutterspeed=10

Error
/main not found in configuration tree. Error (-1: 'Unspecified error')

For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list gphoto-devel@lists.sourceforge.net, please run gphoto2 as follows:

env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --set-config /main/capturesettings/shutterspeed=10

Please make sure there is sufficient quoting around the arguments.

The log file is attached... my-logfile.txt

When it comes to capturing images, it seems to work about 80% of the time, but sporadically returns a "could not capture" error.

My version numbers are as follows:

This version of gphoto2 is using the following software versions and options: gphoto2 2.5.14 gcc, popt(m), exif, cdk, aa, jpeg, readline libgphoto2 2.5.14 all camlibs, gcc, ltdl, EXIF libgphoto2_port 0.12.0 gcc, ltdl, USB, serial without locking

Any thoughts?

arismelachroinos commented 6 years ago

I also get Error /main not found in configuration tree. Error (-1: 'Unspecified error')

when i try to get the shuttercount from my 80D

fyrkrans commented 6 years ago

I get that error message too when trying to get the shuttercount from a Canon 200D. At first I thought it's simply not supported yet, but the model is mentioned in the list of supported cameras.

Can I help somehow? Should I ask on the mailing list instead?

EliaCereda commented 6 years ago

I get the same error from my Canon EOS 760D when changing various properties.

I found that the problem does not happen in gphoto2 --config or gphoto2 --shell nor if using gphoto2 --set-config capture=1 --set-config <# actual config #> --set-config capture=0, although I don’t fully understand what capture does.

msmeissn commented 6 years ago

I think its a timing issue. I enhanced the timing a bit in current GIT ...

uladkasach commented 4 years ago

Had the same issue. It looks like by default gphoto is in capture=0 mode (which can be read as "capture_mode = read only")

By running

gphoto2 --set-config capture=1

It seems like we're setting the camera into not-read-only, which exposes the other settings.

msmeissn commented 4 years ago

--set-config capture=1 would only be needed several years ago for Canon Powershot.

it is not needed in any new cameras currently.

gphoto will get the camera into capture mode automatically if you do capture related activities.