I am currently in a project of uniting PiFinder (pifinder.io) and Stellarmate. This is not possible at the moment because I wait for the PiFinder to be elevated to Bookworm. I'll report on succeed (you can follow on PiFinders Discord channel, if interested:
"PiFinder in Stellarmate" on Discord
. My discord name there is HeyApos . But that's another story.
Back to topic:
That's why I currently dual boot Stellarmate and the PiFinder on the same hardware and a Raspberry Pi HD cam is attached (datasheets.raspberrypi.com/hq-camera/hq-...ra-product-brief.pdf) It works fine with the Pifinder (which uses a pyhthon library and another OS version). So the camera itself and hardware is OK.
The new Stellarmate 1.8.1. claims to support the (official) Raspberry Pi cameras with Libcamera. I know there had been a lot of work by Jasem and others to get this work Thanks for that. I tried to carefully read here and understand how to debug this.
Problem:
When I select the LibCamera driver in a new SM profile, the profile does not start at all.
- Stellarmate App v2.6.80 (Android) - also tried with iPad
- Stellarmate OS 64bit 1.8.1.
- Drivers: Telescope Simulator and Raspberry Pi Cam HD (LibCamera)
Any Idea, what I am doing wrong?
Logging:
Dmesg gives me nothing. And the indi log dir is empty. the other log files I attached.
Opening camera 0: {'Model': 'imx477', 'Location': 2, 'Rotation': 180, 'Id': '/base/soc/i2c0mux/i2c@1/imx477@1a', 'Num': 0}
[1:20:28.197096230] [11781] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+118-563cd78e
[1:20:28.229802128] [11791] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[1:20:28.232379551] [11791] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media1 and ISP device /dev/media2
[1:20:28.232457346] [11791] INFO RPI pipeline_base.cpp:1142 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[1:20:28.235057231] [11781] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+118-563cd78e
[1:20:28.267695056] [11794] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[1:20:28.270162722] [11794] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media1 and ISP device /dev/media2
[1:20:28.270281868] [11794] INFO RPI pipeline_base.cpp:1142 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Success.
>>> print('Finished.')
Finished.
When I turn on logging in EKOS (VNC) in "verbose" mode and "file" the error is:
[2024-02-04T21:09:03.079 CET WARN ][ org.kde.kstars.indi] - Driver "LibCamera" failed to start. Retrying in 5 seconds...
[2024-02-04T21:09:08.079 CET WARN ][ org.kde.kstars.indi] - Driver "LibCamera" failed to start. Retrying in 5 seconds...
[2024-02-04T21:09:13.087 CET WARN ][ org.kde.kstars.indi] - Driver "LibCamera" failed to start. Retrying in 5 seconds...
[...]
libcamera-still -r -o test.jpg WORKS (temporarily shut down EKOS / Indi-Webmanager)
libcamera-still -r -o test.jpg
[0:01:23.547791788] [1796] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+118-563cd78e
[0:01:23.604749367] [1820] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:01:23.607778920] [1820] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:01:23.607872746] [1820] INFO RPI pipeline_base.cpp:1142 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Preview window unavailable
Mode selection for 2028:1520:12:P
SRGGB10_CSI2P,1332x990/0 - Score: 3456.22
SRGGB12_CSI2P,2028x1080/0 - Score: 1083.84
SRGGB12_CSI2P,2028x1520/0 - Score: 0
SRGGB12_CSI2P,4056x3040/0 - Score: 887
Stream configuration adjusted
[0:01:23.610184360] [1796] INFO Camera camera.cpp:1183 configuring streams: (0) 2028x1520-YUV420 (1) 2028x1520-SBGGR12_CSI2P
[0:01:23.610655825] [1820] INFO RPI vc4.cpp:608 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
#0 (0.00 fps) exp 29999.00 ag 2.52 dg 1.63
#1 (30.00 fps) exp 29999.00 ag 2.52 dg 1.63
#2 (30.01 fps) exp 29999.00 ag 2.52 dg 1.63
[...]
Mode selection for 4056:3040:12:P
SRGGB10_CSI2P,1332x990/0 - Score: 10552.2
SRGGB12_CSI2P,2028x1080/0 - Score: 8179.84
SRGGB12_CSI2P,2028x1520/0 - Score: 7096
SRGGB12_CSI2P,4056x3040/0 - Score: 0
[0:01:29.203971624] [1796] INFO Camera camera.cpp:1183 configuring streams: (0) 4056x3040-YUV420 (1) 4056x3040-SBGGR12_CSI2P
[0:01:29.211876560] [1820] INFO RPI vc4.cpp:608 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
Still capture image received
Bayer format is BGGR-12