Sekonix cameras: Cannot create a sensor dwSAL_createSensor(..) if more then one camera selected

Hardware Platform: DRIVE AGX Pegasus™ Developer Kit
Software Version: DRIVE Software 10.
Host Machine Version: native Ubuntu 18.04
SDK Manager Version: 1.1.0.6343
Driveworks Version: DW 2.2

3 Sekonix Cameras (ar0231 sf3324) are connected to A0, A1, A2.

The sample_camera_multiple_gmsl failed if starting with the --selector-mask=0111.

To be precise it works only if one camera is selected (no matter what camera) and in all cases I get the output of the first connected camera (A0)
I tryed out:

  • –selector-mask=0001
  • –selector-mask=0010
  • –selector-mask=0100
  • –selector-mask=1000

So all other deviation on selector-mask leading to nvmedia errors and then to the error: The Sensor cannot be created:

Additionaly: I have also built my small application, where the camera sensor params are fix coded and crosscompile it. I get the same issue, so I assume the parsing of arguments in the sample is not the problem here.

I would be thankful if you can help me to fix the issue.

Hi @mariia.fortova,

If possible, please move your effort into SIPL framework (see “GMSL Cameras using SIPL, Synchronous (camera.gmsl.master & camera.gmsl.slave)” section in /usr/local/driveworks-2.2/doc/nvsdk_html/camera_mainsection.html on your host system with DRIVE Software 10 installed) because IPP will be deprecated from the next release. Thanks!

Thank you, @VickNV for quick answer and information.

But I think it didn’t fix my issue.
I still cannot initialize master sensor for more then one camera (using devBlock)

See also the third screenshot:

[23-10-2020 13:24:06] CameraGMSLMaster:: Initliazing master camera
nvmedia isc: GetCameraPowerControlLevel: 936: Camera power control library: NVCCP
MAX96712: Revision 2 detected
MAX96712: Enable periodic AEQ on Link 0
MAX96705: Pre-emphasis set to 0xaa
MAX96705: Revision 1 detected!
**Sensor AR0231 RCCB Rev7 detected!**      // this is the A0
**nvmedia: ERROR: MAX96712: Link 1: GMSL1 config link lock not detected(100)**          

There are also a lot of warnings from libsipl_query: (first screenshot)

libnvsipl_query.so: CNvMCameraModuleInfo.cpp : 76: ParseJson: Could not find matching serializer
libnvsipl_query.so: CNvMDeviceInfoList.cpp : 100: GetCustomCameraModule: Failed to find matching module MAX96712TPG
libnvsipl_query.so: CNvMDeviceBlockInfo.cpp : 156: ParseJson: Failed to find matching camera module
libnvsipl_query.so: CNvMPlatformCfgInfo.cpp : 50: ParseJson: CNvMPlatformCfgInfo::ParseJson failed.
libnvsipl_query.so: CNvMQuery.cpp : 45: ParsePlatformConfig: Failed to parse a PlatformCfg!
  • Are there any configuration needed besides the protocol and params for sensor?
  • Or the problem may lie in the hardware?

I would be thankful for your help!

What’s the command your were using? Does this happen everytime or intermittently? Is this issue also observable with single camera?

Dear @VickNV,

  1. This is my own small application (I took the sample camera_gmsl_custom as reference)
    I see the same errors when starting sample_camera_gmsl_custom and nvsipl_camera samples. Outputs are in the end of the comment
  2. This happen everytime.
  3. No, starting the single A0 camera works and it also impossible to access other cameras (in contrast to approach with IPP, where I always got the output of the first camera)

