Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random --wait-event issue with Nikon Z72 #642

Open
Imothep44 opened this issue Jul 16, 2024 · 6 comments
Open

random --wait-event issue with Nikon Z72 #642

Imothep44 opened this issue Jul 16, 2024 · 6 comments
Assignees
Labels
Nikon tagging Nikon reports

Comments

@Imothep44
Copy link

the bug
I have a bug with the --wait-event option command on Z72 and Raspberry pi 4.
When I have a new fresh install of the os rasbian, all work fine.
I run this command: gphoto2 --trigger-capture --wait-event=CAPTURECOMPLETE.
But after a while of use (some days or +) or modification of the Nikon settings or whatever else, the --wait-event command gives me an error:
*** Error ***
PTP Device Prop Not Supported
*** Error (-1: 'Unspecified error') ***

Name the camera
Nikon Z7_2 usb:001,012

libgphoto2 and gphoto2 version
gphoto2 2.5.28.1
libgphoto2 2.5.30
libgphoto2_port 0.12.1

To Reproduce
That's the problem is that I don't know how to reproduce what causes this bug.
Resetting all settings of the Nikon do not solve the issue.
I can just say that if I reinstall raspbian everything will work again.

By advance: Thanks !

@Imothep44
Copy link
Author

it seems that modifying the "autofocus" setting causes the bug... It's very strange, when I change this setting the --wait-event setting works or doesn't work randomly... (Once it's ok with autofocus set to On, Once it's ok with Off...) It's a bug? Anyone can help me?

@msmeissn msmeissn self-assigned this Jul 18, 2024
@msmeissn msmeissn added the Nikon tagging Nikon reports label Jul 18, 2024
@msmeissn
Copy link
Contributor

autofocus is not a setting, it is an action trigger ... setting it will be triggering the autofocus logic.

kind of weird, it should not cause problems.

that this only happens after days would lead me to suspect some camera firmware instability.

@Imothep44
Copy link
Author

The issue comes when I modify this setting: /main/settings/autofocus. Not when I try to do an autofocus drive (/main/actions/autofocusdrive). For now when I set /main/settings/autofocus=Off the gphoto2 --trigger-capture --wait-event=1s work fine but when I change this to: /main/settings/autofocus=On I have the error PTP Device Prop Not Supported.

@Imothep44
Copy link
Author

For more accuracy here is my test process:
1st test

  1. gphoto2 --set-config autofocus=On
  2. gphoto2 --trigger-capture --wait-event=1s
  3. Return of gphoto2: *** Error ***
    PTP Device Prop Not Supported
    *** Error (-1: 'Unspecified error') ***
    2nd test:
  4. gphoto2 --set-config autofocus=Off
  5. gphoto2 --trigger-capture --wait-event=1s
  6. Return of gphoto2: no errors.

I precise that on my Nikon the setting autofocus change nothing on the focus, (AF-S)

@msmeissn
Copy link
Contributor

msmeissn commented Aug 5, 2024

the device prop not supportd bug is now fixed in master branch

@Imothep44
Copy link
Author

great ! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Nikon tagging Nikon reports
Projects
None yet
Development

No branches or pull requests

2 participants