Static 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 manual network configuration mode, and enter your desired IP address and subnet mask. Make sure the IP address is not colliding with anything else on your network. 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 static IP mode with a specific IP address<ip>
, subnet mask<mask>
and gatewaygateway
. Make sure the IP address is not colliding with anything else on your network.ZividNetworkCameraConfigurator.exe set-config <host> --static --ip <ip> --subnet-mask <mask> --gateway <gateway>
ZividNetworkCameraConfigurator set-config <host> --static --ip <ip> --subnet-mask <mask> --gateway <gateway>
예를 들어, 고정 IP를
172.28.60.5
에서172.28.60.6
으로 변경하는 경우:ZividNetworkCameraConfigurator.exe set-config 172.28.60.5 --static --ip 172.28.60.6 --subnet-mask 255.255.255.0 --gateway 172.28.60.1
ZividNetworkCameraConfigurator set-config 172.28.60.5 --static --ip 172.28.60.6 --subnet-mask 255.255.255.0 --gateway 172.28.60.1
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 manual.
auto mode = Zivid::NetworkConfiguration::IPV4::Mode::manual;
var mode = Zivid.NET.NetworkConfiguration.IPV4Group.ModeOption.Manual;
mode = zivid.NetworkConfiguration.IPV4.Mode.manual
Define the IP address and the Subnet Mask.
address = Zivid::NetworkConfiguration::IPV4::Address{ inputAddress }; subnetMask = Zivid::NetworkConfiguration::IPV4::SubnetMask{ inputSubnetMask };
address = inputAddress; subnetMask = inputSubnetMask;
address = input_address subnet_mask = input_subnet_mask
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)
If you are configuring IP addresses of multiple cameras, repeat the steps with a different IP address for each camera. For each camera, remember to use an IP address within the same subnet range of its interfacing network card.
You have now configured the camera(s) with a specific static IP address.
If the camera(s) IP is in a different subnet range than the PC, it will be inaccessible and you may not connect to it. If so, go to Static IP Network Configuration - PC to configure the IP of your PC. Otherwise, go to straight to Connecting to the camera.