Re: Error PTP Device Prop Not Supported with Nikon Z 7ii (resending)

Marcus Meissner <[email protected]> Tue, 15 Aug 2023 11:02:08 +0200
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <ZNs_EA4JGuWu44mv@jenny>
Hi,

thanks for the report!

It is something I have fixed in current libgphoto2 GIT already, just is not in a release yet.

I will try to a cut a release the next weeks :/

Ciao, Marcus
On Sat, Aug 12, 2023 at 09:52:44PM -0500, Art Zemon wrote:
> (resending without the attachment)
> 
> When I run "gphoto2 --capture-tethered" with my Nikon Z 7ii, it keeps
> exiting with
> 
> *** Error ***
> PTP Device Prop Not Supported
> *** Error (-1: 'Unspecified error') ***
> 
> The pertinent part seems to be the following.
> 
> Is there a workaround other than running
>   while true; do gphoto2 --capture-tethered CAPTURECOMPLETE; done
> If I do that, all is good. Gphoto2 does successfully download the photos.
> 
> Thanks,
>     -- Art Z.
> 
> 4.269661 camera_wait_for_event       (2): event.Code is 4006 / param 501c
> 4.269682 ptp_usb_sendreq             (2): Sending PTP_OC 0x1014 (Get device
> property description) (0x501c) request...
> 4.269691 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
> 4.271139 gp_port_write               (3): Wrote   16 = 0x10 bytes to port:
> (hexdump of 16 bytes)
> 0000  10 00 00 00 01 00 14 10-29 00 00 00 1c 50 00 00  ........)....P..
> 
> 4.271212 ptp_usb_getdata             (2): Reading PTP_OC 0x1014 (Get device
> property description) data...
> 4.271220 gp_port_read                (3): Reading 1024 = 0x400 bytes from
> port...
> 4.288992 gp_port_read                (3): Read    12 = 0xc out of 1024
> bytes from port: (hexdump of 12 bytes)
> 0000  0c 00 00 00 02 00 14 10-29 00 00 00              ........)...
> 
> 4.289079 ptp_usb_getresp             (2): Reading PTP_OC 0x1014 (Get device
> property description) response...
> 4.289089 gp_port_read                (3): Reading 1024 = 0x400 bytes from
> port...
> 4.292098 gp_port_read                (3): Read    12 = 0xc out of 1024
> bytes from port: (hexdump of 12 bytes)
> 0000  0c 00 00 00 03 00 0a 20-29 00 00 00              ....... )...
> 
> 4.292159 ptp_usb_getresp [usb.c:516] (0): PTP_OC 0x1014 receiving resp
> failed: PTP Device Prop Not Supported (0x200a)
> 4.292169 camera_wait_for_event [library.c:7228](0):
> 'ptp_generic_getdevicepropdesc (params, event.Param1&0xffff, &dpd)' failed:
> 'PTP Device Prop Not Supported' (0x200a)
> 4.292184 gp_context_error            (0): PTP Device Prop Not Supported
> 4.292216 gp_camera_wait_for_event [gphoto2-camera.c:1434](0):
> 'camera->functions->wait_for_event ( camera, timeout, eventtype, eventdata,
> context)' failed: -1
> 4.293481 gp_camera_free              (2): Freeing camera...
> 4.293494 gp_camera_exit              (2): Exiting camera ('Nikon Z7_2')...
> 4.293504 ptp_usb_sendreq             (2): Sending PTP_OC 0x9202
> (EndLiveView) request...
> 4.293509 gp_port_write               (3): Writing 12 = 0xc bytes to port...
> 4.293589 gp_port_write               (3): Wrote   12 = 0xc bytes to port:
> (hexdump of 12 bytes)
> 0000  0c 00 00 00 01 00 02 92-2a 00 00 00              ........*...
> 
> 4.293601 ptp_usb_getresp             (2): Reading PTP_OC 0x9202
> (EndLiveView) response...
> 4.293607 gp_port_read                (3): Reading 1024 = 0x400 bytes from
> port...
> 4.304291 gp_port_read                (3): Read    12 = 0xc out of 1024
> bytes from port: (hexdump of 12 bytes)
> 0000  0c 00 00 00 03 00 01 20-2a 00 00 00              ....... *...
> 
> 4.304393 ptp_usb_sendreq             (2): Sending PTP_OC 0x1003 (Close
> session) request...
> 4.304408 gp_port_write               (3): Writing 12 = 0xc bytes to port...
> 4.305067 gp_port_write               (3): Wrote   12 = 0xc bytes to port:
> (hexdump of 12 bytes)
> 0000  0c 00 00 00 01 00 03 10-2b 00 00 00              ........+...
> 
> 4.305194 ptp_usb_getresp             (2): Reading PTP_OC 0x1003 (Close
> session) response...
> 4.305211 gp_port_read                (3): Reading 1024 = 0x400 bytes from
> port...
> 4.378556 _cb_irq                     (2): 0x55fa0887c400 with status 0
> 4.378659 _cb_irq                     (3): interrupt (hexdump of 12 bytes)
> 0000  0c 00 00 00 04 00 23 c0-ff ff ff ff              ......#.....
> 
> 4.378687 _cb_irq                     (2): Requeuing completed transfer
> 0x55fa0887c400
> 4.388071 gp_port_read                (3): Read    12 = 0xc out of 1024
> bytes from port: (hexdump of 12 bytes)
> 0000  0c 00 00 00 03 00 01 20-2b 00 00 00              ....... +...
> 
> 4.388283 gp_port_close               (2): Closing port...


> _______________________________________________
> Gphoto-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gphoto-user