SOLVED IMX462M pixelformat on RPi5
-
@veye_xumm
Hi, thank you for update.
I'm stuck with compiling libcamera now, with same error as here : https://github.com/raspberrypi/libcamera/issues/151Did not find solution yet, probably need play with source code, will let you know if any updates.
-
@alex_ai
You can use the latest libpisp and try again. -
@veye_xumm
Hi, it helped but I had to use 1.0.6 tag of libpisp, with the latest version I had compile errors.
Now for command : rpicam-hello -v
I have this error:
I used set media script before:
Maybe forgot something else.
-
@alex_ai ./media_setting_rpi5**.sh is not necessary.
-
@veye_xumm
Hi, I noticed that version of libcamera different on my screenshot (it 0.2.0 but I installed 0.3.0)
I uninstalled rpicam-apps and rebuild it from source code again and it uses my version of libcamera now.
if execute rpicam-still -v I have next error:
In commit I see added json file only to vc4 folder (for RPi4) , can we add it to pisp folder (for RPi5) it should have name : "mvcam_mono.json"? it has different format and can't use same file from vc4.Also I managed start video by this command:
rpicam-still --tuning-file /source/libcamera/src/ipa/rpi/pisp/data/uncalibrated.json -t 0
and it works!
But better run it without additional parameters
Thank you. -
@veye_xumm
One more question, I see now all parameters like gain and exposure managed by libcamera software according to json file, Can we use internal camera ISP for it as before? -
@alex_ai
Since our camera supports many models of sensor, we are not using libcamera's built-in isp functionality at this time. The RAW-MIPI-IMX462M camera, therefore, can only be used in manual exposure mode. -
@veye_xumm
Thanks, it means only manual gain/exposure mode.I have one more question but it is a little bit out of topic.
Yesterday I tried to take pictures of the night sky to compare with 462 color sensor, even with high gain value stars are not bright as for the same parameters on 462 color (but mono should be more sensitive) . It looks like there is no switching between LCG and HCG modes or I need to tune some other parameters.
Can you advise what could be tuned for this case? -
@veye_xumm
With metime and mgain parameters I increased sensitive, but it more noisy than color sensor with ISP, anyway issue with pixel format fixed for me, thank you. -
@veye_xumm
By the way, I see that I can read registers of camera by snsreg command but can't find how to write.
Is it possible set register 0x3009 value to 0x11 to enable HCG mode? -
@alex_ai
Sorry, the ability to write directly to the sensor registers is not provided at this time to prevent confusion over the control of the sensor.
I will provide a version of the upgrade package to you as soon as possible. -
@alex_ai
Sorry for not following up with you on this in a timely manner. Please download an upgrade package with hcg mode support from the link below.
https://www.mediafire.com/file/313db29c5mb4260/RAW-MIPI-IMX462M_C1.06_20240806_upgrade_hcg_tmp.bin/file -
@veye_xumm
Hi, thank you for firmware update.
Just to double check, is HCG mode always turn on now?Also for register 0x3009 I got value 0xffff instead ox11 but seems like HCG enabled anyway.
I need wait for clear sky to test and provide feedback
PS:
After upgrade at the end it writes: "Failed to write register" message but upgrade done , can I just ignore it?
-
@alex_ai
After the upgrade, re-power up the Raspberry Pi.
The actual version number corresponding to this upgrade package is 1.09, please confirm this. -
@veye_xumm
Yes, version is 1.09 after upgrade
-
@alex_ai said in IMX462M pixelformat on RPi5:
I need wait for clear sky to test and provide feedback
Finally tested, for gain value 20 it is looks pretty same with color sensor with ISP, but background no so black as for color sensor.
For me this issue resolved, attached examples to compare (10 seconds stacks)IMX462 mono
IMX462 color with ISP