Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other
Target Operating System
Linux
QNX
other
Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other
SDK Manager Version
1.9.3.10904
other
Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other
Hi, I am testing with nvsipl_camera and would like to test with multiple different vendor cameras. I saw from these two links: How to set up multiple cameras of different models - #2 by TomFord and Unable to get multiple cameras working on AGX ORIN - #11 by SivaRamaKrishnaNV that I need to have a custom JSON file to set up the configuration.
First, I want to get the JSON file working with one camera before I test multiple. I did not get any final resolution from these threads that worked for me, this is what I am seeing currently:
Note: I am using the camera config F008A120RM0AV2_CPHY_x4
- nvsipl camera is working correctly without the JSON file:
sudo ./nvsipl_camera -c F008A120RM0AV2_CPHY_x4 -m 0x0100 0x0000 0x0000 0x0000
- I created the JSON file (named rig_test.json) based on the two links above:
{
"platformConfigs": [
{
"name": "MIXED_CAMERA_CPHY_x4",
"description": "MIXED CAMERA_4 lane CPHY mode",
"enableMasks": ["0x0100 0x0000 0x0000 0x0000"],
"deviceBlocks": [
{
"passiveMode": false,
"csiPort" : "csi-ab",
"phyMode": "cphy",
"simulatorMode": false,
"groupInitProg": true,
"homogenousModules": false,
"deserializer": "MAX96712",
"cameraModules": [
{
"linkIndex": 0,
"name": "F008A120RM0AV2",
"sensors": [
{
"name": "AR0820",
"id": 0
}
]
}
]
}
]
}
]
}
- I run nvsipl_camera with this JSON:
sudo ./nvsipl_camera -t rig_test.json -c MIXED_CAMERA_CPHY_x4 -m 0x0100 0x0000 0x0000 0x0000 -v 4
- I get nvsipl_camera: ERROR: Master SetPlatformConfig failed. status: 1 - It seems like the numCameraModules = 0 for some reason, I cannot find out how to get it to parse the cameraModules correctly. This is the log output below:
sudo ./nvsipl_camera -t rig_test.json -c MIXED_CAMERA_CPHY_x4 -m 0x0100 0x0000 0x0000 0x0000 -v 4
Platform configuration name: MIXED_CAMERA_CPHY_x4
Platform configuration file: ./rig_test.json
Verbosity level: 4
Raw output: disabled
ISP0 output: enabled
ISP1 output: enabled
ISP2 output: enabled
Disabled FPS logging
Disabled Metadata logging
Disabled automatic recovery
Disabled NvSci
Disabled profiling
Disabled ISP Statistics settings override
Subframe : disabled
Disabled Passive mode
Authentication: controlled by Platform Config
Disabled retrieving/displaying NITO Metadata
nvsipl_camera: Setting up signal handler
libnvsipl_query.so: CNvMQuery.cpp : 272: ParseJsonFile: CNvMQuery::ParseJsonFile reading file ./rig_test.json
libnvsipl_query.so: CNvMDeviceBlockInfo.cpp : 131: ParseJson: deserializer on this platform MAX96712
libnvsipl_query.so: CNvMSensorInfo.cpp : 218: ParseJson: Updated AR0820
libnvsipl_query.so: CNvMCameraModuleInfo.cpp : 247: ParseJson: Parsed F008A120RM0AV2
libnvsipl_query.so: CNvMPlatformCfgInfo.cpp : 129: ApplyMask: block:0 enabled
nvsipl_camera: Getting platform configuration for MIXED_CAMERA_CPHY_x4
nvsipl_camera: Setting link masks
libnvsipl_query.so: CNvMPlatformCfgInfo.cpp : 129: ApplyMask: block:0 enabled
nvsipl_camera: Creating camera master
nvsipl_camera: Setting up master
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 328: GetInstance: Entering
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 331: GetInstance: Exiting
nvsipl_camera: Creating consumers
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 580: SetPlatformCfg: Entering DevBlkQueues variant
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 529: SetPlatformCfg: Entering
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 359: LogPlatformCfg: ---------- START PLATFORM CONFIGURATION ----------
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 360: LogPlatformCfg: platform:
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 361: LogPlatformCfg: platformConfig: MIXED_CAMERA_CPHY_x4
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 362: LogPlatformCfg: description: MIXED CAMERA_4 lane CPHY mode
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 363: LogPlatformCfg: numDeviceBlocks: 1
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 366: LogPlatformCfg: DeviceBlockInfo deviceBlockList[0]
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 367: LogPlatformCfg: csiPort: 2
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 368: LogPlatformCfg: phyMode: 1
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 369: LogPlatformCfg: i2cDevice: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 371: LogPlatformCfg: DeserInfo deserInfo
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 372: LogPlatformCfg: name: MAX96712
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 373: LogPlatformCfg: description: Maxim 96712 Aggregator
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 374: LogPlatformCfg: i2cAddress: 0x29
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 376: LogPlatformCfg: errGpios.size(): 2
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 378: LogPlatformCfg: errGpios[0]: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 378: LogPlatformCfg: errGpios[1]: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 380: LogPlatformCfg: useCDIv2API: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 381: LogPlatformCfg: resetAll: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 382: LogPlatformCfg: numCameraModules: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 455: LogPlatformCfg: desI2CPort: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 456: LogPlatformCfg: desTxPort: 4294967295
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 457: LogPlatformCfg: pwrPort: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 459: LogPlatformCfg: dphyRate[0]: 2500000
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 460: LogPlatformCfg: cphyRate[0]: 2000000
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 459: LogPlatformCfg: dphyRate[1]: 2500000
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 460: LogPlatformCfg: cphyRate[1]: 2000000
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 462: LogPlatformCfg: isPassiveModeEnabled: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 463: LogPlatformCfg: isGroupInitProg: 1
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 465: LogPlatformCfg: gpios.size(): 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 469: LogPlatformCfg: isPwrCtrlDisabled: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 471: LogPlatformCfg: longCables[0]: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 471: LogPlatformCfg: longCables[1]: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 471: LogPlatformCfg: longCables[2]: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 471: LogPlatformCfg: longCables[3]: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 473: LogPlatformCfg: resetAll: 0
Main: /dvs/git/dirty/git-master_modular/camera/fusa/sipl/src/core/CNvMCamera.cpp: 475: LogPlatformCfg: ----------- END PLATFORM CONFIGURATION -----------
nvsipl_camera: ERROR: Master SetPlatformConfig failed. status: 1
Do you have any info that could help? Am I writing the JSON file incorrectly? Thank you.