×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

INDI LibCamera Driver

  • Posts: 106
  • Thank you received: 33

Replied by Simon on topic INDI LibCamera Driver

Great Python app for testing capabilities of your camera using Libcamera:
github.com/raspberrypi/picamera2/blob/main/apps/app_full.py
1 year 2 months ago #89580

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

  • Posts: 106
  • Thank you received: 33

Replied by Simon on topic INDI LibCamera Driver

@Anjo, how your line for libcamera version looks like when you start EKOS?
Mine is:
2023-01-16T14:12:39: Driver indi_libcamera_ccd: [0:16:03.207523515] [3440]  INFO Camera camera_manager.cpp:299 libcamera v0.0.1
GitHub version of libcamera is v0.0.3, mine is still v0.0.1. How do I switch to newer?
Last edit: 1 year 2 months ago by Simon.
1 year 2 months ago #89680

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

I have this one currently as I was testing out the waveshare 16MP cam:

2023-01-16T16:46:29: Driver indi_libcamera_ccd: [94:02:55.876760888] [23473] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3897-c3c878a9

I did a sudo rpi-update and it stayed on this version.
1 year 2 months ago #89683

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

  • Posts: 106
  • Thank you received: 33

Replied by Simon on topic INDI LibCamera Driver

After updating to latest INDI 2.0.0 and KStars 3.6.3 and Stellarmate 1.7.5.

