Davis346 configuration with dv-processing in Python.

168 views
Skip to first unread message

Yuhan Bao

unread,
Apr 17, 2023, 2:06:10 AM4/17/23
to dv-users
Hi,
I am developing with Davis346 and Python dv-processing1.7, and I am curious how I can adjust the configuration of the davis camera via the Python API of dv-processing, such as the "packet container interval" property  and the "On /off bn" properties that can be adjusted in dv-gui.
I noticed that there are "deviceConfigSet“” and "deviceConfigGet" functions under the CameraCapture class, but the exact values of their parameters "moduleAddress" and "parameterAddress "are not clear. Is it possible to provide a table of the corresponding addresses of the adjustable parameters in dv-gui?
Best,
Yuhan.

Luca Longinotti

unread,
Apr 19, 2023, 5:03:13 PM4/19/23
to dv-u...@googlegroups.com
Correct, these functions are meant to configure any device settings, the module and parameter address are the ones from libcaer, so you can look up the codes here:
For the packet container interval, as you would do:

libcaerHandle.configSet(CAER_HOST_CONFIG_PACKETS, CAER_HOST_CONFIG_PACKETS_MAX_CONTAINER_INTERVAL, 1000);

In dv-processing that becomes:

deviceHandle.deviceConfigSet(CAER_HOST_CONFIG_PACKETS, CAER_HOST_CONFIG_PACKETS_MAX_CONTAINER_INTERVAL, 1000);

In the C++ code. In the Python code the libcaer defines are not imported, so you'll have to look up the codes in the libcaer C header files and just use the integers directly, like:

pythonDeviceHandle.deviceConfigSet(-3, 1, 1000)

Hope this helps, have a nice day!
-- 
Luca Longinotti (llongi)

Head of Embedded Platforms
iniVation AG - https://inivation.com/
Zurich, Switzerland
Office: +41 44 500 32 14
Reply all
Reply to author
Forward
0 new messages