Camarray Hat B0397

Hello, i have B037, i am using it with RPi4 on Bullseye (Latest).

i followed this procedure - Quick start - Arducam Wiki

In general, it is working, but i am getting lots of same error as output, and it is taking long time to get a picture, more errors in output, more time to wait! as you will see in log it may take seconds to get picture.

here is example:

[email protected]:~ $ libcamera-jpeg -o test.jpg
Preview window unavailable
[0:01:40.299779358] [1916]  INFO Camera camera_manager.cpp:299 libcamera v0.0.2+55-5df5b72c
[0:01:40.329184409] [1917]  INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media1 and ISP device /dev/media0
[0:01:40.329947157] [1916]  INFO Camera camera.cpp:1026 configuring streams: (0) 2028x1520-YUV420
[0:01:40.330236614] [1917]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
[0:01:41.110653742] [1917]  INFO V4L2 v4l2_videodevice.cpp:1820 /dev/video0[12:cap]: Zero sequence expected for first frame (got 2)
[0:01:41.110759771] [1917]  INFO V4L2 v4l2_videodevice.cpp:1820 /dev/video1[13:cap]: Zero sequence expected for first frame (got 2)
[0:01:41.111299250] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.177803433] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.244464243] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.311096124] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.377747730] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.444416607] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.511050962] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.577744341] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.644364009] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.710995864] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.777643461] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.844328025] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.910935562] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:41.977593364] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.044255018] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.110935840] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.177557101] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.244202124] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.310836257] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.377488105] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.444163871] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.510785206] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.577438303] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.644108198] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.710736571] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.777389594] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.844051266] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.910685121] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:42.977379148] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.043984908] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.110631801] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.177278897] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.243929383] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.310579906] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.377258266] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.443874976] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.510575583] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.577174144] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.643822487] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.710477813] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.777121600] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.843768332] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.910415063] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:43.977067203] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.043713194] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.110365871] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.177020678] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.243660390] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.310311511] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.377007827] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.443605046] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.510257714] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.576910642] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.643555772] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.710202921] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.776851015] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.843497479] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.910202336] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:44.976799852] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.043473688] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.110100224] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.176746540] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.243389763] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.310530987] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.377183350] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.443767026] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.510472303] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.577123521] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.643676676] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.710353525] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.777111214] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.843726373] [1921] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
[0:01:45.885243962] [1916]  INFO Camera camera.cpp:1026 configuring streams: (0) 4056x3040-YUV420 (1) 4056x3040-SBGGR12_CSI2P
[0:01:45.887723067] [1917]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
[0:01:47.401634592] [1917]  INFO V4L2 v4l2_videodevice.cpp:1820 /dev/video0[12:cap]: Zero sequence expected for first frame (got 2)
[0:01:47.401738950] [1917]  INFO V4L2 v4l2_videodevice.cpp:1820 /dev/video1[13:cap]: Zero sequence expected for first frame (got 2)
[0:01:47.402350748] [1924] ERROR IPARPI cam_helper.cpp:217 Embedded data buffer parsing failed
Still capture image received

config.txt:

...
dtoverlay=vc4-fkms-v3d
dtoverlay=vc4-kms-v3d,cma-512
camera_auto_detect=0
dtoverlay=imx477
gpu_mem=128

In case of moving to single camera mode, this error disappear, so problem exist only with merging frames from camera.

The main concern is low framerate, i am not sure if this is an issue of that error, but this error defitatly effect it. I also want to know what is possible framerate with it on 2028x1520.

In addition, did somebody tried B0397 on RPi4 with Ubuntu?

Thank you!

Hi,
About Embedded data buffer error, you need to install the libcamera from Arducam website:
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Libcamera-User-Guide/

We do not support this [email protected]*1520.

May the link below will help you.
https://docs.arducam.com/Raspberry-Pi-Camera/Pan-Tilt-Zoom-Camera/quick-start/#run-ptz-cameras-in-ubuntu

Thank you @Dion so much!

With right versions this error disappeared, but the framerate is still small, now it is around 3.3hz (through PiCamera2).

Regarding the resolution:

$ libcamera-jpeg --list-cameras
Available cameras
-----------------
0 : imx477 [4056x3040] (/base/soc/i2c0mux/[email protected]/[email protected])
    Modes: 'SRGGB10_CSI2P' : 1332x990 [120.05 fps - (696, 528)/2664x1980 crop]
           'SRGGB12_CSI2P' : 2028x1080 [50.03 fps - (0, 440)/4056x2160 crop]
                             2028x1520 [40.01 fps - (0, 0)/4056x3040 crop]
                             4056x3040 [10.00 fps - (0, 0)/4056x3040 crop]

do you know if it is possible to increase the framerate?

Hi,
You need to decrease the exposure time to increase the framerate.