Quantcast

gphoto 2.5.4/2.5.10/2.5.11 works unreliable on RP3 with Canon 1200D

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

gphoto 2.5.4/2.5.10/2.5.11 works unreliable on RP3 with Canon 1200D

Dr. Volker Jaenisch
Hi gphoto User list!

I am stuck utilizing a raspberry Pi 3 to steer a Canon 1200D via
gphoto2. Using a home brew python script that takes a capture in intervals.

Raspbian comes with gphoto 2.5.4. This version detects the camera an can
perform any action on it except making captures in a stable fashion.

Have updated to 2.5.10 from Jessie-Backport. Same behavior.

Have compiled myself 2.5.11 Raspbian package from the git-Repository.
Same behavior.

Have had a clean start with fresh OS-Image. Some behavior.

The behavior is not deterministic. Sometime it captures sometimes not.

Resetting the camera via ghpoto2 --reset does not help.

Resetting the linux USB-Bus does not help.

Resetting the camera cures the problem, but only for a few shots.

No other process is using the Canon-usb-device. gvfs-gphoto is disabled,
no kernel module is using it.

Here the picture from 10000ft: First shot does not work. Second shot
works, third shot does not work:

pi@raspberrypi:~ $ ./run_meteocam

2017-01-15 01:42:37,338 INFO     Meteocam starting
2017-01-15 01:42:37,339 INFO     Starting processing step
2017-01-15 01:42:37,340 INFO     Resetting Camera
2017-01-15 01:42:37,340 INFO     Running: /usr/bin/gphoto2 --reset
2017-01-15 01:42:37,648 INFO     Got
2017-01-15 01:42:37,650 INFO        
2017-01-15 01:42:37,651 INFO     Camera resetted
2017-01-15 01:42:37,652 INFO     Starting image capture
2017-01-15 01:42:37,652 INFO     Running: /usr/bin/gphoto2
--capture-image-and-download --force-overwrite
--filename=capture/Schedule_20170115-014237.jpg --set-config aperture=8
--set-config iso=0
FEHLER: Konnte Bild nicht aufnehmen.
FEHLER: Konnte nicht aufnehmen.
2017-01-15 01:43:41,303 INFO     Got
2017-01-15 01:43:41,305 INFO        
2017-01-15 01:43:41,307 INFO     Image captured
2017-01-15 01:43:41,308 INFO     Starting FTP upload
2017-01-15 01:43:41,309 INFO     Looking for images to load up:
beo-webcam.ch
2017-01-15 01:43:41,311 INFO     0 files found
2017-01-15 01:43:41,312 INFO     FTP: Nothing to upload
2017-01-15 01:43:41,313 INFO     Processing step finished
2017-01-15 01:43:41,314 INFO     Sleeping 60 seconds
2017-01-15 01:44:41,376 INFO     Starting processing step
2017-01-15 01:44:41,377 INFO     Resetting Camera
2017-01-15 01:44:41,378 INFO     Running: /usr/bin/gphoto2 --reset
2017-01-15 01:44:41,718 INFO     Got
2017-01-15 01:44:41,719 INFO        
2017-01-15 01:44:41,720 INFO     Camera resetted
2017-01-15 01:44:41,721 INFO     Starting image capture
2017-01-15 01:44:41,721 INFO     Running: /usr/bin/gphoto2
--capture-image-and-download --force-overwrite
--filename=capture/Schedule_20170115-014441.jpg --set-config aperture=8
--set-config iso=0
2017-01-15 01:44:48,871 INFO     Got
2017-01-15 01:44:49,552 INFO         Neue Datei ist in /capt0000.jpg auf
der Kamera
2017-01-15 01:44:49,553 INFO         Speichere Datei als
capture/Schedule_20170115-014441.jpg
2017-01-15 01:44:49,554 INFO         Lösche Datei /capt0000.jpg auf der
Kamera
2017-01-15 01:44:49,556 INFO        
2017-01-15 01:44:49,557 INFO     Image captured
2017-01-15 01:44:49,558 INFO     Starting FTP upload
2017-01-15 01:44:49,559 INFO     Looking for images to load up:
beo-webcam.ch
2017-01-15 01:44:49,560 INFO     1 files found
2017-01-15 01:44:49,561 INFO     Opening FTP Connection to: beo-webcam.ch
2017-01-15 01:44:52,368 INFO     Loading up:
capture/Schedule_20170115-014441.jpg
2017-01-15 01:44:53,667 INFO     upload finished for:
capture/Schedule_20170115-014441.jpg
2017-01-15 01:44:53,669 INFO     Removing local file:
capture/Schedule_20170115-014441.jpg
2017-01-15 01:44:53,677 INFO     local file removed:
capture/Schedule_20170115-014441.jpg
2017-01-15 01:44:53,680 INFO     FTP Upload finished
2017-01-15 01:44:53,681 INFO     Processing step finished
2017-01-15 01:44:53,682 INFO     Sleeping 60 seconds
2017-01-15 01:45:53,743 INFO     Starting processing step
2017-01-15 01:45:53,744 INFO     Resetting Camera
2017-01-15 01:45:53,745 INFO     Running: /usr/bin/gphoto2 --reset
2017-01-15 01:45:54,108 INFO     Got
2017-01-15 01:45:54,110 INFO        
2017-01-15 01:45:54,110 INFO     Camera resetted
2017-01-15 01:45:54,111 INFO     Starting image capture
2017-01-15 01:45:54,111 INFO     Running: /usr/bin/gphoto2
--capture-image-and-download --force-overwrite
--filename=capture/Schedule_20170115-014554.jpg --set-config aperture=8
--set-config iso=0
FEHLER: Konnte Bild nicht aufnehmen.
FEHLER: Konnte nicht aufnehmen.
2017-01-15 01:46:57,765 INFO     Got
2017-01-15 01:46:57,767 INFO        
2017-01-15 01:46:57,768 INFO     Image captured
2017-01-15 01:46:57,769 INFO     Starting FTP upload
2017-01-15 01:46:57,770 INFO     Looking for images to load up:
beo-webcam.ch
2017-01-15 01:46:57,771 INFO     0 files found
2017-01-15 01:46:57,772 INFO     FTP: Nothing to upload
2017-01-15 01:46:57,773 INFO     Processing step finished
2017-01-15 01:46:57,774 INFO     Sleeping 60 seconds

