Hello,
I am trying to make a python script to make a timelaps with my raspberry
pi3 and send it on a server. unfortunately I have a problem, witch is with
the command --get-all-files :

*pi@raspberrypi*:*~/Desktop/gphoto $* gphoto2 --get-all-files




*** Erreur ***

PTP I/O Error

*** Erreur (-7 : « Problème d'E/S ») ***


Pour obtenir les messages de débogage, veuillez utiliser l'option --debug.

Ces messages peuvent aider à trouver une solution au problème. Si vous avez

l'intention d'envoyer un message d'erreur ou de débogage à la liste de

diffusion des développeurs de gPhoto <gphoto-devel@lists.sourceforge.net>,

en anglais, veuillez exécuter gphoto2 comme suit :


    env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt
--get-all-files


Veuillez vous assurer que les arguments sont suffisamment protégés.

So I have put linked in this email "my-logfile.txt"

I don't understand because It was working before, but at a moment it didn't
works anymore.

Did it caused by a process, did I have to kill this ?
I put also linked in the mail the python3 script.

Best regards
Lucas
0.000109 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES 
WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000285 main                        (2): gphoto2 2.5.11
0.000326 main                        (2): gphoto2 has been compiled with the 
following options:
0.000359 main                        (2):  + gcc (C compiler used)
0.000390 main                        (2):  + popt (mandatory, for handling 
command-line parameters)
0.000421 main                        (2):  + exif (for displaying EXIF 
information)
0.000452 main                        (2):  + cdk (for accessing configuration 
options)
0.000481 main                        (2):  + aa (for displaying live previews)
0.000512 main                        (2):  + jpeg (for displaying live previews 
in JPEG format)
0.000541 main                        (2):  + readline (for easy navigation in 
the shell)
0.000572 main                        (2): libgphoto2 2.5.12
0.000605 main                        (2): libgphoto2 has been compiled with the 
following options:
0.000647 main                        (2):  + all camlibs
0.000683 main                        (2):  + gcc (C compiler used)
0.000713 main                        (2):  + ltdl (for portable loading of 
camlibs)
0.000743 main                        (2):  + EXIF (for special handling of EXIF 
files)
0.000774 main                        (2): libgphoto2_port 0.12.0
0.000808 main                        (2): libgphoto2_port has been compiled 
with the following options:
0.000843 main                        (2):  + gcc (C compiler used)
0.000874 main                        (2):  + ltdl (for portable loading of 
camlibs)
0.000904 main                        (2):  + USB (libusb1, for USB cameras)
0.000934 main                        (2):  + serial (for serial cameras)
0.000963 main                        (2):  + no resmgr (serial port access and 
locking)
0.000992 main                        (2):  + no ttylock (serial port locking)
0.001021 main                        (2):  + no lockdev (serial port locking)
0.001054 main                        (2): CAMLIBS env var not set, using 
compile-time default instead
0.001083 main                        (2): IOLIBS env var not set, using 
compile-time default instead
0.001113 main                        (2): invoked with following arguments:
0.001143 main                        (2):   --debug
0.001172 main                        (2):   --debug-logfile=my-logfile.txt
0.001202 main                        (2):   --get-all-files
0.001381 load_settings               (2): Creating gphoto config directory 
('/home/pi/.gphoto')
0.001579 load_settings               (2): Loading settings from file 
'/home/pi/.gphoto/settings'.
0.002223 main                        (2): The user has not specified both a 
model and a port. Try to figure them out.
0.002285 gp_port_info_list_load      (2): Using ltdl to load io-drivers from 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'...
0.002803 foreach_func                (2): Called for filename 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'.
0.003819 gp_port_library_list        (2): found fstab fsname proc
0.003989 gp_port_library_list        (2): found fstab fsname 
PARTUUID=c2e3bba1-01
0.004080 gp_port_library_list        (2): found fstab fsname 
PARTUUID=c2e3bba1-02
0.004475 gp_port_library_list        (2): found mtab fsname /dev/root
0.004548 gp_port_library_list        (2): found mtab fsname devtmpfs
0.004599 gp_port_library_list        (2): found mtab fsname sysfs
0.004645 gp_port_library_list        (2): found mtab fsname proc
0.004688 gp_port_library_list        (2): found mtab fsname tmpfs
0.004782 gp_port_library_list        (2): found mtab fsname devpts
0.004829 gp_port_library_list        (2): found mtab fsname tmpfs
0.004909 gp_port_library_list        (2): found mtab fsname tmpfs
0.004995 gp_port_library_list        (2): found mtab fsname tmpfs
0.005100 gp_port_library_list        (2): found mtab fsname cgroup
0.005146 gp_port_library_list        (2): found mtab fsname cgroup
0.005189 gp_port_library_list        (2): found mtab fsname cgroup
0.005294 gp_port_library_list        (2): found mtab fsname cgroup
0.005338 gp_port_library_list        (2): found mtab fsname cgroup
0.005521 gp_port_library_list        (2): found mtab fsname cgroup
0.005568 gp_port_library_list        (2): found mtab fsname cgroup
0.005613 gp_port_library_list        (2): found mtab fsname systemd-1
0.005657 gp_port_library_list        (2): found mtab fsname mqueue
0.005699 gp_port_library_list        (2): found mtab fsname debugfs
0.005784 gp_port_library_list        (2): found mtab fsname sunrpc
0.005873 gp_port_library_list        (2): found mtab fsname configfs
0.005977 gp_port_library_list        (2): found mtab fsname /dev/mmcblk0p1
0.006057 gp_port_library_list        (2): found mtab fsname tmpfs
0.006151 gp_port_library_list        (2): found mtab fsname gvfsd-fuse
0.006197 gp_port_library_list        (2): found mtab fsname fusectl
0.006243 gp_port_library_list        (2): found mtab fsname /dev/sda1
0.006602 foreach_func                (2): Loaded '' ('^disk:') from 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'.
0.006656 foreach_func                (2): Called for filename 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.007587 foreach_func                (2): Loaded 'PTP/IP Connection' ('ptpip:') 
from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.007700 foreach_func                (2): Loaded '' ('^ptpip:') from 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.007739 foreach_func                (2): Called for filename 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.009062 foreach_func                (2): Loaded 'Serial Port Device' 
('serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.009147 foreach_func                (2): Loaded '' ('^serial:') from 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.009188 foreach_func                (2): Called for filename 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.035287 foreach_func                (2): Loaded '' ('^usb:') from 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.035403 foreach_func                (2): Loaded 'Universal Serial Bus' 
('usb:001,008') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.035444 foreach_func                (2): Loaded 'Universal Serial Bus' 
('usb:001,006') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.035483 foreach_func                (2): Loaded 'Universal Serial Bus' 
('usb:001,003') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.035520 foreach_func                (2): Called for filename 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbdiskdirect'.
0.036682 foreach_func                (2): Loaded 'USB Mass Storage direct IO' 
('usbdiskdirect:/dev/sda') from 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbdiskdirect'.
0.036736 foreach_func                (2): Called for filename 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbscsi'.
0.037788 foreach_func                (2): Loaded 'USB Mass Storage raw SCSI' 
('usbscsi:/dev/sg0') from 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbscsi'.
0.037834 foreach_func                (2): Called for filename 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/vusb'.
0.038473 gp_port_library_type        (2): ()
0.038515 foreach_func                (2): 
'/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/vusb' already loaded
0.038669 gp_port_info_list_count     (2): Counting entries (11 available)...
0.038707 gp_port_info_list_count     (2): 7 regular entries available.
0.038765 gp_abilities_list_load_dir  (2): Using ltdl to load camera libraries 
from '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12'...
0.040098 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/adc65'.
0.040142 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/agfa_cl20'.
0.040179 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/aox'.
0.040264 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ax203'.
0.040298 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/barbie'.
0.040332 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/canon'.
0.040366 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/casio_qv'.
0.040400 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/clicksmart310'.
0.040434 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/digigr8'.
0.040467 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/digita'.
0.040500 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/dimagev'.
0.040533 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/dimera3500'.
0.040565 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/directory'.
0.040598 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/enigma13'.
0.040632 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/fuji'.
0.040665 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/gsmart300'.
0.040698 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/hp215'.
0.040731 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/iclick'.
0.040763 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/jamcam'.
0.040796 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/jd11'.
0.040829 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/jl2005a'.
0.040861 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/jl2005c'.
0.040894 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_dc120'.
0.040928 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_dc210'.
0.040961 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_dc240'.
0.040994 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_dc3200'.
0.041028 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_ez200'.
0.041060 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/konica'.
0.041093 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/konica_qm150'.
0.041126 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/largan'.
0.041159 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/lg_gsm'.
0.041192 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/mars'.
0.041224 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/mustek'.
0.041259 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/panasonic_coolshot'.
0.041292 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/panasonic_dc1000'.
0.041326 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/panasonic_dc1580'.
0.041359 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/panasonic_l859'.
0.041393 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/pccam300'.
0.041426 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/pccam600'.
0.041458 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/pentax'.
0.041491 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/polaroid_pdc320'.
0.041524 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/polaroid_pdc640'.
0.041583 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/polaroid_pdc700'.
0.041617 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ptp2'.
0.041650 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ricoh'.
0.041683 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ricoh_g3'.
0.041716 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/samsung'.
0.041749 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sierra'.
0.041783 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sipix_blink2'.
0.041816 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sipix_web2'.
0.041849 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/smal'.
0.041882 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sonix'.
0.041915 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sony_dscf1'.
0.041948 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sony_dscf55'.
0.041981 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/soundvision'.
0.042014 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/spca50x'.
0.042047 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sq905'.
0.042079 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/st2205'.
0.042111 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/stv0674'.
0.042145 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/stv0680'.
0.042179 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sx330z'.
0.042212 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/topfield'.
0.042245 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/toshiba_pdrm11'.
0.042278 foreach_func                (2): Found 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/tp6801'.
0.042327 gp_abilities_list_load_dir  (2): Found 64 camera drivers.
0.180352 gp_port_info_list_count     (2): Counting entries (11 available)...
0.180465 gp_port_info_list_count     (2): 7 regular entries available.
0.180490 gp_port_new                 (2): Creating new device...
0.180518 gp_port_info_list_get_info  (2): Getting info of entry 0 (11 
available)...
0.181000 gp_port_set_settings        (2): Setting settings...
0.181025 gp_port_info_list_get_info  (2): Getting info of entry 1 (11 
available)...
0.181392 gp_port_set_timeout         (2): Setting port timeout to 500 
milliseconds.
0.181412 gp_port_set_settings        (2): Setting settings...
0.181430 gp_port_info_list_get_info  (2): Getting info of entry 2 (11 
available)...
0.192085 gp_port_set_timeout         (2): Setting port timeout to 5000 
milliseconds.
0.192153 gp_port_set_settings        (2): Setting settings...
0.192180 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port 
usb:001,008, (new int=0, conf=-1, alt=-1) port usb:001,008
0.192197 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, 
no need for libusb changes
0.192218 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.195187 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 
0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.197303 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 
0x6, subclass, 0x1, protocol 0x1)...
0.197449 gp_port_info_list_get_info  (2): Getting info of entry 3 (11 
available)...
0.208648 gp_port_set_timeout         (2): Setting port timeout to 5000 
milliseconds.
0.208723 gp_port_set_settings        (2): Setting settings...
0.208786 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port 
usb:001,006, (new int=0, conf=-1, alt=-1) port usb:001,006
0.208803 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, 
no need for libusb changes
0.208822 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.211769 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 
0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.212131 gp_libusb1_find_device_lib  (2): Looking for USB device (vendor 0x4b0, 
product 0x42f)... found.
0.212311 gp_libusb1_find_device_lib  (2): Detected defaults: config 1, 
interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
0.212335 gp_abilities_list_detect_usb(2): Found 'Nikon DSC D5200' (0x4b0,0x42f)
0.212363 gp_port_info_list_get_info  (2): Getting info of entry 4 (11 
available)...
0.223359 gp_port_set_timeout         (2): Setting port timeout to 5000 
milliseconds.
0.223427 gp_port_set_settings        (2): Setting settings...
0.223453 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port 
usb:001,003, (new int=0, conf=-1, alt=-1) port usb:001,003
0.223470 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, 
no need for libusb changes
0.223489 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.226535 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 
0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.228756 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 
0x6, subclass, 0x1, protocol 0x1)...
0.228943 gp_port_info_list_get_info  (2): Getting info of entry 5 (11 
available)...
0.229963 gp_port_set_settings        (2): Setting settings...
0.229997 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.230494 gp_port_info_list_get_info  (2): Getting info of entry 6 (11 
available)...
0.230885 gp_port_set_settings        (2): Setting settings...
0.230906 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.235276 gp_port_free                (2): Freeing port...
0.235315 gp_port_close               (2): Closing port...
0.235705 gp_camera_set_abilities     (2): Setting abilities ('Nikon DSC 
D5200')...
0.235734 gp_setting_set              (2): Setting key 'model' to value 'Nikon 
DSC D5200' (gphoto2)
0.235757 save_settings               (2): Saving 3 setting(s) to file 
"/home/pi/.gphoto/settings"
0.236071 gp_port_info_list_lookup_path(2): Looking for path 'usb:001,006' (11 
entries available)...
0.236094 gp_port_info_list_get_info  (2): Getting info of entry 3 (11 
available)...
0.236117 gp_camera_set_port_info     (2): Setting port info for port 'Universal 
Serial Bus' at 'usb:001,006'...
0.246849 gp_port_set_timeout         (2): Setting port timeout to 5000 
milliseconds.
0.246911 gp_port_set_settings        (2): Setting settings...
0.246937 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port 
usb:001,006, (new int=0, conf=-1, alt=-1) port usb:001,006
0.246954 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, 
no need for libusb changes
0.246975 gp_setting_set              (2): Setting key 'port' to value 
'usb:001,006' (gphoto2)
0.246997 save_settings               (2): Saving 3 setting(s) to file 
"/home/pi/.gphoto/settings"
0.247360 gp_camera_folder_list_files (2): Listing files in '/'...
0.247383 gp_camera_init              (2): Initializing camera...
0.247450 gp_libusb1_find_device_lib  (2): Looking for USB device (vendor 0x4b0, 
product 0x42f)... found.
0.247614 gp_libusb1_find_device_lib  (2): Detected defaults: config 1, 
interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
0.247635 gp_camera_init              (2): Loading 
'/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ptp2'...
0.251944 gp_port_open                (2): Opening USB port...
0.252026 gp_libusb1_open             (2): ()
0.252135 gp_libusb1_open             (2): claiming interface 0
0.253173 camera_init                 (2): maxpacketsize 512
0.253245 gp_port_set_timeout         (2): Setting port timeout to 8000 
milliseconds.
0.253321 ptp                         (2): PTP: Opening session
0.253352 ptp_usb_sendreq             (2): Sending PTP_OC 0x1002 (Open session) 
(0x1) request...
0.253375 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.253556 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: 
(hexdump of 16 bytes)
0000  10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00  ................

0.253580 ptp_usb_getresp             (2): Reading PTP_OC 0x1002 (Open session) 
response...
0.253599 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.254901 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-00 00 00 00              ....... ....    

0.254931 gp_port_set_timeout         (2): Setting port timeout to 20000 
milliseconds.
0.254953 ptp_usb_sendreq             (2): Sending PTP_OC 0x1001 (Get device 
info) request...
0.254971 gp_port_write               (3): Writing 12 = 0xc bytes to port...
0.255733 gp_port_write               (3): Wrote   12 = 0xc bytes to port: 
(hexdump of 12 bytes)
0000  0c 00 00 00 01 00 01 10-01 00 00 00              ............    

0.255756 ptp_usb_getdata             (2): Reading PTP_OC 0x1001 (Get device 
info) data...
0.255773 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.257228 gp_port_read                (3): Read    393 = 0x189 out of 1024 bytes 
from port: (hexdump of 393 bytes)
0000  89 01 00 00 02 00 01 10-01 00 00 00 64 00 06 00  ............d...
0010  00 00 64 00 13 6d 00 69-00 63 00 72 00 6f 00 73  ..d..m.i.c.r.o.s
0020  00 6f 00 66 00 74 00 2e-00 63 00 6f 00 6d 00 3a  .o.f.t...c.o.m.:
0030  00 20 00 31 00 2e 00 30-00 00 00 00 00 31 00 00  . .1...0.....1..
0040  00 01 10 02 10 03 10 04-10 05 10 06 10 07 10 08  ................
0050  10 09 10 0a 10 0b 10 0c-10 0d 10 0e 10 0f 10 14  ................
0060  10 15 10 16 10 1b 10 c0-90 c1 90 c2 90 c3 90 c4  ................
0070  90 c7 90 c8 90 c9 90 ca-90 cb 90 cc 90 cd 90 ce  ................
0080  90 cf 90 01 92 02 92 03-92 04 92 05 92 06 92 07  ................
0090  92 09 92 0a 92 0b 92 0c-92 00 94 01 98 02 98 03  ................
00a0  98 05 98 0e 00 00 00 02-40 03 40 04 40 05 40 06  ........@.@.@.@.
00b0  40 07 40 08 40 09 40 0a-40 0c 40 0d 40 01 c1 02  @.@.@.@.@.@.@...
00c0  c1 05 c1 14 00 00 00 01-50 03 50 04 50 05 50 07  ........P.P.P.P.
00d0  50 08 50 0a 50 0b 50 0c-50 0d 50 0e 50 0f 50 10  P.P.P.P.P.P.P.P.
00e0  50 11 50 13 50 18 50 1c-50 03 d3 06 d4 07 d4 02  P.P.P.P.P.......
00f0  00 00 00 01 38 00 30 06-00 00 00 00 30 01 30 02  ....8.0.....0.0.
0100  30 06 30 0d 30 01 38 12-4e 00 69 00 6b 00 6f 00  0.0.0.8.N.i.k.o.
0110  6e 00 20 00 43 00 6f 00-72 00 70 00 6f 00 72 00  n. .C.o.r.p.o.r.
0120  61 00 74 00 69 00 6f 00-6e 00 00 00 06 44 00 35  a.t.i.o.n....D.5
0130  00 32 00 30 00 30 00 00-00 06 56 00 31 00 2e 00  .2.0.0....V.1...
0140  30 00 33 00 00 00 21 34-00 38 00 32 00 32 00 33  0.3...!4.8.2.2.3
0150  00 34 00 38 00 30 00 30-00 30 00 30 00 30 00 30  .4.8.0.0.0.0.0.0
0160  00 30 00 30 00 30 00 30-00 30 00 30 00 30 00 30  .0.0.0.0.0.0.0.0
0170  00 30 00 30 00 30 00 30-00 30 00 30 00 30 00 30  .0.0.0.0.0.0.0.0
0180  00 30 00 30 00 30 00 00-00                       .0.0.0...       

0.257259 ptp_usb_getresp             (2): Reading PTP_OC 0x1001 (Get device 
info) response...
0.257278 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.257994 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-01 00 00 00              ....... ....    

0.258056 ptp_usb_sendreq             (2): Sending PTP_OC 0x90ca 
(PTP_OC_NIKON_GetVendorPropCodes) request...
0.258076 gp_port_write               (3): Writing 12 = 0xc bytes to port...
0.258876 gp_port_write               (3): Wrote   12 = 0xc bytes to port: 
(hexdump of 12 bytes)
0000  0c 00 00 00 01 00 ca 90-02 00 00 00              ............    

0.258898 ptp_usb_getdata             (2): Reading PTP_OC 0x90ca 
(PTP_OC_NIKON_GetVendorPropCodes) data...
0.258938 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.260751 gp_port_read                (3): Read    202 = 0xca out of 1024 bytes 
from port: (hexdump of 202 bytes)
0000  ca 00 00 00 02 00 ca 90-02 00 00 00 5d 00 00 00  ............]...
0010  15 d0 17 d0 18 d0 19 d0-1a d0 1b d0 1c d0 1d d0  ................
0020  1f d0 25 d0 26 d0 32 d0-36 d0 37 d0 45 d0 48 d0  ..%.&.2.6.7.E.H.
0030  54 d0 56 d0 5d d0 61 d0-6a d0 6b d0 6c d0 70 d0  T.V.].a.j.k.l.p.
0040  78 d0 8a d0 8d d0 8f d0-90 d0 91 d0 92 d0 a0 d0  x...............
0050  a8 d0 a4 d0 a6 d0 a7 d0-a2 d0 c0 d0 c1 d0 c2 d0  ................
0060  c3 d0 c4 d0 c5 d0 c6 d0-e0 d0 e1 d0 e2 d0 e3 d0  ................
0070  e4 d0 e5 d0 e6 d0 f8 d0-f9 d0 00 d1 01 d1 02 d1  ................
0080  04 d1 05 d1 08 d1 09 d1-0b d1 0e d1 20 d1 21 d1  ............ .!.
0090  22 d1 24 d1 25 d1 26 d1-30 d1 4e d1 4f d1 61 d1  ".$.%.&.0.N.O.a.
00a0  63 d1 64 d1 6a d1 83 d1-a2 d1 a3 d1 a4 d1 ac d1  c.d.j...........
00b0  b0 d1 b1 d1 b2 d1 b3 d1-b4 d1 b5 d1 c0 d1 c1 d1  ................
00c0  f0 d1 f1 d1 f4 d1 00 d2-01 d2                    ..........      