OUTPUT OF sample_camera_gmsl_custom --rig=rig2Processed.json (also attached as txt rig2Processed.txt (2.8 KB) ):

    nvidia@tegra-ubuntu:/usr/local/driveworks-2.2/bin$ ./sample_camera_gmsl_custom --rig=/home/nvidia/mfortova/rig2Processed.json 
    [26-10-2020 15:46:01] Platform: Detected DDPX - Tegra A
    [26-10-2020 15:46:01] TimeSource: monotonic epoch time offset is 1603432678553179
    [26-10-2020 15:46:01] TimeSource Nvpss : PTP ioctl returned error. Synchronized time will not be available from this timesource.
    [26-10-2020 15:46:01] TimeSource: Could not detect valid PTP time source at nvpps. Fallback to eth0
    [26-10-2020 15:46:01] TimeSource Eth: PTP ioctl returned error. Synchronized time will not be available from this timesource.
    [26-10-2020 15:46:01] TimeSource: Could not detect valid PTP time source at 'eth0'. Fallback to CLOCK_MONOTONIC.
    [26-10-2020 15:46:01] Platform: number of GPU devices detected 2
    [26-10-2020 15:46:01] Platform: currently selected GPU device discrete ID 0
    [26-10-2020 15:46:01] SDK: Resources mounted from .././data/
    [26-10-20./sample_camera_gmsl_custom --rig=/home/nvidia/mfortova/rigSingleProcessed.json20 15:46:01] SDK: Create NvMediaDevice
    [26-10-2020 15:46:01] SDK: use EGL display as provided
    [26-10-2020 15:46:01] TimeSource: monotonic epoch time offset is 1603432678553179
    [26-10-2020 15:46:01] TimeSource Nvpss : PTP ioctl returned error. Synchronized time will not be available from this timesource.
    [26-10-2020 15:46:01] TimeSource: Could not detect valid PTP time source at nvpps. Fallback to eth0
    [26-10-2020 15:46:01] TimeSource Eth: PTP ioctl returned error. Synchronized time will not be available from this timesource.
    [26-10-2020 15:46:01] TimeSource: Could not detect valid PTP time source at 'eth0'. Fallback to CLOCK_MONOTONIC.
    [26-10-2020 15:46:01] Initialize DriveWorks SDK v2.2.3136
    [26-10-2020 15:46:01] Release build with GNU 7.3.1 from heads/buildbrain-branch-0-gca7b4b26e65 against Drive PDK v5.1.6.1
    [26-10-2020 15:46:01] Loading rig file: /home/nvidia/mfortova/rig2Processed.json
    onInitialize: creating camera.gmsl.master with params: config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed
    [26-10-2020 15:46:01] SensorFactory::createSensor() -> camera.gmsl.master, config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed
    libnvsipl_query.so: CNvMCameraModuleInfo.cpp : 76: ParseJson: Could not find matching serializer
    libnvsipl_query.so: CNvMDeviceInfoList.cpp : 100: GetCustomCameraModule: Failed to find matching module MAX96712TPG
    libnvsipl_query.so: CNvMDeviceBlockInfo.cpp : 156: ParseJson: Failed to find matching camera module
    libnvsipl_query.so: CNvMPlatformCfgInfo.cpp : 50: ParseJson: CNvMPlatformCfgInfo::ParseJson failed.
    libnvsipl_query.so: CNvMQuery.cpp : 45: ParsePlatformConfig: Failed to parse a PlatformCfg
    [26-10-2020 15:46:01] CameraGMSLMaster::parseDevBlock Getting device info list.
    [26-10-2020 15:46:01] devBlock: 0 Mode = master Interface = csi-a Camera_name = SF3324 Num = 2
    [26-10-2020 15:46:01] Camera Match Name: SF3324 Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705 linkIndex: 4294967295 serInfo.Name: MAX96705
    [26-10-2020 15:46:01] SIPLMaster::SIPLMaster: Setting up master camera
    [26-10-2020 15:46:01] Platform: devBlockInit
    [26-10-2020 15:46:01] Platform Config: devBlockInit
    [26-10-2020 15:46:01] Description: Configuration set by Device Block arguments: config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed

[26-10-2020 15:46:01] Number of device blocks: 1
[26-10-2020 15:46:01] Device Block : 0
[26-10-2020 15:46:01] csiPort: 0
[26-10-2020 15:46:01] i2cDevice: 0
[26-10-2020 15:46:01] Deserializer Name: MAX96712
[26-10-2020 15:46:01] Deserializer Description: Maxim 96712 Aggregator
[26-10-2020 15:46:01] Deserializer i2cAddress: 41
[26-10-2020 15:46:01] Simulator Mode: 0
[26-10-2020 15:46:01] Slave Mode: 0
[26-10-2020 15:46:01] Phy Mode: 0
[26-10-2020 15:46:01] Number of camera modules: 2
[26-10-2020 15:46:01] CameraModule index: 0
[26-10-2020 15:46:01] Name :SF3324
[26-10-2020 15:46:01] Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705
[26-10-2020 15:46:01] Serializer name: MAX96705
[26-10-2020 15:46:01] Serializer description: Maxim 96705 Serializer
[26-10-2020 15:46:01] Serializer i2cAdress: 64
[26-10-2020 15:46:01] Number of EEPROMs: 0
[26-10-2020 15:46:01] Number of Sensors: 1
[26-10-2020 15:46:01] Sensor index: 0
[26-10-2020 15:46:01] Sensor ID: 0
[26-10-2020 15:46:01] Sensor name: AR0231
[26-10-2020 15:46:01] Sensor description: OnSemi AR0231 Sensor
[26-10-2020 15:46:01] Sensor i2cAddress: 16
[26-10-2020 15:46:01] Sensor isTPGEnabled: 0
[26-10-2020 15:46:01] Sensor isTriggerMode: 1
[26-10-2020 15:46:01] Sensor Number of Virt. Chan.: 0
[26-10-2020 15:46:01] Virt. Chan. Index: 0
[26-10-2020 15:46:01] cfa: 35
[26-10-2020 15:46:01] embeddedTopLines: 24
[26-10-2020 15:46:01] embeddedBottomLines: 4
[26-10-2020 15:46:01] inputFormat: raw12
[26-10-2020 15:46:01] height: 1208
[26-10-2020 15:46:01] width: 1920
[26-10-2020 15:46:01] fps: 30.0000000
[26-10-2020 15:46:01] Embedded Data: 0
[26-10-2020 15:46:01] CameraModule index: 1
[26-10-2020 15:46:01] Name :SF3324
[26-10-2020 15:46:01] Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705
[26-10-2020 15:46:01] Serializer name: MAX96705
[26-10-2020 15:46:01] Serializer description: Maxim 96705 Serializer
[26-10-2020 15:46:01] Serializer i2cAdress: 64
[26-10-2020 15:46:01] Number of EEPROMs: 0
[26-10-2020 15:46:01] Number of Sensors: 1
[26-10-2020 15:46:01] Sensor index: 0
[26-10-2020 15:46:01] Sensor ID: 1
[26-10-2020 15:46:01] Sensor name: AR0231
[26-10-2020 15:46:01] Sensor description: OnSemi AR0231 Sensor
[26-10-2020 15:46:01] Sensor i2cAddress: 16
[26-10-2020 15:46:01] Sensor isTPGEnabled: 0
[26-10-2020 15:46:01] Sensor isTriggerMode: 1
[26-10-2020 15:46:01] Sensor Number of Virt. Chan.: 0
[26-10-2020 15:46:01] Virt. Chan. Index: 0
[26-10-2020 15:46:01] cfa: 35
[26-10-2020 15:46:01] embeddedTopLines: 24
[26-10-2020 15:46:01] embeddedBottomLines: 4
[26-10-2020 15:46:01] inputFormat: raw12
[26-10-2020 15:46:01] height: 1208
[26-10-2020 15:46:01] width: 1920
[26-10-2020 15:46:01] fps: 30.0000000
[26-10-2020 15:46:01] Embedded Data: 0

