DHCP or Link Local IP Network Configuration - 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.
If you are unsure whether this tool has been installed, follow the Software Installation guide.
The camera can be configured in static IP mode or DHCP mode (defaults to link-local after ~15 seconds).
Caution
When configuring, ensure that you physically connect only one camera with the same IP at a time.
Enable DHCP mode on the camera
Open a terminal/Command Prompt.
Connect a Zivid Two camera.
Verify that your camera is found by running:
C:\> ZividListCameras.exe
$ ZividListCameras
Enable DHCP mode on camera:
To set the camera in DHCP mode, type:
C:\> ZividNetworkCameraConfigurator.exe set-config <host> --dhcp [--hostname <hostname>]
$ ZividNetworkCameraConfigurator set-config <host> --dhcp [--hostname <hostname>]
For example, changing to DHCP with hostname zivid-two:
Note
The default hostname has the following format: zivid-serialnumber, e.g., zivid-2234AB12.
C:\> ZividNetworkCameraConfigurator.exe set-config 172.28.60.5 --dhcp --hostname zivid-two
$ ZividNetworkCameraConfigurator set-config 172.28.60.5 --dhcp --hostname zivid-two
Note
The hostname (optional) is limited to maximum 15 characters.
Disconnect the camera.
If you are configuring IP addresses of multiple cameras, repeat steps 2 to 5.
For multiple cameras, we recommend that you give each camera a unique hostname. Make sure each hostname is listed in
Cameras.yml
.For example:
__version__: 1 Cameras: NetworkCameras: - NetworkCamera: Host: zivid-two - NetworkCamera: Host: zivid-two-alt-1 - NetworkCamera: Host: zivid-two-alt-2 - NetworkCamera: Host: zivid-two-2022C0DE
Path to
Cameras.yml
mkdir %LOCALAPPDATA%\Zivid\API move %HOMEPATH%\Downloads\Cameras.yml %LOCALAPPDATA%\Zivid\API\
Path to
Cameras.yml
mkdir --parents $XDG_CONFIG_HOME/Zivid/API mv ~/Downloads/Cameras.yml $XDG_CONFIG_HOME/Zivid/API/
Caution
If
$XDG_CONFIG_HOME
is not set use$HOME/.config
.Caution
Zivid configuration files must use .yml file extension ( not .yaml).
Before you connect the camera
Make sure a DHCP is not active on the network.
Connect your camera(s), and then wait > 15 seconds.
Make sure a DHCP is active on the network. You can host your own, see DHCP Network Configuration - PC.
Connect your camera(s).
Verify that your camera is found by running:
C:\> ZividListCameras.exe
$ ZividListCameras
Alternatively, run the info command to try to connect to an IP or hostname. If successful it prints serial number and MAC address.
C:\> ZividNetworkCameraConfigurator.exe info <host>
$ ZividNetworkCameraConfigurator info <host>
Once you have configured both the camera and the PC (Link-Local or DHCP) you can open Zivid Studio and the camera will be found automatically.
Tip
In case you cannot find your camera after IP configuration, do a network reset.
Locate the reset button below the power connector.
Use the pointed end of a paper clip or something similar to press and hold the button for 5 to 10 (no longer!) seconds until the LED goes from red to green.
The camera will go back to its factory default IP
172.28.60.5
.
Do not hold the reset button too long (more than 10 seconds) because that will reset the camera firmware. In case of an unwanted firmware reset, you might have to do a Firmware Update.