0.260777 ptp_usb_getresp             (2): Reading PTP_OC 0x90ca 
(PTP_OC_NIKON_GetVendorPropCodes) response...
0.260796 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.261546 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-02 00 00 00              ....... ....    

0.261570 print_debug_deviceinfo      (2): Device info:
0.261587 print_debug_deviceinfo      (2): Manufacturer: Nikon Corporation
0.261602 print_debug_deviceinfo      (2):   Model: D5200
0.261617 print_debug_deviceinfo      (2):   device version: V1.03
0.261633 print_debug_deviceinfo      (2):   serial number: 
'48223480000000000000000000000000'
0.261649 print_debug_deviceinfo      (2): Vendor extension ID: 0x0000000a
0.261664 print_debug_deviceinfo      (2): Vendor extension version: 100
0.261680 print_debug_deviceinfo      (2): Vendor extension description: 
microsoft.com: 1.0
0.261696 print_debug_deviceinfo      (2): Functional Mode: 0x0000
0.261711 print_debug_deviceinfo      (2): PTP Standard Version: 100
0.261725 print_debug_deviceinfo      (2): Supported operations:
0.261745 print_debug_deviceinfo      (2):   0x1001 (Get device info)
0.261763 print_debug_deviceinfo      (2):   0x1002 (Open session)
0.261781 print_debug_deviceinfo      (2):   0x1003 (Close session)
0.261799 print_debug_deviceinfo      (2):   0x1004 (Get storage IDs)
0.261817 print_debug_deviceinfo      (2):   0x1005 (Get storage info)
0.261835 print_debug_deviceinfo      (2):   0x1006 (Get number of objects)
0.261853 print_debug_deviceinfo      (2):   0x1007 (Get object handles)
0.261870 print_debug_deviceinfo      (2):   0x1008 (Get object info)
0.261888 print_debug_deviceinfo      (2):   0x1009 (Get object)
0.261906 print_debug_deviceinfo      (2):   0x100a (Get thumbnail)
0.261924 print_debug_deviceinfo      (2):   0x100b (Delete object)
0.261941 print_debug_deviceinfo      (2):   0x100c (Send object info)
0.261959 print_debug_deviceinfo      (2):   0x100d (Send object)
0.261977 print_debug_deviceinfo      (2):   0x100e (Initiate capture)
0.261995 print_debug_deviceinfo      (2):   0x100f (Format storage)
0.262014 print_debug_deviceinfo      (2):   0x1014 (Get device property 
description)
0.262032 print_debug_deviceinfo      (2):   0x1015 (Get device property value)
0.262050 print_debug_deviceinfo      (2):   0x1016 (Set device property value)
0.262068 print_debug_deviceinfo      (2):   0x101b (Get partial object)
0.262087 print_debug_deviceinfo      (2):   0x90c0 (PTP_OC_NIKON_Capture)
0.262105 print_debug_deviceinfo      (2):   0x90c1 (PTP_OC_NIKON_AfDrive)
0.262123 print_debug_deviceinfo      (2):   0x90c2 (PTP_OC_NIKON_SetControlMode)
0.262141 print_debug_deviceinfo      (2):   0x90c3 (PTP_OC_NIKON_DelImageSDRAM)
0.262159 print_debug_deviceinfo      (2):   0x90c4 (PTP_OC_NIKON_GetLargeThumb)
0.262178 print_debug_deviceinfo      (2):   0x90c7 (PTP_OC_NIKON_CheckEvent)
0.262210 print_debug_deviceinfo      (2):   0x90c8 (PTP_OC_NIKON_DeviceReady)
0.262230 print_debug_deviceinfo      (2):   0x90c9 (PTP_OC_NIKON_SetPreWBData)
0.262248 print_debug_deviceinfo      (2):   0x90ca 
(PTP_OC_NIKON_GetVendorPropCodes)
0.262266 print_debug_deviceinfo      (2):   0x90cb (PTP_OC_NIKON_AfCaptureSDRAM)
0.262285 print_debug_deviceinfo      (2):   0x90cc 
(PTP_OC_NIKON_GetPictCtrlData)
0.262303 print_debug_deviceinfo      (2):   0x90cd 
(PTP_OC_NIKON_SetPictCtrlData)
0.262321 print_debug_deviceinfo      (2):   0x90ce (PTP_OC_NIKON_DelCstPicCtrl)
0.262339 print_debug_deviceinfo      (2):   0x90cf 
(PTP_OC_NIKON_GetPicCtrlCapability)
0.262357 print_debug_deviceinfo      (2):   0x9201 (PTP_OC_NIKON_StartLiveView)
0.262375 print_debug_deviceinfo      (2):   0x9202 (PTP_OC_NIKON_EndLiveView)
0.262394 print_debug_deviceinfo      (2):   0x9203 (PTP_OC_NIKON_GetLiveViewImg)
0.262412 print_debug_deviceinfo      (2):   0x9204 (PTP_OC_NIKON_MfDrive)
0.262430 print_debug_deviceinfo      (2):   0x9205 (PTP_OC_NIKON_ChangeAfArea)
0.262448 print_debug_deviceinfo      (2):   0x9206 (PTP_OC_NIKON_AfDriveCancel)
0.262466 print_debug_deviceinfo      (2):   0x9207 
(PTP_OC_NIKON_InitiateCaptureRecInMedia)
0.262485 print_debug_deviceinfo      (2):   0x9209 
(PTP_OC_NIKON_GetVendorStorageIDs)
0.262503 print_debug_deviceinfo      (2):   0x920a 
(PTP_OC_NIKON_StartMovieRecInCard)
0.262522 print_debug_deviceinfo      (2):   0x920b (PTP_OC_NIKON_EndMovieRec)
0.262540 print_debug_deviceinfo      (2):   0x920c 
(PTP_OC_NIKON_TerminateCapture)
0.262558 print_debug_deviceinfo      (2):   0x9400 
(PTP_OC_NIKON_GetPartialObjectHiSpeed)
0.262577 print_debug_deviceinfo      (2):   0x9801 (Unknown PTP_OC)
0.262595 print_debug_deviceinfo      (2):   0x9802 (Unknown PTP_OC)
0.262613 print_debug_deviceinfo      (2):   0x9803 (Unknown PTP_OC)
0.262631 print_debug_deviceinfo      (2):   0x9805 (Unknown PTP_OC)
0.262646 print_debug_deviceinfo      (2): Events Supported:
0.262662 print_debug_deviceinfo      (2):   0x4002
0.262676 print_debug_deviceinfo      (2):   0x4003
0.262692 print_debug_deviceinfo      (2):   0x4004
0.262707 print_debug_deviceinfo      (2):   0x4005
0.262721 print_debug_deviceinfo      (2):   0x4006
0.262736 print_debug_deviceinfo      (2):   0x4007
0.262751 print_debug_deviceinfo      (2):   0x4008
0.262766 print_debug_deviceinfo      (2):   0x4009
0.262781 print_debug_deviceinfo      (2):   0x400a
0.262796 print_debug_deviceinfo      (2):   0x400c
0.262811 print_debug_deviceinfo      (2):   0x400d
0.262825 print_debug_deviceinfo      (2):   0xc101
0.262840 print_debug_deviceinfo      (2):   0xc102
0.262855 print_debug_deviceinfo      (2):   0xc105
0.262870 print_debug_deviceinfo      (2): Device Properties Supported:
0.262885 print_debug_deviceinfo      (2):   0x5001
0.262900 print_debug_deviceinfo      (2):   0x5003
0.262915 print_debug_deviceinfo      (2):   0x5004
0.262930 print_debug_deviceinfo      (2):   0x5005
0.262944 print_debug_deviceinfo      (2):   0x5007
0.262959 print_debug_deviceinfo      (2):   0x5008
0.262974 print_debug_deviceinfo      (2):   0x500a
0.262988 print_debug_deviceinfo      (2):   0x500b
0.263003 print_debug_deviceinfo      (2):   0x500c
0.263018 print_debug_deviceinfo      (2):   0x500d
0.263033 print_debug_deviceinfo      (2):   0x500e
0.263048 print_debug_deviceinfo      (2):   0x500f
0.263062 print_debug_deviceinfo      (2):   0x5010
0.263077 print_debug_deviceinfo      (2):   0x5011
0.263092 print_debug_deviceinfo      (2):   0x5013
0.263107 print_debug_deviceinfo      (2):   0x5018
0.263121 print_debug_deviceinfo      (2):   0x501c
0.263136 print_debug_deviceinfo      (2):   0xd303
0.263150 print_debug_deviceinfo      (2):   0xd406
0.263165 print_debug_deviceinfo      (2):   0xd407
0.263180 print_debug_deviceinfo      (2):   0xd015
0.263195 print_debug_deviceinfo      (2):   0xd017
0.263209 print_debug_deviceinfo      (2):   0xd018
0.263224 print_debug_deviceinfo      (2):   0xd019
0.263239 print_debug_deviceinfo      (2):   0xd01a
0.263254 print_debug_deviceinfo      (2):   0xd01b
0.263284 print_debug_deviceinfo      (2):   0xd01c
0.263300 print_debug_deviceinfo      (2):   0xd01d
0.263315 print_debug_deviceinfo      (2):   0xd01f
0.263330 print_debug_deviceinfo      (2):   0xd025
0.263345 print_debug_deviceinfo      (2):   0xd026
0.263360 print_debug_deviceinfo      (2):   0xd032
0.263374 print_debug_deviceinfo      (2):   0xd036
0.263389 print_debug_deviceinfo      (2):   0xd037
0.263404 print_debug_deviceinfo      (2):   0xd045
0.263418 print_debug_deviceinfo      (2):   0xd048
0.263433 print_debug_deviceinfo      (2):   0xd054
0.263448 print_debug_deviceinfo      (2):   0xd056
0.263462 print_debug_deviceinfo      (2):   0xd05d
0.263477 print_debug_deviceinfo      (2):   0xd061
0.263492 print_debug_deviceinfo      (2):   0xd06a
0.263507 print_debug_deviceinfo      (2):   0xd06b
0.263521 print_debug_deviceinfo      (2):   0xd06c
0.263537 print_debug_deviceinfo      (2):   0xd070
0.263551 print_debug_deviceinfo      (2):   0xd078
0.263566 print_debug_deviceinfo      (2):   0xd08a
0.263581 print_debug_deviceinfo      (2):   0xd08d
0.263596 print_debug_deviceinfo      (2):   0xd08f
0.263610 print_debug_deviceinfo      (2):   0xd090
0.263625 print_debug_deviceinfo      (2):   0xd091
0.263640 print_debug_deviceinfo      (2):   0xd092
0.263655 print_debug_deviceinfo      (2):   0xd0a0
0.263670 print_debug_deviceinfo      (2):   0xd0a8
0.263684 print_debug_deviceinfo      (2):   0xd0a4
0.263699 print_debug_deviceinfo      (2):   0xd0a6
0.263713 print_debug_deviceinfo      (2):   0xd0a7
0.263728 print_debug_deviceinfo      (2):   0xd0a2
0.263743 print_debug_deviceinfo      (2):   0xd0c0
0.263758 print_debug_deviceinfo      (2):   0xd0c1
0.263772 print_debug_deviceinfo      (2):   0xd0c2
0.263787 print_debug_deviceinfo      (2):   0xd0c3
0.263802 print_debug_deviceinfo      (2):   0xd0c4
0.263817 print_debug_deviceinfo      (2):   0xd0c5
0.263866 print_debug_deviceinfo      (2):   0xd0c6
0.263887 print_debug_deviceinfo      (2):   0xd0e0
0.263902 print_debug_deviceinfo      (2):   0xd0e1
0.263917 print_debug_deviceinfo      (2):   0xd0e2
0.263931 print_debug_deviceinfo      (2):   0xd0e3
0.263946 print_debug_deviceinfo      (2):   0xd0e4
0.263961 print_debug_deviceinfo      (2):   0xd0e5
0.263975 print_debug_deviceinfo      (2):   0xd0e6
0.263990 print_debug_deviceinfo      (2):   0xd0f8
0.264005 print_debug_deviceinfo      (2):   0xd0f9
0.264020 print_debug_deviceinfo      (2):   0xd100
0.264034 print_debug_deviceinfo      (2):   0xd101
0.264049 print_debug_deviceinfo      (2):   0xd102
0.264063 print_debug_deviceinfo      (2):   0xd104
0.264078 print_debug_deviceinfo      (2):   0xd105
0.264093 print_debug_deviceinfo      (2):   0xd108
0.264108 print_debug_deviceinfo      (2):   0xd109
0.264122 print_debug_deviceinfo      (2):   0xd10b
0.264137 print_debug_deviceinfo      (2):   0xd10e
0.264152 print_debug_deviceinfo      (2):   0xd120
0.264167 print_debug_deviceinfo      (2):   0xd121
0.264181 print_debug_deviceinfo      (2):   0xd122
0.264196 print_debug_deviceinfo      (2):   0xd124
0.264211 print_debug_deviceinfo      (2):   0xd125
0.264226 print_debug_deviceinfo      (2):   0xd126
0.264241 print_debug_deviceinfo      (2):   0xd130
0.264256 print_debug_deviceinfo      (2):   0xd14e
0.264270 print_debug_deviceinfo      (2):   0xd14f
0.264285 print_debug_deviceinfo      (2):   0xd161
0.264300 print_debug_deviceinfo      (2):   0xd163
0.264315 print_debug_deviceinfo      (2):   0xd164
0.264329 print_debug_deviceinfo      (2):   0xd16a
0.264344 print_debug_deviceinfo      (2):   0xd183
0.264359 print_debug_deviceinfo      (2):   0xd1a2
0.264374 print_debug_deviceinfo      (2):   0xd1a3
0.264389 print_debug_deviceinfo      (2):   0xd1a4
0.264404 print_debug_deviceinfo      (2):   0xd1ac
0.264418 print_debug_deviceinfo      (2):   0xd1b0
0.264433 print_debug_deviceinfo      (2):   0xd1b1
0.264448 print_debug_deviceinfo      (2):   0xd1b2
0.264463 print_debug_deviceinfo      (2):   0xd1b3
0.264477 print_debug_deviceinfo      (2):   0xd1b4
0.264492 print_debug_deviceinfo      (2):   0xd1b5
0.264529 print_debug_deviceinfo      (2):   0xd1c0
0.264545 print_debug_deviceinfo      (2):   0xd1c1
0.264560 print_debug_deviceinfo      (2):   0xd1f0
0.264574 print_debug_deviceinfo      (2):   0xd1f1
0.264589 print_debug_deviceinfo      (2):   0xd1f4
0.264604 print_debug_deviceinfo      (2):   0xd200
0.264619 print_debug_deviceinfo      (2):   0xd201
0.264637 ptp_list_folder             (2): (storage=0xffffffff, 
handle=0xffffffff)
0.264653 ptp_list_folder             (2): Listing ... 
0.264686 ptp_usb_sendreq             (2): Sending PTP_OC 0x1007 (Get object 
handles) (0xffffffff,0x0,0xffffffff) request...
0.264706 gp_port_write               (3): Writing 24 = 0x18 bytes to port...
0.264857 gp_port_write               (3): Wrote   24 = 0x18 bytes to port: 
(hexdump of 24 bytes)
0000  18 00 00 00 01 00 07 10-03 00 00 00 ff ff ff ff  ................
0010  00 00 00 00 ff ff ff ff-                         ........        