[26-10-2020 15:46:01] CameraGMSLMaster::create: Enabling pipeline notifications
[26-10-2020 15:46:01] SIPLMaster:: EnableNotifyer for 2 pipes.
[26-10-2020 15:46:01] CameraGMSLMaster::setOutputDescription Setting output consumer descriptors for sensor: Sensor0HW_ISP0NvMediaImage uIndex: 0 OutputType: 1
[26-10-2020 15:46:01] CameraGMSLMaster::setOutputDescription Setting output consumer descriptors for sensor: Sensor1HW_ISP0NvMediaImage uIndex: 1 OutputType: 1
[26-10-2020 15:46:01] CameraGMSLMaster:: Initliazing master camera
nvmedia isc: GetCameraPowerControlLevel: 936: Camera power control library: NVCCP
MAX96712: Revision 2 detected
MAX96712: Enable periodic AEQ on Link 0
MAX96705: Pre-emphasis set to 0xaa
MAX96705: Revision 1 detected!
Sensor AR0231 RCCB Rev7 detected!
nvmedia: ERROR: MAX96712: Link 1: GMSL1 config link lock not detected(100)
libnvsipl_devblk.so: CNvMTransportLink_Max96712_96705.cpp: 258: SetupConfigLink: NvMediaISCCheckLink(ISC_MAX96712_GMSL1_CONFIG_LINK_LOCK) failed! with NvMedia error: 7
libnvsipl_devblk.so: CNvMTransportLink_Max96712_96705.cpp: 372: Init: SetupConfigLink failed! with error: 7f
libnvsipl_devblk.so: CNvMMAX96712CameraModule.cpp: 42: Init: TransportLink Init failed! with error: 7f
libnvsipl_devblk.so: CNvMDeviceBlock.cpp: 179: Init: Init failed for module on link = 1
libnvsipl.so: CNvMDeviceBlockMgr.hpp: 90: ThreadFunc: ThreadCreate failed. (7f)
libnvsipl.so: CNvMDeviceBlockMgr.cpp: 83: Init: Failed to initialize device block:0
libnvsipl.so: CNvMCamera.cpp: 169: Init: CNvMCamera::Init failed! with error: 7f
libnvsipl_devblk.so: CNvMDeviceBlock.cpp: 226: Stop: CNvMDeviceBlock has not been started
libnvsipl.so: CNvMDeviceBlockMgr.cpp: 132: Stop: Deviceblock fails to stop
libnvsipl.so: CNvMCamera.cpp: 259: Stop: m_upDeviceBlockMgr fails to stop
[26-10-2020 15:46:03] Driveworks exception thrown: DW_INTERNAL_ERROR: CameraGMSLMaster: Failed to initialize master camera! SIPL errror code = 127
terminate called after throwing an instance of 'std::runtime_error'
  what():  [2020-10-26 15:46:03] DW Error DW_INTERNAL_ERROR executing DW function:
 dwSAL_createSensor(&m_cameraMaster, paramsMaster, m_sal)
 at /dvs/git/dirty/gitlab-master_av/dw/sdk/samples/sensors/camera/camera_gmsl_custom/main.cpp:136
Aborted (core dumped)
nvidia@tegra-ubuntu:/usr/local/driveworks-2.2/bin$