And the weird stuff at last:

If I enable --debug everything is working. A true Heisenbug? Timing problem?

What am I doing wrong? What can I do better?

Any help appreciated

Volker


--
=========================================================
   inqbus Scientific Computing    Dr.  Volker Jaenisch
   Richard-Strauss-Straße 1       +49(08861) 690 474 0
   86956 Schongau-West            http://www.inqbus.de
=========================================================



------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gphoto 2.5.4/2.5.10/2.5.11 works unreliable on RP3 with Canon 1200D

Marcus Meissner
On Sun, Jan 15, 2017 at 02:15:44AM +0100, Dr. Volker Jaenisch wrote:

> Hi gphoto User list!
>
> I am stuck utilizing a raspberry Pi 3 to steer a Canon 1200D via
> gphoto2. Using a home brew python script that takes a capture in intervals.
>
> Raspbian comes with gphoto 2.5.4. This version detects the camera an can
> perform any action on it except making captures in a stable fashion.
>
> Have updated to 2.5.10 from Jessie-Backport. Same behavior.
>
> Have compiled myself 2.5.11 Raspbian package from the git-Repository.
> Same behavior.
>
> Have had a clean start with fresh OS-Image. Some behavior.
>
> The behavior is not deterministic. Sometime it captures sometimes not.
>
> Resetting the camera via ghpoto2 --reset does not help.
>
> Resetting the linux USB-Bus does not help.
>
> Resetting the camera cures the problem, but only for a few shots.
>
> No other process is using the Canon-usb-device. gvfs-gphoto is disabled,
> no kernel module is using it.
>
> Here the picture from 10000ft: First shot does not work. Second shot
> works, third shot does not work:
>
> pi@raspberrypi:~ $ ./run_meteocam
>
> 2017-01-15 01:42:37,338 INFO     Meteocam starting
> 2017-01-15 01:42:37,339 INFO     Starting processing step
> 2017-01-15 01:42:37,340 INFO     Resetting Camera
> 2017-01-15 01:42:37,340 INFO     Running: /usr/bin/gphoto2 --reset
> 2017-01-15 01:42:37,648 INFO     Got
> 2017-01-15 01:42:37,650 INFO        
> 2017-01-15 01:42:37,651 INFO     Camera resetted
> 2017-01-15 01:42:37,652 INFO     Starting image capture
> 2017-01-15 01:42:37,652 INFO     Running: /usr/bin/gphoto2
> --capture-image-and-download --force-overwrite
> --filename=capture/Schedule_20170115-014237.jpg --set-config aperture=8
> --set-config iso=0
> FEHLER: Konnte Bild nicht aufnehmen.
> FEHLER: Konnte nicht aufnehmen.
> 2017-01-15 01:43:41,303 INFO     Got
> 2017-01-15 01:43:41,305 INFO        
> 2017-01-15 01:43:41,307 INFO     Image captured
> 2017-01-15 01:43:41,308 INFO     Starting FTP upload
> 2017-01-15 01:43:41,309 INFO     Looking for images to load up:
> beo-webcam.ch
> 2017-01-15 01:43:41,311 INFO     0 files found
> 2017-01-15 01:43:41,312 INFO     FTP: Nothing to upload
> 2017-01-15 01:43:41,313 INFO     Processing step finished
> 2017-01-15 01:43:41,314 INFO     Sleeping 60 seconds
> 2017-01-15 01:44:41,376 INFO     Starting processing step
> 2017-01-15 01:44:41,377 INFO     Resetting Camera
> 2017-01-15 01:44:41,378 INFO     Running: /usr/bin/gphoto2 --reset
> 2017-01-15 01:44:41,718 INFO     Got
> 2017-01-15 01:44:41,719 INFO        
> 2017-01-15 01:44:41,720 INFO     Camera resetted
> 2017-01-15 01:44:41,721 INFO     Starting image capture
> 2017-01-15 01:44:41,721 INFO     Running: /usr/bin/gphoto2
> --capture-image-and-download --force-overwrite
> --filename=capture/Schedule_20170115-014441.jpg --set-config aperture=8
> --set-config iso=0
> 2017-01-15 01:44:48,871 INFO     Got
> 2017-01-15 01:44:49,552 INFO         Neue Datei ist in /capt0000.jpg auf
> der Kamera
> 2017-01-15 01:44:49,553 INFO         Speichere Datei als
> capture/Schedule_20170115-014441.jpg
> 2017-01-15 01:44:49,554 INFO         Lösche Datei /capt0000.jpg auf der
> Kamera
> 2017-01-15 01:44:49,556 INFO        
> 2017-01-15 01:44:49,557 INFO     Image captured
> 2017-01-15 01:44:49,558 INFO     Starting FTP upload
> 2017-01-15 01:44:49,559 INFO     Looking for images to load up:
> beo-webcam.ch
> 2017-01-15 01:44:49,560 INFO     1 files found
> 2017-01-15 01:44:49,561 INFO     Opening FTP Connection to: beo-webcam.ch
> 2017-01-15 01:44:52,368 INFO     Loading up:
> capture/Schedule_20170115-014441.jpg
> 2017-01-15 01:44:53,667 INFO     upload finished for:
> capture/Schedule_20170115-014441.jpg
> 2017-01-15 01:44:53,669 INFO     Removing local file:
> capture/Schedule_20170115-014441.jpg
> 2017-01-15 01:44:53,677 INFO     local file removed:
> capture/Schedule_20170115-014441.jpg
> 2017-01-15 01:44:53,680 INFO     FTP Upload finished
> 2017-01-15 01:44:53,681 INFO     Processing step finished
> 2017-01-15 01:44:53,682 INFO     Sleeping 60 seconds
> 2017-01-15 01:45:53,743 INFO     Starting processing step
> 2017-01-15 01:45:53,744 INFO     Resetting Camera
> 2017-01-15 01:45:53,745 INFO     Running: /usr/bin/gphoto2 --reset
> 2017-01-15 01:45:54,108 INFO     Got
> 2017-01-15 01:45:54,110 INFO        
> 2017-01-15 01:45:54,110 INFO     Camera resetted
> 2017-01-15 01:45:54,111 INFO     Starting image capture
> 2017-01-15 01:45:54,111 INFO     Running: /usr/bin/gphoto2
> --capture-image-and-download --force-overwrite
> --filename=capture/Schedule_20170115-014554.jpg --set-config aperture=8
> --set-config iso=0
> FEHLER: Konnte Bild nicht aufnehmen.
> FEHLER: Konnte nicht aufnehmen.
> 2017-01-15 01:46:57,765 INFO     Got
> 2017-01-15 01:46:57,767 INFO        
> 2017-01-15 01:46:57,768 INFO     Image captured
> 2017-01-15 01:46:57,769 INFO     Starting FTP upload
> 2017-01-15 01:46:57,770 INFO     Looking for images to load up:
> beo-webcam.ch
> 2017-01-15 01:46:57,771 INFO     0 files found
> 2017-01-15 01:46:57,772 INFO     FTP: Nothing to upload
> 2017-01-15 01:46:57,773 INFO     Processing step finished
> 2017-01-15 01:46:57,774 INFO     Sleeping 60 seconds
>
> And the weird stuff at last:
>
> If I enable --debug everything is working. A true Heisenbug? Timing problem?
>
> What am I doing wrong? What can I do better?