0.264884 ptp_usb_getdata             (2): Reading PTP_OC 0x1007 (Get object 
handles) data...
0.264903 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.339405 gp_port_read                (3): Read    20 = 0x14 out of 1024 bytes 
from port: (hexdump of 20 bytes)
0000  14 00 00 00 02 00 07 10-03 00 00 00 01 00 00 00  ................
0010  00 40 00 11            -                         .@..            

0.339508 ptp_usb_getresp             (2): Reading PTP_OC 0x1007 (Get object 
handles) response...
0.339530 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.340267 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-03 00 00 00              ....... ....    

0.340295 ptp_list_folder             (2): adding new objectid 0x11004000 
(nrofobs=0,j=0)
0.340326 ptp_usb_sendreq             (2): Sending PTP_OC 0x1004 (Get storage 
IDs) request...
0.340346 gp_port_write               (3): Writing 12 = 0xc bytes to port...
0.341003 gp_port_write               (3): Wrote   12 = 0xc bytes to port: 
(hexdump of 12 bytes)
0000  0c 00 00 00 01 00 04 10-04 00 00 00              ............    

0.341025 ptp_usb_getdata             (2): Reading PTP_OC 0x1004 (Get storage 
IDs) data...
0.341044 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.342040 gp_port_read                (3): Read    20 = 0x14 out of 1024 bytes 
from port: (hexdump of 20 bytes)
0000  14 00 00 00 02 00 04 10-04 00 00 00 01 00 00 00  ................
0010  01 00 01 00            -                         ....            

