Welcome, Guest
Username: Password: Remember me
27 Feb 2017
INDI development team is happy to announce the release of INDI Library v1.4.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers. Several improvements and enhancements are included in this release including native support for Cygwin and MacOS platforms in addition to Linux, BSD, and Windows (Client only).
Read More...
  • Page:
  • 1

TOPIC: Building indi-gphoto on Pi3

Building indi-gphoto on Pi3 1 month 2 days ago #14708

  • AtM
  • AtM's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 2
So I found out that you can actually build the Indi server and drivers on the Pi3 itself, running Ubuntu. In fact this goes quite smoothly.

There is a dependency issue with the indi-gphoto 3rd prty driver I don't know how to solve:
pi@upper-pi:~/Projects/build/indi-gphoto$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi/3rdparty/indi-gphoto
-- Found CFITSIO: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found INDI: /usr/lib/arm-linux-gnueabihf/libindi.so
-- Could NOT find GPHOTO2 (missing:  GPHOTO2_LIBRARY GPHOTO2_INCLUDE_DIR)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GPHOTO2_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/pi/Projects/indi/3rdparty/indi-gphoto
   used as include directory in directory /home/pi/Projects/indi/3rdparty/indi-gphoto
   used as include directory in directory /home/pi/Projects/indi/3rdparty/indi-gphoto
   used as include directory in directory /home/pi/Projects/indi/3rdparty/indi-gphoto
   used as include directory in directory /home/pi/Projects/indi/3rdparty/indi-gphoto
   used as include directory in directory /home/pi/Projects/indi/3rdparty/indi-gphoto
   used as include directory in directory /home/pi/Projects/indi/3rdparty/indi-gphoto
GPHOTO2_LIBRARY (ADVANCED)
    linked by target "indi_gphoto_ccd" in directory /home/pi/Projects/indi/3rdparty/indi-gphoto
GPHOTO2_PORT_LIBRARY (ADVANCED)
    linked by target "indi_gphoto_ccd" in directory /home/pi/Projects/indi/3rdparty/indi-gphoto

-- Configuring incomplete, errors occurred!
See also "/home/pi/Projects/build/indi-gphoto/CMakeFiles/CMakeOutput.log".
See also "/home/pi/Projects/build/indi-gphoto/CMakeFiles/CMakeError.log".
The lib-gphoto2 is in /usr/share.
The directory /usr/include/gphoto2 is missing
The lib-gphoto2-port I cannot find

So my question is: how to resolve this?

Edit: Sorry for the bandwidth, a re-install helped here...
sudo apt-get install libgphoto2-dev

However
  • There is still an issue (Error starting exposure, then hangs) but at least the connection status remains green now...
  • No error output from the indi server, no message about starting an exposure either.
  • But, after disconnecting, stopping INDI, starting INDI the DSLR device is not seen. Apparently the drive process has become unresponsive, really similar to what it did with the installed one directly from the PPA.

Please Log in or Create an account to join the conversation.

Last Edit: by AtM.

Building indi-gphoto on Pi3 1 month 1 day ago #14729

Can you capture with gphoto2 command without errors?

Please Log in or Create an account to join the conversation.

Building indi-gphoto on Pi3 1 month 19 hours ago #14758

  • AtM
  • AtM's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 2
It seems so, but I cannot find the image:
pi@upper-pi:~$ gphoto2 --capture-image
New file is in location /capt0000.jpg on the camera
pi@upper-pi:~$ gphoto2 --list-files
There is no file in folder '/'.
There is no file in folder '/store_00020001'.
There is no file in folder '/store_00020001/DCIM'.
There are 31 files in folder '/store_00020001/DCIM/100CANON'.
#1     IMG_9969.JPG               rd  7847 KB image/jpeg
#2     IMG_9970.JPG               rd  7436 KB image/jpeg
...
There are 172 files in folder '/store_00020001/DCIM/101CANON'.
#32    IMG_0001.JPG               rd  3491 KB image/jpeg
#33    IMG_0002.JPG               rd  3570 KB image/jpeg
#34    IMG_0003.JPG               rd  3511 KB image/jpeg
...
#201   IMG_0170.JPG               rd  2938 KB image/jpeg
#202   IMG_0171.JPG               rd  2942 KB image/jpeg
#203   IMG_0172.JPG               rd  3056 KB image/jpeg
There is no file in folder '/store_00020001/MISC'.
The file ./capt_0000.jpg is nowhere, and the last image file with native camera filename is not the right one.

Please Log in or Create an account to join the conversation.

Last Edit: by AtM.

Building indi-gphoto on Pi3 2 weeks 5 days ago #14981

  • AtM
  • AtM's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 2
Picked this up again.
I try to capture with gtkam, a wrapper around gphoto2 and libgphoto2 etc. This works for anything other than BULB setting.
Does it sound as a familiar problem?

Please Log in or Create an account to join the conversation.

Building indi-gphoto on Pi3 2 weeks 5 days ago #14983

Did you use this?
gphoto2 --debug --debug-logfile=gphoto.txt  --capture-image-and-download 

