Closed gordon-freimann closed 1 year ago
@gordon-freimann can you give some information about your system? Please run these comands in your terminal:
cat /etc/os-release
uname -a
Quick google search on your error (ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi').
You can try to change dtoverlay setting as suggested here: https://forum.arducam.com/t/libcamera-error-with-pivariety-camera-imx462/2077
Or you can try to install ArduCam driver for your camera as sugested here: https://forums.raspberrypi.com/viewtopic.php?t=317401
Or you can contact ArduCam directly on their forum: https://www.arducam.com/forum/
@scriptorron is the author of indi_pylibcamera driver, maybe he can provide further help.
@gordon-freimann Maybe this can help too: https://levelup.gitconnected.com/arducam-hawk-eye-64mp-camera-module-for-the-raspberry-pi-4f451b95ed11
@sajmons Many thanks for helping out.
@gordon-freimann sajmons is on the right track: the libcamera version you have does not fully support your camera. At least it does not find a configuration file 'arducam-pivariety.json' that holds information about your camera. Therefore libcamera does not provide information about UnitCellSize and it allows one raw mode only (in your MyCam.txt there is no entry for UnitCellSize in "Camera properties" and the list "Raw sensor modes" has only one entry for 1920x1080 pixel 10bit). The missing UnitCellSize was the reason for the KeyError in the indi_pylibcamera.
Likely most of the information libcamera knows about your camera are fallback-defaults and do not use all features of your camera. For instance the data sheet states that your camera also provides 12bit data. I highly recommend to fix the libcamera issue first. If that is not possible I can add a parameter in the configuration file which allows you to force a UnitCellSize. But that will still not allow you to use other raw modes or 12bit/pixel.
Thanks for trying to help. I will check the hints you gave tomorrow and post about the results.
@sajmons Here is the system information you asked me to provide:
david@astro:~ $ 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/"
david@astro:~ $ uname -a
Linux astro 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux
To get to the point where I stand as described in the first post. I followed the instructions of the arducam team. I downloaded their Install scripts, installed them and changed the dtoverlay in the boot.cfg. Since I'm in a Kernel Version 5.15.84 I did not install the drivers.
I will try to Install the IPA patch as a next step. But right now I just downloaded it and don't know how to procede. There are no installation instructions provided together with the patch.
@scriptorron You wrote that libcamera would not fully support my camera. But the point ist that I can actually take pictures with it. So now I'm asking myself why doesn't it work with indi or your driver respectivly.
I tried the following to get rid of the errors:
2023-03-27T19:49:57: startup: indiserver -v ./indi_pylibcamera.py
2023-03-27T19:49:57: Driver ./indi_pylibcamera.py: pid=7636 rfd=3 wfd=6 efd=7
2023-03-27T19:49:57: listening to port 7624 on fd 4
2023-03-27T19:49:58: Driver ./indi_pylibcamera.py: [1:19:19.502820775] [7636] INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4225-74d023d8
2023-03-27T19:49:58: Driver ./indi_pylibcamera.py: [1:19:19.537608515] [7637] WARN CameraSensorProperties camera_sensor_properties.cpp:243 No static properties available for 'arducam-pivariety'
2023-03-27T19:49:58: Driver ./indi_pylibcamera.py: [1:19:19.537685570] [7637] WARN CameraSensorProperties camera_sensor_properties.cpp:245 Please consider updating the camera sensor properties database
2023-03-27T19:49:58: Driver ./indi_pylibcamera.py: [1:19:19.634081216] [7637] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636449412] [7637] ERROR IPCPipe ipc_pipe_unixsocket.cpp:134 Call timeout!
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636526596] [7637] ERROR IPCPipe ipc_pipe_unixsocket.cpp:66 Failed to call sync
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636549633] [7637] ERROR IPAProxy raspberrypi_ipa_proxy.cpp:190 Failed to call init
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636574781] [7637] ERROR RPI raspberrypi.cpp:1352 Failed to load a suitable IPA library
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636640613] [7637] ERROR IPCUnixSocket ipc_unixsocket.cpp:191 Failed to send: Connection refused
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636672372] [7637] ERROR IPCPipe ipc_pipe_unixsocket.cpp:66 Failed to call sync
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636691761] [7637] ERROR IPAProxy raspberrypi_ipa_proxy.cpp:476 Failed to call unmapBuffers
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636824407] [7637] ERROR IPCUnixSocket ipc_unixsocket.cpp:191 Failed to send: Transport endpoint is not connected
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636853592] [7637] ERROR IPCPipe ipc_pipe_unixsocket.cpp:80 Failed to call async
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: [1:19:21.636932183] [7637] ERROR RPI raspberrypi.cpp:1277 Failed to register camera arducam-pivariety 10-000c: -22
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: root-INFO- found cameras: []
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: root-INFO- Parsed data from client:
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: <getProperties version="1.7"/>
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py:
2023-03-27T19:50:00: Driver ./indi_pylibcamera.py: root-INFO- End client data
but anyhow as an arducam support team member states here:
https://forum.arducam.com/t/libcamera-produces-illegal-instruction-error/1584/7
the error: ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
would make libcamera read the camera properties from the device itself.
I extensively read the arducam forums and it seems that the warnings and errors shown here:
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: [0:56:36.464540307] [7220] INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4225-74d023d8
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: [0:56:36.499794840] [7222] WARN CameraSensorProperties camera_sensor_properties.cpp:243 No static properties available for 'arducam-pivariety'
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: [0:56:36.499856691] [7222] WARN CameraSensorProperties camera_sensor_properties.cpp:245 Please consider updating the camera sensor properties database
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: [0:56:36.509399533] [7222] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: [0:56:36.813717850] [7222] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/arducam_pivariety@c to Unicam device /dev/media1 and ISP device /dev/media3
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: root-INFO- found cameras: [{'Model': 'arducam-pivariety', 'Location': 2, 'Rotation': 0, 'Id': '/base/soc/i2c0mux/i2c@1/arducam_pivariety@c'}]
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: root-INFO- Parsed data from client:
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: <getProperties version="1.7"/>
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py:
2023-03-27T19:27:15: Driver ./indi_pylibcamera.py: root-INFO- End client data
are reported from many other users. The arducam-team also encourages the users to ignore them. And telling that those errors and warnings might be fixed in the future.
@scriptorron could you maybe add the line u suggested in the config file? Maybe I can then use the camera with indi and kstars at all....
I will implement settings in the config file to force a pixel size.
It seems the arducam-team takes the easy way. A normal user does not care about pixel size. So what they did is good for most of the users. But for astrophotography you need to know the pixel size and the lens focal length to calculate the viewing angle for each pixel (or the whole image). That's needed for field solver (needs to know how large the section of the sky on your image is) and auto-guider (needs to know how much the telescope position needs to be corrected to compensate the displacement of the guiding star in your image). Anyway, I will make a workaround. Please give me some days. It is not a big task but I am busy this week with other things. I will come back to you when it is finished.
closed issue by accident
@gordon-freimann The main branch allows now to set pixel size in the INI file. Please:
force_UnitCellSize_X=2900
force_UnitCellSize_Y=2900
I hope that will allow you to make pictures. If a new error comes up please tell me here.
@scriptorron Thank you very much! I will try it out on sunday evening. Unfortunately I'm away from the setup for the next 2 days.
@scriptorron It did work. Thank you!
Hello there,
thanks for your great work on this driver! You are probably my last hope to get this IMX462 camera module from arducam working with indi. Link to Camera module: (https://www.arducam.com/product/arducam-for-raspberry-pi-ultra-low-light-camera-1080p-hd-wide-angle-pivariety-camera-module-based-on-1-2-7inch-2mp-starvis-sensor-imx462-compatible-with-raspberry-pi-isp-and-gstreamer-plugin/)
I managed to make the cam work. Libcamera-hello shows me a preview.
Starting an indiserver via "indiserver -v /home/david/pylibcamera/indi_pylibcamera-main/indi_pylibcamera.py" shows the following:
Looks fine for me. Then I try to connect to the indi server via kstars/ekos. The console shows me the following error:
Can you explain to me what this error means and how I can fix it? I attached the MyCam.txt file your script creates. Maybe it can help.
Kind Regards, David
MyCam.txt