0.342064 ptp_usb_getresp             (2): Reading PTP_OC 0x1004 (Get storage 
IDs) response...
0.342082 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.342845 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-04 00 00 00              ....... ....    

0.342868 ptp_list_folder             (2): (storage=0x00010001, 
handle=0xffffffff)
0.342884 ptp_list_folder             (2): Listing ... 
0.342907 ptp_usb_sendreq             (2): Sending PTP_OC 0x1007 (Get object 
handles) (0x10001,0x0,0xffffffff) request...
0.342925 gp_port_write               (3): Writing 24 = 0x18 bytes to port...
0.343593 gp_port_write               (3): Wrote   24 = 0x18 bytes to port: 
(hexdump of 24 bytes)
0000  18 00 00 00 01 00 07 10-05 00 00 00 01 00 01 00  ................
0010  00 00 00 00 ff ff ff ff-                         ........        

0.343614 ptp_usb_getdata             (2): Reading PTP_OC 0x1007 (Get object 
handles) data...
0.343633 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.439303 gp_port_read                (3): Read    20 = 0x14 out of 1024 bytes 
from port: (hexdump of 20 bytes)
0000  14 00 00 00 02 00 07 10-05 00 00 00 01 00 00 00  ................
0010  00 40 00 11            -                         .@..            

0.439371 ptp_usb_getresp             (2): Reading PTP_OC 0x1007 (Get object 
handles) response...
0.439393 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.440248 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-05 00 00 00              ....... ....    

0.440275 ptp_list_folder             (2): adding old objectid 0x11004000 
(nrofobs=1,j=0)
0.440298 gp_filesystem_list_files    (2): Listing files in /
0.440316 lookup_folder               (2): Lookup folder '/'...
0.440332 lookup_folder               (2): Found! / is 0x1c0e2f8
0.440347 gp_filesystem_list_files    (2): Querying folder /...
0.440364 delete_all_files            (2): Delete all files in folder 0x1c0e2f8//
0.440381 file_list_func              (2): file_list_func(/)
0.440401 gp_camera_folder_list_folders(2): Listing folders in '/'...
0.440417 gp_filesystem_list_folders  (2): Listing folders in /
0.440433 lookup_folder               (2): Lookup folder '/'...
0.440448 lookup_folder               (2): Found! / is 0x1c0e2f8
0.440463 gp_filesystem_list_folders  (2): ... is dirty, getting from camera
0.440479 folder_list_func            (2): folder_list_func(/)
0.440502 ptp_usb_sendreq             (2): Sending PTP_OC 0x1004 (Get storage 
IDs) request...
0.440520 gp_port_write               (3): Writing 12 = 0xc bytes to port...
0.440982 gp_port_write               (3): Wrote   12 = 0xc bytes to port: 
(hexdump of 12 bytes)
0000  0c 00 00 00 01 00 04 10-06 00 00 00              ............    

0.441006 ptp_usb_getdata             (2): Reading PTP_OC 0x1004 (Get storage 
IDs) data...
0.441025 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.442016 gp_port_read                (3): Read    20 = 0x14 out of 1024 bytes 
from port: (hexdump of 20 bytes)
0000  14 00 00 00 02 00 04 10-06 00 00 00 01 00 00 00  ................
0010  01 00 01 00            -                         ....            

0.442041 ptp_usb_getresp             (2): Reading PTP_OC 0x1004 (Get storage 
IDs) response...
0.442059 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.442911 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-06 00 00 00              ....... ....    

0.442939 delete_all_folders          (2): Internally deleting all folders from 
'/'...
0.442956 lookup_folder               (2): Lookup folder '/'...
0.442972 lookup_folder               (2): Found! / is 0x1c0e2f8
0.442990 recurse_delete_folder       (2): Recurse delete folder 0x1c0e2f8//
0.443006 append_folder_one           (2): Append one folder store_00010001
0.443026 gp_filesystem_list_folders  (2): Folder / contains 1 subfolders.
0.443046 gp_camera_folder_list_files (2): Listing files in '/store_00010001'...
0.443062 gp_filesystem_list_files    (2): Listing files in /store_00010001
0.443078 lookup_folder               (2): Lookup folder '/store_00010001'...
0.443094 gp_filesystem_list_files    (2): Querying folder /store_00010001...
0.443110 delete_all_files            (2): Delete all files in folder 
0x1c2ab10/store_00010001
0.443126 file_list_func              (2): file_list_func(/store_00010001)
0.443151 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x00000000)
0.443166 file_list_func              (2): after list folder
0.443188 ptp_usb_sendreq             (2): Sending PTP_OC 0x1008 (Get object 
info) (0x11004000) request...
0.443206 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.443655 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: 
(hexdump of 16 bytes)
0000  10 00 00 00 01 00 08 10-07 00 00 00 00 40 00 11  .............@..