If enabling debug helps this is very likely a timing issue.

We are not waiting long enough for something or something is happening too quick. :/

As debugging does not work well...  Can you try:

        gphoto2 --trigger-capture --wait-event-and-download=20s > events.log

This will print the events coming from the camera. If that has also
working/nonworking happenings, logs for both fail/success would be good.

Ciao, Marcus

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gphoto 2.5.4/2.5.10/2.5.11 works unreliable on RP3 with Canon 1200D

Dr. Volker Jaenisch
Hi!

Am 17.01.2017 um 09:34 schrieb Marcus Meissner:
> gphoto2 --trigger-capture --wait-event-and-download=20s
This is a case with no capturing taking place:

gphoto2 --trigger-capture --wait-event-and-download=20s
Warte 20 Sekunden auf Events von der Kamera. Drücke Ctrl-C zum
abbrechen.    
UNKNOWN PTP Property d11b changed
UNKNOWN PTP Property d1c7 changed
UNKNOWN PTP Property d11b changed
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d103 changed

In this case capturing was succesfull:

pi@raspberrypi:~ $ gphoto2 --trigger-capture --wait-event-and-download=20s
Warte 20 Sekunden auf Events von der Kamera. Drücke Ctrl-C zum
abbrechen.    
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d103 changed
UNKNOWN Camera Status 1
UNKNOWN PTP Property d11b changed
Datei capt0000.jpg existiert bereits. Überschreiben? [y|n]
y                  
Speichere Datei als capt0000.jpg
UNKNOWN Camera Status 0
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d103 changed

