How to run camera_server from driveworks with IMX390?

Please provide the following info:
Hardware Platform: DRIVE AGX Xavier™ Developer Kit
Software Version: DRIVE Software 10
Host Machine Version: native Ubuntu 18.04
SDK Manager Version: 1.0.1.5538

Hi all,

We are working with a Drive AGX Board and some Sony IMX390 sensors.
Currently, we are looking for a server implementation that provides nvmedia buffers to some processes so, we found this camera_server application from driveworks that does what we need but we are unable to launch it properly.

This is the camera_server’s documentation
https://docs.nvidia.com/drive/driveworks-3.0/sensor_distribution_tool.html

In that page, there is only information about the Sekonix sensor, how can we use the camera_server with other sensors?

This is the error log:

 /usr/local/driveworks/tools/sensors/camera_server --offscreen=1 --params camera-type=i390,camera-group=a,camera-count=1,fifo-size=12,output-format=yuv+raw
[22-09-2019 12:30:56] Platform: Detected DDPX - Tegra A
[22-09-2019 12:30:56] TimeSource: monotonic epoch time offset is 1569027511525122
[22-09-2019 12:30:56] PTP Time is available from NVPPS Driver
[22-09-2019 12:30:56] Platform: number of GPU devices detected 1
[22-09-2019 12:30:56] Platform: currently selected GPU device integrated ID 0
[22-09-2019 12:30:56] SDK: Resources mounted from /usr/local/driveworks-2.2/data/
[22-09-2019 12:30:56] SDK: Create NvMediaDevice
[22-09-2019 12:30:56] egl::Display: found 1 EGL devices
[22-09-2019 12:30:56] egl::Display: use drm device: drm-nvdc
[22-09-2019 12:30:57] TimeSource: monotonic epoch time offset is 1569027511525121
[22-09-2019 12:30:57] PTP Time is available from NVPPS Driver
[22-09-2019 12:30:57] Initialize DriveWorks SDK v2.2.3136
[22-09-2019 12:30:57] Release build with GNU 7.3.1 from heads/buildbrain-branch-0-gca7b4b26e65 against Drive PDK v5.1.6.1
[22-09-2019 12:30:57] SensorFactory::createSensor() -> camera.gmsl, params
[22-09-2019 12:30:57] Driveworks exception thrown: DW_FAILURE: CameraType: fromName no suitable camera type found

terminate called after throwing an instance of 'std::runtime_error'
  what():  [2019-09-22 12:30:57] DW Error DW_FAILURE executing DW function:
 dwSAL_createSensor(&m_camera, sensorParams, m_sal)
 at /dvs/git/dirty/gitlab-master_av/dw/sdk/tools/camera_server/main.cpp:184
Aborted (core dumped)

We have tested others values in camera-type without luck, as example: imx390, imx390-rggb-bae-none, etc.

Is this application limited to be used with a Sekonix sensor?

Any information to run this application with a different sensor than a Sekonix will help us.

Regards.

Hi @greivin.fallas,

If you’re on DRIVE Software 10, you need to refer to its document and use the options of DriveWorks 2.2 (as below).

image

Hi @VickNV,

Thanks for your reply,
I tried your answer but the application displays “Unknown option” to the arguments that you mentioned, log:

nvidia@tegra-ubuntu /usr/local/driveworks/tools/sensors $ ./camera_server --camera-type=imx390-rggb-bae-none --camera-group=a --camera-count=1 --fifo-size=16 --output-format=yuv+raw --port=49252 --offscreen=2
Camera Server
–offscreen: default=0
Used for running windowed apps in headless mode. 0 = show window, 1 = offscreen window, 2 = no window created
–params: default=camera-type=ar0231-rccb-bae-sf3324,camera-group=a,camera-count=2,fifo-size=12,output-format=yuv+raw
–port: default=49252
–profiling: default=1
Enables/disables sample profiling
terminate called after throwing an instance of ‘std::runtime_error’
what(): Unknown option --camera-type --camera-group --camera-count --fifo-size --output-format

Aborted (core dumped)

Since we are trying to use an IMX390 sensor with this server, is there a way to show the supported devices from the application?

Just in case, this in the information from the “help” option:

nvidia@tegra-ubuntu /usr/local/driveworks/tools/sensors $ ./camera_server --help
Camera Server
–offscreen: default=0
Used for running windowed apps in headless mode. 0 = show window, 1 = offscreen window, 2 = no window created
–params: default=camera-type=ar0231-rccb-bae-sf3324,camera-group=a,camera-count=2,fifo-size=12,output-format=yuv+raw
–port: default=49252
–profiling: default=1
Enables/disables sample profiling

Any help to get this server application running will be really appreciated.

Greivin F.

I double checked the source code of camera_server and found the document in DriveWorks 2.2 needs to be updated.
Please just refer to the help description of command line. I guess it sould be “-params=” instead of "-params ".

According to DRIVE Ecosystem - Hardware and Software | NVIDIA Developer, you should contact Sony on IMX390. Have you checked with Sony to know how they run camera_server with the IMX390 module on DRIVE Software 10.0? Thanks!