Configure GigE Camera IP Addresses in Linux
The current Linux software for our The Imaging Source GigE cameras is based on the Aravis project from https://github.com/AravisProject/aravis and GStreamer. The current sources can be downloaded from https://github.com/TheImagingSource/tiscamera. Please read "Readme" which explains in detail how to compile the sources and install the binaries.
The included tool "tcam-gigetool" shows the connected cameras and is used for configuration:
Get a list of connected cameras:
$ tcam-gigetool list Model Name | Serial Number | User Defined Name | Current IP DFK Z30GP031 41910044 192.168.1.2 DFK 39GX548-Z20 10220859 192.168.0.196
This list will show cameras with unmatching IP addresses too.
If a camera is in an unsuitable network and is not listed, the rpfilter must be turned off:
sudo sysctl -w net.ipv4.conf.enp2s0.rpfilters=0 sudo sysctl -w net.ipv4.conf.enp7s1.rpfilters=0
Setting a fixed IP address:
In case the camera is correctly in the network and it should get a fixed IP address, following command must be issued:
tcam-gigetool set --ip 192.168.1.99 --netmask 255.255.255.0 --gateway 0.0.0.0 --mode static 41910044
This is an example for the DFK Z30GP031 from the list above. The camera must be disconnected and reconnected.Now the camera listing returns:
$ tcam-gigetool list Model Name | Serial Number | User Defined Name | Current IP DFK Z30GP031 41910044 192.168.1.99 DFK 39GX548-Z20 10220859 192.168.0.196
The new IP address is saved in the camera.
In case the camera is mis-configured, it must be rescued first:
tcam-gigetool rescue --ip 192.168.1.99 --netmask 255.255.255.0 --gateway 0.0.0.0 41910044
This assignes a temporary IP address to the camera. Do not disconnect now. In a second step the desired IP address or DHCP mode can be set as shown above.
DFK 39GX548-Z20 10220859 192.168.0.196