gphoto / gphoto2

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

new nikkor MC lenses not working 'bad parameters' - MC 105 - Nikon Z7 #580

Open tokiAi opened 1 year ago

tokiAi commented 1 year ago

both NIKKOR MC lenses not working MC 105 (as described here) and MC 50 (pls see - other bug report)

Describe the bug It is possible to drive the lens motor with manualfocusdrive 2 times with -20.000 and 1 time -10.000 - in summary -50000, but not back with +50.000.

Name the camera Nikon Z7 Lens NIKKOR Z MC 105mm f/2.8 VR S

libgphoto2 and gphoto2 version This version of gphoto2 is using the following software versions and options: gphoto2 2.5.27 gcc, popt(m), exif, cdk, no aa, jpeg, no readline libgphoto2 2.5.27 standard camlibs (SKIPPING docupen), gcc, ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, ltdl, USB, serial without locking

To Reproduce pls see png terminal nikon z7 105 mc

If its a camera misbehavior, attach debug output using --debug --debug-logfile=debug.log (if considered useful). my-logfile.txt

tokiAi commented 1 year ago

Any progress so far?

msmeissn commented 1 year ago

The SDK documentation states clearly we can send only 0..32767 values on a single manualfocusdrive.

you could try to emit the opcode yourself:

gphoto2 --set-config opcode=0x9204,0x2,0xc350

basically 0xc350 is 50000 ( 0x2 is focusing far, 0x1 would be focusing near).