0.443676 ptp_usb_getdata             (2): Reading PTP_OC 0x1008 (Get object 
info) data...
0.443694 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.454497 gp_port_read                (3): Read    142 = 0x8e out of 1024 bytes 
from port: (hexdump of 142 bytes)
0000  8e 00 00 00 02 00 08 10-07 00 00 00 01 00 01 00  ................
0010  01 30 00 00 00 00 02 00-00 00 00 00 00 00 00 00  .0..............
0020  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
0030  00 00 00 00 00 00 01 00-00 00 00 00 00 00 00 00  ................
0040  05 44 00 43 00 49 00 4d-00 00 00 10 32 00 30 00  .D.C.I.M....2.0.
0050  31 00 37 00 30 00 35 00-32 00 33 00 54 00 32 00  1.7.0.5.2.3.T.2.
0060  31 00 33 00 31 00 34 00-36 00 00 00 10 32 00 30  1.3.1.4.6....2.0
0070  00 31 00 37 00 30 00 35-00 32 00 33 00 54 00 32  .1.7.0.5.2.3.T.2
0080  00 31 00 33 00 31 00 34-00 36 00 00 00 00        .1.3.1.4.6....  

0.454547 ptp_usb_getresp             (2): Reading PTP_OC 0x1008 (Get object 
info) response...
0.454566 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.455383 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-07 00 00 00              ....... ....    

0.455563 gp_camera_folder_list_folders(2): Listing folders in 
'/store_00010001'...
0.455582 gp_filesystem_list_folders  (2): Listing folders in /store_00010001
0.455599 lookup_folder               (2): Lookup folder '/store_00010001'...
0.455615 gp_filesystem_list_folders  (2): ... is dirty, getting from camera
0.455630 folder_list_func            (2): folder_list_func(/store_00010001)
0.455651 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x00000000)
0.455666 folder_list_func            (2): after list folder
0.455683 folder_list_func            (2): adding 0x11004000 / ob=0x1c1ec48 to 
folder
0.455703 delete_all_folders          (2): Internally deleting all folders from 
'/store_00010001'...
0.455719 lookup_folder               (2): Lookup folder '/store_00010001'...
0.455736 recurse_delete_folder       (2): Recurse delete folder 
0x1c2ab10/store_00010001
0.455752 append_folder_one           (2): Append one folder DCIM
0.455770 gp_filesystem_list_folders  (2): Folder /store_00010001 contains 1 
subfolders.
0.455791 gp_camera_folder_list_files (2): Listing files in 
'/store_00010001/DCIM'...
0.455807 gp_filesystem_list_files    (2): Listing files in /store_00010001/DCIM
0.455823 lookup_folder               (2): Lookup folder 
'/store_00010001/DCIM'...
0.455839 gp_filesystem_list_files    (2): Querying folder 
/store_00010001/DCIM...
0.455856 delete_all_files            (2): Delete all files in folder 
0x1c1eb08/DCIM
0.455871 file_list_func              (2): file_list_func(/store_00010001/DCIM)
0.455890 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x00000000)
0.455909 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x11004000)
0.455926 debug_objectinfo            (2): ObjectInfo for 'DCIM':
0.455942 debug_objectinfo            (2):   Object ID: 0x11004000
0.455957 debug_objectinfo            (2):   StorageID: 0x00010001
0.455973 debug_objectinfo            (2):   ObjectFormat: 0x3001
0.455988 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.456004 debug_objectinfo            (2):   ObjectCompressedSize: 131072
0.456020 debug_objectinfo            (2):   ThumbFormat: 0x0000
0.456035 debug_objectinfo            (2):   ThumbCompressedSize: 0
0.456049 debug_objectinfo            (2):   ThumbPixWidth: 0
0.456064 debug_objectinfo            (2):   ThumbPixHeight: 0
0.456079 debug_objectinfo            (2):   ImagePixWidth: 0
0.456094 debug_objectinfo            (2):   ImagePixHeight: 0
0.456108 debug_objectinfo            (2):   ImageBitDepth: 0
0.456123 debug_objectinfo            (2):   ParentObject: 0x00000000
0.456139 debug_objectinfo            (2):   AssociationType: 0x0001
0.456154 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.456170 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.456185 debug_objectinfo            (2):   ModificationDate: 0x59248e22
0.456201 debug_objectinfo            (2):   CaptureDate: 0x59248e22
0.456215 ptp_list_folder             (2): Listing ... 
0.456239 ptp_usb_sendreq             (2): Sending PTP_OC 0x1007 (Get object 
handles) (0x10001,0x0,0x11004000) request...
0.456256 gp_port_write               (3): Writing 24 = 0x18 bytes to port...
0.456328 gp_port_write               (3): Wrote   24 = 0x18 bytes to port: 
(hexdump of 24 bytes)
0000  18 00 00 00 01 00 07 10-08 00 00 00 01 00 01 00  ................
0010  00 00 00 00 00 40 00 11-                         .....@..        

0.456364 ptp_usb_getdata             (2): Reading PTP_OC 0x1007 (Get object 
handles) data...
0.456383 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.538683 gp_port_read                (3): Read    20 = 0x14 out of 1024 bytes 
from port: (hexdump of 20 bytes)
0000  14 00 00 00 02 00 07 10-08 00 00 00 01 00 00 00  ................
0010  00 00 19 11            -                         ....            

0.538771 ptp_usb_getresp             (2): Reading PTP_OC 0x1007 (Get object 
handles) response...
0.538793 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.539603 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-08 00 00 00              ....... ....    

0.539631 ptp_list_folder             (2): adding new objectid 0x11190000 
(nrofobs=1,j=1)
0.539652 ptp_list_folder             (2):   parenthandle 0x11004000
0.539670 ptp_list_folder             (2):   storage 0x00010001
0.539688 file_list_func              (2): after list folder
0.539713 ptp_usb_sendreq             (2): Sending PTP_OC 0x1008 (Get object 
info) (0x11190000) request...
0.539731 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.540349 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: 
(hexdump of 16 bytes)
0000  10 00 00 00 01 00 08 10-09 00 00 00 00 00 19 11  ................

0.540372 ptp_usb_getdata             (2): Reading PTP_OC 0x1008 (Get object 
info) data...
0.540390 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.543339 gp_port_read                (3): Read    150 = 0x96 out of 1024 bytes 
from port: (hexdump of 150 bytes)
0000  96 00 00 00 02 00 08 10-09 00 00 00 01 00 01 00  ................
0010  01 30 00 00 00 00 00 00-00 00 00 00 00 00 00 00  .0..............
0020  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
0030  00 00 00 40 00 11 01 00-00 00 00 00 00 00 00 00  ...@............
0040  09 31 00 30 00 30 00 44-00 35 00 32 00 30 00 30  .1.0.0.D.5.2.0.0
0050  00 00 00 10 31 00 39 00-38 00 30 00 30 00 30 00  ....1.9.8.0.0.0.
0060  30 00 30 00 54 00 30 00-30 00 30 00 30 00 30 00  0.0.T.0.0.0.0.0.
0070  30 00 00 00 10 31 00 39-00 38 00 30 00 30 00 30  0....1.9.8.0.0.0
0080  00 30 00 30 00 54 00 30-00 30 00 30 00 30 00 30  .0.0.T.0.0.0.0.0
0090  00 30 00 00 00 00      -                         .0....          

0.543364 ptp_usb_getresp             (2): Reading PTP_OC 0x1008 (Get object 
info) response...
0.543383 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.545789 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-09 00 00 00              ....... ....    

0.545899 gp_camera_folder_list_folders(2): Listing folders in 
'/store_00010001/DCIM'...
0.545920 gp_filesystem_list_folders  (2): Listing folders in 
/store_00010001/DCIM
0.545938 lookup_folder               (2): Lookup folder 
'/store_00010001/DCIM'...
0.545956 gp_filesystem_list_folders  (2): ... is dirty, getting from camera
0.545973 folder_list_func            (2): folder_list_func(/store_00010001/DCIM)
0.545998 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x00000000)
0.546017 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x11004000)
0.546032 folder_list_func            (2): after list folder
0.546049 folder_list_func            (2): adding 0x11190000 / ob=0x1c1f500 to 
folder
0.546071 delete_all_folders          (2): Internally deleting all folders from 
'/store_00010001/DCIM'...
0.546088 lookup_folder               (2): Lookup folder 
'/store_00010001/DCIM'...
0.546106 recurse_delete_folder       (2): Recurse delete folder 0x1c1eb08/DCIM
0.546122 append_folder_one           (2): Append one folder 100D5200
0.546142 gp_filesystem_list_folders  (2): Folder /store_00010001/DCIM contains 
1 subfolders.
0.546201 gp_camera_folder_list_files (2): Listing files in 
'/store_00010001/DCIM/100D5200'...
0.546219 gp_filesystem_list_files    (2): Listing files in 
/store_00010001/DCIM/100D5200
0.546235 lookup_folder               (2): Lookup folder 
'/store_00010001/DCIM/100D5200'...
0.546252 gp_filesystem_list_files    (2): Querying folder 
/store_00010001/DCIM/100D5200...
0.546269 delete_all_files            (2): Delete all files in folder 
0x1c1f420/100D5200
0.546285 file_list_func              (2): 
file_list_func(/store_00010001/DCIM/100D5200)
0.546304 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x00000000)
0.546322 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x11004000)
0.546340 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x11190000)
0.546356 debug_objectinfo            (2): ObjectInfo for '100D5200':
0.546371 debug_objectinfo            (2):   Object ID: 0x11190000
0.546387 debug_objectinfo            (2):   StorageID: 0x00010001
0.546403 debug_objectinfo            (2):   ObjectFormat: 0x3001
0.546418 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.546433 debug_objectinfo            (2):   ObjectCompressedSize: 0
0.546449 debug_objectinfo            (2):   ThumbFormat: 0x0000
0.546464 debug_objectinfo            (2):   ThumbCompressedSize: 0
0.546479 debug_objectinfo            (2):   ThumbPixWidth: 0
0.546494 debug_objectinfo            (2):   ThumbPixHeight: 0
0.546509 debug_objectinfo            (2):   ImagePixWidth: 0
0.546524 debug_objectinfo            (2):   ImagePixHeight: 0
0.546539 debug_objectinfo            (2):   ImageBitDepth: 0
0.546554 debug_objectinfo            (2):   ParentObject: 0x11004000
0.546569 debug_objectinfo            (2):   AssociationType: 0x0001
0.546585 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.546601 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.546616 debug_objectinfo            (2):   ModificationDate: 0x12a467f0
0.546632 debug_objectinfo            (2):   CaptureDate: 0x12a467f0
0.546646 ptp_list_folder             (2): Listing ... 
0.546669 ptp_usb_sendreq             (2): Sending PTP_OC 0x1007 (Get object 
handles) (0x10001,0x0,0x11190000) request...
0.546687 gp_port_write               (3): Writing 24 = 0x18 bytes to port...
0.546761 gp_port_write               (3): Wrote   24 = 0x18 bytes to port: 
(hexdump of 24 bytes)
0000  18 00 00 00 01 00 07 10-0a 00 00 00 01 00 01 00  ................
0010  00 00 00 00 00 00 19 11-                         ........        

