Hi,

Attached is the information needed to add the Nikon Z7 to the list of cameras 
supported by gphoto (as described here: 
http://gphoto.org/proj/libgphoto2/support.php).

The Z7 works with the existing gphoto but is not recognizing the Nikon-specific 
MTP opcodes. When I run list-config --debug I don't see the 
PTP_OC_NIKON_GetVendorPropCodes issued to the Z7, which causes the 
Nikon-specific MTP opcodes to be reported as "unknown" later in the debug 
output. Here's a snippet:

0.098128 print_debug_deviceinfo      (2):   0x90c0 (Unknown PTP_OC)
0.098136 print_debug_deviceinfo      (2):   0x90c1 (Unknown PTP_OC)
0.098145 print_debug_deviceinfo      (2):   0x90c2 (Unknown PTP_OC)
0.098153 print_debug_deviceinfo      (2):   0x90c3 (Unknown PTP_OC)

Thanks!

Adam

Model                          Port            
----------------------------------------------------------
USB PTP Class Camera           usb:001,021     
user@ubuntu:~$ gphoto2 --capture-image
New file is in location /store_00010001/DCIM/100NCZ_7/DSC_2410.JPG on the camera

/main/settings/datetime
Label: Camera Date and Time
Type: DATE
Current: 1541826341
Printable: Fri 09 Nov 2018 09:05:41 PM PST
Help: Use 'now' as the current time when setting.

/main/status/serialnumber
Label: Serial Number
Type: TEXT
Current: 00000000000000000000000003006872
/main/status/manufacturer
Label: Camera Manufacturer
Type: TEXT
Current: Nikon Corporation
/main/status/cameramodel
Label: Camera Model
Type: TEXT
Current: Z 7
/main/status/deviceversion
Label: Device Version
Type: TEXT
Current: V1.01
/main/status/vendorextension
Label: Vendor Extension
Type: TEXT
Current: Microsoft.com/DeviceServices: 1.0
/main/status/batterylevel
Label: Battery Level
Type: TEXT
Current: 60%
/main/imgsettings/imagesize
Label: Image Size
Type: RADIO
Current: 3840x2160
Choice: 0 3840x2160
/main/imgsettings/iso
Label: ISO Speed
Type: RADIO
Current: 2000
Choice: 0 32
Choice: 1 40
Choice: 2 50
Choice: 3 64
Choice: 4 80
Choice: 5 100
Choice: 6 125
Choice: 7 160
Choice: 8 200
Choice: 9 250
Choice: 10 320
Choice: 11 400
Choice: 12 500
Choice: 13 640
Choice: 14 800
Choice: 15 1000
Choice: 16 1250
Choice: 17 1600
Choice: 18 2000
Choice: 19 2500
Choice: 20 3200
Choice: 21 4000
Choice: 22 5000
Choice: 23 6400
Choice: 24 8000
Choice: 25 10000
Choice: 26 12800
Choice: 27 16000
Choice: 28 20000
Choice: 29 25600
/main/imgsettings/whitebalance
Label: WhiteBalance
Type: RADIO
Current: Automatic
Choice: 0 Automatic
Choice: 1 Daylight
Choice: 2 Fluorescent
Choice: 3 Tungsten
Choice: 4 Flash
Choice: 5 Unknown value 8010
Choice: 6 Unknown value 8011
Choice: 7 Unknown value 8012
Choice: 8 Unknown value 8013
Choice: 9 Unknown value 8016
/main/capturesettings/exposurecompensation
Label: Exposure Compensation
Type: RADIO
Current: 0
Choice: 0 -5
Choice: 1 -4.666
Choice: 2 -4.333
Choice: 3 -4
Choice: 4 -3.666
Choice: 5 -3.333
Choice: 6 -3
Choice: 7 -2.666
Choice: 8 -2.333
Choice: 9 -2
Choice: 10 -1.666
Choice: 11 -1.333
Choice: 12 -1
Choice: 13 -0.666
Choice: 14 -0.333
Choice: 15 0
Choice: 16 0.333
Choice: 17 0.666
Choice: 18 1
Choice: 19 1.333
Choice: 20 1.666
Choice: 21 2
Choice: 22 2.333
Choice: 23 2.666
Choice: 24 3
Choice: 25 3.333
Choice: 26 3.666
Choice: 27 4
Choice: 28 4.333
Choice: 29 4.666
Choice: 30 5
/main/capturesettings/flashmode
Label: Flash Mode
Type: RADIO
Current: Flash off
Choice: 0 Flash off
/main/capturesettings/f-number
Label: F-Number
Type: RADIO
Current: f/4
Choice: 0 f/4
Choice: 1 f/4.5
Choice: 2 f/5
Choice: 3 f/5.6
Choice: 4 f/6.3
Choice: 5 f/7.1
Choice: 6 f/8
Choice: 7 f/9
Choice: 8 f/10
Choice: 9 f/11
Choice: 10 f/13
Choice: 11 f/14
Choice: 12 f/16
Choice: 13 f/18
Choice: 14 f/20
Choice: 15 f/22
/main/capturesettings/imagequality
Label: Image Quality
Type: RADIO
Current: Unknown value 0005
Choice: 0 Unknown value 0000
Choice: 1 Unknown value 0001
Choice: 2 Unknown value 0002
Choice: 3 Unknown value 0003
Choice: 4 Unknown value 0004
Choice: 5 Unknown value 0005
Choice: 6 Unknown value 0006
Choice: 7 Unknown value 0007
Choice: 8 Unknown value 0008
Choice: 9 Unknown value 0009
Choice: 10 Unknown value 000a
Choice: 11 Unknown value 000b
Choice: 12 Unknown value 000c
Choice: 13 Unknown value 000d
Choice: 14 Unknown value 0005
/main/capturesettings/focallength
Label: Focal Length
Type: RANGE
Current: 31
Bottom: 24
Top: 70
Step: 0.01
/main/capturesettings/focusmode
Label: Focus Mode
Type: RADIO
Current: Unknown value 8013
Choice: 0 Manual
Choice: 1 Unknown value 8010
Choice: 2 Unknown value 8011
Choice: 3 Unknown value 8013
/main/capturesettings/expprogram
Label: Exposure Program
Type: RADIO
Current: M
Choice: 0 M
Choice: 1 P
Choice: 2 A
Choice: 3 S
Choice: 4 Unknown value 8010
Choice: 5 Unknown value 8050
Choice: 6 Unknown value 8051
Choice: 7 Unknown value 8052
/main/capturesettings/capturemode
Label: Still Capture Mode
Type: RADIO
Current: Single Shot
Choice: 0 Single Shot
Choice: 1 Burst
/main/capturesettings/focusmetermode
Label: Focus Metering Mode
Type: RADIO
Current: Unknown value 8010
Choice: 0 Unknown value 8010
Choice: 1 Unknown value 8011
Choice: 2 Unknown value 8017
Choice: 3 Unknown value 8018
Choice: 4 Unknown value 8019
/main/capturesettings/exposuremetermode
Label: Exposure Metering Mode
Type: RADIO
Current: Multi Spot
Choice: 0 Center Weighted
Choice: 1 Multi Spot
Choice: 2 Center Spot
Choice: 3 Unknown value 8010
/main/capturesettings/shutterspeed
Label: Shutter Speed
Type: RADIO
Current: 0.0125s
Choice: 0 0.0001s
Choice: 1 0.0002s
Choice: 2 0.0003s
Choice: 3 0.0004s
Choice: 4 0.0005s
Choice: 5 0.0006s
Choice: 6 0.0008s
Choice: 7 0.0010s
Choice: 8 0.0012s
Choice: 9 0.0015s
Choice: 10 0.0020s
Choice: 11 0.0025s
Choice: 12 0.0031s
Choice: 13 0.0040s
Choice: 14 0.0050s
Choice: 15 0.0062s
Choice: 16 0.0080s
Choice: 17 0.0100s
Choice: 18 0.0125s
Choice: 19 0.0166s
Choice: 20 0.0200s
Choice: 21 0.0250s
Choice: 22 0.0333s
Choice: 23 0.0400s
Choice: 24 0.0500s
Choice: 25 0.0666s
Choice: 26 0.0769s
Choice: 27 0.1000s
Choice: 28 0.1250s
Choice: 29 0.1666s
Choice: 30 0.2000s
Choice: 31 0.2500s
Choice: 32 0.3333s
Choice: 33 0.4000s
Choice: 34 0.5000s
Choice: 35 0.6250s
Choice: 36 0.7692s
Choice: 37 1.0000s
Choice: 38 1.3000s
Choice: 39 1.6000s
Choice: 40 2.0000s
Choice: 41 2.5000s
Choice: 42 3.0000s
Choice: 43 4.0000s
Choice: 44 5.0000s
Choice: 45 6.0000s
Choice: 46 8.0000s
Choice: 47 10.0000s
Choice: 48 13.0000s
Choice: 49 15.0000s
Choice: 50 20.0000s
Choice: 51 25.0000s
Choice: 52 30.0000s
/main/capturesettings/burstnumber
Label: Burst Number
Type: RANGE
Current: 1
Bottom: 1
Top: 65535
Step: 1
/main/other/5001
Label: Battery Level
Type: MENU
Current: 60
Choice: 0 1
Choice: 1 2
Choice: 2 3
Choice: 3 4
Choice: 4 5
Choice: 5 6
Choice: 6 7
Choice: 7 8
Choice: 8 9
Choice: 9 10
Choice: 10 11
Choice: 11 12
Choice: 12 13
Choice: 13 14
Choice: 14 15
Choice: 15 16
Choice: 16 17
Choice: 17 18
Choice: 18 19
Choice: 19 20
Choice: 20 21
Choice: 21 22
Choice: 22 23
Choice: 23 24
Choice: 24 25
Choice: 25 26
Choice: 26 27
Choice: 27 28
Choice: 28 29
Choice: 29 30
Choice: 30 31
Choice: 31 32
Choice: 32 33
Choice: 33 34
Choice: 34 35
Choice: 35 36
Choice: 36 37
Choice: 37 38
Choice: 38 39
Choice: 39 40
Choice: 40 41
Choice: 41 42
Choice: 42 43
Choice: 43 44
Choice: 44 45
Choice: 45 46
Choice: 46 47
Choice: 47 48
Choice: 48 49
Choice: 49 50
Choice: 50 51
Choice: 51 52
Choice: 52 53
Choice: 53 54
Choice: 54 55
Choice: 55 56
Choice: 56 57
Choice: 57 58
Choice: 58 59
Choice: 59 60
Choice: 60 61
Choice: 61 62
Choice: 62 63
Choice: 63 64
Choice: 64 65
Choice: 65 66
Choice: 66 67
Choice: 67 68
Choice: 68 69
Choice: 69 70
Choice: 70 71
Choice: 71 72
Choice: 72 73
Choice: 73 74
Choice: 74 75
Choice: 75 76
Choice: 76 77
Choice: 77 78
Choice: 78 79
Choice: 79 80
Choice: 80 81
Choice: 81 82
Choice: 82 83
Choice: 83 84
Choice: 84 85
Choice: 85 86
Choice: 86 87
Choice: 87 88
Choice: 88 89
Choice: 89 90
Choice: 90 91
Choice: 91 92
Choice: 92 93
Choice: 93 94
Choice: 94 95
Choice: 95 96
Choice: 96 97
Choice: 97 98
Choice: 98 99
Choice: 99 100
/main/other/5003
Label: Image Size
Type: MENU
Current: 3840x2160
Choice: 0 3840x2160
/main/other/5004
Label: Compression Setting
Type: MENU
Current: 5
Choice: 0 0
Choice: 1 1
Choice: 2 2
Choice: 3 3
Choice: 4 4
Choice: 5 5
Choice: 6 6
Choice: 7 7
Choice: 8 8
Choice: 9 9
Choice: 10 10
Choice: 11 11
Choice: 12 12
Choice: 13 13
/main/other/5005
Label: White Balance
Type: MENU
Current: 2
Choice: 0 2
Choice: 1 4
Choice: 2 5
Choice: 3 6
Choice: 4 7
Choice: 5 32784
Choice: 6 32785
Choice: 7 32786
Choice: 8 32787
Choice: 9 32790
/main/other/5007
Label: F-Number
Type: MENU
Current: 400
Choice: 0 400
Choice: 1 450
Choice: 2 500
Choice: 3 560
Choice: 4 630
Choice: 5 710
Choice: 6 800
Choice: 7 900
Choice: 8 1000
Choice: 9 1100
Choice: 10 1300
Choice: 11 1400
Choice: 12 1600
Choice: 13 1800
Choice: 14 2000
Choice: 15 2200
/main/other/5008
Label: Focal Length
Type: RANGE
Current: 3100
Bottom: 2400
Top: 7000
Step: 1
/main/other/500a
Label: Focus Mode
Type: MENU
Current: 32787
Choice: 0 1
Choice: 1 32784
Choice: 2 32785
Choice: 3 32787
/main/other/500b
Label: Exposure Metering Mode
Type: MENU
Current: 3
Choice: 0 2
Choice: 1 3
Choice: 2 4
Choice: 3 32784
/main/other/500c
Label: Flash Mode
Type: MENU
Current: 2
Choice: 0 2
/main/other/500d
Label: Exposure Time
Type: MENU
Current: 125
Choice: 0 1
Choice: 1 2
Choice: 2 3
Choice: 3 4
Choice: 4 5
Choice: 5 6
Choice: 6 8
Choice: 7 10
Choice: 8 12
Choice: 9 15
Choice: 10 20
Choice: 11 25
Choice: 12 31
Choice: 13 40
Choice: 14 50
Choice: 15 62
Choice: 16 80
Choice: 17 100
Choice: 18 125
Choice: 19 166
Choice: 20 200
Choice: 21 250
Choice: 22 333
Choice: 23 400
Choice: 24 500
Choice: 25 666
Choice: 26 769
Choice: 27 1000
Choice: 28 1250
Choice: 29 1666
Choice: 30 2000
Choice: 31 2500
Choice: 32 3333
Choice: 33 4000
Choice: 34 5000
Choice: 35 6250
Choice: 36 7692
Choice: 37 10000
Choice: 38 13000
Choice: 39 16000
Choice: 40 20000
Choice: 41 25000
Choice: 42 30000
Choice: 43 40000
Choice: 44 50000
Choice: 45 60000
Choice: 46 80000
Choice: 47 100000
Choice: 48 130000
Choice: 49 150000
Choice: 50 200000
Choice: 51 250000
Choice: 52 300000
/main/other/500e
Label: Exposure Program Mode
Type: MENU
Current: 1
Choice: 0 1
Choice: 1 2
Choice: 2 3
Choice: 3 4
Choice: 4 32784
Choice: 5 32848
Choice: 6 32849
Choice: 7 32850
/main/other/500f
Label: Exposure Index (film speed ISO)
Type: MENU
Current: 2000
Choice: 0 32
Choice: 1 40
Choice: 2 50
Choice: 3 64
Choice: 4 80
Choice: 5 100
Choice: 6 125
Choice: 7 160
Choice: 8 200
Choice: 9 250
Choice: 10 320
Choice: 11 400
Choice: 12 500
Choice: 13 640
Choice: 14 800
Choice: 15 1000
Choice: 16 1250
Choice: 17 1600
Choice: 18 2000
Choice: 19 2500
Choice: 20 3200
Choice: 21 4000
Choice: 22 5000
Choice: 23 6400
Choice: 24 8000
Choice: 25 10000
Choice: 26 12800
Choice: 27 16000
Choice: 28 20000
Choice: 29 25600
/main/other/5010
Label: Exposure Bias Compensation
Type: MENU
Current: 0
Choice: 0 -5000
Choice: 1 -4666
Choice: 2 -4333
Choice: 3 -4000
Choice: 4 -3666
Choice: 5 -3333
Choice: 6 -3000
Choice: 7 -2666
Choice: 8 -2333
Choice: 9 -2000
Choice: 10 -1666
Choice: 11 -1333
Choice: 12 -1000
Choice: 13 -666
Choice: 14 -333
Choice: 15 0
Choice: 16 333
Choice: 17 666
Choice: 18 1000
Choice: 19 1333
Choice: 20 1666
Choice: 21 2000
Choice: 22 2333
Choice: 23 2666
Choice: 24 3000
Choice: 25 3333
Choice: 26 3666
Choice: 27 4000
Choice: 28 4333
Choice: 29 4666
Choice: 30 5000
/main/other/5011
Label: Date & Time
Type: TEXT
Current: 20181109T210541
/main/other/5013
Label: Still Capture Mode
Type: MENU
Current: 1
Choice: 0 1
Choice: 1 2
/main/other/5018
Label: Burst Number
Type: RANGE
Current: 1
Bottom: 1
Top: 65535
Step: 1
/main/other/501c
Label: Focus Metering Mode
Type: MENU
Current: 32784
Choice: 0 32784
Choice: 1 32785
Choice: 2 32791
Choice: 3 32792
Choice: 4 32793
/main/other/501e
Label: Artist
Type: TEXT
Current: 
/main/other/501f
Label: Copyright Info
Type: TEXT
Current: 
/main/other/d303
Label: PTP Property 0xd303
Type: TEXT
Current: 1
/main/other/d406
Label: Session Initiator Info
Type: TEXT
Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0
/main/other/d407
Label: Perceived Device Type
Type: TEXT
Current: 1
Bus 001 Device 021: ID 04b0:0442 Nikon Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0e0f:0008 VMware, Inc. 
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Camera summary:
Manufacturer: Nikon Corporation
Model: Z 7
  Version: V1.01
  Serial Number: 00000000000000000000000003006872
Vendor Extension ID: 0xffffffff (1.10)
Vendor Extension Description: Microsoft.com/DeviceServices: 1.0

Capture Formats: JPEG TIFF Undefined Type
Display Formats: JPEG, Undefined Type, Association/Directory, TIFF, Script, 
Apple Quicktime, MP4

Device Capabilities:
        File Download, File Deletion, File Upload
        Generic Image Capture, No Open Capture, No vendor specific capture

Storage Devices Summary:
store_00010001:
        StorageDescription: None
        VolumeLabel: NIKON Z 7   [Slot 1]
        Storage Type: Removable RAM (memory card)
        Filesystemtype: Digital Camera Layout (DCIM)
        Access Capability: Read Only with Object deletion
        Maximum Capability: 60129542144 (57344 MB)
        Free Space (Bytes): 58567294976 (55854 MB)
        Free Space (Images): 6293

Device Property Summary:
Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 60% 
(60)
Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [
        '3840x2160'
        ] value: '3840x2160'
Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration 
[0,1,2,3,4,5,6,7,8,9,10,11,12,13] value: RAW + JPEG Basic (5)
White Balance(0x5005):(readwrite) (type=0x4) Enumeration 
[2,4,5,6,7,32784,32785,32786,32787,32790] value: Automatic (2)
F-Number(0x5007):(readwrite) (type=0x4) Enumeration 
[400,450,500,560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200] 
value: f/4 (400)
Focal Length(0x5008):(read only) (type=0x6) Range [2400 - 7000, step 1] value: 
31 mm (3100)
Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32787] 
value: 32787
Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4,32784] 
value: Multi-spot (3)
Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2] value: Flash off (2)
Exposure Time(0x500d):(read only) (type=0x6) Enumeration 
[1,2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000]
 value: 0.0013 sec (125)
Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration 
[1,2,3,4,32784,32848,32849,32850] value: M (1)
Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration 
[32,40,50,64,80,100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,16000,20000,25600]
 value: ISO 2000 (2000)
Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration 
[-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000]
 value: 0.0 stops (0)
Date & Time(0x5011):(readwrite) (type=0xffff) '20181109T210517'
Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2] value: 
Single Shot (1)
Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 65535, step 1] value: 1
Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration 
[32784,32785,32791,32792,32793] value: Single Area (32784)
Artist(0x501e):(read only) (type=0xffff) ''
Copyright Info(0x501f):(read only) (type=0xffff) ''
Property 0xd303:(read only) (type=0x2) 1
Session Initiator Info(0xd406):(readwrite) (type=0xffff) 'Windows/6.0.5330.0 
MTPClassDriver/6.0.5330.0'
Perceived Device Type(0xd407):(read only) (type=0x6) 1

_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to