Trying to implement autofocus with our own lens using RK_AIQ ISP.
We are trying to implement autofocus with our own lens using RK_AIQ ISP “rkaiq_3A_server”. But we can’t get statistics from the ISP based on which we want to move our focus lens.
Used board: RADXA-CM5, Model RM120-D8E64R26.
Used OS build: “radxa-cm5-io_bookworm_kde_b3.output.img” taken from “https://docs.radxa.com/en/compute-module/cm5/getting-started/download”
Used camera: IMX415 on MIPI CSI1 4K (image is working, good quality).
Problem: when connecting to “rkaiq_3A.service” via “tmp/UNIX.domain0” and trying to get a 3A_stat frame, the “rk_aiq_uapi2_sysctl_get3AStatsBlk()” function is blocked indefinitely.
Code example:
DomainTCPClient g_tcpClient;
string g_linuxSocketDomainPath = “/tmp/UNIX.domain0”;
int main(int argc, char *argv[])
{
g_tcpClient.Setup(g_linuxSocketDomainPath.c_str());
rk_aiq_isp_stats_t stat;
memset(&stat, 0, sizeof(stat));
RkAiqSocketClientINETReceive(ENUM_ID_AIQ_UAPI_SYSCTL_GET3ASTATSBLK, &stat, sizeof(stat));
}
There were also attempts to build “rkisp_demo”, when running which the function “rk_aiq_uapi2_sysctl_get3AStatsBlk()” also blocks indefinitely and it is not possible to receive a statistics frame. At the same time, the initialization and configuration functions are executed without errors.
What could be the problem?