Hello all,

I am trying to control a Sony Alpha 6000 via a raspberry pi. Instead of
using the CLI frontend (gphoto2), I am using the functions of libgphoto2 in
my own C code. The function calls in my code looks something like this:

capture_to_file() 
    gp_camera_capture()
    gp_file_new_from_fd()
    gp_camera_file_get()
   gp_file_free()
   gp_camera_file_delete()
       
main()
    gp_log_add_func()
    gp_camera_new()
    gp_camera_init()
      capture_to_file()  // calling this function in loop
   gp_camera_exit

It seems as though the camera freezes after some number of captures. To be
precise, gp_camera_capture() does not give back the control to my code. And
it is stuck in this state forever.

Interestingly, if I do a ctrl+c in the terminal, and execute my code again
(without doing any kind of camera reset), the camera does not take a picture
for the first time, but it seems to have the image in the SDRAM, which it
writes to the file, and then proceeds to take pictures till it hangs again. 

Also, even when it is taking pictures, I see the following warning being
displayed for every capture ( I have enabled GP_LOG_ERROR):
 
Reading PTP event failed: Timeout reading from or writing to the port (-10) 

I also checked the following thread
http://gphoto-software.10949.n7.nabble.com/Sony-Alpha-Series-Freezes-td14996.html
<http://gphoto-software.10949.n7.nabble.com/Sony-Alpha-Series-Freezes-td14996.html>
  

But there don't seem to be concrete solution given in that thread. 

What am I doing wrong? Any help would be really helpful. This seems like a
bug in the 

Thank you.

PS: 
I am using libgphoto2 2.5.12

Cheers,
Anand




 



--
View this message in context: 
http://gphoto-software.10949.n7.nabble.com/Sony-Alpha-6000-freezes-after-multiple-image-captures-tp16616.html
Sent from the gphoto-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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