OUTPUT OF nvsipl_camera: with --link-enable-masks "0x0011 0x0000 0x0000 0x0000"

nvidia@tegra-ubuntu:~/mfortova$ ./nvsipl_camera -c "SF3324_DPHY_x2" --link-enable-masks "0x0011 0x0000 0x0000 0x0000" --showfps -d 0 -w 1 --verbosity 2
libnvsipl_query.so: CNvMCameraModuleInfo.cpp : 76: ParseJson: Could not find matching serializer
libnvsipl_query.so: CNvMDeviceInfoList.cpp : 100: GetCustomCameraModule: Failed to find matching module MAX96712TPG
libnvsipl_query.so: CNvMDeviceBlockInfo.cpp : 156: ParseJson: Failed to find matching camera module
libnvsipl_query.so: CNvMPlatformCfgInfo.cpp : 50: ParseJson: CNvMPlatformCfgInfo::ParseJson failed.
libnvsipl_query.so: CNvMQuery.cpp : 45: ParsePlatformConfig: Failed to parse a PlatformCfg
nvmedia isc: GetCameraPowerControlLevel: 936: Camera power control library: NVCCP
MAX96712: Revision 2 detected
MAX96712: Enable periodic AEQ on Link 0
MAX96705: Pre-emphasis set to 0xaa
nvmedia: ERROR: MAX96712: Link 1: GMSL1 config link lock not detected(100)
libnvsipl_devblk.so: CNvMTransportLink_Max96712_96705.cpp: 258: SetupConfigLink: NvMediaISCCheckLink(ISC_MAX96712_GMSL1_CONFIG_LINK_LOCK) failed! with NvMedia error: 7
libnvsipl_devblk.so: CNvMTransportLink_Max96712_96705.cpp: 372: Init: SetupConfigLink failed! with error: 7f
libnvsipl_devblk.so: CNvMMAX96712CameraModule.cpp: 42: Init: TransportLink Init failed! with error: 7f
libnvsipl_devblk.so: CNvMDeviceBlock.cpp: 179: Init: Init failed for module on link = 0
libnvsipl.so: CNvMDeviceBlockMgr.hpp: 90: ThreadFunc: ThreadCreate failed. (7f)
libnvsipl.so: CNvMDeviceBlockMgr.cpp: 83: Init: Failed to initialize device block:0
libnvsipl.so: CNvMCamera.cpp: 169: Init: CNvMCamera::Init failed! with error: 7f
nvsipl_camera: ERROR: Master initialization failed. status: 127

libnvsipl_devblk.so: CNvMDeviceBlock.cpp: 226: Stop: CNvMDeviceBlock has not been started
libnvsipl.so: CNvMDeviceBlockMgr.cpp: 132: Stop: Deviceblock fails to stop
libnvsipl.so: CNvMCamera.cpp: 259: Stop: m_upDeviceBlockMgr fails to stop
nvidia@tegra-ubuntu:~/mfortova$

I can run sample_camera_gmsl_custom with your rig file (cameras on A0 and A1). Below is the defails. FYI.

