TheImagingSource / tiscamera

The Linux SDK for The Imaging Source cameras.
https://www.theimagingsource.com
Apache License 2.0
299 stars 148 forks source link

Cannot verify installation in Jetson AGX Orin #555

Open tunahanertekin opened 5 months ago

tunahanertekin commented 5 months ago

Hi,

I'm trying to run DFK 37AUR0234 camera on my NVIDIA Jetson AGX Orin (arm64 / Ubuntu 22.04) using the directives in README. However I couldn't verify installation using tcam-capture or gstreamer.

I completed the steps in README successfully. When I run tcam-capture and enable "Auto Select", a window pops up saying:

Unable to open device. Please check gstreamer log 'tcam*:5' for more information.

Here are the screenshots:

tcam-capture

tcam-capture2

When I try to verify installation using gstreamer, the logs say:

Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstTcamBin:tcambin0/GstTcamSrc:tcambin-source: Failed to find any device to open.
Additional debug info:
/home/robolaunch/Desktop/dev/tiscamera/src/gstreamer-1.0/tcamsrc/gsttcamsrc.cpp(249): open_source_element (): /GstPipeline:pipeline0/GstTcamBin:tcambin0/GstTcamSrc:tcambin-source
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...

I should state that I only followed the steps available in README for reproducing the issue. I can start installation from scratch if you need installation logs and share them if you require. Thanks in advance.

Versions: 
    Tcam:   1.1.1_master/7da8da19_rev_4154
    Aravis: 0.8_version_e977fa4
    Modules:    gst_aravis_arvu3v_v4l2_libusb_tools_doc
tunahanertekin commented 5 months ago

FYI, I tested the camera with same installation steps in x86 desktop, Ubuntu 22.04 and I was able to verify the installation using tcam-capture, but still cannot make it work in NVIDIA Jetson AGX Orin.

TIS-Kevin commented 5 months ago

Dear tunahanertekin, in the first image you sent is no camera shown. Please make sure the camera is connected via USB 3. Do not use USB Type C cable which is used for charging Smartphones. These cables often have Data lanes disabled or work seriously bad.

Is any USB Port damaged / disabled on your Hardware? Make sure and try other USB Ports.

Best Regards, Kevin

tunahanertekin commented 5 months ago

I updated the camera model, it's DFK 37AUR0234.

tunahanertekin commented 5 months ago

Hi @TIS-Kevin,

Thanks for your response.

The cable I use for connection is the original cable provided by TIS, and it worked w/ x86 Ubuntu 22.04 and Windows. I think the cable case is eliminated.

I checked the USB ports in my Jetson AGX Orin and found out that the ports I tried are the type "USB 3.2 Gen 2". The ports are working when I plug another device, so I assume they are not damaged or disabled. I have tried all 4 USB ports in Jetson.

Do you have any other idea why it fails to work with Jetson AGX Orin? Are there any other steps necessary to execute for Jetpack 6 or arm64 architecture maybe?

tunahanertekin commented 5 months ago

FYI, I discovered that there are no ports such as /dev/videoX after I plug the USB in to Jetson AGX Orin. The same camera's port was available in x86 Ubuntu 22.04 as /dev/videoX.

TIS-Kevin commented 5 months ago

Dear tunahanertekin, the camera should be listed by following command: sudo dmesg

another command for listing usb devices is lsusb -t

can you find the camera in both commands? You can also send the Output to us as textfile so we can check.

tunahanertekin commented 5 months ago

Hi @TIS-Kevin,

Here are the outputs of the commands you requested. (and v4l2 device list)


sudo dmesg

dmesg-output.txt


lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 480M
    |__ Port 3: Dev 2, If 0, Class=Wireless, Driver=rtk_btusb, 12M
    |__ Port 3: Dev 2, If 1, Class=Wireless, Driver=rtk_btusb, 12M
    |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 3: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 12M

v4l2-ctl --list-devices
NVIDIA Tegra Video Input Device (platform:tegra-camrtc-ca):
    /dev/media0

Cannot open device /dev/video0, exiting.

ps. Here's the summary of latest situation :

TIS-Kevin commented 5 months ago

Dear tunahanertekin, i tried a Jetson AGX Orin (Jetpack 5) and it worked like a charm. Since you confirmed the camera is not broken via the amd64 PC i suggest to try JetPack 5 or get in contact with Nvidia Support.

Best Regards Kevin