Open minw428 opened 5 years ago
"some shots" is how many usually?
this should not happen though, but I did not work on this as I was not fully aware of it.
Is it possible to capture a debug trace?
Use --debug-level=debug to not include data in the logfile
Sometimes over 100 shots, sometimes under 30 shots.
I think that there are some missing(or ignored by camera) command. Because when it happens if I press a shot button of camera then the suspended status is cleared.
yeah, likely a missed event or similar :/
I just plan to test with a simple way.
do { // full press propval.u16 = 2; C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_Capture, &propval, PTP_DTC_UINT16));
// delay about 200ms
// release press propval.u16 = 1; C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_Capture, &propval, PTP_DTC_UINT16));
// delay about 1000ms
C_PTP (ptp_sony_getalldevicepropdesc (params)); / avoid caching / C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_SONY_ObjectInMemory, &dpd));
if (dpd.CurrentValue.u16 > 0x8000) { GP_LOG_D ("SONY ObjectInMemory count change seen, ending wait"); break; } } while (time_since (event_start) < 10000);
Can I get the button status? If so, I can remove some delay. press button -> check button pressed -> release button -> check button released -> check image.
half press is mandatory? I'm using manual focus.
Same result... :( Can you recommend a flawless camera model?
I tried using my android phones(galaxy s3 note4 s6 s8).. all were auto detected but failed to capture image.
can you try this patch... it enabled the event handling again, which should report on added images
reason it was disabled is that it was unstable on some models though
The Nikon DSLR/Z and Canon EOS DSLR / R are more reliable FWIW
can you try this patch... it enabled the event handling again, which should report on added images
reason it was disabled is that it was unstable on some models though
what "dual" should be?
it is ptp_check_event_queue in the patch, did oyu mistype it?
it is ptp_check_event_queue in the patch, did oyu mistype it?
sorry :)
What should I do for "dual"? https://github.com/gphoto/libgphoto2/blob/412ef5ef34afb59a921d1033825867e72b0e1b21/camlibs/ptp2/library.c#L4197
I tried with if(dual) was commented but I met following situations
It seems this patch works not.
Hello Marcus, I had two cameras a5000 doing time-lapse and discover that the setting on the camera sould be on " PC REMOTE " not in ptp. With this setting it did work for me for a few days in one of the cameras, but now both cameras not doing nothing. I can send you one of my cameras for you to test if you need it and resolve this issue more deeply. Doing " lsusb " it appears the sony camera but is not working at all. Can you help us?
Marcos
if it survives several days of shooting this will be very hard to debug. :/
jhas it totally stopped working?
Yes , stopped with not reason aparenly
I restart the camera and did only one picture and stop all. Attached log file debug my-logfile.txt
On "lsusb" I can see the camera.
Thank you
Hi,
I have something, that is not really a permanent or pretty solution but rather a hot fix. I opened issue #216, about the same problem, where I'm using python. At this time I can recover from this by executing
kill -9
ps aux | grep gphoto | grep -v grep | awk '{print $2}'
each time the capture process takes longer than 6-7 seconds to terminate. (using multiprocessing in python)
it ain't pretty but it works...
I read all thread related to Sony. I'm facing a same problem that the capture command is suspended after taking some shots.
As I know there are a few way to exit that state.
Is there any improvement on this? I'm using RX100M4 and it is hard to complete a timelapse.