Can DriveWorks SDK camera sample change IMX728 frame rate from 30 FPS to 10 FPS?

DRIVE OS Version: Provide DRIVE OS version. Example: 7.0.3
Issue Description: I would like to confirm whether the camera frame rate can be changed from 30 FPS to 10 FPS.
Camera used: Smartlead BF8S103G-100-00 / Sony IMX728

Dear Nvidia Forum Support,
I built and am running the DriveWorks SDK sample under samples/src/sensors/camera/camera.
In the rig, I am using /usr/share/camera/R0SIM728S3RU2120NB2.nito.
At present, I believe the camera frames acquired via dwSensorCamera_readFrame() are running at 30 FPS.

I would like to change this to 10 FPS.
A simple workaround would be to process only one out of every three frames, but in that case I assume the ISP and related processing would still be running at 30 FPS and therefore unnecessary load would remain.

Since I plan to use multiple cameras, I would like to reduce this overhead if possible by lowering the sensor-side frame rate to 10 FPS.
Is it possible to make this change using DriveWorks SDK / NvSIPL settings?

Dear @shoji.watanabe.01 ,
Do you see any performance issue with frame-mod (Configuration Reference — NVIDIA DriveOS 7.0.3 Linux SDK Developer Guide). May I know what is the use case
?

Thank you for the suggestion, but what I want to do is not recording.

What I am trying to achieve is to reduce the IMX728 sensor-side frame generation/capture rate from 30 FPS to 10 FPS, so that dwSensorCamera_readFrame() receives frames at a 100 ms interval.

Dear @shoji.watanabe.01 ,
Could you quickly check the solution provided at Updating FSYNC device tree - #14 by SivaRamaKrishnaNV to see if it helps?

Dear @shoji.watanabe.01 ,
I have tested with below commands to modify the FPS and ran sample_camera and noticed I see 10 FPS in rendering window.

nvidia@tegra-ubuntu:/opt/nvidia/drive-linux/samples/nvmedia/nvsipl/test/fsync_debug$ sudo ./fsync_debug stopgroup 0                         
 nvidia@tegra-ubuntu:/opt/nvidia/drive-linux/samples/nvmedia/nvsipl/test/fsync_debug$ sudo ./fsync_debug modifygenerator 0 3 20 25 0          
nvidia@tegra-ubuntu:/opt/nvidia/drive-linux/samples/nvmedia/nvsipl/test/fsync_debug$ sudo ./fsync_debug startgroupnow 0 

rig.json

nvidia@tegra-ubuntu:~$ cat rig.json
{
    "rig": {
        "sensors": [
            {
                "name": "camera:30",
                "nominalSensor2Rig_FLU": {
                    "roll-pitch-yaw": [0.0, 0.0, 0.0],
                    "t": [0.0, 0.0, 0.0]
                },
                "parameter": "camera-name=V1SIM728MPRU4120ND1,disable-custintf=1,disable-auth=1,interface=csi-ab,skip-eeprom=1,CPHY-mode=1,link=1,fifo-size=8,output-format=raw+processed,async-record=1,deserializer=MAX96724_Fusa_nv,file-buffer-size=16777216,format=lraw,target-fps=10",
                "protocol": "camera.gmsl"
            }
        ],
        "vehicle": {
            "valid": false
        }
    },
    "version":  2
}

In case, you want to make the changes persistes, make the changes in DT and reflash as suggested in Updating FSYNC device tree - #14 by SivaRamaKrishnaNV

thank you, I’ll try it.

Dear @shoji.watanabe.01 ,
Could you please provide any update? Can we close the topic ?

Dear @SivaRamaKrishnaNV
I tried using fsync_debug, but it does not appear to work on my platform.

$ sudo ./fsync_debug stopgroup 0 
NvTegraSysInit failure: -1
NvTegraSysInit failure: -1
terminate called after throwing an instance of 'std::runtime_error'
  what():  Unsupported Tegra chip
Aborted
$./fsync_debug stopgroup 0
Failed to create FSYNC debug session: Failed to open /proc/device-tree/tsc_sig_gen@c230000/compatible: No such node!

However, the node actually exists:

$ ll /proc/device-tree/tsc_sig_gen@c230000/
-r--r--r--   1 root root            4 Jul 24 13:00 '#address-cells'
-r--r--r--   1 root root            4 Jul 24 13:00 '#size-cells'
drwxr-xr-x   7 root root            0 Jul 24 13:00  ./
d---r-x--- 197 root nv_device_tree  0 Jul 22 11:17  ../
-r--r--r--   1 root root           24 Jul 24 13:00  compatible
drwxr-xr-x   4 root root            0 Jul 24 13:00  fsync-groups/
drwxr-xr-x   2 root root            0 Jul 24 13:00 'generator@380'/
drwxr-xr-x   2 root root            0 Jul 24 13:00 'generator@400'/
drwxr-xr-x   2 root root            0 Jul 24 13:00 'generator@480'/
drwxr-xr-x   2 root root            0 Jul 24 13:00 'generator@500'/
-r--r--r--   1 root root           12 Jul 24 13:00  name
-r--r--r--   1 root root           16 Jul 24 13:00  ranges
-r--r--r--   1 root root           16 Jul 24 13:00  reg
-r--r--r--   1 root root            5 Jul 24 13:00  status
$ cat /proc/device-tree/tsc_sig_gen@c230000/compatible
nvidia,tegra264-cdi-tsca

This seems similar to the issue discussed in the following thread:
Is there a fix, patch, or updated fsync_debug binary available for DRIVE OS 7.0.3 / DRIVE AGX Thor?

No. As suggested, please copy the binary from docker.

I was able to make fsync_debug work by copying the binary from the Docker environment to Thor.
I have an additional question regarding the mapping between FSYNC generators and CSI ports.

sudo ./fsync_debug modifygenerator 0 3 10 25 0
I confirmed that GROUP_IDX=0 and GENERATOR_IDX=3 affects CSI-AB.

I also observed that:
GROUP_IDX=0, GENERATOR_IDX=0 affects CSI-GH
GROUP_IDX=0, GENERATOR_IDX=2 affects CSI-C/D/EF

Is this behavior expected?
Could you please provide the mapping between FSYNC group/generator IDs and the CSI ports (CSI-GH, CSI-EF, CSI-D, CSI-AB, and CSI-C) on the Thor DevKit?

correct. fsync_debug is better way to find the mapping and see effect as per parameter changes.