$ /usr/local/driveworks/bin/sample_camera_gmsl_custom --offscreen=2 --rig=rig2Processed.json
WindowEGL: find EGL devices
WindowEGL: found 2 EGL devices
WindowEGL: init EGL with GLES3 context
WindowEGL: bind OpenGLES3 API
WindowEGL: offscreen mode -> use EGL PBuffer surface 1280x800
WindowEGL: create EGL context
WindowEGL: assign EGL context to current thread
[21-09-2019 01:28:47] Platform: Detected DDPX - Tegra A
[21-09-2019 01:28:47] TimeSource: monotonic epoch time offset is 1569027511498095
[21-09-2019 01:28:47] PTP Time is available from NVPPS Driver
[21-09-2019 01:28:47] Platform: number of GPU devices detected 2
[21-09-2019 01:28:47] Platform: currently selected GPU device discrete ID 0
[21-09-2019 01:28:47] SDK: Resource failed to mount from '.././data/': VirtualFileSystem: Failed to mount '.././data/[.pak]'
[21-09-2019 01:28:47] SDK: Resources mounted from /usr/local/driveworks-2.2/data/
[21-09-2019 01:28:47] SDK: Create NvMediaDevice
[21-09-2019 01:28:47] SDK: use EGL display as provided
[21-09-2019 01:28:47] TimeSource: monotonic epoch time offset is 1569027511498096
[21-09-2019 01:28:47] PTP Time is available from NVPPS Driver
[21-09-2019 01:28:47] Initialize DriveWorks SDK v2.2.3136
[21-09-2019 01:28:47] Release build with GNU 7.3.1 from heads/buildbrain-branch-0-gca7b4b26e65 against Drive PDK v5.1.6.1
[21-09-2019 01:28:47] Loading rig file: rig2Processed.json
onInitialize: creating camera.gmsl.master with params: config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed
[21-09-2019 01:28:47] SensorFactory::createSensor() -> camera.gmsl.master, config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed
libnvsipl_query.so: CNvMCameraModuleInfo.cpp : 76: ParseJson: Could not find matching serializer
libnvsipl_query.so: CNvMDeviceInfoList.cpp : 100: GetCustomCameraModule: Failed to find matching module MAX96712TPG
libnvsipl_query.so: CNvMDeviceBlockInfo.cpp : 156: ParseJson: Failed to find matching camera module
libnvsipl_query.so: CNvMPlatformCfgInfo.cpp : 50: ParseJson: CNvMPlatformCfgInfo::ParseJson failed.
libnvsipl_query.so: CNvMQuery.cpp : 45: ParsePlatformConfig: Failed to parse a PlatformCfg
[21-09-2019 01:28:47] CameraGMSLMaster::parseDevBlock Getting device info list.
[21-09-2019 01:28:47] devBlock: 0 Mode = master Interface = csi-a Camera_name = SF3324 Num = 2
[21-09-2019 01:28:47] Camera Match Name: SF3324 Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705 linkIndex: 4294967295 serInfo.Name: MAX96705
[21-09-2019 01:28:47] SIPLMaster::SIPLMaster: Setting up master camera
[21-09-2019 01:28:47] Platform: devBlockInit
[21-09-2019 01:28:47] Platform Config: devBlockInit
[21-09-2019 01:28:47] Description: Configuration set by Device Block arguments: config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed
[21-09-2019 01:28:47] Number of device blocks: 1
[21-09-2019 01:28:47] Device Block : 0
[21-09-2019 01:28:47]   csiPort: 0
[21-09-2019 01:28:47]   i2cDevice: 0
[21-09-2019 01:28:47]   Deserializer Name: MAX96712
[21-09-2019 01:28:47]   Deserializer Description: Maxim 96712 Aggregator
[21-09-2019 01:28:47]   Deserializer i2cAddress: 41
[21-09-2019 01:28:47]   Simulator Mode: 0
[21-09-2019 01:28:47]   Slave Mode: 0
[21-09-2019 01:28:47]   Phy Mode: 0
[21-09-2019 01:28:47]   Number of camera modules: 2
[21-09-2019 01:28:47]   CameraModule index: 0
[21-09-2019 01:28:47]           Name :SF3324
[21-09-2019 01:28:47]           Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705
[21-09-2019 01:28:47]           Serializer name: MAX96705
[21-09-2019 01:28:47]           Serializer description: Maxim 96705 Serializer
[21-09-2019 01:28:47]           Serializer i2cAdress: 64
[21-09-2019 01:28:47]           Number of EEPROMs: 0
[21-09-2019 01:28:47]           Number of Sensors: 1
[21-09-2019 01:28:47]           Sensor index: 0
[21-09-2019 01:28:47]                   Sensor ID: 0
[21-09-2019 01:28:47]                   Sensor name: AR0231
[21-09-2019 01:28:47]                   Sensor description: OnSemi AR0231 Sensor
[21-09-2019 01:28:47]                   Sensor i2cAddress: 16
[21-09-2019 01:28:47]                   Sensor isTPGEnabled: 0
[21-09-2019 01:28:47]                   Sensor isTriggerMode: 1
[21-09-2019 01:28:47]                   Sensor Number of Virt. Chan.: 0
[21-09-2019 01:28:47]                   Virt. Chan. Index: 0
[21-09-2019 01:28:47]                            cfa: 35
[21-09-2019 01:28:47]                            embeddedTopLines: 24
[21-09-2019 01:28:47]                            embeddedBottomLines: 4
[21-09-2019 01:28:47]                            inputFormat: raw12
[21-09-2019 01:28:47]                            height: 1208
[21-09-2019 01:28:47]                            width: 1920
[21-09-2019 01:28:47]                            fps: 30.0000000
[21-09-2019 01:28:47]                            Embedded Data: 0
[21-09-2019 01:28:47]   CameraModule index: 1
[21-09-2019 01:28:47]           Name :SF3324
[21-09-2019 01:28:47]           Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705
[21-09-2019 01:28:47]           Serializer name: MAX96705
[21-09-2019 01:28:47]           Serializer description: Maxim 96705 Serializer
[21-09-2019 01:28:47]           Serializer i2cAdress: 64
[21-09-2019 01:28:47]           Number of EEPROMs: 0
[21-09-2019 01:28:47]           Number of Sensors: 1
[21-09-2019 01:28:47]           Sensor index: 0
[21-09-2019 01:28:47]                   Sensor ID: 1
[21-09-2019 01:28:47]                   Sensor name: AR0231
[21-09-2019 01:28:47]                   Sensor description: OnSemi AR0231 Sensor
[21-09-2019 01:28:47]                   Sensor i2cAddress: 16
[21-09-2019 01:28:47]                   Sensor isTPGEnabled: 0
[21-09-2019 01:28:47]                   Sensor isTriggerMode: 1
[21-09-2019 01:28:47]                   Sensor Number of Virt. Chan.: 0
[21-09-2019 01:28:47]                   Virt. Chan. Index: 0
[21-09-2019 01:28:47]                            cfa: 35
[21-09-2019 01:28:47]                            embeddedTopLines: 24
[21-09-2019 01:28:47]                            embeddedBottomLines: 4
[21-09-2019 01:28:47]                            inputFormat: raw12
[21-09-2019 01:28:47]                            height: 1208
[21-09-2019 01:28:47]                            width: 1920
[21-09-2019 01:28:47]                            fps: 30.0000000
[21-09-2019 01:28:47]                            Embedded Data: 0
[21-09-2019 01:28:47] CameraGMSLMaster::create: Enabling pipeline notifications
[21-09-2019 01:28:47] SIPLMaster:: EnableNotifyer for 2 pipes.
[21-09-2019 01:28:47] CameraGMSLMaster::setOutputDescription Setting output consumer descriptors for sensor: Sensor0HW_ISP0NvMediaImage uIndex: 0 OutputType: 1
[21-09-2019 01:28:47] CameraGMSLMaster::setOutputDescription Setting output consumer descriptors for sensor: Sensor1HW_ISP0NvMediaImage uIndex: 1 OutputType: 1
[21-09-2019 01:28:47] CameraGMSLMaster:: Initliazing master camera
nvmedia isc: GetCameraPowerControlLevel: 936: Camera power control library: NVCCP
MAX96712: Revision 2 detected
MAX96712: Enable periodic AEQ on Link 0
MAX96705: Pre-emphasis set to 0xaa
MAX96705: Revision 1 detected!
Sensor AR0231 RCCB Rev7 detected!
MAX96712: Enable periodic AEQ on Link 1
MAX96705: Pre-emphasis set to 0xaa
MAX96705: Revision 1 detected!
Sensor AR0231 RCCB Rev7 detected!
onInitialize: creating camera.gmsl.client with params: output-format=processed,camera-id=0
[21-09-2019 01:28:49] SensorFactory::createSensor() -> camera.gmsl.client, output-format=processed,camera-id=0
[21-09-2019 01:28:49] Master::GetClientDesc uIndex: 0 OutputType: 1
[21-09-2019 01:28:49] CameraGMSLClient: Initializing NvMediaImage client for Sensor0HW_ISP0NvMediaImage
onInitialize: creating camera.gmsl.client with params: output-format=processed,camera-id=1
[21-09-2019 01:28:49] SensorFactory::createSensor() -> camera.gmsl.client, output-format=processed,camera-id=1
[21-09-2019 01:28:49] Master::GetClientDesc uIndex: 1 OutputType: 1
[21-09-2019 01:28:49] CameraGMSLClient: Initializing NvMediaImage client for Sensor1HW_ISP0NvMediaImage
[21-09-2019 01:28:49] Initialize DriveWorks VisualizationSDK v2.2.3136
[21-09-2019 01:28:49] Initialize DriveWorksGL SDK v2.2.3136
onInitialize: Total cameras 2
onInitialize: getting image props 0
onInitialize: initilizing stream: 0
[21-09-2019 01:28:49] StreamConsumerGL: successfully initialized
onInitialize: creating image: 0
onInitialize: getting image props 1
onInitialize: initilizing stream: 1
[21-09-2019 01:28:49] StreamConsumerGL: successfully initialized
onInitialize: creating image: 1
Main: Starting master.
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
...
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Acquisition started
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Acquisition started
[21-09-2019 01:28:49] CameraGMSLClient: Processed output not ready
[21-09-2019 01:28:49] CameraGMSLClient: Read processed complete
...

