DHCP or Link Local IP Network Configuration - Camera
조심
네트워크 구성에 대한 올바른 지침은 SDK 버전에 따라 다릅니다. 왼쪽 상단 드롭다운에서 SDK 버전을 선택합니다.
Open Zivid Studio and click Cameras → All Cameras to open the camera menu.
Click Configure on the camera that you want to configure.
Select the automatic (DHCP) configuration mode. Click Apply to apply the configuration to the camera.
The CLI tool ZividNetworkCameraConfigurator
allows you to change the camera network configuration of one camera at a time.
This tool is installed alongside the Zivid SDK on Windows, and with the Zivid Tools package on Ubuntu.
terminal/Command Prompt를 엽니다.
Connect the camera.
다음을 실행하여 카메라를 찾았는지 확인합니다.
ZividListCameras.exe
ZividListCameras
Set the camera with current IP
<host>
in DHCP mode by:ZividNetworkCameraConfigurator.exe set-config <host> --dhcp
ZividNetworkCameraConfigurator set-config <host> --dhcp
For example, changing the mode from static to DHCP for a camera with IP
172.28.60.5
:ZividNetworkCameraConfigurator.exe set-config 172.28.60.5 --dhcp
ZividNetworkCameraConfigurator set-config 172.28.60.5 --dhcp
You can also set a hostname by using the optional argument
[--hostname <hostname>]
. All ethernet-based Zivid cameras come with a pre-defined hostname with the following format zivid-serialnumber, e.g., zivid-2234AB12.If you are configuring IP addresses of multiple cameras, repeat steps 2 to 4.
If you are using Cameras.yml
It is highly recommended to use hostnames when using a dynamic IP. If not you have to list all possible IP addresses in
Cameras.yml
, or find the IP address assigned to the camera and list them. When you use hostnames you only have to list the expected hostnames, and it doesn’t matter if the IP address is reassigned. The default hostname has the following format:zivid-<serialnumber>
, e.g.,zivid-2234AB12
.Cameras.yml
에 대한 자세한 내용은 Cameras.yml and how to restrict discoverable cameras 에서 확인하십시오.Configure the PC for either link-local or DHCP.
DHCP가 네트워크에서 활성화되어 있지 않은지 확인하십시오.
카메라를 연결하고 45초 이상 기다립니다.
Make sure a DHCP is active on the network. You can host your own - see DHCP Network Configuration - PC.
카메라를 연결합니다.
The SDK provides the functions to configure the camera network configuration.
Connect to your camera.
auto camera = zivid.connectCamera();
var camera = zivid.ConnectCamera();
camera = app.connect_camera()
Set the mode to DHCP.
mode = Zivid::NetworkConfiguration::IPV4::Mode::dhcp;
mode = Zivid.NET.NetworkConfiguration.IPV4Group.ModeOption.Dhcp;
mode = zivid.NetworkConfiguration.IPV4.Mode.dhcp
Create a network configuration object.
Zivid::NetworkConfiguration newConfig(Zivid::NetworkConfiguration::IPV4(mode, address, subnetMask));
var newConfig = new Zivid.NET.NetworkConfiguration() { IPV4 = { Mode = mode, Address = address, SubnetMask = subnetMask, } };
new_config = zivid.NetworkConfiguration( ipv4=zivid.NetworkConfiguration.IPV4( mode=mode, address=address, subnet_mask=subnet_mask, ) )
Apply the new network configuration to the camera.
camera.applyNetworkConfiguration(newConfig);
camera.ApplyNetworkConfiguration(newConfig);
camera.apply_network_configuration(new_config)
You have now configured the camera to work with link-local and DHCP.
If you haven’t configured the PC for either link-local or DHCP, go to Link Local IP Network Configuration - PC or DHCP Network Configuration - PC before going onwards. If you have done that, go to Connecting to the camera.