0.546783 ptp_usb_getdata             (2): Reading PTP_OC 0x1007 (Get object 
handles) data...
0.546801 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.639425 gp_port_read                (3): Read    32 = 0x20 out of 1024 bytes 
from port: (hexdump of 32 bytes)
0000  20 00 00 00 02 00 07 10-0a 00 00 00 04 00 00 00   ...............
0010  04 00 19 2d 04 00 19 0d-05 00 19 2d 05 00 19 0d  ...-.......-....

0.639520 ptp_usb_getresp             (2): Reading PTP_OC 0x1007 (Get object 
handles) response...
0.639542 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.640336 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-0a 00 00 00              ....... ....    

0.640363 ptp_list_folder             (2): adding new objectid 0x2d190004 
(nrofobs=2,j=2)
0.640385 ptp_list_folder             (2):   parenthandle 0x11190000
0.640403 ptp_list_folder             (2):   storage 0x00010001
0.640421 ptp_list_folder             (2): adding new objectid 0x0d190004 
(nrofobs=3,j=3)
0.640437 ptp_list_folder             (2):   parenthandle 0x11190000
0.640453 ptp_list_folder             (2):   storage 0x00010001
0.640470 ptp_list_folder             (2): adding new objectid 0x2d190005 
(nrofobs=4,j=4)
0.640487 ptp_list_folder             (2):   parenthandle 0x11190000
0.640502 ptp_list_folder             (2):   storage 0x00010001
0.640519 ptp_list_folder             (2): adding new objectid 0x0d190005 
(nrofobs=5,j=5)
0.640581 ptp_list_folder             (2):   parenthandle 0x11190000
0.640598 ptp_list_folder             (2):   storage 0x00010001
0.640619 file_list_func              (2): after list folder
0.640644 ptp_usb_sendreq             (2): Sending PTP_OC 0x1008 (Get object 
info) (0xd190004) request...
0.640664 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.641093 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: 
(hexdump of 16 bytes)
0000  10 00 00 00 01 00 08 10-0b 00 00 00 04 00 19 0d  ................

0.641116 ptp_usb_getdata             (2): Reading PTP_OC 0x1008 (Get object 
info) data...
0.641134 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.668910 gp_port_read                (3): Read    158 = 0x9e out of 1024 bytes 
from port: (hexdump of 158 bytes)
0000  9e 00 00 00 02 00 08 10-0b 00 00 00 01 00 01 00  ................
0010  00 30 00 00 2c a4 2c 02-08 38 00 00 00 00 a0 00  .0..,.,..8......
0020  00 00 78 00 00 00 70 17-00 00 a0 0f 00 00 00 00  ..x...p.........
0030  00 00 00 00 19 11 00 00-00 00 00 00 00 00 00 00  ................
0040  0d 44 00 53 00 43 00 5f-00 30 00 30 00 30 00 34  .D.S.C._.0.0.0.4
0050  00 2e 00 4e 00 45 00 46-00 00 00 10 31 00 39 00  ...N.E.F....1.9.
0060  38 00 30 00 30 00 30 00-30 00 30 00 54 00 30 00  8.0.0.0.0.0.T.0.
0070  30 00 30 00 30 00 30 00-30 00 00 00 10 31 00 39  0.0.0.0.0....1.9
0080  00 38 00 30 00 30 00 30-00 30 00 30 00 54 00 30  .8.0.0.0.0.0.T.0
0090  00 30 00 30 00 30 00 30-00 30 00 00 00 00        .0.0.0.0.0....  

0.668939 ptp_usb_getresp             (2): Reading PTP_OC 0x1008 (Get object 
info) response...
0.668957 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.669866 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-0b 00 00 00              ....... ....    

0.669967 debug_objectinfo            (2): ObjectInfo for 'DSC_0004.NEF':
0.669987 debug_objectinfo            (2):   Object ID: 0x0d190004
0.670003 debug_objectinfo            (2):   StorageID: 0x00010001
0.670019 debug_objectinfo            (2):   ObjectFormat: 0x3000
0.670035 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.670050 debug_objectinfo            (2):   ObjectCompressedSize: 36480044
0.670066 debug_objectinfo            (2):   ThumbFormat: 0x3808
0.670081 debug_objectinfo            (2):   ThumbCompressedSize: 0
0.670096 debug_objectinfo            (2):   ThumbPixWidth: 160
0.670112 debug_objectinfo            (2):   ThumbPixHeight: 120
0.670127 debug_objectinfo            (2):   ImagePixWidth: 6000
0.670143 debug_objectinfo            (2):   ImagePixHeight: 4000
0.670158 debug_objectinfo            (2):   ImageBitDepth: 0
0.670173 debug_objectinfo            (2):   ParentObject: 0x11190000
0.670189 debug_objectinfo            (2):   AssociationType: 0x0000
0.670204 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.670219 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.670235 debug_objectinfo            (2):   ModificationDate: 0x12a467f0
0.670250 debug_objectinfo            (2):   CaptureDate: 0x12a467f0
0.670275 ptp_usb_sendreq             (2): Sending PTP_OC 0x1008 (Get object 
info) (0xd190005) request...
0.670293 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.670625 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: 
(hexdump of 16 bytes)
0000  10 00 00 00 01 00 08 10-0c 00 00 00 05 00 19 0d  ................

0.670648 ptp_usb_getdata             (2): Reading PTP_OC 0x1008 (Get object 
info) data...
0.670665 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.697393 gp_port_read                (3): Read    158 = 0x9e out of 1024 bytes 
from port: (hexdump of 158 bytes)
0000  9e 00 00 00 02 00 08 10-0c 00 00 00 01 00 01 00  ................
0010  00 30 00 00 2c a4 2c 02-08 38 00 00 00 00 a0 00  .0..,.,..8......
0020  00 00 78 00 00 00 70 17-00 00 a0 0f 00 00 00 00  ..x...p.........
0030  00 00 00 00 19 11 00 00-00 00 00 00 00 00 00 00  ................
0040  0d 44 00 53 00 43 00 5f-00 30 00 30 00 30 00 35  .D.S.C._.0.0.0.5
0050  00 2e 00 4e 00 45 00 46-00 00 00 10 31 00 39 00  ...N.E.F....1.9.
0060  38 00 30 00 30 00 30 00-30 00 30 00 54 00 30 00  8.0.0.0.0.0.T.0.
0070  30 00 30 00 30 00 30 00-30 00 00 00 10 31 00 39  0.0.0.0.0....1.9
0080  00 38 00 30 00 30 00 30-00 30 00 30 00 54 00 30  .8.0.0.0.0.0.T.0
0090  00 30 00 30 00 30 00 30-00 30 00 00 00 00        .0.0.0.0.0....  

0.697477 ptp_usb_getresp             (2): Reading PTP_OC 0x1008 (Get object 
info) response...
0.697497 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.698423 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-0c 00 00 00              ....... ....    

0.698506 debug_objectinfo            (2): ObjectInfo for 'DSC_0005.NEF':
0.698525 debug_objectinfo            (2):   Object ID: 0x0d190005
0.698542 debug_objectinfo            (2):   StorageID: 0x00010001
0.698558 debug_objectinfo            (2):   ObjectFormat: 0x3000
0.698573 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.698589 debug_objectinfo            (2):   ObjectCompressedSize: 36480044
0.698604 debug_objectinfo            (2):   ThumbFormat: 0x3808
0.698619 debug_objectinfo            (2):   ThumbCompressedSize: 0
0.698634 debug_objectinfo            (2):   ThumbPixWidth: 160
0.698649 debug_objectinfo            (2):   ThumbPixHeight: 120
0.698665 debug_objectinfo            (2):   ImagePixWidth: 6000
0.698680 debug_objectinfo            (2):   ImagePixHeight: 4000
0.698695 debug_objectinfo            (2):   ImageBitDepth: 0
0.698710 debug_objectinfo            (2):   ParentObject: 0x11190000
0.698725 debug_objectinfo            (2):   AssociationType: 0x0000
0.698741 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.698756 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.698771 debug_objectinfo            (2):   ModificationDate: 0x12a467f0
0.698787 debug_objectinfo            (2):   CaptureDate: 0x12a467f0
0.698814 ptp_usb_sendreq             (2): Sending PTP_OC 0x1008 (Get object 
info) (0x2d190004) request...
0.698831 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.699421 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: 
(hexdump of 16 bytes)
0000  10 00 00 00 01 00 08 10-0d 00 00 00 04 00 19 2d  ...............-

0.699444 ptp_usb_getdata             (2): Reading PTP_OC 0x1008 (Get object 
info) data...
0.699462 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.712729 gp_port_read                (3): Read    158 = 0x9e out of 1024 bytes 
from port: (hexdump of 158 bytes)
0000  9e 00 00 00 02 00 08 10-0d 00 00 00 01 00 01 00  ................
0010  01 38 00 00 64 26 ee 00-08 38 1c 00 00 00 a0 00  .8..d&...8......
0020  00 00 78 00 00 00 70 17-00 00 a0 0f 00 00 00 00  ..x...p.........
0030  00 00 00 00 19 11 00 00-00 00 00 00 00 00 00 00  ................
0040  0d 44 00 53 00 43 00 5f-00 30 00 30 00 30 00 34  .D.S.C._.0.0.0.4
0050  00 2e 00 4a 00 50 00 47-00 00 00 10 32 00 30 00  ...J.P.G....2.0.
0060  31 00 38 00 30 00 35 00-32 00 38 00 54 00 31 00  1.8.0.5.2.8.T.1.
0070  31 00 32 00 31 00 30 00-34 00 00 00 10 32 00 30  1.2.1.0.4....2.0
0080  00 31 00 38 00 30 00 35-00 32 00 38 00 54 00 31  .1.8.0.5.2.8.T.1
0090  00 31 00 32 00 31 00 30-00 34 00 00 00 00        .1.2.1.0.4....  

