Hi,

thanks for the help and the quick reply.

~$ lsusb
Bus 002 Device 025: ID 25fb:017a   (USB-Mode MSC)
Bus 002 Device 031: ID 25fb:017b  (USB-Mode PTP)

I put both IDs in .../camlibs/pentax/library.c and recompiled, but image capture still is not possible.

MSC:
~$ env LANG=c gphoto2 --auto-detect
Model Port
----------------------------------------------------------
Mass Storage Camera            disk:/media/zoltan/K-3 II1
Mass Storage Camera            disk:/media/zoltan/K-3 II
Pentax K3II                    usbscsi:/dev/sg6
Pentax K3II                    usbscsi:/dev/sg5

~$ LANG=C gphoto2 --list-all-config

*** Error ***
This camera does not provide any configuration options.
*** Error (-6: 'Unsupported operation') ***

PTP:
~ $ gphoto2 --auto-detect
Modell Port
----------------------------------------------------------
USB PTP Class Camera           usb:002,033

~$ LANG=C gphoto2 --list-all-config > config-new.txt
~$ diff config.txt config-new.txt
8,9c8,9
< Current: 1493466951
< Printable: Sa 29 Apr 2017 13:55:51 CEST
---
> Current: 1493449550
> Printable: Sa 29 Apr 2017 09:05:50 CEST
144c144
< Current: 20170429T135551
---
> Current: 20170429T090550


Bye, Zoltan

Am 29.04.2017 um 11:17 schrieb Marcus Meissner:
Hi,

It is possible, but needs a bit work.

First, you need to switch the camera in its menu to "PC" transmission mode.

Then record the USB ids of the camera in this mode with "lsusb"

Mail them here or to me ;)

You can already add them in libgphoto2 to camlibs/pentax/library.c in the 
camera_init function
similar to the other Pentax cameras in there, then rebuild libgphoto2 and it 
will be supported
by the Pentax driver.

Ciao, Marcus
On Sat, Apr 29, 2017 at 09:17:54AM +0200, Zoltan wrote:
gphoto2 reports for my Pentax K3-II in PTP-mode:

Device Capabilities:
         File Download, File Deletion, File Upload
         No Image Capture, No Open Capture, No vendor specific capture
Is there any hope, that image capture will be possible?

Best regards
Zoltan
Camera summary:
Manufacturer: RICOH IMAGING COMPANY, LTD.
Model: PENTAX K-3 II
   Version: 1.10
   Serial Number: 6225570
Vendor Extension ID: 0x6 (1.0)
Vendor Extension Description: microsoft.com/DeviceServices: 1.0;

Capture Formats:
Display Formats: Association/Directory, MS AVI, Apple Quicktime, TIFF, JPEG, 
Defined Type, Undefined Type
Supported MTP Object Properties:
        Association/Directory/3001: dc01/StorageID dc02/ObjectFormat 
dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject 
dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated
        MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus 
dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject 
dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height 
dc08/DateCreated dc89/Duration de93/SampleRate de94/NumberOfChannels 
de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate
        Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat 
dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject 
dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height 
dc08/DateCreated dc89/Duration de93/SampleRate de94/NumberOfChannels 
de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate
        TIFF/380d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus 
dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject 
dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height 
dcd3/ImageBitDepth dc08/DateCreated dc81/RepresentativeSampleFormat 
dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight 
dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData
        JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus 
dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject 
dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height 
dcd3/ImageBitDepth dc08/DateCreated dc81/RepresentativeSampleFormat 
dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight 
dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData
        Defined Type/3800: dc01/StorageID dc02/ObjectFormat 
dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject 
dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height 
dcd3/ImageBitDepth dc08/DateCreated dc81/RepresentativeSampleFormat 
dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight 
dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData
        Undefined Type/3000: dc01/StorageID dc02/ObjectFormat 
dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject 
dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height 
dcd3/ImageBitDepth dc08/DateCreated dc81/RepresentativeSampleFormat 
dc82/RepresentativeSampleSize dc83/RepresentativeSampleHeight 
dc84/RepresentativeSampleWidth dc86/RepresentativeSampleData

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

