gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
710 stars 116 forks source link

Sony A7R3: Error "Could not detect any camera" occurs AFTER many successful captures #294

Open arminko82 opened 4 years ago

arminko82 commented 4 years ago

In forward: Thank you for your great work! I am triggering a setup of two Sony A7R3

$ gphoto2 --auto-detect
Modell                         Port
----------------------------------------------------------
Sony Alpha-A7 (Control)        usb:001,035
Sony Alpha-A7 (Control)        usb:001,034

every every 30 seconds in parallel for sessions of 10 hours. After an undetermined amount of time the cameras cease to be accessible. Gphoto2 responds to me with

*** Error ***
Could not detect any camera
*** Error (-105: »Unknown model«) ***

The setup is running

Copyright (C) 2000-2016 Lutz Müller und andere
[...]
gphoto2         2.5.11         gcc, popt(m), exif, cdk, aa, jpeg, readline
libgphoto2      2.5.12         all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0         gcc, ltdl, USB, serial without locking`

on a RaspberryPi 3B+ with Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux

How am I triggering: gphoto2 --port usb:001,035 --capture-image-and-download --quiet --force-overwrite --filename index_name

I have made a lsusb -v during that frozen state and afterwards. When frozen the cameras do not react at all, even on hitting the hardware buttons on the camera, only switching the main button off and on revives the cameras.

What is puzzeling me: It happens to both cameras at the same time.

Would you have any ideas on that? Thanks, Armin

arminko82 commented 4 years ago

The same happened again last night after running for altogether 10.5 hours and performing 987 captures. I can now provide the results of gphoto2 --auto-detect --debug and gphoto2 --summary --debug. Interestingly you can see a glimpse at a Sony camera at line in the latter in line 196. Furthermore here is the relevant part of my logs that record the responses by gphoto2: Log. Some log lines may be interwoven as there are two gphoto2 processes are created at the same time.

arminko82 commented 4 years ago

Adding relevant dmesg logs of the time the cameras cease to work. I can see a repeated USB disconnect, device number i messages at about the times image capturing should have taken place.

msmeissn commented 4 years ago

libgpoto2 2.5.12 is quite old, perhaps an update to 2.5.24 already helps.

The report you indicate seems to be the camera firmware crashing, we might have brought it into a corrupt state or similra ... this is hard to debug.

arminko82 commented 4 years ago

Thanks for your response, I will try the latest lib. As the USB disconnect happens for the two connected cameras at roughly the same time, do you think the reason could be that I call this in order to get trigger both cameras as simultanuously as possible?

gphoto2 --port usb:001,007 --capture-image-and-download --quiet --force-overwrite --filename left_i
gphoto2 --port usb:001,008 --capture-image-and-download --quiet --force-overwrite --filename right_i

Could these simultanrous calls possibly interfere with each other?