This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: ISP-NSF4 noise-canceling function

Part Number: TDA4VM

Hi team,

Here's an issue from the customer may need your help:

When the ISP NSF4 uses DCC for noise calibration, two intervals are divided by the gain values (XML file see attachment), using this calibration file will prevent the camera from illuminating (only one zone can be lit) and the following error is reported: 

log:

J7EVM@QNX:/# [MCU2_0] CAM_PARAM_Handle_Fxn]:===+++++++++start_sending _camera_msg++++++====
[MCU2_0] 9.804836 s: crc_check size is 174
[MCU2_0] 9.804910 s: CRC checked error!!! crccheck:46386 ascoutput5:65535
[MCU2_0] 9.804950 s: CRC_CHECK_RESULT is 0
[MCU2_0] 9.854123 s: crc_check size is 174

use case

Around View Monitor(4 cameras in total)

sensor

OV OX03C10

<?xml version="1.0" encoding="utf-8"?>
<VISS_NSF4_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<!--this is comment-->
	<dcc_name>viss_nsf4_cfg</dcc_name>
	<dcc_header>
		<camera_module_id>    310 </camera_module_id>
		<dcc_descriptor_id>   21 </dcc_descriptor_id>
		<algorithm_vendor_id>  1 </algorithm_vendor_id>
		<tunning_tool_version> 0 </tunning_tool_version>
	</dcc_header>
	<!--=======================================================================-->
    <typedef>
        <cfg_nsf4v_vars type="struct">

		  <enable type="uint16"> </enable> <!-- enable nsf4-->
		  <mode type="uint16"> </mode>
		  <shading_gain type="uint16"> </shading_gain>

		  <u1_knee type="uint16"> </u1_knee>
		  <tn1 type="uint16"> </tn1>
		  <tn2 type="uint16"> </tn2>
		  <tn3 type="uint16"> </tn3>

		  <noise_thr_x type="uint16[4][12]"> </noise_thr_x>
		  <noise_thr_y type="uint16[4][12]"> </noise_thr_y>
		  <noise_thr_s type="int16[4][12]"> </noise_thr_s>

		  <shd_x type="int16"> </shd_x>
		  <shd_y type="int16"> </shd_y>
		  <shd_t type="uint16"> </shd_t>
		  <shd_kh type="uint16"> </shd_kh>
		  <shd_kv type="uint16"> </shd_kv>
		  <shd_gmax type="uint16"> </shd_gmax>
		  <shd_set_sel type="uint16"> </shd_set_sel>

		  <shd_lut_x type="uint16[2][16]"> </shd_lut_x>
		  <shd_lut_y type="uint16[2][16]"> </shd_lut_y>
		  <shd_lut_s type="int16[2][16]"> </shd_lut_s>

		  <wb_gains type="uint16[4]"> </wb_gains>
		  
		</cfg_nsf4v_vars>
    </typedef>
	<!--=======================================================================-->
	
	<use_case val="1023">
		<n-space>
			
            <region0 class="0">
				<colortemperature val="2" min="0" max="20000">  </colortemperature>
				<exposure val="1" min="0" max="10000000">  </exposure>
				<gain val="0" min="0" max="1">  </gain>
			</region0>
		
            <region1 class="1">
				<colortemperature val="2" min="0" max="20000">  </colortemperature>
				<exposure val="1" min="0" max="10000000">  </exposure>
				<gain val="0" min="2" max="1024">  </gain>
			</region1>
		
		</n-space>
		
	    <parameter_package>
            <cfg_nsf4v_dcc type="cfg_nsf4v_vars">
              {
					1, //enable
					16, //mode: 0 => nsf3 2x2 mode, 1~31 => nsf4 2x2 mode
					0, //shading gain enable

					32,   //  U1 knee points for U,   U0.6 (0 ~ 63)
					64,   //  Tn1 scaling factor,     U3.5 (1.0 = 32)
					32,   //  Tn2 scaling factor,     U3.5 (1.0 = 32)
					16,   //  Tn3 scaling factor,     U3.5 (1.0 = 32)

					// Threshold parameters
					//noise_thr_x
					{
						{ 0, 64, 256, 1024, 4096, 8192, 16384, 24576, 32768, 40960, 49152, 57344 },
						{ 0, 64, 256, 1024, 4096, 8192, 16384, 24576, 32768, 40960, 49152, 57344 },
						{ 0, 64, 256, 1024, 4096, 8192, 16384, 24576, 32768, 40960, 49152, 57344 },
						{ 0, 64, 256, 1024, 4096, 8192, 16384, 24576, 32768, 40960, 49152, 57344 },
					},
					//noise_thr_y
					{
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
					},
					//noise_thr_s
					{
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
					},

					// Shading gain parameters
					0, //shd_x
					0, //shd_y
					0, //shd_t
					0, //shd_kh
					0, //shd_kv
					0, //shd_gmax
					0, //shd_set_sel

					//shd_lut_x
					{
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
					},
					//shd_lut_y
					{
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
					},
					//shd_lut_s
					{
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
					},
					
					//wb_gains
					{512, 512, 512, 512}
			  }
            </cfg_nsf4v_dcc>
	    </parameter_package>
		
	    <parameter_package>
            <cfg_nsf4v_dcc type="cfg_nsf4v_vars">
              {
					1, //enable
					16, //mode: 0 => nsf3 2x2 mode, 1~31 => nsf4 2x2 mode
					0, //shading gain enable

					32,   //  U1 knee points for U,   U0.6 (0 ~ 63)
					64,   //  Tn1 scaling factor,     U3.5 (1.0 = 32)
					32,   //  Tn2 scaling factor,     U3.5 (1.0 = 32)
					16,   //  Tn3 scaling factor,     U3.5 (1.0 = 32)

					// Threshold parameters
					//noise_thr_x
					{
						{ 0, 64, 256, 1024, 4096, 8192, 16384, 24576, 32768, 40960, 49152, 57344 },
						{ 0, 64, 256, 1024, 4096, 8192, 16384, 24576, 32768, 40960, 49152, 57344 },
						{ 0, 64, 256, 1024, 4096, 8192, 16384, 24576, 32768, 40960, 49152, 57344 },
						{ 0, 64, 256, 1024, 4096, 8192, 16384, 24576, 32768, 40960, 49152, 57344 },
					},
					//noise_thr_y
					{
						{ 0, 1, 7, 40, 173, 21, 43, 87, 176, 353, 707, 1415 },
						{ 0, 1, 7, 40, 173, 21, 43, 87, 176, 353, 707, 1415 },
						{ 0, 1, 7, 40, 173, 21, 43, 87, 176, 353, 707, 1415 },
						{ 0, 1, 7, 40, 173, 21, 43, 87, 176, 353, 707, 1415 },
					},
					//noise_thr_s
					{
						{ 32, 64, 88, 89, -76, 6, 11, 22, 44, 89, 177, -354 },
						{ 32, 64, 88, 89, -76, 6, 11, 22, 44, 89, 177, -354 },
						{ 32, 64, 88, 89, -76, 6, 11, 22, 44, 89, 177, -354 },
						{ 32, 64, 88, 89, -76, 6, 11, 22, 44, 89, 177, -354 },
					},

					// Shading gain parameters
					0, //shd_x
					0, //shd_y
					0, //shd_t
					0, //shd_kh
					0, //shd_kv
					0, //shd_gmax
					0, //shd_set_sel

					//shd_lut_x
					{
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
					},
					//shd_lut_y
					{
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
					},
					//shd_lut_s
					{
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
						{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
					},
					
					//wb_gains
					{512, 512, 512, 512}
			  }
            </cfg_nsf4v_dcc>
	    </parameter_package>
		
	</use_case>
	
	<!--=====================================================================-->
</VISS_NSF4_CFG>

Could you help look into this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    This is using an outdated version of the xml format from old PSDK version.

    Please ask the customer to move to the latest DCC tuning tool on mysecuresw.

    Could you please also share with me the customer and project information?