It has taken me 2 days to get to this point but I will be a succinct as
I can be.
I have a python program controlling a Canon camera (several models in
fact) in response to an Xbee remote controller.
I created each item to be controlled in a separate module and then
imported into the final application. Just when I thought it was ll done
and working, during testing I came across a problem
I have 2 capture modes. One uses capture_image in gphoto2 and the other
is a physical remote release (over a realy).
In both cases, when I have the full application runnig I found that the
shutter was exercised but the images was never saves. Also, the camera
was locked up "recording" to who knows where. The only resort was
removing the battery.
I tracked it down(to some extent) to the capturetarget. I had it working
reliably from a test script but when I pasted this into the main program
it failed. A day later I had stripped the main program down to the same
lines of code as the working test script and it still failed. I wa
challenging the very deterministic nature of code.
Then I had an epiphany. The only difference was that the main program
required, due to other libraries, that I run it as root. I had the
launch command programmed as root ./slave.py and the test program was
run simply without root, ./test.py
Now whet I run ./test.py as toor it fails. So now the problem is defined
and repeatable but not yet solved.
I run the following code as root and none root and the camera stored the
image without root and does not with root.
I am using wiringPi which demands root for the main program. In any
case, it would be nce to understand what's going on.
Raspberry Pi running Jessie.pi@slave:~ $ gphoto2 -v
Copyright (c) 2000-2016 Lutz Mueller and others
gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named
This version of gphoto2 is using the following software versions and
gphoto2 2.5.10 gcc, popt(m), exif, no cdk, no aa, no
jpeg, no readline
libgphoto2 2.5.10 all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0 gcc, ltdl, USB, serial without locking
I hope this is obvious to someone because it is kicking my ass!
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
Gphoto-user mailing list
[hidden email] https://lists.sourceforge.net/lists/listinfo/gphoto-user