Jasem

Wow there is a lot of code there. I spent some time looking at it and my first guess is that this uses the libgphoto2 and makes direct calls to the library. I have been using the command line gphoto2 with the following command:

gphoto2 --wait-event=10s --capture-image-and-download --force-overwrite --filename xxx.jpg

So I don't actually know what the wait-event waits for but after the command is issued nothing happens for several seconds and then the shutter clicks. The code you direct me to seems to be in the area where INDI waits for the image to download. On photo if you don't wait long enough nothing happens in the camera. You don't actually capture a photo. So it isn't like a failure to wait for the download to finish.

There is some discussion here: github.com/gphoto/gphoto2/issues/272

I also discovered that gphoto2 supposedly can control the focus so maybe I could write some code to add that to INDI so sunny camera users could use the EKOS focus feature. That might be a bridge quite far but maybe not too far.


I get the following output

'Loading camera drivers from '/usr/l... | \ 0.0%
Loading camera drivers from '/usr/l... |- | 5.0%
Loading camera drivers from '/usr/l... |-- / 10.0%
Loading camera drivers from '/usr/l... |--- - 15.0%
Loading camera drivers from '/usr/l... |---- \ 20.0%
Loading camera drivers from '/usr/l... |


| 25.0%
Loading camera drivers from '/usr/l... |
/ 30.0%
Loading camera drivers from '/usr/l... |
- 35.0%
Loading camera drivers from '/usr/l... |
\ 40.0%
Loading camera drivers from '/usr/l... |
| 45.0%
Loading camera drivers from '/usr/l... |
/ 50.0%
Loading camera drivers from '/usr/l... |
- 55.0%
Loading camera drivers from '/usr/l... |
\ 60.0%
Loading camera drivers from '/usr/l... |
| 65.0%
Loading camera drivers from '/usr/l... |
/ 70.0%
Loading camera drivers from '/usr/l... |
- 75.0%
Loading camera drivers from '/usr/l... |
\ 80.0%
Loading camera drivers from '/usr/l... |
| 85.0%
Loading camera drivers from '/usr/l... |
/ 90.0%
Loading camera drivers from '/usr/l... |
- 95.0%

Waiting for 10 seconds for events from camera. Press Ctrl-C to abort.
UNKNOWN PTP Property 0000 changed
UNKNOWN PTP Property 0000 changed
UNKNOWN PTP Property 0000 changed
UNKNOWN PTP Property 0000 changed
UNKNOWN PTP Property 0000 changed
UNKNOWN PTP Property 0000 changed
Downloading... |- \ 2.1%
Downloading... |-- | 5.3%
Downloading... |--- / 7.4%
Downloading... |
- 10.5%
Downloading... |
\ 13.7%
Downloading... |
| 15.8%
Downloading... |
/ 18.9%
Downloading... |
- 21.1%
Downloading... |
\ 24.2%
Downloading... |
| 27.4%
Downloading... |
/ 29.5%
Downloading... |
- 32.6%
Downloading... |
\ 35.8%
Downloading... |
| 37.9%
Downloading... |
/ 41.1%
Downloading... |
- 43.2%
Downloading... |
\ 46.3%
Downloading... |
| 49.5%
Downloading... |
/ 51.6%
Downloading... |
- 54.7%
Downloading... |
\ 57.9%
Downloading... |
| 60.0%
Downloading... |
/ 63.2%
Downloading... |
- 65.3%
Downloading... |
\ 68.4%
Downloading... |
| 71.6%
Downloading... |
/ 73.7%
Downloading... |
- 76.8%
Downloading... |
\ 80.0%
Downloading... |
| 82.1%
Downloading... |
/ 85.3%
Downloading... |
- 87.4%
Downloading... |
\ 90.5%
Downloading... |
| 93.7%
Downloading... |
/ 95.8%
Downloading... |
| 98.9%
Downloading... |
| 100.0%

New file is in location /capt0000.jpg on the camera
Saving file as 28-Mar-2021 20.52.51 Focus -47.JPG
Deleting file /capt0000.jpg on the camera

Read More...