And again a unsuccesfull one:
pi@raspberrypi:~ $ gphoto2 --trigger-capture
--wait-event-and-download=20s --force-overwrite
Warte 20 Sekunden auf Events von der Kamera. Drücke Ctrl-C zum
abbrechen.    
UNKNOWN PTP Property d11b changed
UNKNOWN PTP Property d1c7 changed
UNKNOWN PTP Property d11b changed
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d103 changed

Hope that helps.

Cheers,
Volker

--
=========================================================
   inqbus Scientific Computing    Dr.  Volker Jaenisch
   Richard-Strauss-Straße 1       +49(08861) 690 474 0
   86956 Schongau-West            http://www.inqbus.de
=========================================================


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gphoto 2.5.4/2.5.10/2.5.11 works unreliable on RP3 with Canon 1200D

Dr. Volker Jaenisch
In reply to this post by Marcus Meissner
Hi!

Coming back to my Issue with the 1200D.

A loop with 1 minute delay runs this command:

Running: /usr/bin/gphoto2 --set-config aperture=8 --set-config iso=0
--force-overwrite --filename=../../capture/Schedule_20170212-174715.jpg
--capture-image-and-download

Works in 9 out of 10 times then this happens:

*** Error ***            
Canon EOS Full-Press failed (0x2019: PTP Device Busy)
ERROR: Could not capture image.
ERROR: Could not capture.

The next time this:

ERROR: Could not capture image.
ERROR: Could not capture.

Then sometime it starts working again.

>From the recent discussion about the 1300D I learned a lot of things.
And I tried the same command as Oliver does for more finetuning on the
timings.

2017-02-12 18:55:53,141 INFO     Running: /usr/bin/gphoto2 --set-config
aperture=8 --set-config iso=0 --wait-event=270ms --set-config
eosremoterelease='Press 1' --wait-event=80ms --set-config
eosremoterelease='Press 2' --wait-event=80ms --set-config
eosremoterelease='Release 2' --wait-event=80ms --set-config
eosremoterelease='Release 1' --wait-event-and-download=5s
--force-overwrite --filename=../../capture/Schedule_20170212-185552.jpg

Unfortunally no image is taken this way.

Here a logfile of my Software:

