Re: Downloading only protected images

Peter Sonander <[email protected]> Wed, 20 Oct 2021 16:48:22 +0200
Newsgroups gmane.comp.multimedia.gphoto.user
Organization S-Bilder
Message-ID <[email protected]>
Thanks Marcus

Now it is up to me as a beginner in the linux world to get on my 
Raspberry Pi. I tried a tool called gphoto2-updater and selected to 
install the latest development version, but it still says UNKNOWN PTP 
Event 4007. Should the new event you added also reflect into GPhoto2?

The versions I have now if running gphoto2 --version are:
photo2         2.5.27.1
libgphoto2      2.5.22
libgphoto2_port 0.12.0

Are these the correct versions or is there another way to get the 
latest?

Sorry for my newbie questions

/Peter

On 2021-10-20 14:17, Marcus Meissner wrote:
> On Tue, Oct 19, 2021 at 09:15:08PM +0200, Peter Sonander wrote:
>> Hi again!
>> 
>> I have now been enable to activate the playback button needed to add
>> --set-config applicationmode=1
>> 
>> Now I receive an "unknown" PTP event 4007, which I from Nikon SDK has
>> figured out is ObjectInfoChanged. I also receive a parameter which 
>> from the
>> SDK documentation is supposed to be an objecthandle to the image. Is 
>> there
>> anyway to use this handle to retrieve the properties of the image to 
>> check
>> if it has been protected and if so start the download?
>> 
>> Has anyone tried to build this using GPhoto. Monitor the camera for 
>> changes,
>> once an image gets protected download it.
> 
> So far we had no PTP_EC_ObjectInfoChanged support.
> 
> I just now have added support to libgphoto2 GIT.
> 
> 
> If you protect/unprotect an image when wait-event is running it will 
> report:
> 
> 	FILECHANGED DSC_1119.JPG /store_00010001/DCIM/100NCZ_6
> 
> And you can adjust your tool to download on FILECHANGED events.
> 
> Ciao, Marcus