From 5a5089be7d183359dd689f457533aef519f57435 Mon Sep 17 00:00:00 2001 From: Remi Bettan Date: Tue, 17 Dec 2024 14:44:21 +0200 Subject: [PATCH 1/2] added values for gmsl and dds --- src/dds/rs-dds-device-proxy.cpp | 1 + src/ds/d400/d400-device.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/dds/rs-dds-device-proxy.cpp b/src/dds/rs-dds-device-proxy.cpp index bc01659712..cf4d7a60dc 100644 --- a/src/dds/rs-dds-device-proxy.cpp +++ b/src/dds/rs-dds-device-proxy.cpp @@ -170,6 +170,7 @@ dds_device_proxy::dds_device_proxy( std::shared_ptr< const device_info > const & if( j.nested( "product-line" ).get_ex( str ) ) register_info( RS2_CAMERA_INFO_PRODUCT_LINE, str ); register_info( RS2_CAMERA_INFO_CAMERA_LOCKED, j.nested( "locked" ).default_value( true ) ? "YES" : "NO" ); + register_info( RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR, "DDS" ); // Assumes dds_device initialization finished struct sensor_info diff --git a/src/ds/d400/d400-device.cpp b/src/ds/d400/d400-device.cpp index fe61a97678..23862b783e 100644 --- a/src/ds/d400/d400-device.cpp +++ b/src/ds/d400/d400-device.cpp @@ -965,6 +965,8 @@ namespace librealsense if (usb_modality) register_info(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR, usb_type_str); + else + register_info(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR, "GMSL"); std::string curr_version= _fw_version; From 46fe0d1367f07386247b6330d5e0195f714321d0 Mon Sep 17 00:00:00 2001 From: Remi Bettan Date: Tue, 17 Dec 2024 15:15:06 +0200 Subject: [PATCH 2/2] API name added for connection type --- include/librealsense2/h/rs_sensor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/librealsense2/h/rs_sensor.h b/include/librealsense2/h/rs_sensor.h index e766eadb9a..0f65f032af 100644 --- a/include/librealsense2/h/rs_sensor.h +++ b/include/librealsense2/h/rs_sensor.h @@ -30,6 +30,7 @@ typedef enum rs2_camera_info { RS2_CAMERA_INFO_PRODUCT_ID , /**< Product ID as reported in the USB descriptor */ RS2_CAMERA_INFO_CAMERA_LOCKED , /**< True iff EEPROM is locked */ RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR , /**< Designated USB specification: USB2/USB3 */ + RS2_CAMERA_INFO_CONNECTION_TYPE = RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR, /**< Other name for the USB connection type, adapted for non-usb connections */ RS2_CAMERA_INFO_PRODUCT_LINE , /**< Device product line D400, etc. */ RS2_CAMERA_INFO_ASIC_SERIAL_NUMBER , /**< ASIC serial number */ RS2_CAMERA_INFO_FIRMWARE_UPDATE_ID , /**< Firmware update ID */