2017-02-12 18:55:52,059 INFO     Resetting Camera
2017-02-12 18:55:52,060 INFO     Running: /usr/bin/gphoto2 --reset
--wait-event=500ms
2017-02-12 18:55:53,111 INFO     Got
2017-02-12 18:55:53,112 INFO         Waiting for 500 milliseconds for
events from camera. Press Ctrl-C to abort.
2017-02-12 18:55:53,112 INFO         UNKNOWN PTP Property d11b changed
2017-02-12 18:55:53,113 INFO         UNKNOWN PTP Property d11c changed
2017-02-12 18:55:53,113 INFO         UNKNOWN PTP Property d120 changed
2017-02-12 18:55:53,114 INFO         UNKNOWN PTP Property d11e changed
2017-02-12 18:55:53,115 INFO         UNKNOWN PTP Property d11c changed
2017-02-12 18:55:53,115 INFO         UNKNOWN PTP Property d11f changed
2017-02-12 18:55:53,116 INFO         UNKNOWN PTP Property d105 changed
2017-02-12 18:55:53,116 INFO         UNKNOWN PTP Property d108 changed
2017-02-12 18:55:53,117 INFO         UNKNOWN PTP Property d106 changed
2017-02-12 18:55:53,118 INFO         UNKNOWN PTP Property d107 changed
2017-02-12 18:55:53,118 INFO         UNKNOWN PTP Property d109 changed
2017-02-12 18:55:53,119 INFO         UNKNOWN PTP Property d10b changed
2017-02-12 18:55:53,119 INFO         UNKNOWN PTP Property d10c changed
2017-02-12 18:55:53,120 INFO         UNKNOWN PTP Property d10d changed
2017-02-12 18:55:53,120 INFO         UNKNOWN PTP Property d10e changed
2017-02-12 18:55:53,121 INFO         UNKNOWN PTP Property d10f changed
2017-02-12 18:55:53,121 INFO         UNKNOWN PTP Property d11b changed
2017-02-12 18:55:53,122 INFO         UNKNOWN PTP Property d114 changed
2017-02-12 18:55:53,122 INFO         UNKNOWN PTP Property d116 changed
2017-02-12 18:55:53,123 INFO         UNKNOWN PTP Property d119 changed
2017-02-12 18:55:53,123 INFO         UNKNOWN PTP Property d110 changed
2017-02-12 18:55:53,124 INFO         UNKNOWN PTP Property d101 changed
2017-02-12 18:55:53,124 INFO         UNKNOWN PTP Property d102 changed
2017-02-12 18:55:53,125 INFO         UNKNOWN PTP Property d103 changed
2017-02-12 18:55:53,125 INFO         UNKNOWN PTP Property d104 changed
2017-02-12 18:55:53,126 INFO         UNKNOWN PTP Property d11d changed
2017-02-12 18:55:53,126 INFO         UNKNOWN PTP Property d111 changed
2017-02-12 18:55:53,127 INFO         UNKNOWN PTP Property d112 changed
2017-02-12 18:55:53,128 INFO         UNKNOWN PTP Property d113 changed
2017-02-12 18:55:53,128 INFO         UNKNOWN PTP Property d120 changed
2017-02-12 18:55:53,129 INFO         UNKNOWN PTP Property d122 changed
2017-02-12 18:55:53,129 INFO         UNKNOWN PTP Property d156 changed
2017-02-12 18:55:53,130 INFO         UNKNOWN PTP Property d150 changed
2017-02-12 18:55:53,130 INFO         UNKNOWN PTP Property d151 changed
2017-02-12 18:55:53,131 INFO         UNKNOWN PTP Property d152 changed
2017-02-12 18:55:53,131 INFO         UNKNOWN PTP Property d153 changed
2017-02-12 18:55:53,132 INFO         UNKNOWN PTP Property d154 changed
2017-02-12 18:55:53,132 INFO         UNKNOWN PTP Property d155 changed
2017-02-12 18:55:53,133 INFO         UNKNOWN PTP Property d160 changed
2017-02-12 18:55:53,133 INFO         UNKNOWN PTP Property d161 changed
2017-02-12 18:55:53,134 INFO         UNKNOWN PTP Property d162 changed
2017-02-12 18:55:53,134 INFO         UNKNOWN PTP Property d11c changed
2017-02-12 18:55:53,135 INFO         UNKNOWN PTP Property d1a0 changed
2017-02-12 18:55:53,135 INFO         UNKNOWN PTP Property d1a1 changed
2017-02-12 18:55:53,136 INFO         UNKNOWN PTP Property d1a8 changed
2017-02-12 18:55:53,136 INFO         UNKNOWN PTP Property d1ab changed
2017-02-12 18:55:53,137 INFO         UNKNOWN PTP Property d1b0 changed
2017-02-12 18:55:53,137 INFO         UNKNOWN PTP Property d1b1 changed
2017-02-12 18:55:53,138 INFO         UNKNOWN PTP Property d1b2 changed
2017-02-12 18:55:53,138 INFO         UNKNOWN PTP Property d1b3 changed
2017-02-12 18:55:53,139 INFO        
2017-02-12 18:55:53,139 INFO     Camera resetted
2017-02-12 18:55:53,140 INFO     Starting image capture
2017-02-12 18:55:53,141 INFO     Running: /usr/bin/gphoto2 --set-config
aperture=8 --set-config iso=0 --wait-event=270ms --set-config
eosremoterelease='Press 1' --wait-event=80ms --set-config
eosremoterelease='Press 2' --wait-event=80ms --set-config
eosremoterelease='Release 2' --wait-event=80ms --set-config
eosremoterelease='Release 1' --wait-event-and-download=5s
--force-overwrite --filename=../../capture/Schedule_20170212-185552.jpg
2017-02-12 18:55:59,339 INFO     Got
2017-02-12 18:55:59,340 INFO         Waiting for 270 milliseconds for
events from camera. Press Ctrl-C to abort.
2017-02-12 18:55:59,341 INFO         UNKNOWN PTP Property d11b changed
2017-02-12 18:55:59,343 INFO         UNKNOWN PTP Property d11c changed
2017-02-12 18:55:59,344 INFO         UNKNOWN PTP Property d120 changed
2017-02-12 18:55:59,345 INFO         UNKNOWN PTP Property d11e changed
2017-02-12 18:55:59,346 INFO         UNKNOWN PTP Property d11c changed
2017-02-12 18:55:59,347 INFO         UNKNOWN PTP Property d11f changed
2017-02-12 18:55:59,348 INFO         UNKNOWN PTP Property d105 changed
2017-02-12 18:55:59,349 INFO         UNKNOWN PTP Property d108 changed
2017-02-12 18:55:59,350 INFO         UNKNOWN PTP Property d106 changed
2017-02-12 18:55:59,351 INFO         UNKNOWN PTP Property d107 changed
2017-02-12 18:55:59,352 INFO         UNKNOWN PTP Property d109 changed
2017-02-12 18:55:59,353 INFO         UNKNOWN PTP Property d10b changed
2017-02-12 18:55:59,354 INFO         UNKNOWN PTP Property d10c changed
2017-02-12 18:55:59,355 INFO         UNKNOWN PTP Property d10d changed
2017-02-12 18:55:59,356 INFO         UNKNOWN PTP Property d10e changed
2017-02-12 18:55:59,357 INFO         UNKNOWN PTP Property d10f changed
2017-02-12 18:55:59,358 INFO         UNKNOWN PTP Property d11b changed
2017-02-12 18:55:59,359 INFO         UNKNOWN PTP Property d114 changed
2017-02-12 18:55:59,360 INFO         UNKNOWN PTP Property d116 changed
2017-02-12 18:55:59,361 INFO         UNKNOWN PTP Property d119 changed
2017-02-12 18:55:59,362 INFO         UNKNOWN PTP Property d110 changed
2017-02-12 18:55:59,363 INFO         UNKNOWN PTP Property d101 changed
2017-02-12 18:55:59,364 INFO         UNKNOWN PTP Property d102 changed
2017-02-12 18:55:59,365 INFO         UNKNOWN PTP Property d103 changed
2017-02-12 18:55:59,366 INFO         UNKNOWN PTP Property d104 changed
2017-02-12 18:55:59,367 INFO         UNKNOWN PTP Property d11d changed
2017-02-12 18:55:59,368 INFO         UNKNOWN PTP Property d111 changed
2017-02-12 18:55:59,369 INFO         UNKNOWN PTP Property d112 changed
2017-02-12 18:55:59,370 INFO         UNKNOWN PTP Property d113 changed
2017-02-12 18:55:59,371 INFO         UNKNOWN PTP Property d120 changed
2017-02-12 18:55:59,372 INFO         UNKNOWN PTP Property d122 changed
2017-02-12 18:55:59,373 INFO         UNKNOWN PTP Property d156 changed
2017-02-12 18:55:59,374 INFO         UNKNOWN PTP Property d150 changed
2017-02-12 18:55:59,375 INFO         UNKNOWN PTP Property d151 changed
2017-02-12 18:55:59,376 INFO         UNKNOWN PTP Property d152 changed
2017-02-12 18:55:59,377 INFO         UNKNOWN PTP Property d153 changed
2017-02-12 18:55:59,378 INFO         UNKNOWN PTP Property d154 changed
2017-02-12 18:55:59,379 INFO         UNKNOWN PTP Property d155 changed
2017-02-12 18:55:59,380 INFO         UNKNOWN PTP Property d160 changed
2017-02-12 18:55:59,381 INFO         UNKNOWN PTP Property d161 changed
2017-02-12 18:55:59,382 INFO         UNKNOWN PTP Property d162 changed
2017-02-12 18:55:59,383 INFO         UNKNOWN PTP Property d11c changed
2017-02-12 18:55:59,384 INFO         UNKNOWN PTP Property d1a0 changed
2017-02-12 18:55:59,385 INFO         UNKNOWN PTP Property d1a1 changed
2017-02-12 18:55:59,386 INFO         UNKNOWN PTP Property d1a8 changed
2017-02-12 18:55:59,387 INFO         UNKNOWN PTP Property d1ab changed
2017-02-12 18:55:59,388 INFO         UNKNOWN PTP Property d1b0 changed
2017-02-12 18:55:59,389 INFO         UNKNOWN PTP Property d1b1 changed
2017-02-12 18:55:59,390 INFO         Waiting for 80 milliseconds for
events from camera. Press Ctrl-C to abort.
2017-02-12 18:55:59,391 INFO         UNKNOWN PTP Property d1b2 changed
2017-02-12 18:55:59,393 INFO         UNKNOWN PTP Property d1b3 changed
2017-02-12 18:55:59,394 INFO         UNKNOWN PTP Property d1b4 changed
2017-02-12 18:55:59,395 INFO         UNKNOWN PTP Property d1b5 changed
2017-02-12 18:55:59,396 INFO         UNKNOWN PTP Property d1a9 changed
2017-02-12 18:55:59,397 INFO         UNKNOWN PTP Property d146 changed
2017-02-12 18:55:59,398 INFO         UNKNOWN PTP Property d1ac changed
2017-02-12 18:55:59,399 INFO         UNKNOWN PTP Property d11e changed
2017-02-12 18:55:59,400 INFO         UNKNOWN PTP Property d11f changed
2017-02-12 18:55:59,401 INFO         UNKNOWN PTP Property d1d9 changed
2017-02-12 18:55:59,402 INFO         UNKNOWN PTP Property d1ba changed
2017-02-12 18:55:59,403 INFO         UNKNOWN PTP Property d1ca changed
2017-02-12 18:55:59,404 INFO         UNKNOWN PTP Property d1bc changed
2017-02-12 18:55:59,405 INFO         UNKNOWN PTP Property d1b8 changed
2017-02-12 18:55:59,406 INFO         UNKNOWN PTP Property d1d3 changed
2017-02-12 18:55:59,407 INFO         Waiting for 80 milliseconds for
events from camera. Press Ctrl-C to abort.
2017-02-12 18:55:59,407 INFO         UNKNOWN PTP Property d1d8 changed
2017-02-12 18:55:59,408 INFO         UNKNOWN PTP Property d1b7 changed
2017-02-12 18:55:59,408 INFO         UNKNOWN PTP Property d1b9 changed
2017-02-12 18:55:59,409 INFO         UNKNOWN PTP Property d1db changed
2017-02-12 18:55:59,409 INFO         UNKNOWN PTP Property d1dc changed
2017-02-12 18:55:59,410 INFO         UNKNOWN PTP Property d1df changed
2017-02-12 18:55:59,410 INFO         UNKNOWN PTP Property d1bd changed
2017-02-12 18:55:59,411 INFO         UNKNOWN PTP Property d1c1 changed
2017-02-12 18:55:59,412 INFO         UNKNOWN PTP Property d1c0 changed
2017-02-12 18:55:59,412 INFO         UNKNOWN PTP Property d1bf changed
2017-02-12 18:55:59,413 INFO         UNKNOWN PTP Property d1c4 changed
2017-02-12 18:55:59,413 INFO         UNKNOWN PTP Property d1c2 changed
2017-02-12 18:55:59,414 INFO         UNKNOWN PTP Property d1c5 changed
2017-02-12 18:55:59,414 INFO         UNKNOWN PTP Property d194 changed
2017-02-12 18:55:59,415 INFO         UNKNOWN PTP Property d195 changed
2017-02-12 18:55:59,415 INFO         Waiting for 80 milliseconds for
events from camera. Press Ctrl-C to abort.
2017-02-12 18:55:59,416 INFO         UNKNOWN PTP Property d196 changed
2017-02-12 18:55:59,416 INFO         UNKNOWN PTP Property d197 changed
2017-02-12 18:55:59,417 INFO         UNKNOWN PTP Property d198 changed
2017-02-12 18:55:59,417 INFO         UNKNOWN PTP Property d1c6 changed
2017-02-12 18:55:59,418 INFO         UNKNOWN PTP Property d1c8 changed
2017-02-12 18:55:59,418 INFO         UNKNOWN PTP Property d17c changed
2017-02-12 18:55:59,419 INFO         UNKNOWN PTP Property d17d changed
2017-02-12 18:55:59,419 INFO         UNKNOWN PTP Property d17e changed
2017-02-12 18:55:59,420 INFO         UNKNOWN PTP Property d138 changed
2017-02-12 18:55:59,420 INFO         UNKNOWN PTP Property d115 changed
2017-02-12 18:55:59,421 INFO         UNKNOWN PTP Property d1d0 changed
2017-02-12 18:55:59,421 INFO         UNKNOWN PTP Property d1d1 changed
2017-02-12 18:55:59,422 INFO         UNKNOWN PTP Property d1af changed
2017-02-12 18:55:59,422 INFO         UNKNOWN PTP Property d11b changed
2017-02-12 18:55:59,423 INFO         UNKNOWN PTP Property d11c changed
2017-02-12 18:55:59,423 INFO         Waiting for 5 seconds for events
from camera. Press Ctrl-C to abort.
2017-02-12 18:55:59,424 INFO         UNKNOWN PTP Property d11b changed
2017-02-12 18:55:59,424 INFO         UNKNOWN PTP Property d11c changed
2017-02-12 18:55:59,425 INFO         UNKNOWN PTP Property d11b changed
2017-02-12 18:55:59,425 INFO         UNKNOWN PTP Property d11c changed

