RV11xx(rv1126/rv1109) IR-CUT调试过程-rv1126参数

目录

1,IR-CUT配置文件路径

2,IR-CUT关键配置项

3,调试与生效

1,IR-CUT配置文件路径

SDK文件路径:

\RV1126_RV1109_SDK\external\camera_engine_rkaiq\iqfiles\imx307_MTV4-IR-E-P_40IRC-4MP-F16.xml

RV1126固件中配置文件位置:

/oem/etc/iqfiles/imx307_MTV4-IR-E-P_40IRC-4MP-F16.xml2,IR-CUT关键配置项 <CPSL index=”1″ type=”struct” size=”[1 1]”> <enable index=”1″ type=”char” size=”[1 1]”> [1 ] </enable> <mode index=”1″ type=”int” size=”[1 1]”> [0 ] </mode> <force_gray index=”1″ type=”char” size=”[1 1]”> [1 ] </force_gray> <light_src index=”1″ type=”int” size=”[1 1]”> [2 ] </light_src> <auto_adjust_sens index=”1″ type=”double” size=”[1 1]”> [50.0000 ] </auto_adjust_sens> <auto_on2off_th index=”1″ type=”int” size=”[1 1]”> [3000 ] </auto_on2off_th> <auto_off2on_th index=”1″ type=”int” size=”[1 1]”> [100 ] </auto_off2on_th> <auto_sw_interval index=”1″ type=”int” size=”[1 1]”> [30] </auto_sw_interval> <manual_on index=”1″ type=”char” size=”[1 1]”> [0 ] </manual_on> <manual_strength index=”1″ type=”double” size=”[1 1]”> [100.0000 ] </manual_strength> </CPSL>
<

参考文件:Rockchip_Tuning_Guide_ISP2x_CN_v1.6.2.pdf   (SDK中)

3,调试与生效

修改imx307_MTV4-IR-E-P_40IRC-4MP-F16.xml

步骤如下:

A: adb tool工具进入命令窗口

RV11xx(rv1126/rv1109) IR-CUT调试过程-rv1126参数

RV11xx(rv1126/rv1109) IR-CUT调试过程-rv1126参数

B:使用adb pull 下载文件

adb pull /oem/etc/iqfiles/imx307_MTV4-IR-E-P_40IRC-4MP-F16.xml .

RV11xx(rv1126/rv1109) IR-CUT调试过程-rv1126参数

本地修改xml文件配置选项

C:修改完后,将配置文件覆盖

adb push imx307_MTV4-IR-E-P_40IRC-4MP-F16.xml /oem/etc/iqfiles/

D:重启设备,生效配置文件

adb reboot

调试补光灯

RV11xx(rv1126/rv1109) IR-CUT调试过程-rv1126参数

RV11xx(rv1126/rv1109) IR-CUT调试过程-rv1126参数

对应设备树

rv11xx-owl-38ipc-v10-imx307.dts rv11xx-owl-38ipc-v10.dtsi rv1126.dtsi rv1126-ipc.dtsi pwm7: pwm@ff440030 { compatible = “rockchip,rv1126-pwm”, “rockchip,rk3328-pwm”; reg = <0xff440030 0x10>; #pwm-cells = <3>; pinctrl-names = “active”; pinctrl-0 = <&pwm7m0_pins>; clocks = <&pmucru CLK_PWM1>, <&pmucru PCLK_PWM1>; clock-names = “pwm”, “pclk”; status = “disabled”; }; &pwm7 { status = “okay”; pinctrl-names = “active”; pinctrl-0 = <&pwm7m0_pins_pull_down>; };
<
cd /sys/class/pwm/pwmchip0/ echo 0 > export cd pwm0 echo 10000 > period echo 5000 > duty_cycle echo normal > polarity echo 1 > enablecamera_engine_rkaiq/algos/adpcc/rk_aiq_adpcc_algo.cpp:2324: pSelect->grayscale_mode = 0x1; camera_engine_rkaiq/algos/adpcc/rk_aiq_adpcc_algo.cpp:2326: pSele system(“/usr/bin/pwmtest.sh 1”); system(“/usr/bin/pwmtest.sh 0”);

修改代码

void gc_cpsl_cfg_fill_light_mode_set(rk_aiq_cpsls_t mode) { pthread_mutex_lock(&cpsl_cfg_mutex); if (!gc_cpsl_cfg_init_flag) memset(&gc_cpsl_cfg, 0, sizeof(rk_aiq_cpsl_cfg_t)); if (mode != RK_AIQ_CPSLS_INVALID) gc_cpsl_cfg.lght_src = mode; else if (!gc_cpsl_cfg_init_flag) { gc_cpsl_cfg.lght_src = RK_AIQ_CPSLS_IR; LOG_WARN(“fill mode: %d is undefined, set ir by default\n”, mode); } gc_cpsl_cfg_init_flag = 1; pthread_mutex_unlock(&cpsl_cfg_mutex); } // TODO: for night to day change int rk_smart_get_scene_param(double *pdLumaDay, double *pdLumaNight, double *pdRGratio, double *pdBGratio, unsigned int *p_u32_exposure, double *pdExpAgain) { return 0; } int night_to_day_para_set(rk_aiq_cpsl_cfg_t compensate_light_cfg) { if (!db_aiq_ctx || !g_stream_on) return -1; int ret = -1; if (compensate_light_cfg.mode != RK_AIQ_OP_MODE_INVALID) { pthread_mutex_lock(&db_aiq_ctx_mutex); ret = rk_aiq_uapi_sysctl_setCpsLtCfg(db_aiq_ctx, &compensate_light_cfg); pthread_mutex_unlock(&db_aiq_ctx_mutex); LOG_DEBUG(“set night to day para, ret is %d\n”, ret); } else { LOG_INFO(“compensate_light_cfg.mode is invalid\n”); } return ret; } // LOG_DEBUG(“u8Num = %d dLumaNight = %f dRGratio = %f dBGratio = %f // dExpAgain = %f \n”, get_led_state(), dLumaNight, dRGratio, dBGratio, // dExpAgain); // LOG_DEBUG(“u8Num = %d dLumaNight = %f dRGratio = %f dBGratio = %f // dExpAgain = %f \n”, get_led_state(), dLumaNight, dRGratio, dBGratio, // dExpAgain); if (LED_ON == get_led_state()) {   if ( LED_ON == get_led_state() ){     system(“/usr/bin/pwmtest.sh 1”);   } else {     system(“/usr/bin/pwmtest.sh 0”);   } }
<

在pwmtest脚本中即可完成补光灯的开关。

参考手册中描述。

RV11xx(rv1126/rv1109) IR-CUT调试过程-rv1126参数

免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:RV11xx(rv1126/rv1109) IR-CUT调试过程-rv1126参数 https://www.yhzz.com.cn/a/9294.html

上一篇 2023-04-20 13:31:11
下一篇 2023-04-20 13:33:42

相关推荐

联系云恒

在线留言: 我要留言
客服热线:400-600-0310
工作时间:周一至周六,08:30-17:30,节假日休息。