APEX ORIN NX II GMSL Camera Trial#

Configuration#

GMSL Camera Trial uses drivers from previous camera integration work to quickly check camera functionality. These drivers have not been fully tested and may have issues.

Select GMSL Camera Trial#

Select Trial to enable the feature.#

Select the corresponding camera for testing.#

Usage#

Video Output#

Use the following commands to quickly open the camera and check the image.

Method 1: Open Cameras Without Specifying Parameters#

Open the Cameras#

sudo chmod +x /opt/miivii/features/gmsl_camera/bin/cameras_sdk_demo
cd /opt/miivii/features/gmsl_camera/bin/
# Open all cameras automatically. To open an individual camera, specify the camera channel.
./cameras_sdk_demo 

#

Performance Solution#

cameras_egl_demo: The EGL demo captures camera images directly using v4l and OpenCV.

/opt/miivii/features/gmsl_camera/bin/cameras_egl_demo -s 1280x720 -d /dev/video0

Performance and Ease of Use#

cameras_opencv_demo: The OpenCV demo uses EGL for display, providing efficient image rendering.

/opt/miivii/features/gmsl_camera/bin/cameras_opencv_demo -s 1280x720 -d /dev/video0

Method 2: Open Cameras by Specifying Camera Parameters#

Display One 720P Camera#

gst-launch-1.0 -v v4l2src device="/dev/video1" ! video/x-raw,width=1280,height=720,format=UYVY ! xvimagesink

Display One 1080P Camera#

gst-launch-1.0 -v v4l2src device="/dev/video0" ! video/x-raw,width=1920,height=1080,format=UYVY ! xvimagesink

Troubleshooting#

Symptom: The camera frame rate differs from the manual#

  • Contact MIIVII Sales for customized support. The available external trigger frame rates have been verified in actual testing.

Symptom: External trigger mode is selected, but the actual frame rate does not follow the trigger rate#

  • Confirm that the correct camera model is selected in the configuration.

  • Ask the camera manufacturer whether the camera supports external trigger mode.

Symptom: The camera does not start or displays a black screen#

  • Check hardware compatibility: Confirm that the camera model is on the device compatibility list. Contact the manufacturer for the latest list.

  • Check that the camera connector is firmly seated and the cable is free of damage or corrosion.

  • Check the configured device node: In the device Web GUI, ensure that the selected camera number matches the physical port, for example, port 2 corresponds to “Camera 2”.

  • After reconnecting a camera, save its configuration again in the Web GUI or restart the service for the settings to take effect.

Symptom: The image is green#

  • Replace the cable. Many green-screen problems are related to cabling.

  • Swap camera positions to test them. Many green-screen problems are also related to camera firmware.

  • Ask the camera manufacturer to confirm that the firmware output image format matches the supported camera format.

  • If the formats differ, ask the camera manufacturer to update the firmware or contact MIIVII Sales for support.

If the Above Steps Do Not Resolve the Issue#

# Run the following command to collect logs, and send the logs to Technical Support.
curl -sSL https://doc.miivii.com/scripts/run_miivii_diagnostic.sh | sudo bash -s gmsl