very new here so please bear with me. I'm an artist trying to realise an idea for a camera that takes photos every X interval during a month. Everything works, except that the app with which I transfer the photos to a MacBook seems quite unstable after a day or so flooding the Console with RemoteCameraControl[94450] <Warning>: ========== resetTimeoutTimer ==========<
and often randomly disconnecting with
2018/4/6 00:02:15 PTP_FALSE -> pollingThread[464]: Failed to get all device PropValue!!!
2018/4/6 00:02:20 PTP_FALSE -> timeoutThread[713]: Time Out!!
(from a log created by the program)
I've not been able to solve this using a combination of Python & LaunchAgents or even resorting to AppleScript, so now I was hoping to have a crack at changing the program itself. The program in question is Sony's freely available RemoteCameraControl (http://support.d-imaging.sony.co.jp/imsoft/Mac/rcc/us.html):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC I386 ALL 0x00 EXECUTE 26 3740 NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK PIE
I've opened it using MachOView and see it's an x86. Now I've been trying to understand the contents, but with my background in coding (Python, R, JS, PHP etc) I was confused by the lack of a linear logic: I understand there are lots of (symbolic) links being specified, either to external or internal components/programs, but nowhere can I seem to find something along the lines of "If no activity for X minutes then shut down the program" or find the parameter that dictates the PTP_FALSE -> timeoutThread[713]: Time Out!!
errors.
I know this is hardly a specific question, but I was wondering whether anyone could point me into the right direction: are some of the contents not shown by MachOView? Do I need another app to see the linear logic of the app? Is there any good documentation on beginner's steps of how to understand an executable of this sort? I've found this website http://thestarman.pcministry.com/asm/index.html but am not sure where really to start either...
KeepAlive
and added it to LaunchAgents, but the program does a lot of back talk when it crashes and restart, prompting dialogs both on quit and start (already setdefaults write com.apple.CrashReporter DialogType none
but it happily adds dialogs of its own about folder location to save files, etc.). The tricky thing with your solution is that I need to be sure it isn't in the middle of taking photographs (and the trigger for the photograph is something completely outside of the program)...