GigE Vision and GenICam

LumiScan Cam Driver works with Ethernet cameras that follow two industry standards: GigE Vision defines how the camera and the computer talk over Ethernet, GenICam defines how the computer finds out what the camera can do. This page explains both, so that the settings in this manual (IP addresses, MTU, packet delay, feature names) make sense. The steps themselves are in the pages linked below.

GigE Vision

GigE Vision is the interface standard for industrial cameras on Ethernet, maintained by the A3 (Association for Advancing Automation). A GigE Vision camera is an ordinary network device with an IP address, connected with a standard Ethernet cable, often through a switch. It uses two protocols on top of UDP:

GVCP (GigE Vision Control Protocol)

discovers cameras on the network and reads or writes their settings. It uses UDP port 3956.

GVSP (GigE Vision Stream Protocol)

carries the images from the camera to the computer, split into many network packets.

Discovery and IP addresses

To find cameras, the computer sends a discovery broadcast on each network interface, and every GigE Vision camera on that network answers with its serial number, MAC address and IP address. LumiScan Cam Driver lists what it finds at system/found-camera-serials and system/found-camera-ip-addresses.

A camera gets its IP address in one of three ways, tried in this order by most cameras: a persistent IP stored in the camera, DHCP, or a link-local address (169.254.x.x) that it chooses itself. A camera can only be opened when its address is in the same subnet as the network interface it is connected to. If it is not, it can still be found by the broadcast, and a force IP command sent to its MAC address gives it a usable address. See Setup Camera IP Address.

Every device on the camera network needs its own address: the camera, the computer or ctrlX CORE port, and any engineering PC.

Bandwidth, jumbo frames and packet delay

A 1 Gbit/s link carries at most 125 MB of data per second, a little less in practice. A camera with 5 megapixels in an 8-bit pixel format sends about 5 MB per image, so the link limits it to about 20 to 25 images per second. Several cameras on one link share this bandwidth.

Jumbo frames

A standard Ethernet packet holds about 1500 bytes, so one image is split into thousands of packets, each with its own overhead. With jumbo frames (an MTU of 8000 bytes or more on the network interface, and support in every switch on the way) fewer, larger packets carry the same image, with less load on the computer. The camera’s packet size must not exceed the MTU of the network.

Packet delay

When several cameras send at the same time over a shared switch or link, their packets can collide in the switch buffers and get lost; the image is then incomplete. A packet delay (in GenICam: GevSCPD, the stream channel packet delay) adds a pause between the packets of each camera, so that the cameras share the link. It lowers the maximum frame rate of each camera.

For a ctrlX CORE, Hardware Setup for ctrlX CORE gives the MTU and the network topologies, and how to choose the packet delay. For several cameras, see Using Multiple Cameras.

Power over Ethernet

Many GigE Vision cameras can be powered through the Ethernet cable (PoE). The port that feeds the camera, a PoE switch or a PoE injector, must supply enough power for the camera. Without PoE, the camera needs its own power supply, usually through its I/O connector. See Requirements.

GenICam

GenICam, maintained by the EMVA (European Machine Vision Association), is the standard that makes cameras of different manufacturers work with the same software. Every GenICam camera carries an XML description of its features: their names, types, value ranges and where they are stored in the camera. LumiScan Cam Driver reads this description when it opens the camera; that is how it can read and set the camera’s features by name.

The names of common features are standardised in the GenICam Standard Features Naming Convention (SFNC), for example:

Feature Meaning

ExposureTime

Exposure time in microseconds

Gain

Amplification of the sensor signal

PixelFormat

Format of the pixel data, for example Mono8 or BayerRG8

TriggerMode, TriggerSource

Whether the camera waits for a trigger, and which one: software or a hardware line

Width, Height, OffsetX, OffsetY

Size and position of the image region the camera sends

These names are what you use in the camera settings files. A manufacturer can implement a feature differently or add features of its own; LumiScan Cam Driver has been tested with selected cameras from Basler, Baumer, IDS, LUCID Vision Labs, Hikvision and Balluff. See Custom GenICam Feature Names.