gphotofs icon indicating copy to clipboard operation
gphotofs copied to clipboard

Specifying --port only gets ignored

Open SuperTaiyaki opened this issue 6 years ago • 5 comments

I've been trying to get gphotofs working with a Sony RX100. Executing with --port=ptpip:192.168.100.127 fails with an error that no model was found. gphoto --port ptpip:.... works fine.

According to the documentation for gp_camera_init, both gp_camera_set_port_path and gp_camera_set_abilities must be called to avoid auto detection. The auto detection misses my camera because this port apparently can't be scanned. I've been able to get this to work by borrowing some code from gphoto2. In short, use the port list for gp_abilities_list_detect, use the model name that comes back for gp_abilities_list_lookup, then pass it to gp_camera_set_abilities.

I have this working, but the code needs to be cleaned up quite a bit. I'll just leave this comment here for now.

SuperTaiyaki avatar Dec 10 '17 12:12 SuperTaiyaki