examples/eth-config/README.md
This example demonstrates how to use the rs2::eth_config_device class to read and modify Ethernet configuration settings on RealSense devices that support Ethernet connectivity.
The example shows how to:
./rs-eth-config
RealSense Ethernet Configuration Example
=========================================
Found Ethernet-capable device:
Name: Intel RealSense D555
Serial: 333422302656
FW Version: 7.56.19918.835
=== Current Ethernet Configuration ===
Link Speed: 1000 Mbps
Link Priority: Dynamic Eth First
Link Timeout: 4000 milliseconds
IP Address: 192.168.11.55 (actual: 192.168.11.55)
Network Mask: 255.255.255.0 (actual: 255.255.255.0)
Gateway: 192.168.11.1 (actual: 192.168.11.1)
DHCP Enabled: No
DHCP Timeout: 30 seconds
MTU: 9000 bytes
TX Delay: 0 microseconds
=== Demonstrating Configuration Changes ===
Demonstrating link priority change...
Setting link priority to Eth First
Link priority changed from Dynamic Eth First to Eth First
Demonstrating DHCP timeout change...
Setting DHCP timeout to 60 seconds
DHCP timeout changed from 30 to 60 seconds
Restoring original configuration...
Configuration restored to original values
rs-dds-config tool.supports_eth_config())print_ethernet_config(): Displays current configuration including link speed and configured vs actual IP valuesdemonstrate_config_changes(): Shows how to modify selected settings safelylink_priority_to_string(): Converts enum to readable stringformat_ip_address(): Formats IP addresses for display, handles invalid addressesprint_link_speed(): Reads and displays current link speed