Hello,
I am working with a Jetson Xavier NX running JetPack version 5.1.3. In my DTS file, I have defined three sensor modes (Mode 0, Mode 1, and Mode 2), but none of these modes are streaming. However, I am able to stream Mode 3, which is not defined in the DTS file.
Here’s the configuration for Mode 0 (which is similar for Mode 1 and Mode 2 with slight variations):
define SENSOR_MODE0 *
*** mclk_khz = “24000”; **
*** discontinuous_clk = “no”; ***
*** dpcm_enable = “false”; ***
*** cil_settletime = “0”; ***
*** dynamic_pixel_bit_depth = “16”; ***
*** csi_pixel_bit_depth = “16”; ***
*** mode_type = “yuv”; ***
*** pixel_phase = “uyvy”; ***
*** active_w = “1280”; ***
*** active_h = “720”; ***
*** readout_orientation = “0”; ***
*** line_length = “2250”; ***
*** inherent_gain = “1”; ***
*** pix_clk_hz = “74250000”; ***
*** serdes_pix_clk_hz = “350000000”; ***
*** gain_factor = “10”; ***
*** min_gain_val = “0”; ***
*** max_gain_val = “300”; ***
*** step_gain_val = “3”; ***
*** default_gain = “0”; ***
*** min_hdr_ratio = “1”; ***
*** max_hdr_ratio = “1”; ***
*** framerate_factor = “1000000”; ***
*** min_framerate = “30000000”; ***
*** max_framerate = “30000000”; ***
*** step_framerate = “1”; ***
*** default_framerate = “30000000”; ***
*** exposure_factor = “1000000”; ***
*** min_exp_time = “24”; ***
*** max_exp_time = “33333”; ***
*** step_exp_time = “1”; ***
*** default_exp_time = “33333”; ***
*** embedded_metadata_height = “0”; ***
In the driver, I am using four modes (Mode 0, Mode 1, Mode 2, and Mode 3). Mode 3 is streaming successfully, but Mode 0, Mode 1, and Mode 2 are not streaming.
How is it possible that Mode 3, which is not even defined in the DTS file, is streaming? And which configurations Mode 3 is using by default? Why are the first three modes (Mode 0, Mode 1, and Mode 2) not streaming, even though they are defined in the DTS?
Additionally, I would like to understand how Mode X in the DTS file maps to resolution_array[X]
in the driver. Can someone explain how these mappings work, and what might be causing the streaming issue with the first three modes?
Thank You