INDI LibCamera Driver

I started work in INDI LibCamera driver. This is meant to run on Raspberry PI using Debian 11 (Bullseye).

As of 2022.08.21, the driver is just a skeleton and cannot be used for anything. Once capture works, we'll ask for feedback in this thread.
2 years 1 month ago #85528

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

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

Thanks a lot! It's just what I needed. I had to install a few libs:

<code>sudo apt-get install libindi-dev libcamera-dev libcamera-apps libboost-program-options-dev</code>

Unfortunately, I get build errors complaining about "addFitsKeyWords" being unknown and I had to copy the /usr/include/libcamera/libcamera/* files to the parent dir and I actually had to compile indi from source and install to get the indilib includes correct. Otherwise it would complain about /usr/include/libindi/indipropertyswitch.h missing.

Fixing those and starting the driver works, but I can't see images and the size is 0,0, likewise the pixel size.

Any help here would be appreciated!
2 years 1 month ago #85530

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

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

Hm. Reading the source of indi-libcamera doesn't show anything except a bit of options parsing? It doesn't seem to do anything?
2 years 1 month ago #85531

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

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

And... actually reading the top post gives a clue that it doesn't do anything... OK, I was mislead by the post from Aaron and thought he talked about the driver, while he probably meant the all-sky thing. So never mind.
2 years 1 month ago #85532

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

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

Do you have an ETA for the driver? I can see the skeleton seems to be working, so "only" hooking up the actual capture seems to be missing? Anything one can help with?
Last edit: 2 years 1 week ago by Anjo.
2 years 1 week ago #86254

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

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

Could you mark the missing parts with a some // TODO annotations and/or maybe a high-level TODO.txt which just outlines on what's missing and how to progess?

Something like:

- add capturing in x.cpp
- add skeleton xml for options
...
Last edit: 2 years 1 week ago by Anjo. Reason: typos
2 years 1 week ago #86255

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


×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

  • Posts: 124
  • Thank you received: 13

Replied by Outta on topic INDI LibCamera Driver


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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

Replied by Jasem Mutlaq on topic INDI LibCamera Driver

Try to run this is a debugger. This is still in very early stages. See where it crashes exactly. I found libcamera to be unreliable now :(
1 year 10 months ago #87851

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

  • Posts: 124
  • Thank you received: 13

Replied by Outta on topic INDI LibCamera Driver

I think I set something up incorrectly, see this

<code>astroberry@raspberrypi:~/Projects/build/ekosdebugger $ which indi_libcamera_ccd
/usr/bin/indi_libcamera_ccd
astroberry@raspberrypi:~/Projects/build/ekosdebugger $ which indiserver /usr/bin/indiserver
astroberry@raspberrypi:~/Projects/build/ekosdebugger $

When I use EKOSDEBUGGER
<code>2022-11-06T08:05:54: startup: /usr/bin/indiserver -r 0 -v indi_libcamera_ccd indi_simulator_ccd indi_simulator_focus indi_simulator_telescope
[Attaching after Thread 0xb6ff7540 (LWP 31394) fork to child process 31400]
[Detaching after fork from parent process 31394]
2022-11-06T08:05:54: Driver indi_libcamera_ccd: pid=31400 rfd=6 wfd=6 efd=7
2022-11-06T08:05:54: Driver indi_simulator_ccd: pid=31401 rfd=8 wfd=8 efd=9
2022-11-06T08:05:54: Driver indi_simulator_focus: pid=31402 rfd=10 wfd=10 efd=11
2022-11-06T08:05:54: Driver indi_simulator_telescope: pid=31403 rfd=12 wfd=12 efd=13
2022-11-06T08:05:54: listening to port 7624 on fd 5
2022-11-06T08:05:54: Local server: listening on local domain at: @/tmp/indiserver
2022-11-06T08:05:54: Driver indi_libcamera_ccd: 2022-11-06T08:05:54: Driver indi_libcamera_ccd: execlp : No such file or directory
2022-11-06T08:05:54: Driver indi_libcamera_ccd: stderr EOF
2022-11-06T08:05:54: Driver indi_libcamera_ccd: read: Connection reset by peer
2022-11-06T08:05:54: Driver indi_libcamera_ccd: Terminated after #0 restarts.
No stack.</code>

and when i run indiserver indi_libcamera_ccd from terminal I get error from post above


In my Kstars there is no Libcamera so I added it manually to code as I cannot add it to profile... any ideas?

Also can you share your
libcamera-hello --version
To eliminate discrepancy there
Last edit: 1 year 10 months ago by Outta.
1 year 10 months ago #87860

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

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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

Replied by Jasem Mutlaq on topic INDI LibCamera Driver

Thanks for the heads up, I fixed the XML file.
1 year 10 months ago #87864

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

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

It's also in a few other places, dunno how relevant the .spec is:

pi@astrocam:~/astro/indi-3rdparty/indi-libcamera $ rg asi |grep indi
README.md:Go to the directory where you unpacked indi_asi sources and do:
indi-libcamera.spec:Name: indi-asi
indi-libcamera.spec:BuildRequires: libasi
indi-libcamera.spec:Requires: libasi
indi-libcamera.spec:cd indi-asi
indi-libcamera.spec:cd indi-asi
indi_libcamera.xml.cmake: <driver name="ZWO CCD">indi_asi_ccd</driver>
indi_libcamera.xml.cmake: <driver name="ZWO Camera">indi_asi_single_ccd</driver>
indi_libcamera.xml.cmake: <driver name="ZWO Camera">indi_asi_single_ccd</driver>
indi_libcamera.xml.cmake: <driver name="ZWO Camera">indi_asi_single_ccd</driver>
indi_libcamera.xml.cmake: <driver name="ASI EFW">indi_asi_wheel</driver>
indi_libcamera.xml.cmake: <driver name="ASI EAF">indi_asi_focuser</driver>
indi_libcamera.xml.cmake: <driver name="ASI ST4">indi_asi_st4</driver>
1 year 10 months ago #87865

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

Time to create page: 3.327 seconds