How to enable HDR mode in Sony IMX662

Hi,

The sony sensor driver supports both linear and HDR modes as mentioned in the source code.

I tried by setting all structure memebers which has hdr_mode in the files video_boot.c and video_user_boot.c but, still ATII=meta command shows hdr_mode:0

What is the correct way to enable sensor HDR mode in application?

Thanks,

Yugandhar

Hi @yugandhar,

Enabling and disabling HDR mode is handled through initialization configuration.

For non-FCS mode,
You may refer to mmf2_video_example_v1_param_change_init.c as a reference for enabling or disabling HDR mode under ISP_INIT_TEST:

To enable HDR mode, you may modify line 307 as follows:
init_params.init_isp_items.init_hdr_mode = 1;

If you are testing this example, after the application starts running, you can use the AT command below to trigger ISP_INIT_TEST:
AT command to use: PCT=05

When HDR mode is successfully enabled, you should see the following log message:
[VOE][Ini set0]init dn 0 hdr 1 mirrorflip 0xf0.

You can integrate this configuration into your application.

For FCS mode,
You have to modify line 532 in
video_user_boot.c
init_params.init_isp_items.init_hdr_mode = 1;