How to call the CSI camera

Under the Ubuntu 20.04 system, the Jetpack 5.1.3 version has been installed. However, when entering the command “nvgstcapture-1.0”, an error message “bash: nvgstcapture-1.0: command not found” appears. Now I would like to know how to call the CSI camera.

Hi,

For the camera basic functionality first needs to check the device and driver configuration.
You can reference to below program guide for the detailed information of device tree and driver implementation.
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=programing#sensor-software-driver-programming

Please refer to Applications Using V4L2 IOCTL Directly by using V4L2 IOCTL to verify basic camera functionality.
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=programing#to-run-a-v4l2-ctl-test

Once confirm the configure and still failed below link help to get log and some information and some tips for debug.
https://elinux.org/Jetson/l4t/Camera_BringUp#Steps_to_enable_more_debug_messages

Thanks!

hello 2910714257,

you may also check kernel init messages to confirm you’ve camera device register to video node correctly.
for instance, here’re the logs from Orin-NX to connect single IMX477.
since only camera hardware has connected, you’ll see a probing failure (9-001a);
the other probing process has complete, and register camera device (10-001a) to linux kernel.

$ sudo dmesg | grep imx477
[    9.681338] imx477 9-001a: tegracam sensor driver:imx477_v2.0.6
[    9.981959] imx477 9-001a: imx477_board_setup: error during i2c read probe (-121)
[    9.981988] imx477 9-001a: board setup failed
[    9.982081] imx477: probe of 9-001a failed with error -121
[    9.985741] imx477 10-001a: tegracam sensor driver:imx477_v2.0.6
[   10.286702] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx477 10-001a bound

after system booted into ubuntu desktop,
you’ll see the camera node has registered to /dev/ as well.

$ ls /dev/video*
/dev/video0

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.