0.712762 ptp_usb_getresp             (2): Reading PTP_OC 0x1008 (Get object 
info) response...
0.712781 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.713637 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-0d 00 00 00              ....... ....    

0.713693 debug_objectinfo            (2): ObjectInfo for 'DSC_0004.JPG':
0.713713 debug_objectinfo            (2):   Object ID: 0x2d190004
0.713729 debug_objectinfo            (2):   StorageID: 0x00010001
0.713745 debug_objectinfo            (2):   ObjectFormat: 0x3801
0.713783 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.713800 debug_objectinfo            (2):   ObjectCompressedSize: 15607396
0.713815 debug_objectinfo            (2):   ThumbFormat: 0x3808
0.713853 debug_objectinfo            (2):   ThumbCompressedSize: 28
0.713873 debug_objectinfo            (2):   ThumbPixWidth: 160
0.713888 debug_objectinfo            (2):   ThumbPixHeight: 120
0.713903 debug_objectinfo            (2):   ImagePixWidth: 6000
0.713918 debug_objectinfo            (2):   ImagePixHeight: 4000
0.713933 debug_objectinfo            (2):   ImageBitDepth: 0
0.713949 debug_objectinfo            (2):   ParentObject: 0x11190000
0.713964 debug_objectinfo            (2):   AssociationType: 0x0000
0.713980 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.713995 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.714010 debug_objectinfo            (2):   ModificationDate: 0x5b0bca00
0.714026 debug_objectinfo            (2):   CaptureDate: 0x5b0bca00
0.714049 ptp_usb_sendreq             (2): Sending PTP_OC 0x1008 (Get object 
info) (0x2d190005) request...
0.714066 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.714397 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: 
(hexdump of 16 bytes)
0000  10 00 00 00 01 00 08 10-0e 00 00 00 05 00 19 2d  ...............-

0.714419 ptp_usb_getdata             (2): Reading PTP_OC 0x1008 (Get object 
info) data...
0.714437 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.727903 gp_port_read                (3): Read    158 = 0x9e out of 1024 bytes 
from port: (hexdump of 158 bytes)
0000  9e 00 00 00 02 00 08 10-0e 00 00 00 01 00 01 00  ................
0010  01 38 00 00 64 26 ee 00-08 38 1c 00 00 00 a0 00  .8..d&...8......
0020  00 00 78 00 00 00 70 17-00 00 a0 0f 00 00 00 00  ..x...p.........
0030  00 00 00 00 19 11 00 00-00 00 00 00 00 00 00 00  ................
0040  0d 44 00 53 00 43 00 5f-00 30 00 30 00 30 00 35  .D.S.C._.0.0.0.5
0050  00 2e 00 4a 00 50 00 47-00 00 00 10 32 00 30 00  ...J.P.G....2.0.
0060  31 00 38 00 30 00 35 00-32 00 38 00 54 00 31 00  1.8.0.5.2.8.T.1.
0070  31 00 32 00 33 00 31 00-30 00 00 00 10 32 00 30  1.2.3.1.0....2.0
0080  00 31 00 38 00 30 00 35-00 32 00 38 00 54 00 31  .1.8.0.5.2.8.T.1
0090  00 31 00 32 00 33 00 31-00 30 00 00 00 00        .1.2.3.1.0....  

0.727931 ptp_usb_getresp             (2): Reading PTP_OC 0x1008 (Get object 
info) response...
0.727950 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.728904 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-0e 00 00 00              ....... ....    

0.728956 debug_objectinfo            (2): ObjectInfo for 'DSC_0005.JPG':
0.728975 debug_objectinfo            (2):   Object ID: 0x2d190005
0.728992 debug_objectinfo            (2):   StorageID: 0x00010001
0.729007 debug_objectinfo            (2):   ObjectFormat: 0x3801
0.729023 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.729038 debug_objectinfo            (2):   ObjectCompressedSize: 15607396
0.729054 debug_objectinfo            (2):   ThumbFormat: 0x3808
0.729069 debug_objectinfo            (2):   ThumbCompressedSize: 28
0.729084 debug_objectinfo            (2):   ThumbPixWidth: 160
0.729099 debug_objectinfo            (2):   ThumbPixHeight: 120
0.729114 debug_objectinfo            (2):   ImagePixWidth: 6000
0.729129 debug_objectinfo            (2):   ImagePixHeight: 4000
0.729144 debug_objectinfo            (2):   ImageBitDepth: 0
0.729159 debug_objectinfo            (2):   ParentObject: 0x11190000
0.729175 debug_objectinfo            (2):   AssociationType: 0x0000
0.729191 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.729206 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.729221 debug_objectinfo            (2):   ModificationDate: 0x5b0bca7e
0.729237 debug_objectinfo            (2):   CaptureDate: 0x5b0bca7e
0.729256 debug_objectinfo            (2): ObjectInfo for 'DSC_0004.NEF':
0.729285 debug_objectinfo            (2):   Object ID: 0x0d190004
0.729301 debug_objectinfo            (2):   StorageID: 0x00010001
0.729317 debug_objectinfo            (2):   ObjectFormat: 0x3000
0.729332 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.729348 debug_objectinfo            (2):   ObjectCompressedSize: 36480044
0.729363 debug_objectinfo            (2):   ThumbFormat: 0x3808
0.729378 debug_objectinfo            (2):   ThumbCompressedSize: 0
0.729393 debug_objectinfo            (2):   ThumbPixWidth: 160
0.729409 debug_objectinfo            (2):   ThumbPixHeight: 120
0.729424 debug_objectinfo            (2):   ImagePixWidth: 6000
0.729439 debug_objectinfo            (2):   ImagePixHeight: 4000
0.729454 debug_objectinfo            (2):   ImageBitDepth: 0
0.729468 debug_objectinfo            (2):   ParentObject: 0x11190000
0.729484 debug_objectinfo            (2):   AssociationType: 0x0000
0.729499 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.729515 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.729530 debug_objectinfo            (2):   ModificationDate: 0x12a467f0
0.729545 debug_objectinfo            (2):   CaptureDate: 0x12a467f0
0.729561 debug_objectinfo            (2): ObjectInfo for 'DSC_0005.NEF':
0.729577 debug_objectinfo            (2):   Object ID: 0x0d190005
0.729592 debug_objectinfo            (2):   StorageID: 0x00010001
0.729607 debug_objectinfo            (2):   ObjectFormat: 0x3000
0.729623 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.729638 debug_objectinfo            (2):   ObjectCompressedSize: 36480044
0.729653 debug_objectinfo            (2):   ThumbFormat: 0x3808
0.729668 debug_objectinfo            (2):   ThumbCompressedSize: 0
0.729683 debug_objectinfo            (2):   ThumbPixWidth: 160
0.729698 debug_objectinfo            (2):   ThumbPixHeight: 120
0.729713 debug_objectinfo            (2):   ImagePixWidth: 6000
0.729728 debug_objectinfo            (2):   ImagePixHeight: 4000
0.729743 debug_objectinfo            (2):   ImageBitDepth: 0
0.729757 debug_objectinfo            (2):   ParentObject: 0x11190000
0.729773 debug_objectinfo            (2):   AssociationType: 0x0000
0.729788 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.729804 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.729819 debug_objectinfo            (2):   ModificationDate: 0x12a467f0
0.729834 debug_objectinfo            (2):   CaptureDate: 0x12a467f0
0.729850 debug_objectinfo            (2): ObjectInfo for 'DSC_0004.JPG':
0.729866 debug_objectinfo            (2):   Object ID: 0x2d190004
0.729882 debug_objectinfo            (2):   StorageID: 0x00010001
0.729897 debug_objectinfo            (2):   ObjectFormat: 0x3801
0.729912 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.729928 debug_objectinfo            (2):   ObjectCompressedSize: 15607396
0.729943 debug_objectinfo            (2):   ThumbFormat: 0x3808
0.729958 debug_objectinfo            (2):   ThumbCompressedSize: 28
0.729973 debug_objectinfo            (2):   ThumbPixWidth: 160
0.729987 debug_objectinfo            (2):   ThumbPixHeight: 120
0.730003 debug_objectinfo            (2):   ImagePixWidth: 6000
0.730018 debug_objectinfo            (2):   ImagePixHeight: 4000
0.730033 debug_objectinfo            (2):   ImageBitDepth: 0
0.730047 debug_objectinfo            (2):   ParentObject: 0x11190000
0.730063 debug_objectinfo            (2):   AssociationType: 0x0000
0.730078 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.730094 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.730109 debug_objectinfo            (2):   ModificationDate: 0x5b0bca00
0.730124 debug_objectinfo            (2):   CaptureDate: 0x5b0bca00
0.730140 debug_objectinfo            (2): ObjectInfo for 'DSC_0005.JPG':
0.730156 debug_objectinfo            (2):   Object ID: 0x2d190005
0.730172 debug_objectinfo            (2):   StorageID: 0x00010001
0.730187 debug_objectinfo            (2):   ObjectFormat: 0x3801
0.730203 debug_objectinfo            (2):   ProtectionStatus: 0x0000
0.730237 debug_objectinfo            (2):   ObjectCompressedSize: 15607396
0.730253 debug_objectinfo            (2):   ThumbFormat: 0x3808
0.730268 debug_objectinfo            (2):   ThumbCompressedSize: 28
0.730284 debug_objectinfo            (2):   ThumbPixWidth: 160
0.730298 debug_objectinfo            (2):   ThumbPixHeight: 120
0.730313 debug_objectinfo            (2):   ImagePixWidth: 6000
0.730329 debug_objectinfo            (2):   ImagePixHeight: 4000
0.730344 debug_objectinfo            (2):   ImageBitDepth: 0
0.730359 debug_objectinfo            (2):   ParentObject: 0x11190000
0.730375 debug_objectinfo            (2):   AssociationType: 0x0000
0.730391 debug_objectinfo            (2):   AssociationDesc: 0x00000000
0.730406 debug_objectinfo            (2):   SequenceNumber: 0x00000000
0.730421 debug_objectinfo            (2):   ModificationDate: 0x5b0bca7e
0.730437 debug_objectinfo            (2):   CaptureDate: 0x5b0bca7e
0.730455 gp_filesystem_list_files    (2): Added 'DSC_0004.NEF'
0.730472 internal_append             (2): Internal append DSC_0004.NEF to 
folder 100D5200
0.730491 gp_filesystem_list_files    (2): Added 'DSC_0005.NEF'
0.730508 internal_append             (2): Internal append DSC_0005.NEF to 
folder 100D5200
0.730525 gp_filesystem_list_files    (2): Added 'DSC_0004.JPG'
0.730541 internal_append             (2): Internal append DSC_0004.JPG to 
folder 100D5200
0.730558 gp_filesystem_list_files    (2): Added 'DSC_0005.JPG'
0.730574 internal_append             (2): Internal append DSC_0005.JPG to 
folder 100D5200
0.730593 gp_filesystem_list_files    (2): Listed 'DSC_0004.NEF'
0.730609 gp_filesystem_list_files    (2): Listed 'DSC_0005.NEF'
0.730625 gp_filesystem_list_files    (2): Listed 'DSC_0004.JPG'
0.730640 gp_filesystem_list_files    (2): Listed 'DSC_0005.JPG'
0.730780 save_file_to_file           (2): using fd method
0.730806 gp_camera_file_get          (2): Getting file 'DSC_0004.JPG' in folder 
'/store_00010001/DCIM/100D5200'...
0.730831 gp_filesystem_get_file_impl (2): Getting file 'DSC_0004.JPG' from 
folder '/store_00010001/DCIM/100D5200' (type 1)...
0.730850 lookup_folder_file          (2): Lookup folder 
/store_00010001/DCIM/100D5200 file DSC_0004.JPG
0.730868 lookup_folder               (2): Lookup folder 
'/store_00010001/DCIM/100D5200'...
0.730888 gp_filesystem_get_file_impl (2): Downloading 'DSC_0004.JPG' from 
folder '/store_00010001/DCIM/100D5200'...
0.730915 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x00000000)
0.730935 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x11004000)
0.730953 ptp_list_folder             (2): (storage=0x00010001, 
handle=0x11190000)
0.730970 get_file_func               (2): Getting file 'DSC_0004.JPG'.
0.730998 ptp_usb_sendreq             (2): Sending PTP_OC 0x1009 (Get object) 
(0x2d190004) request...
0.731016 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.731132 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: 
(hexdump of 16 bytes)
0000  10 00 00 00 01 00 09 10-0f 00 00 00 04 00 19 2d  ...............-