No image is loaded down, but also no error message.

I am a bit lost now.

Volker

--

=========================================================
   inqbus Scientific Computing    Dr.  Volker Jaenisch
   Richard-Strauss-Straße 1       +49(08861) 690 474 0
   86956 Schongau-West            http://www.inqbus.de
=========================================================



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gphoto 2.5.4/2.5.10/2.5.11 works unreliable on RP3 with Canon 1200D

Dr. Volker Jaenisch

Hi again!

Have to apologise. Total looser, so bad!

Looks like the problem isn't gphoto at all, but the way I called it from python.

I am still investigating, but it seems like it matters if you call gphoto from the python subprocess-lib with "shell=True" or "shell=False" parameter.

Here is the python code fragment that works:

config.py:

# Grace time for camera to finish operation. Grace_time must be lower the interval_time.
# Wartezeit für Kamera bevor das Bild runtergeladen wrid. Muss kleiner als Schlafzeit sein.
grace_time = 25

# camera name for generation of unique output files
camera_name = 'cam_01'

# folder for capture files
capture_file_folder = '../../capture/'

# gphoto2 executable
gphoto_executable='/usr/bin/gphoto2'

# filename_format

FILENAME_FORMAT = "Schedule_%Y%m%d-%H%M%S.jpg"

# ===================
# Image configuration
# ===================