@VickNV, @FabianWeise,
I’m still struggling on the issue. Checked the cameras - they are connected on the right way.

I have noticed the error, that I cannot find on the forum: in fact the “Timesource Nvpss

TimeSource Nvpss : PTP ioctl returned error. Synchronized time will not be available from this timesource.

Can it be the time sync issue between cameras, so that one camera can run and more at one time not?

I ran the command (/usr/local/driveworks/bin/sample_camera_gmsl_custom --offscreen=2 --rig=rig2Processed.json) on a target system without camera connected and got a similar result as you (but “Link 0”). Please run with single camera FAKRA connection and check if both work. Thanks!

nvidia@tegra-ubuntu:~$ /usr/local/driveworks/bin/sample_camera_gmsl_custom --offscreen=2 --rig=rig2Processed.json
WindowEGL: find EGL devices
WindowEGL: found 1 EGL devices
WindowEGL: init EGL with GLES3 context
WindowEGL: bind OpenGLES3 API
WindowEGL: offscreen mode -> use EGL PBuffer surface 1280x800
WindowEGL: create EGL context
WindowEGL: assign EGL context to current thread
[28-10-2020 13:31:03] Platform: Detected DDPX - Tegra A
[28-10-2020 13:31:03] TimeSource: monotonic epoch time offset is 1603757363172042
[28-10-2020 13:31:03] PTP Time is available from NVPPS Driver
[28-10-2020 13:31:03] Platform: number of GPU devices detected 1
[28-10-2020 13:31:03] Platform: currently selected GPU device integrated ID 0
[28-10-2020 13:31:03] SDK: Resource failed to mount from '.././data/': VirtualFileSystem: Failed to mount '.././data/[.pak]'
[28-10-2020 13:31:03] SDK: Resources mounted from /usr/local/driveworks-2.2/data/
[28-10-2020 13:31:03] SDK: Create NvMediaDevice
[28-10-2020 13:31:03] SDK: use EGL display as provided
[28-10-2020 13:31:03] TimeSource: monotonic epoch time offset is 1603757363172042
[28-10-2020 13:31:03] PTP Time is available from NVPPS Driver
[28-10-2020 13:31:03] Initialize DriveWorks SDK v2.2.3136
[28-10-2020 13:31:03] Release build with GNU 7.3.1 from heads/buildbrain-branch-0-gca7b4b26e65 against Drive PDK v5.1.6.1
[28-10-2020 13:31:03] Loading rig file: rig2Processed.json
onInitialize: creating camera.gmsl.master with params: config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed
[28-10-2020 13:31:03] SensorFactory::createSensor() -> camera.gmsl.master, config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed
libnvsipl_query.so: CNvMCameraModuleInfo.cpp : 76: ParseJson: Could not find matching serializer
libnvsipl_query.so: CNvMDeviceInfoList.cpp : 100: GetCustomCameraModule: Failed to find matching module MAX96712TPG
libnvsipl_query.so: CNvMDeviceBlockInfo.cpp : 156: ParseJson: Failed to find matching camera module
libnvsipl_query.so: CNvMPlatformCfgInfo.cpp : 50: ParseJson: CNvMPlatformCfgInfo::ParseJson failed.
libnvsipl_query.so: CNvMQuery.cpp : 45: ParsePlatformConfig: Failed to parse a PlatformCfg
[28-10-2020 13:31:03] CameraGMSLMaster::parseDevBlock Getting device info list.
[28-10-2020 13:31:03] devBlock: 0 Mode = master Interface = csi-a Camera_name = SF3324 Num = 2
[28-10-2020 13:31:03] Camera Match Name: SF3324 Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705 linkIndex: 4294967295 serInfo.Name: MAX96705
[28-10-2020 13:31:03] SIPLMaster::SIPLMaster: Setting up master camera
[28-10-2020 13:31:03] Platform: devBlockInit
[28-10-2020 13:31:03] Platform Config: devBlockInit
[28-10-2020 13:31:03] Description: Configuration set by Device Block arguments: config-type=devBlock,configuration={MODE:master|INTERFACE:csi-a|CAMERA_NAME:SF3324|NUM:2},output-format=processed
[28-10-2020 13:31:03] Number of device blocks: 1
[28-10-2020 13:31:03] Device Block : 0
[28-10-2020 13:31:03]   csiPort: 0
[28-10-2020 13:31:03]   i2cDevice: 0
[28-10-2020 13:31:03]   Deserializer Name: MAX96712
[28-10-2020 13:31:03]   Deserializer Description: Maxim 96712 Aggregator
[28-10-2020 13:31:03]   Deserializer i2cAddress: 41
[28-10-2020 13:31:03]   Simulator Mode: 0
[28-10-2020 13:31:03]   Slave Mode: 0
[28-10-2020 13:31:03]   Phy Mode: 0
[28-10-2020 13:31:03]   Number of camera modules: 2
[28-10-2020 13:31:03]   CameraModule index: 0
[28-10-2020 13:31:03]           Name :SF3324
[28-10-2020 13:31:03]           Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705
[28-10-2020 13:31:03]           Serializer name: MAX96705
[28-10-2020 13:31:03]           Serializer description: Maxim 96705 Serializer
[28-10-2020 13:31:03]           Serializer i2cAdress: 64
[28-10-2020 13:31:03]           Number of EEPROMs: 0
[28-10-2020 13:31:03]           Number of Sensors: 1
[28-10-2020 13:31:03]           Sensor index: 0
[28-10-2020 13:31:03]                   Sensor ID: 0
[28-10-2020 13:31:03]                   Sensor name: AR0231
[28-10-2020 13:31:03]                   Sensor description: OnSemi AR0231 Sensor
[28-10-2020 13:31:03]                   Sensor i2cAddress: 16
[28-10-2020 13:31:03]                   Sensor isTPGEnabled: 0
[28-10-2020 13:31:03]                   Sensor isTriggerMode: 1
[28-10-2020 13:31:03]                   Sensor Number of Virt. Chan.: 0
[28-10-2020 13:31:03]                   Virt. Chan. Index: 0
[28-10-2020 13:31:03]                            cfa: 35
[28-10-2020 13:31:03]                            embeddedTopLines: 24
[28-10-2020 13:31:03]                            embeddedBottomLines: 4
[28-10-2020 13:31:03]                            inputFormat: raw12
[28-10-2020 13:31:03]                            height: 1208
[28-10-2020 13:31:03]                            width: 1920
[28-10-2020 13:31:03]                            fps: 30.0000000
[28-10-2020 13:31:03]                            Embedded Data: 0
[28-10-2020 13:31:03]   CameraModule index: 1
[28-10-2020 13:31:03]           Name :SF3324
[28-10-2020 13:31:03]           Description: Sekonix SF3324 module - 120-deg FOV, DVP AR0231-RCCB, MAX96705
[28-10-2020 13:31:03]           Serializer name: MAX96705
[28-10-2020 13:31:03]           Serializer description: Maxim 96705 Serializer
[28-10-2020 13:31:03]           Serializer i2cAdress: 64
[28-10-2020 13:31:03]           Number of EEPROMs: 0
[28-10-2020 13:31:03]           Number of Sensors: 1
[28-10-2020 13:31:03]           Sensor index: 0
[28-10-2020 13:31:03]                   Sensor ID: 1
[28-10-2020 13:31:03]                   Sensor name: AR0231
[28-10-2020 13:31:03]                   Sensor description: OnSemi AR0231 Sensor
[28-10-2020 13:31:03]                   Sensor i2cAddress: 16
[28-10-2020 13:31:03]                   Sensor isTPGEnabled: 0
[28-10-2020 13:31:03]                   Sensor isTriggerMode: 1
[28-10-2020 13:31:03]                   Sensor Number of Virt. Chan.: 0
[28-10-2020 13:31:03]                   Virt. Chan. Index: 0
[28-10-2020 13:31:03]                            cfa: 35
[28-10-2020 13:31:03]                            embeddedTopLines: 24
[28-10-2020 13:31:03]                            embeddedBottomLines: 4
[28-10-2020 13:31:03]                            inputFormat: raw12
[28-10-2020 13:31:03]                            height: 1208
[28-10-2020 13:31:03]                            width: 1920
[28-10-2020 13:31:03]                            fps: 30.0000000
[28-10-2020 13:31:03]                            Embedded Data: 0
[28-10-2020 13:31:03] CameraGMSLMaster::create: Enabling pipeline notifications
[28-10-2020 13:31:03] SIPLMaster:: EnableNotifyer for 2 pipes.
[28-10-2020 13:31:03] CameraGMSLMaster::setOutputDescription Setting output consumer descriptors for sensor: Sensor0HW_ISP0NvMediaImage uIndex: 0 OutputType: 1
[28-10-2020 13:31:03] CameraGMSLMaster::setOutputDescription Setting output consumer descriptors for sensor: Sensor1HW_ISP0NvMediaImage uIndex: 1 OutputType: 1
[28-10-2020 13:31:03] CameraGMSLMaster:: Initliazing master camera
nvmedia isc: GetCameraPowerControlLevel: 936: Camera power control library: NVCCP
MAX96712: Revision 2 detected
nvmedia: ERROR: MAX96712: Link 0: GMSL1 config link lock not detected(100)
libnvsipl_devblk.so: CNvMTransportLink_Max96712_96705.cpp: 258: SetupConfigLink: NvMediaISCCheckLink(ISC_MAX96712_GMSL1_CONFIG_LINK_LOCK) failed! with NvMedia error: 7
libnvsipl_devblk.so: CNvMTransportLink_Max96712_96705.cpp: 372: Init: SetupConfigLink failed! with error: 7f
libnvsipl_devblk.so: CNvMMAX96712CameraModule.cpp: 42: Init: TransportLink Init failed! with error: 7f
libnvsipl_devblk.so: CNvMDeviceBlock.cpp: 179: Init: Init failed for module on link = 0
libnvsipl.so: CNvMDeviceBlockMgr.hpp: 90: ThreadFunc: ThreadCreate failed. (7f)
libnvsipl.so: CNvMDeviceBlockMgr.cpp: 83: Init: Failed to initialize device block:0
libnvsipl.so: CNvMCamera.cpp: 169: Init: CNvMCamera::Init failed! with error: 7f
libnvsipl_devblk.so: CNvMDeviceBlock.cpp: 226: Stop: CNvMDeviceBlock has not been started
libnvsipl.so: CNvMDeviceBlockMgr.cpp: 132: Stop: Deviceblock fails to stop
libnvsipl.so: CNvMCamera.cpp: 259: Stop: m_upDeviceBlockMgr fails to stop
[28-10-2020 13:31:04] Driveworks exception thrown: DW_INTERNAL_ERROR: CameraGMSLMaster: Failed to initialize master camera! SIPL errror code = 127

terminate called after throwing an instance of 'std::runtime_error'
  what():  [2020-10-28 13:31:04] DW Error DW_INTERNAL_ERROR executing DW function:
 dwSAL_createSensor(&m_cameraMaster, paramsMaster, m_sal)
 at /dvs/git/dirty/gitlab-master_av/dw/sdk/samples/sensors/camera/camera_gmsl_custom/main.cpp:136
Aborted (core dumped)
nvidia@tegra-ubuntu:~$