Storage Devices Summary:
store_00010001:
        StorageDescription: None
        VolumeLabel: None
        Storage Type: Removable RAM (memory card)
        Filesystemtype: Digital Camera Layout (DCIM)
        Access Capability: Read-Write
        Maximum Capability: 64792559616 (61791 MB)
        Free Space (Bytes): 64321617920 (61341 MB)
        Free Space (Images): 1205
store_00020001:
        StorageDescription: None
        VolumeLabel: None
        Storage Type: Removable RAM (memory card)
        Filesystemtype: Digital Camera Layout (DCIM)
        Access Capability: Read-Write
        Maximum Capability: 16097738752 (15352 MB)
        Free Space (Bytes): 15658188800 (14932 MB)
        Free Space (Images): 293

Device Property Summary:
Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 
100% (100)
Date & Time(0x5011):(read only) (type=0xffff) '20170429T085354'
Session Initiator Info(0xd406):(readwrite) (type=0xffff) '(null)'
Perceived Device Type(0xd407):(read only) (type=0x6) 1
Property 0xd303:(read only) (type=0x2) 1

/main/actions/opcode
Label: PTP Opcode
Type: TEXT
Current: 0x1001,0xparam1,0xparam2
/main/settings/datetime
Label: Camera Date and Time
Type: DATE
Current: 1493449550
Printable: Sa 29 Apr 2017 09:05:50 CEST
Help: Use 'now' as the current time when setting.

/main/status/serialnumber
Label: Serial Number
Type: TEXT
Current: 6225570
/main/status/manufacturer
Label: Camera Manufacturer
Type: TEXT
Current: RICOH IMAGING COMPANY, LTD.
/main/status/cameramodel
Label: Camera Model
Type: TEXT
Current: PENTAX K-3 II
/main/status/deviceversion
Label: Device Version
Type: TEXT
Current: 1.10
/main/status/vendorextension
Label: Vendor Extension
Type: TEXT
Current: microsoft.com/DeviceServices: 1.0;
/main/status/batterylevel
Label: Battery Level
Type: TEXT
Current: 100%
/main/other/5001
Label: Battery Level
Type: MENU
Current: 100
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
Choice: 14 14
Choice: 15 15
Choice: 16 16
Choice: 17 17
Choice: 18 18
Choice: 19 19
Choice: 20 20
Choice: 21 21
Choice: 22 22
Choice: 23 23
Choice: 24 24
Choice: 25 25
Choice: 26 26
Choice: 27 27
Choice: 28 28
Choice: 29 29
Choice: 30 30
Choice: 31 31
Choice: 32 32
Choice: 33 33
Choice: 34 34
Choice: 35 35
Choice: 36 36
Choice: 37 37
Choice: 38 38
Choice: 39 39
Choice: 40 40
Choice: 41 41
Choice: 42 42
Choice: 43 43
Choice: 44 44
Choice: 45 45
Choice: 46 46
Choice: 47 47
Choice: 48 48
Choice: 49 49
Choice: 50 50
Choice: 51 51
Choice: 52 52
Choice: 53 53
Choice: 54 54
Choice: 55 55
Choice: 56 56
Choice: 57 57
Choice: 58 58
Choice: 59 59
Choice: 60 60
Choice: 61 61
Choice: 62 62
Choice: 63 63
Choice: 64 64
Choice: 65 65
Choice: 66 66
Choice: 67 67
Choice: 68 68
Choice: 69 69
Choice: 70 70
Choice: 71 71
Choice: 72 72
Choice: 73 73
Choice: 74 74
Choice: 75 75
Choice: 76 76
Choice: 77 77
Choice: 78 78
Choice: 79 79
Choice: 80 80
Choice: 81 81
Choice: 82 82
Choice: 83 83
Choice: 84 84
Choice: 85 85
Choice: 86 86
Choice: 87 87
Choice: 88 88
Choice: 89 89
Choice: 90 90
Choice: 91 91
Choice: 92 92
Choice: 93 93
Choice: 94 94
Choice: 95 95
Choice: 96 96
Choice: 97 97
Choice: 98 98
Choice: 99 99
Choice: 100 100
/main/other/5011
Label: Date & Time
Type: TEXT
Current: 20170429T090550
/main/other/d406
Label: Session Initiator Info
Type: TEXT
Current: (null)
/main/other/d407
Label: Perceived Device Type
Type: TEXT
Current: 1
/main/other/d303
Label: PTP Property 0xd303
Type: TEXT
Current: 1
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to