gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
705 stars 116 forks source link

gPhoto2 - Nikon D5100 Focus Issue #312

Open sakibnaz opened 4 years ago

sakibnaz commented 4 years ago

Hi there.

I am trying to test Focus in my D5100. My lens in Auto Focus Mode and I tried to test the Focus command "gphoto2 --capture-preview --set-config manualfocusdrive=20000" but got an Error "Nikon manual focus stepping too small".

Debug log is attached.

Anyone advise please.

Thanks.

Regards.

Focus_Log.txt my-logfile.txt

msmeissn commented 4 years ago

1.534820 ptp_usb_getresp [usb.c:514] (0): PTP_OC 0x90c8 receiving resp failed: Mf Drive Step Insufficiency (0xa00e)

Can you try other values? The highest should be 32767 , but also try lower ones?

sakibnaz commented 4 years ago

Hi @msmeissn, Thanks for checking.

Tested both 32767 and -32767 values. But same error getting "Nikon manual focus stepping too small".

Debug log attached. Any advise appreciated.

However, one more ques, after enable "--capture-preview" how to disable it by command?

Thanks.

focuslog-32767.txt focus_log_32767.txt

msmeissn commented 4 years ago

--set-config viewfinder=0 would disable liveview.

I do not see any reason this error gets reported here, this is also the first report. Debug logfile looks otherwise good.

What actual lens do you use?

sakibnaz commented 4 years ago

Hi @msmeissn ... I am still not able to make it work. My lens is AF-S Nikkor 18-55mm 1:3.5-F5.6G DX VR.

gphoto2 --capture-preview --wait-event=2s --set-config manualfocusdrive=15000

It gives Error "Nikon manual focus stepping too small" Also tried -15000 and other values as well. Same Error.

I have attached the debug log again for the command:

manualfocusdrive-logfile.txt . Thanks in advance.

Regards.

msmeissn commented 4 years ago

Still weird. Can you try smaller values?

e.g. my Nikon D90 with with the 50mm/1.8 takes the full -32768 - 32768 range for manualfocusdrive

but my Nikon Z6 with the 24-70/4.5 takes only range -1500 ... 1500 , anything higher is too high for it.