Connecting via Wifi to a Canon EOS77D works, but gphoto2 fails

Matthias Apitz <[email protected]> Sat, 26 Dec 2020 11:27:03 +0100
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <[email protected]>
Hello,

Me and my sons own a brand new Canon EOS77D and of course it works from an
Android phone to connect and control the shutter, for example. 

I want to do it with gphoto2 from our FreeBSD laptops too and figured
out how to connect to the cam via Wifi. I followed this (German, but with
pictures) document: 
https://www.multimedia4linux.de/index.php/canon-dslr-wiki/wlan-wi-fi-mit-gphoto2-nutzen

The Wifi works pretty much straight forward and the cam acts as an AP
with IP addr 192.168.1.2 and gives my laptop and IP addr to as 192.168.1.10
Also routing is fine and I can PING the cam fine.

But when I connect with gphoto2 to the cam with this command:

$ env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --port ptpip:192.168.1.2 --storage-info

the cam closes the connection with some message in its LCD about "device
not found". I'm attaching the log file my-logfile.txt.

What do I wrong?

	matthias


-- 
Matthias Apitz, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин)
Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin) 
Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)

_______________________________________________
Gphoto-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
my-logfile.txt (text/plain, 12.3 KB)
0.000124 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000196 main                        (2): gphoto2 2.5.23
0.000213 main                        (2): gphoto2 has been compiled with the following options:
0.000222 main                        (2):  + cc (C compiler used)
0.000230 main                        (2):  + popt (mandatory, for handling command-line parameters)
0.000238 main                        (2):  + exif (for displaying EXIF information)
0.000246 main                        (2):  + no cdk (for accessing configuration options)
0.000253 main                        (2):  + aa (for displaying live previews)
0.000260 main                        (2):  + jpeg (for displaying live previews in JPEG format)
0.000267 main                        (2):  + readline (for easy navigation in the shell)
0.000281 main                        (2): libgphoto2 2.5.23
0.000292 main                        (2): libgphoto2 has been compiled with the following options:
0.000301 main                        (2):  + all camlibs
0.000309 main                        (2):  + cc (C compiler used)
0.000317 main                        (2):  + no ltdl (for portable loading of camlibs)
0.000325 main                        (2):  + EXIF (for special handling of EXIF files)
0.000336 main                        (2): libgphoto2_port 0.12.0
0.000346 main                        (2): libgphoto2_port has been compiled with the following options:
0.000355 main                        (2):  + iolibs: disk ptpip usb1 usbdiskdirect usbscsi
0.000362 main                        (2):  + cc (C compiler used)
0.000369 main                        (2):  + no ltdl (for portable loading of iolibs)
0.000376 main                        (2):  + USB (libusb1, for USB cameras)
0.000409 main                        (2):  + no serial (for serial cameras)
0.000419 main                        (2):  + no resmgr (serial port access and locking)
0.000427 main                        (2):  + no ttylock (serial port locking)
0.000435 main                        (2):  + no lockdev (serial port locking)
0.000444 main                        (2): CAMLIBS env var not set, using compile-time default instead
0.000453 main                        (2): IOLIBS env var not set, using compile-time default instead
0.000461 main                        (2): invoked with following arguments:
0.000468 main                        (2):   --debug
0.000476 main                        (2):   --debug-logfile=my-logfile.txt
0.000484 main                        (2):   --port
0.000492 main                        (2):   ptpip:192.168.1.2
0.000499 main                        (2):   --storage-info
0.000553 main                        (2): Processing 'port' option ('ptpip:192.168.1.2')...
0.000615 gp_port_info_list_load      (2): Using ltdl to load io-drivers from '/usr/local/lib/libgphoto2_port/0.12.0'...
0.001034 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/disk'.
0.001370 foreach_func                (2): Loaded '' ('^disk:') from '/usr/local/lib/libgphoto2_port/0.12.0/disk'.
0.001393 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/ptpip'.
0.001633 foreach_func                (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/local/lib/libgphoto2_port/0.12.0/ptpip'.
0.001654 foreach_func                (2): Loaded '' ('^ptpip:') from '/usr/local/lib/libgphoto2_port/0.12.0/ptpip'.
0.001664 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/usb1'.
0.002931 foreach_func                (2): Loaded '' ('^usb:') from '/usr/local/lib/libgphoto2_port/0.12.0/usb1'.
0.002997 foreach_func                (2): Loaded 'Universal Serial Bus' ('usb:000,002') from '/usr/local/lib/libgphoto2_port/0.12.0/usb1'.
0.003013 foreach_func                (2): Loaded 'Universal Serial Bus' ('usb:000,003') from '/usr/local/lib/libgphoto2_port/0.12.0/usb1'.
0.003023 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/usbdiskdirect'.
0.003410 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/usbscsi'.
0.003691 gp_port_info_list_count     (2): Counting entries (6 available)...
0.003714 gp_port_info_list_count     (2): 3 regular entries available.
0.003729 gp_port_info_list_lookup_path(2): Looking for path 'ptpip:192.168.1.2' (6 entries available)...
0.003743 gp_port_info_list_lookup_path(2): Starting regex search for 'ptpip:192.168.1.2'...
0.003752 gp_port_info_list_lookup_path(2): Trying '^disk:'...
0.003941 gp_port_info_list_lookup_path(2): regexec failed
0.003959 gp_port_info_list_lookup_path(2): Trying '^ptpip:'...
0.004114 gp_port_info_list_get_info  (2): Getting info of entry 3 (7 available)...
0.004143 gp_camera_set_port_info     (2): Setting port info for port 'Generic Port' at 'ptpip:192.168.1.2'...
0.004345 gp_port_set_settings        (2): Setting settings...
0.004379 load_settings               (2): Creating gphoto config directory ('/home/guru/.gphoto')
0.004629 load_settings               (2): Loading settings from file '/home/guru/.gphoto/settings'.
0.004756 gp_setting_set              (2): Setting key 'port' to value 'ptpip:192.168.1.2' (gphoto2)
0.004777 save_settings               (2): Saving 18 setting(s) to file "/home/guru/.gphoto/settings"
0.005596 main                        (2): The user has not specified both a model and a port. Try to figure them out.
0.005644 gp_abilities_list_load_dir  (2): Using ltdl to load camera libraries from '/usr/local/lib/libgphoto2/2.5.23'...
0.005913 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/ax203'.
0.005962 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/canon'.
0.005975 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/digigr8'.
0.005990 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/dimagev'.
0.005999 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/directory'.
0.006009 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/jl2005a'.
0.006018 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/jl2005c'.
0.006027 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/kodak_dc240'.
0.006036 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/mars'.
0.006045 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/pentax'.
0.006054 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/ptp2'.
0.006063 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/sierra'.
0.006073 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/sonix'.
0.006081 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/sq905'.
0.006091 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/st2205'.
0.006100 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/topfield'.
0.006108 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.23/tp6801'.
0.006125 gp_abilities_list_load_dir  (2): Found 17 camera drivers.
0.103079 gp_port_info_list_count     (2): Counting entries (7 available)...
0.103381 gp_port_info_list_count     (2): 4 regular entries available.
0.103513 gp_port_new                 (2): Creating new device...
0.103633 gp_port_info_list_get_info  (2): Getting info of entry 0 (7 available)...
0.103855 gp_port_set_settings        (2): Setting settings...
0.103985 gp_port_info_list_get_info  (2): Getting info of entry 1 (7 available)...
0.104567 gp_port_set_timeout         (2): Setting port timeout to 5000 milliseconds.
0.104717 gp_port_set_settings        (2): Setting settings...
0.104860 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port usb:000,002, (new int=0, conf=-1, alt=-1) port usb:000,002
0.105093 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, no need for libusb changes
0.105222 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.107189 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.107244 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.108362 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.108479 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.108629 gp_port_info_list_get_info  (2): Getting info of entry 2 (7 available)...
0.109304 gp_port_set_timeout         (2): Setting port timeout to 5000 milliseconds.
0.109333 gp_port_set_settings        (2): Setting settings...
0.109354 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port usb:000,003, (new int=0, conf=-1, alt=-1) port usb:000,003
0.109365 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, no need for libusb changes
0.109374 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.111212 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.112374 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.112611 gp_port_info_list_get_info  (2): Getting info of entry 3 (7 available)...
0.112846 gp_port_set_settings        (2): Setting settings...
0.112880 gp_port_free                (2): Freeing port...
0.112894 gp_port_close               (2): Closing port...
0.113174 gp_camera_set_abilities     (2): Setting abilities ('PTP/IP Camera')...
0.113196 gp_setting_set              (2): Setting key 'model' to value 'PTP/IP Camera' (gphoto2)
0.113212 save_settings               (2): Saving 18 setting(s) to file "/home/guru/.gphoto/settings"
0.113416 gp_port_info_list_lookup_path(2): Looking for path 'ptpip:192.168.1.2' (7 entries available)...
0.113433 gp_port_info_list_get_info  (2): Getting info of entry 3 (7 available)...
0.113446 gp_camera_set_port_info     (2): Setting port info for port 'Generic Port' at 'ptpip:192.168.1.2'...
0.113727 gp_port_set_settings        (2): Setting settings...
0.113753 gp_setting_set              (2): Setting key 'port' to value 'ptpip:192.168.1.2' (gphoto2)
0.113767 save_settings               (2): Saving 18 setting(s) to file "/home/guru/.gphoto/settings"
0.114022 gp_camera_init              (2): Initializing camera...
0.114041 gp_camera_init              (2): Loading '/usr/local/lib/libgphoto2/2.5.23/ptp2'...
0.116137 gp_port_open                (2): Opening  port...
0.118121 ptp_ptpip_connect           (2): connecting to ptpip:192.168.1.2.
0.119975 ptp_ptpip_init_command_request(3): ptpip/init_cmd data: (hexdump of 54 bytes)
0000  36 00 00 00 01 00 00 00-7f 4a 6d d9 e6 ca bb b4  6........Jm.....
0010  33 19 23 b6 54 26 bb 67-63 00 37 00 32 00 30 00  3.#.T&.gc.7.2.0.
0020  2d 00 72 00 33 00 36 00-38 00 31 00 36 00 36 00  -.r.3.6.8.1.6.6.
0030  00 00 00 00 01 00      -                         ......          

0.120208 ptp_ptpip_init_command_request [ptpip.c:472](0): return 54 / len 54
0.122156 ptp_ptpip_generic_read      (3): ptpip/generic_read header: (hexdump of 8 bytes)
0000  0c 00 00 00 05 00 00 00-                         ........        

0.122193 ptp_ptpip_generic_read      (3): ptpip/generic_read data: (hexdump of 4 bytes)
0000  01 00 00 00            -                         ....            

0.122209 ptp_ptpip_init_command_ack [ptpip.c:497](0): bad type returned 5
0.122322 camera_init [library.c:8422](0): Failed to connect.
0.122343 gp_port_close               (2): Closing port...
0.122973 gp_context_error            (0): An error occurred in the io-library ('Unspecified error'): No error description available
0.123236 gp_camera_free              (2): Freeing camera...
0.123323 gp_port_free                (2): Freeing port...
0.123378 gp_port_close               (2): Closing port...
0.123512 gp_filesystem_reset         (2): resetting filesystem
0.123549 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.123560 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.123636 delete_all_folders          (2): Internally deleting all folders from '/'...
0.123657 lookup_folder               (2): Lookup folder '/'...
0.123668 lookup_folder               (2): Found! / is 0x800e18060
0.123679 recurse_delete_folder       (2): Recurse delete folder 0x800e18060//