I get this after starting EKOS from KStars:
[2023-02-04T21:48:11.322 CET DEBG ][           org.kde.kstars.indi] - Starting INDI Driver "indi_libcamera_ccd"
[2023-02-04T21:48:11.387 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: startup: /usr/bin/indiserver -v -p 7624 -m 1024 -r 0 -f /tmp/indififoc938e0fd"
[2023-02-04T21:48:11.387 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: listening to port 7624 on fd 5"
[2023-02-04T21:48:11.387 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Local server: listening on local domain at: @/tmp/indiserver"
[2023-02-04T21:48:11.388 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: FIFO: start indi_simulator_telescope -n \"Telescope Simulator\""
[2023-02-04T21:48:11.389 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: With name: Telescope Simulator"
[2023-02-04T21:48:11.390 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: FIFO: Starting driver indi_simulator_telescope"
[2023-02-04T21:48:11.393 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_simulator_telescope: pid=1722 rfd=9 wfd=9 efd=10"
[2023-02-04T21:48:11.395 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_simulator_telescope: HaAxis: TrackRate 1, trackingRateDegSec 15.041067 arcsec"
[2023-02-04T21:48:11.395 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_simulator_telescope: snooping on GPS Simulator.GEOGRAPHIC_COORD"
[2023-02-04T21:48:11.396 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_simulator_telescope: snooping on GPS Simulator.TIME_UTC"
[2023-02-04T21:48:11.398 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_simulator_telescope: snooping on Dome Simulator.DOME_PARK"
[2023-02-04T21:48:11.399 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_simulator_telescope: snooping on Dome Simulator.DOME_SHUTTER"
[2023-02-04T21:48:11.400 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: FIFO: start indi_libcamera_ccd -n \"LibCamera\""
[2023-02-04T21:48:11.402 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: With name: LibCamera"
[2023-02-04T21:48:11.402 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: FIFO: Starting driver indi_libcamera_ccd"
[2023-02-04T21:48:11.403 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_libcamera_ccd: pid=1723 rfd=11 wfd=11 efd=12"
[b][2023-02-04T21:48:11.403 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_libcamera_ccd: indi_libcamera_ccd: error while loading shared libraries: libindidriver.so.1: cannot open shared object file: No such file or directory"
[/b][2023-02-04T21:48:11.403 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_libcamera_ccd: stderr EOF"
[2023-02-04T21:48:11.403 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_libcamera_ccd: read: Connection reset by peer"
[2023-02-04T21:48:11.403 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2023-02-04T20:48:11: Driver indi_libcamera_ccd: Terminated after #0 restarts."
[2023-02-04T21:48:11.404 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2023-02-04T21:48:11.405 CET CRIT ][           org.kde.kstars.indi] - INDI driver  "indi_libcamera_ccd"  crashed!
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
 
uname -a
Linux stellarmate 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux
 
apt list --installed | grep libcamera
 
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
 
indi-libcamera/unknown,now 1.0-stable~202211300958 arm64 [installed]
libcamera-apps/unknown,now 1.0-stable~202211161401 arm64 [installed]
libcamera-tools/unknown,now 1.0-stable~202211161314 arm64 [installed]
libcamera0/unknown,now 1.0-stable~202211161314 arm64 [installed,automatic]
python3-libcamera/unknown,now 1.0-stable~202211161314 arm64 [installed,automatic]
1 year 1 month ago #90211

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

Replied by Jasem Mutlaq on topic INDI LibCamera Driver

Thank you for the report, I'll check it later tonight.
1 year 1 month ago #90226

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

  • Posts: 123
  • Thank you received: 13

Replied by Outta on topic INDI LibCamera Driver

I finally dared to install everything on StellarMate that has been sitting poor and alone on sd card for ages :D

So I first wanted to try Rpi Camera legacy, and that does not work, indi says no stack found despite turning legacy stack on in raspi-config.

Next was to build libcamera, that failed first due to
"Could NOT find Boost"
So I additionally ran:
sudo apt install build-essential libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev

@Jasem you might want to update root 3rd party readme too add boost.
Next error was Could not find DRM_LIBRARY using following names:drm

working on that now

OK I just commented that out, does not seem to create issues.
I got FITs record issues, i just checkedout previous commit and
Now I got this
/home/stellarmate/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:206:37: error: \u2018INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]\u2019 is protected within this context
206 | bool raw = IUFindOnSwitchIndex(&CaptureFormatSP) == CAPTURE_DNG;
There are more errors but all related to PropertyBasic
Remember I am working on a clean, freshly updated StellarMate, with build guide from github.
Last edit: 1 year 1 month ago by Outta.
1 year 1 month ago #90389

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

  • Posts: 7
  • Thank you received: 1

Replied by Tino on topic INDI LibCamera Driver

Hello,

is there any news yet?
The driver hasn't worked for me yet.
1 year 1 month ago #90597

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

  • Posts: 27
  • Thank you received: 4
I can't speak about the C driver. But my Python driver ( github.com/scriptorron/indi_pylibcamera ) is running on 2 of my telescopes. On both telescopes I use a Raspberry Pi Zero with HQ cameraas main camera for long exposures. Both telescopes also have a 2nd Raspberry Pi with guiding cameras (V1 camera on one telescope and HQ camera on the second). I tested both setups successfully with KStars/EKOS (including field solver) and PHD2 running on a Linux laptop.

From time to time the cameras got stuck. Reason was insufficient power supply of the Raspberry Pi (USB cables have too much resistance!). I fixed that with a 5V voltage regulator directly at the Raspberry Pi.
1 year 1 month ago #90599

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

  • Posts: 106
  • Thank you received: 33

Replied by Simon on topic INDI LibCamera Driver

Ronald, your achievement with indi libcamera driver is really amazing. Can you share with us setup you are using it on?
1 year 1 month ago #90601

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

  • Posts: 123
  • Thank you received: 13

Replied by Outta on topic INDI LibCamera Driver

I am unable to run jour driver, it is mentioning something about stack :( do I need to add dtoverlay to. boot/config?
1 year 1 month ago #90604

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

  • Posts: 27
  • Thank you received: 4
I will make a Wiki on GitHub with more details about my setup and detailed installation instructions. When I am ready I will post the link in this forum.

@Outta: I did not need to enable something camera related in boot/config. But I am using Raspberry Pi OS Bullseye 32bit in the latest version. Stellarmate had an too old libcamera version last December.
1 year 1 month ago #90612

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

Replied by Jasem Mutlaq on topic INDI LibCamera Driver

libcamera nd libcamera-apps are both built from Git on StellarMate, so it's literally bleeding-edge. I tried today to get back into the driver, but still getting crashes. I think libcamera-apps should probably be updated to make it more friendly to 3rd party driver development so we don't have to create our own libcamera manager which appears to be causing an issue.
1 year 1 month ago #90613

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

Time to create page: 0.914 seconds