If this doesn't work, attach the gphoto.txt log file it might have some clues.

Please Log in or Create an account to join the conversation.

Building indi-gphoto on Pi3 2 weeks 5 days ago #14988

  • AtM
  • AtM's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 2
it is a >3MB file, too much to attach I guess... otherwise:
pi@upper-pi:~$ gphoto2 --debug --debug-logfile=gphoto.txt  --capture-image-and-download

*** Error ***
Canon EOS Capture failed to release: Perhaps mirror up?
ERROR: Could not capture image.
ERROR: Could not capture.

OK, 3MB is OK after all:
Attachments:

Please Log in or Create an account to join the conversation.

Last Edit: by AtM.

Building indi-gphoto on Pi3 2 weeks 5 days ago #15002

Ok well this is out of my league. I suggest you open a thread at libphoto2 mailing list with your problem and your log file and see what they have to say. It's a GPhoto2 issue at the moment.

Please Log in or Create an account to join the conversation.

Building indi-gphoto on Pi3 2 weeks 4 days ago #15009

  • AtM
  • AtM's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 2
Hmm. I've been playing a bit more detailed with GPhoto2 and now it seems to work, at least with normal exposures and also bulb mode:
gphoto2 --set-config shutterspeed=bulb
gphoto2 --set-config bulb=1 --wait-event=3s --set-config bulb=0 --wait-event-and-download=2s 
However, when setting shutterspeed to bulb and capture with GTKam, it does not work. It seems that the bulb interface with GPhoto2 is a bit tricky?

KStars/Indiserver still don't work, the gphoto2 driver becomes unresponsive. When I kill the IndiServer process, all driver processes are killed as well, except for the gphoto2 one...

Edit: Looking into the code of gphoto_driver.cpp I see that it is supposed to run multiple threads in my case of a single DSLR and a single client there will be only one started. What is the use case for multiple threads?
The use of semaphores gives some possibility of process/thread lockup, but I expect it is in the communication with GPhoto2. Maybe someone who knows the code a bit better can help me pinpoint where it hangs?

Please Log in or Create an account to join the conversation.

Last Edit: by AtM.

Building indi-gphoto on Pi3 2 weeks 1 day ago #15034

  • AtM
  • AtM's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 2
I am back to experimentation. GPhoto driver only INDI server, connected to KStars/EKOS, full debugging on comes with the following when I attempt to capture:
2017-03-09T19:25:02: Driver indi_gphoto_ccd: read message GPhoto CCD   'Mirror lock feature is not yet implemented for this camera model.'
2017-03-09T19:25:02: Client 0: queuing <message device='GPhoto CCD' name=''>
2017-03-09T19:25:02: Driver indi_gphoto_ccd: read message GPhoto CCD   'Error starting exposure'
2017-03-09T19:25:02: Client 0: queuing <message device='GPhoto CCD' name=''>
2017-03-09T19:25:02: Client 0: sending msg copy 1 nq 2:
<message device="GPhoto CCD" timestamp="2017-03-09T19:25:02" message="Mirror lock feature is not yet implemented for this camera model."/>

2017-03-09T19:25:02: Driver indi_gphoto_ccd: read setNumberVector GPhoto CCD CCD_EXPOSURE Alert
 CCD_EXPOSURE_VALUE='0.10000000149011611938'
2017-03-09T19:25:02: Client 0: queuing <setNumberVector device='GPhoto CCD' name='CCD_EXPOSURE'>
2017-03-09T19:25:02: Client 0: sending msg copy 1 nq 2:
<message device="GPhoto CCD" timestamp="2017-03-09T19:25:02" message="Error starting exposure"/>

2017-03-09T19:25:02: Client 0: sending msg copy 1 nq 1:
<setNumberVector device="GPhoto CCD" name="CCD_EXPOSURE" state="Alert" timeout="60" timestamp="2017-03-09T19:25:02">
    <oneNumber name="CCD_EXPOSURE_VALUE">
0.10000000149011611938
    </oneNumber>
</setNumberVector>

2017-03-09T19:25:02: Client 0: read newNumberVector GPhoto CCD CCD_EXPOSURE
 CCD_EXPOSURE_VALUE='0.1'
2017-03-09T19:25:02: Driver indi_gphoto_ccd: queuing responsible for <newNumberVector device='GPhoto CCD' name='CCD_EXPOSURE'>
2017-03-09T19:25:02: Driver indi_gphoto_ccd: sending msg copy 1 nq 1:
<newNumberVector device="GPhoto CCD" name="CCD_EXPOSURE">
    <oneNumber name="CCD_EXPOSURE_VALUE">
0.1
    </oneNumber>
</newNumberVector>
After which all hangs.
I thought that mirror lock was supported for Canon 450D? How do I switch this off?

Edit: Sigh, apparently not... Setting Mirror lock parameter to 0 seconds seems to make it work.

Please Log in or Create an account to join the conversation.

Last Edit: by AtM.
  • Page:
  • 1
Time to create page: 0.306 seconds

Login

3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!

Gallery

Replica

Why INDI

Replica