gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
989 stars 316 forks source link

OM5 support status? #949

Open ontheway16 opened 6 months ago

ontheway16 commented 6 months ago

Hi, I am wondering if anyone tested the library with OM System's OM5 cameras. I could not find its' name in supported cams list, or any mentions here in issues.

msmeissn commented 5 months ago

we had not reports so far. it might be using the same protocol as OM1, so if you have one you could try testing it?

ontheway16 commented 5 months ago

@msmeissn I dont have one at the moment but I am wondering whether it will work, I will try to find one to test and report back from here. I think not much people using it, too bad, such a capable camera.

msmeissn commented 5 months ago

I would giveit a 50/50 chance that it would work already with the OM-1 code.

ledgitbe commented 5 months ago

I have an OM5 and I'd love to test and give feedback but I'm not sure where to start. If there is a branch with OM-5 support using the already existing OM-1 code, I would be able to test it. If it doesn't work with the OM-1 code, maybe chances are it will work with Olympus EM-5 MK III code ?

Using gphoto 2.5.28 with my OM5 connected in MTP mode:


~ » gphoto2 --auto-detect
Model                          Port                                            
----------------------------------------------------------
USB PTP Class Camera           usb:006,023  

~ » gphoto2 --capture-image                           

*** Error ***              
PTP Device Prop Not Supported
ERROR: Could not capture image.
ERROR: Could not capture.
^C
Cancelling...
`

`
~ » LANG=C gphoto2 --summary         
Camera summary:
Manufacturer: OMSYSTEM
Model: OM-5
  Version: 1.00
  Serial Number: <REDACTED>
Vendor Extension ID: 0xfffd (1.0)
Vendor Extension Description: 

Capture Formats: MS Wave Unknown(b980) Defined Type JPEG Unknown(b101)
Display Formats: Undefined Type, Association/Directory, DPOF, MS Wave, Unknown(b980), Defined Type, JPEG, Unknown(b101)

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

Storage Devices Summary:
store_00010001:
    StorageDescription: 
    VolumeLabel: 
    Storage Type: Removable RAM (memory card)
    Filesystemtype: Digital Camera Layout (DCIM)
    Access Capability: Read-Write
    Maximum Capability: 30403461120 (28995 MB)
    Free Space (Bytes): 24320901120 (23194 MB)
    Free Space (Images): -1

Device Property Summary:
Battery Level(0x5001):(read only) (type=0x2) Range [1 - 100, step 1] value: 60% (60)
Date & Time(0x5011):(readwrite) (type=0xffff) '20240204T132425'
Property 0xd405:(read only) (type=0x4002) a[82944] 0,0,1,0,5,0,0,0,0,0,1,0,32,0,131,253,0,0,86,0,0,0,48,48,0,0,1,0,32,0,168,37,0,0,217,253,0,0,32,32,0,0,1,0,32,0,168,16,0,0,129,35,1,0,24,24,0,0,1,0,32,0,136,9, ...
Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0'
Property 0xd407:(read only) (type=0x6) 1
`

`
~ » LANG=C gphoto2 --list-all-config                                                                  130 ↵
/main/actions/opcode                                                           
Label: PTP Opcode
Readonly: 0
Type: TEXT
Current: 0x1001,0xparam1,0xparam2
END
/main/settings/datetime
Label: Camera Date and Time
Readonly: 0
Type: DATE
Current: 1707049574
Printable: Sun 04 Feb 2024 01:26:14 PM CET
Help: Use 'now' as the current time when setting.

END
/main/status/serialnumber
Label: Serial Number
Readonly: 1
Type: TEXT
Current: <REDACTED>
END
/main/status/manufacturer
Label: Camera Manufacturer
Readonly: 1
Type: TEXT
Current: OMSYSTEM
END
/main/status/cameramodel
Label: Camera Model
Readonly: 1
Type: TEXT
Current: OM-5
END
/main/status/deviceversion
Label: Device Version
Readonly: 1
Type: TEXT
Current: 1.00
END
/main/status/vendorextension
Label: Vendor Extension
Readonly: 1
Type: TEXT
Current: 
END
/main/status/batterylevel
Label: Battery Level
Readonly: 1
Type: TEXT
Current: 60%
END
/main/other/5001
Label: Battery Level
Readonly: 1
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
END
/main/other/5011
Label: Date & Time
Readonly: 0
Type: TEXT
Current: 20240204T132614
END
/main/other/d405
Label: PTP Property 0xd405
Readonly: 1
Type: TEXT
Current: (null)
END
/main/other/d406
Label: PTP Property 0xd406
Readonly: 0
Type: TEXT
Current: Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0
END
/main/other/d407
Label: PTP Property 0xd407
Readonly: 1
Type: TEXT
Current: 1
END
`
ontheway16 commented 5 months ago

I am not reading anywhere, that its capable of usb tethering, may this be the case ? Since above report says no image capture..

edit. as far as I remember, EM5 mk III dont have usb tethering.

ledgitbe commented 5 months ago

@ontheway16 Indeed this seems to be the case. The camera only offers me these modes:

And according to https://software.omsystem.com/omcapture/en/ the OM5 has no USB tethering mode.

ontheway16 commented 5 months ago

@ledgitbe then it's a version of em5 mk3, unfortunately. We will hope for OM5 mk2.

msmeissn commented 5 months ago

can you add debug logfiles?

gphoto2 --capture-image-and-download --debug --debug-logfile=capture.log and attach capture.log here

ledgitbe commented 4 months ago

gphoto2 --capture-image-and-download --debug --debug-logfile=capture.log

capture.log

I should also explain that I added the USB vendor and product IDs to camlibs/ptp2/library.c before running this capture log. I was just trying to see if that would make a difference.

diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index b8f9bebd9..dcc168802 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -1936,6 +1936,7 @@ static struct {
    {"Olympus:E-M1 MII",          0x07b4, 0x0135, PTP_CAP|PTP_CAP_PREVIEW},
    /* email */
    {"Olympus:OM-1",          0x07b4, 0x0136, PTP_CAP|PTP_CAP_PREVIEW},
+   {"Olympus:OM-5",          0x33a2, 0x012f, PTP_CAP|PTP_CAP_PREVIEW},

    /* IRC report */
    {"Casio:EX-Z120",                 0x07cf, 0x1042, 0},