VC-MIPI-modules / vc_mipi_nvidia

Vision Components MIPI CSI-2 driver for NVIDIA Jetson Nano, Xavier NX, AGX Xavier, TX2 and Orin Nano, Orin NX
69 stars 31 forks source link

Do I need to change dtsi for Camera Triggering #75

Open musafzenbilci opened 3 months ago

musafzenbilci commented 3 months ago

You can also see the discussion in NVIDIA Forum.

I am using the IMX568c camera on Jetson Linux 35.4.1 within Jetson Orin Nano. I installed the driver from the bazo_pre_3541 pre-release branch with this dtsi file new_orinnano.dtsi.txt and the camera worked as expected.

Now I needed to use the trigger feature of the camera but could not find a way to work it out. Created a discussion under NVIDIA Forum since the pinouts related to them and at the end, he told me to remove the assignment of CAM0_PWDN in the device tree. Should I really make that kind of change to use the trigger feature of yours?

I am not experienced in using camera triggers so I want to explore both the hardware and software triggers. I read the trigger documentation in this repo and opened the single trigger mode with v4l2-ctl -c trigger_mode=4 and then tried triggering with v4l2-ctl -c single_trigger=1 but I did not notice any additional frame captured from the camera feed.

To test the trigger, I reduced the fps to 1/10 and ran v4l2-ctl -c single_trigger=1 to see any frame captured with it but nothing changed in the camera feed. Here is the pipeline I used for testing:

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),width=2464, height=2048, format=NV12' ! nvvidconv ! videorate ! "video/x-raw,framerate=1/10" ! nvvidconv ! nvegltransform ! nveglglessink -e
noob502 commented 1 month ago

Did you build the Jetson Orin Nano image or use any pre-built image?

musafzenbilci commented 1 month ago

pre-built image