gphoto2
gphoto2 copied to clipboard
Control EOS M3
Hello. I bought a Canon EOS M3. I had seen that it was listed as compatible with gphoto2. Unfortunately I cannot change the shooting parameter: view txt file test_M3_Canon.txt
after this command I have the impression that the device starts to crash (black screen and forced to restart it, green led fixe). if I don't change any setting after plugging it in, I can take a photo ( with sudo gphoto2 --capture-image or gphoto2 --capture-image) On Canon M3 screen i have : "use targer device" before crach
By exploring the different issues. I noticed that my problem is exactly the same as for the CANON M6
Looking to see if anyone had successfully piloted an M3 Canon with gphoto2 I found this: https://sourceforge.net/p/gphoto/bugs/1033/
and :
#!/bin/bash
echo For Canon EOS-M3, version 001 created by Anthony C T LEE from Hong Kong
#not working for 80D due to the filename of duplication of downloaded JPG
# --capture-image-and-download does not work for M3
echo
echo Please set the camera
echo 1. in bulb mode,
echo 2. RAW and JPG format,
echo 3. set the ISO and aperature prior to connection to raspberry pi.
echo
echo What is exposure time in seconds?
read "var_exp_t" # Exposure time X echo
echo What is total number of frames to be taken?
read "var_frame_no" # Y
gphoto2 --wait-event=2s
# add a minimum of 2 sec time gap before the first shutter release since switch on to ensure the camera captures photos correctly
#
# eosremoterelease: 1=Press Half (OK); 2=Press Full (OK), 4=Release Full (OK), 5=Immediate (Fail, shutter cannot be Released)
counter=1
until [ $counter -gt $var_frame_no ]
do
gphoto2 --set-config eosremoterelease=2 --wait-event="$var_exp_t"s --set-config eosremoterelease=4 # --wait-event=Xs is time of exposure in X seconds
gphoto2 --wait-event-and-download=5s --keep-raw # add a minimum of 5 sec for downloading image
((counter++))
done
echo
# or change it to "--wait-event=4s" (2nd wait-event with minimum of 4 sec) to ensure the camera downloads photos correctly
echo A total of "$var_frame_no" frames with exposure of "$var_exp_t" seconds per frame were`
This script works fine with gphoto 2.5.23, libghoto 2.5.27
log for 1 pose of 1s (setting on canon : iso 1600, apperture 3.5, mode : bulbe, mode jpeg+raw, mode M).
Do not hesitate to tell me if I can perform other tests on my M3 to help you find the problem.