0.731155 ptp_usb_getdata             (2): Reading PTP_OC 0x1009 (Get object) 
data...
0.731174 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
0.766230 gp_libusb1_read [libusb1.c:590](0): 'libusb_bulk_transfer 
(port->pl->dh, port->settings.usb.inep, (unsigned char*)bytes, size, &curread, 
port->timeout)' failed: Pipe error (-9)
0.766260 gp_port_read [gphoto2-port.c:441](0): Reading 1024 = 0x400 bytes from 
port failed: Error reading from the port (-34)
0.766277 ptp_usb_getpacket           (2): Clearing halt on IN EP and retrying 
once.
0.766293 gp_port_usb_clear_halt      (2): Clear USB halt...
0.766784 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
20.767052 gp_libusb1_read [libusb1.c:590](0): 'libusb_bulk_transfer 
(port->pl->dh, port->settings.usb.inep, (unsigned char*)bytes, size, &curread, 
port->timeout)' failed: Operation timed out (-7)
20.767253 gp_port_read [gphoto2-port.c:441](0): Reading 1024 = 0x400 bytes from 
port failed: Timeout reading from or writing to the port (-10)
20.767368 ptp_usb_getdata [usb.c:430] (0): PTP_OC 0x1009 receiving data failed: 
PTP I/O Error (0x02ff)
20.767417 get_file_func [library.c:6470](0): 'ret' failed: 'PTP I/O Error' 
(0x02ff)
20.767508 gp_context_error            (0): PTP I/O Error
20.767623 gp_filesystem_get_file      (2): Download of 'DSC_0004.JPG' from 
'/store_00010001/DCIM/100D5200' (type 1) failed. Reason: 'I/O problem'
20.767668 gp_camera_file_get [gphoto2-camera.c:1693](0): 
'gp_filesystem_get_file (camera->fs, folder, file, type, camera_file, context)' 
failed: -7
20.770671 gp_camera_free              (2): Freeing camera...
20.770803 gp_camera_exit              (2): Exiting camera ('Nikon DSC D5200')...
20.770876 ptp_usb_sendreq             (2): Sending PTP_OC 0x1003 (Close 
session) request...
20.770918 gp_port_write               (3): Writing 12 = 0xc bytes to port...
20.771169 gp_port_write               (3): Wrote   12 = 0xc bytes to port: 
(hexdump of 12 bytes)
0000  0c 00 00 00 01 00 03 10-10 00 00 00              ............    

20.771222 ptp_usb_getresp             (2): Reading PTP_OC 0x1003 (Close 
session) response...
20.771262 gp_port_read                (3): Reading 1024 = 0x400 bytes from 
port...
20.775065 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-10 00 00 00              ....... ....    

20.775241 gp_port_close               (2): Closing port...
20.776417 _close_async_interrupts     (2): canceling transfer 0:0x1c140a8 
(status 0)
20.776566 _close_async_interrupts     (2): canceling transfer 1:0x1c1cf40 
(status 0)
20.776616 _close_async_interrupts     (2): canceling transfer 2:0x1c1d100 
(status 0)
20.776665 _close_async_interrupts     (2): canceling transfer 3:0x1c1d2c0 
(status 0)
20.776712 _close_async_interrupts     (2): canceling transfer 4:0x1c1d480 
(status 0)
20.776758 _close_async_interrupts     (2): canceling transfer 5:0x1c1d640 
(status 0)
20.776804 _close_async_interrupts     (2): canceling transfer 6:0x1c1e050 
(status 0)
20.776851 _close_async_interrupts     (2): canceling transfer 7:0x1c1e210 
(status 0)
20.776899 _close_async_interrupts     (2): canceling transfer 8:0x1c1e3d0 
(status 0)
20.776944 _close_async_interrupts     (2): canceling transfer 9:0x1c1e590 
(status 0)
20.777019 _cb_irq                     (2): 0x1c140a8 with status 3
20.777068 _cb_irq                     (2): 0x1c1cf40 with status 3
20.777115 _cb_irq                     (2): 0x1c1d100 with status 3
20.777160 _cb_irq                     (2): 0x1c1d2c0 with status 3
20.777203 _cb_irq                     (2): 0x1c1d480 with status 3
20.777245 _cb_irq                     (2): 0x1c1d640 with status 3
20.777288 _cb_irq                     (2): 0x1c1e050 with status 3
20.777330 _cb_irq                     (2): 0x1c1e210 with status 3
20.777371 _cb_irq                     (2): 0x1c1e3d0 with status 3
20.777414 _cb_irq                     (2): 0x1c1e590 with status 3
20.778952 gp_filesystem_reset         (2): resetting filesystem
20.779035 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
20.779069 gp_filesystem_lru_clear     (2): fscache LRU list already empty
20.779104 delete_all_folders          (2): Internally deleting all folders from 
'/'...
20.779140 lookup_folder               (2): Lookup folder '/'...
20.779174 lookup_folder               (2): Found! / is 0x1c0e2f8
20.779208 recurse_delete_folder       (2): Recurse delete folder 0x1c0e2f8//
20.779243 recurse_delete_folder       (2): Recurse delete folder 
0x1c2ab10/store_00010001
20.779276 recurse_delete_folder       (2): Recurse delete folder 0x1c1eb08/DCIM
20.779308 recurse_delete_folder       (2): Recurse delete folder 
0x1c1f420/100D5200
20.779341 delete_folder               (2): Delete one folder 0x1c1f420/100D5200
20.779376 delete_all_files            (2): Delete all files in folder 
0x1c1f420/100D5200
20.779415 delete_folder               (2): Delete one folder 0x1c1eb08/DCIM
20.779449 delete_all_files            (2): Delete all files in folder 
0x1c1eb08/DCIM
20.779544 delete_folder               (2): Delete one folder 
0x1c2ab10/store_00010001
20.779578 delete_all_files            (2): Delete all files in folder 
0x1c2ab10/store_00010001
20.779612 gp_port_free                (2): Freeing port...
20.779642 gp_port_close               (2): Closing port...
20.780870 gp_filesystem_reset         (2): resetting filesystem
20.780985 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
20.781018 gp_filesystem_lru_clear     (2): fscache LRU list already empty
20.781051 delete_all_folders          (2): Internally deleting all folders from 
'/'...
20.781085 lookup_folder               (2): Lookup folder '/'...
20.781118 lookup_folder               (2): Found! / is 0x1c0e2f8
20.781151 recurse_delete_folder       (2): Recurse delete folder 0x1c0e2f8//
import time
from datetime import datetime
from sh import gphoto2 as gp
import signal, os, subprocess

#fonction permettant de kill le process Gphoto qui entre en confli 
def killGphoto2Process():
    p = subprocess.Popen(['ps', '-A'], stdout=subprocess.PIPE)
    out, err = p.communicate()

    # Search for the process we want to kill
    for line in out.splitlines():
        if b'gvfsd-gphoto2' in line:
            # Kill that process!
            pid = int(line.split(None,1)[0])
            os.kill(pid, signal.SIGKILL)

shot_date = datetime.now().strftime("%d-%m-%Y") # This has been written to the while True loop.
shot_time = datetime.now().strftime("%d-%m-%Y %H:%M:%S") # This has been written to the while True loop.
picID = "Test"

clearCommand = ["--folder", "/store_00010001/DCIM/100D5200", \
                "--delete-all-files", "-R"]
triggerCommand = ["--trigger-capture"]
downloadCommand = ["--get-all-files"]

nom_dossier = shot_date + picID
save_location = "/home/pi/Desktop/gphoto/images/" + nom_dossier

def createSaveFolder():
    try:
        os.makedirs(save_location)
    except:
        print("Création du nouveau dossier : echec")
    os.chdir(save_location)

def captureImages():
    gp(triggerCommand)
    time.sleep(3)
    gp(downloadCommand)
    gp(clearCommand)

def renameFiles(ID):
    for filename in os.listdir("."):
        if len(filename) < 13:
            if filename.endswith(".JPG"):
                os.rename(filename, (shot_time + ID + ".JPG"))
                print("Fichier JPG renomé")
            elif filename.endswith(".CR2"):
                os.rename(filename, (shot_time + ID + ".NEF"))
                print("Fichier NEF renomé")


killGphoto2Process()
gp(clearCommand)

temps_attente=60 #en secondes entre chaque photo

while True:
	
	temps1=time.time()
	shot_date = datetime.now().strftime("%d-%m-%Y")
	shot_time = datetime.now().strftime("%d-%m-%Y %H:%M:%S")
	createSaveFolder()
	captureImages()
	renameFiles(picID)
	temps2=time.time()
	temps=temps2-temps1

	while temps<temps_attente :
        temps2=time.time()
        temps=temps2-temps1
        time.sleep(1)
    temps=0
------------------------------------------------------------------------------
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