zivid / zivid-cpp-samples

Code samples for the usage of a Zivid 3D camera in C++
BSD 3-Clause "New" or "Revised" License
21 stars 16 forks source link

Missing NetworkConfiguration.cpp #261

Closed tigercosmos closed 1 month ago

tigercosmos commented 1 month ago

According to the website, the example should be at "source/Camera/InfoUtilOther/NetworkConfiguration/NetworkConfiguration.cpp"

https://support.zivid.com/en/latest/api-reference/samples.html

image

cc @SatjaSivcev

tigercosmos commented 1 month ago

@SatjaSivcev is there a way to get the camera's connected network interface?

SatjaSivcev commented 1 month ago

Hi @tigercosmos, can you try now? Here is the link: https://github.com/zivid/zivid-cpp-samples/blob/master/source/Camera/InfoUtilOther/NetworkConfiguration/NetworkConfiguration.cpp

We will have another sample soon, called "SetNetworkConfigurationAutomatically" or something similar. You as a user will provide the IP address of your network interface (PCI card or adapter) and subnet mask of your network, and the program will automatically configure all cameras it finds on the network to be in the same subnet.

tigercosmos commented 1 month ago

@SatjaSivcev Is there a way to get the connected interface IP? Think about there are many LAN ports on a machine, and I just randomly plug in the device to any of them. Therefore, it will be helpful for the user to get the interface IP, so the device can be assigned to the desired IP later. It will be nice that the SDK supports this, because I don't want to use Avahi to just get the interface IP, which is overkill.

SatjaSivcev commented 1 month ago

Currently, Zivid SDK does not support this, but we are considering supporting it in the future. Thanks for your feedback!