# Aperture
# Blende

image_conf = {
    'main/capturesettings/aperture' : '8',  # Blende
    'main/imagesettings/iso' :'0',       # iso Value. 0=Auto
}

capture.py:

import subprocess
import datetime
import os

import config
from log import logger
from translation import _

def start():

...
...

   CMD_SINGLE = [
           '--force-overwrite',
           '--filename=%s' % out_file_name,
           '--wait-event=270ms',
           '--set-config', "eosremoterelease='Press 1'",
           '--wait-event=80ms',
           '--set-config', "eosremoterelease='Press 2'",
           '--wait-event=80ms',
           '--set-config', "eosremoterelease='Release 2'",
           '--wait-event=80ms',
           '--set-config', "eosremoterelease='Release 1'",
           '--wait-event-and-download=%ss' % config.grace_time,
           ]

    cmd = [config.gphoto_executable]

    cmd = cmd + CMD_SINGLE

    logger.info(_('Running') + ": " + ' '.join(cmd)  )

    output = subprocess.check_output( ' '.join(cmd), shell=True )

    logger.info(_('Got') )

    for line in output.decode("utf-8", "replace").split('\n'):
        logger.info(_('    ') + line )

    logger.info(_('Image captured')  )

Currently I have a series of 28 shots without problems.

Sorry for stealing your time

Volker
-- 
=========================================================
   inqbus Scientific Computing    Dr.  Volker Jaenisch
   Richard-Strauss-Straße 1       +49(08861) 690 474 0
   86956 Schongau-West            http://www.inqbus.de
=========================================================

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
Loading...