Skip to content

Network Configuration (blaze)#

This topic helps you choose the correct network configuration for the Basler blaze-101 camera.

Step-By-Step Guide to Network Configuration#

The following steps will guide you through the process of establishing the blaze-101 camera in your network setup.

  1. Decide how you want to assign IP addresses to your cameras. Consider the following:

    • How many cameras are you planning to use?
    • How many network adapters are you using? Is there a dedicated adapter for every camera?
      For more information, see Recommended Network Architectures.
    • Do you have a DHCP server available?

      Info

      If you have a DHCP server, use it. This makes the configuration a lot easier.
      If you don't have a DHCP server, your options are to use either static IP addresses or Auto IP:

      • Auto IP can only be used if you have no more than one network adapter configured to use Auto IP. Configuring multiple adapters for Auto IP prevents camera discovery.
      • If you're using multiple network adapters with static addresses, each adapter must be in a different subnet.
  2. Configure the IP address of the network adapter(s).

  3. Configure the IP address of the camera(s) using the blaze IP Configurator.
    Start the blaze IP Configurator by clicking Start > Basler blaze SDK > blaze IP Configurator. For more information, see the blaze IP Configurator online help.

  4. Check the connection in the blaze IP Configurator.
    1. If the status is OK, everything is fine.
    2. If the status is Not reachable, check the following:
      1. Make sure that the camera is not accessed by another application.
      2. Make sure that the adapter's subnet mask is the same as the camera's.
      3. Make sure that the addresses of the adapter and of the camera are in the same subnet.
        Example: If the subnet mask is 255.255.0.0, the first two blocks of the IP addresses have be to the same.
      4. Make sure that all other network adapters are configured for other subnets as the one that the camera is connected to.
      5. Make sure that no other network device has the same address as the camera.
    3. If the camera is not listed, check the following:
      1. Is the camera physically connected to the correct network adapter?
      2. Disable the firewall for adapter that camera is connected to.
  5. Adjust performance settings.

    Info

    For information about optimizing the performance on Linux systems, refer to the INSTALL and README documents included in the Linux package.

  6. Troubleshooting
    If there are dropped frames or error messages when streaming, the most likely cause is an unstable network connection or insufficient performance.

Network Adapter IP Configuration#

These are the two most common ways to configure the IP addresses of network adapters:

  • Assigning a fixed (also "static" or "persistent") address
  • Configuring automatic addressing via DHCP (Dynamic Host Configuration Protocol) or Auto IP (Automatic Private IP Addressing, based on link-local addresses (LLA)).

Assigning a Fixed IP Address#

To assign a fixed IP address to a network adapter:

  1. Open the Network Connections window in the Windows Control Panel.
    For quick access, press Win+R, type ncpa.cpl, and press Enter.
  2. Right-click the network adapter connection that is used with your camera and then click Properties.
    The Properties window opens.
  3. Double-click Internet Protocol Version 4 (TCP/IPv4).
    The Internet Protocol Version 4 (TCP/IPv4) Properties window opens.
  4. Click Use the following IP address.
  5. In the IP address, Subnet mask, and Default gateway fields, type the IP address, subnet mask, and default gateway addresses.
  6. In the Preferred DNS server and Alternate DNS server fields, type the primary and secondary DNS server addresses. (Normally, a domain name server is not needed.)

    Internet Protocol Version 4 Properties

  7. Repeat steps 2 to 6 for all applicable network adapters.

    Info

    During camera design-in, you can use the following settings to establish a network connection very quickly:

    • Configure a fixed address for your network adapter in the automatic IP address range (169.254.0.1 to 169.254.255.254) with a subnet mask of 255.255.0.0.
    • Configure Auto IP address assignment for your cameras.
    • If your computer has multiple network adapters, each adapter must be in a different subnet.
    • The recommended range for fixed IP addresses is from 172.16.0.1 to 172.32.255.254 with a subnet mask of 255.255.0.0 and from 192.168.0.1 to 192.168.255.254 with a subnet mask of 255.255.255.0. These address ranges have been reserved for private use according to IP standards.
    • If you are assigning fixed IP addresses to your cameras, keep in mind that for a camera to communicate properly with a network adapter, it must be in the same subnet as the adapter to which it is attached.

Assigning an IP Address via DHCP / Auto IP#

When an adapter is configured to receive its IP address via DHCP / Auto IP, it operates as follows:

  • The adapter tries to obtain an IP address from a DHCP server. If a DHCP server is available, it receives an IP address from the server and uses it.
  • If no DHCP server is available, the adapter uses the Auto IP routine to assign itself an IP address.

The default setting for most network adapters is DHCP / Auto IP. In most cases, the adapter used with your cameras will not have a DHCP server available. So with the default settings, the adapter will end up using automatic IP addressing to assign itself an IP address.

Info

Only one adapter can be set to use Auto IP. If DHCP / Auto IP is configured on more than one adapter, the Auto IP assignment will not work correctly and the cameras will not be able to connect to the network via Auto IP.

If you have multiple network adapters in your computer, Basler recommends installing a DHCP server in your network or assigning static IP addresses to the adapters and to the cameras.

To assign an IP address using DHCP / Auto IP:

  1. Open the Network Connections window in the Windows Control Panel.
    For quick access, press Win+R, type ncpa.cpl, and press Enter.
  2. Right-click the network adapter connection that is used with your camera and then click Properties.
    The Properties window opens.
  3. Double-click Internet Protocol Version 4 (TCP/IPv4).
    The Internet Protocol Version 4 (TCP/IPv4) Properties window opens.
  4. Make sure that Obtain an IP address automatically is selected.
    This makes the adapter check for a DHCP server as its first choice.
  5. Click on the Alternate Configuration tab.
    The settings on this tab are used to configure the Auto IP address assignment that the adapter will use if no DHCP server is found.
  6. Make sure that Automatic private IP address is selected.

    Internet Protocol Version 4 Properties (Alternate Configuration)

Configuring Network Adapters Using the Filter Driver#

There are two drivers available in the blaze SDK:

  • GigE Vision filter driver
  • Performance driver

If your network adapter doesn't support the performance driver, the filter driver will be installed by default. If that is the case, the network adapter must be configured before you can use it with your camera. You have to change the network adapter connections and the network adapter properties.

To find out which driver has been installed:

  1. Open the blaze IP Configurator.
  2. Select your adapter.
    Information about the adapter will be displayed in the bottom right area of the dialog. If it says "Basler GigE Vision Adapter" there, the filter driver is installed.
    To adjust the settings, you can click the link in that area which will take you directly to the Windows … Properties dialog.

Changing the Network Adapter Connections#

Basler recommends disabling certain protocols or services that may interfere with the filter driver.

To disable protocols or services:

  1. Open the Network Connections window in the Windows Control Panel.
    For quick access, press Win+R , type ncpa.cpl, and press Enter.
  2. Right-click the network adapter connection that is used with your camera and then click Properties.
    The Properties window opens.
  3. Clear all check boxes except the pylon GigE Vision Driver and the Internet Protocol Version 4 (TCP/IPv4) check boxes:

    Network Adapter Properties Window

  4. Repeat steps 2 and 3 for all applicable network adapters.

Changing the Network Adapter Properties#

Basler recommends optimizing certain adapter properties.

To optimize the adapter properties:

  1. Open the Network Connections window in the Windows Control Panel.
    For quick access, press Win+R , type ncpa.cpl, and press Enter.
  2. Right-click the network adapter connection that is used with your camera and then ckick Properties.
    The Properties window opens.
  3. Click Configure.
    The configuration window of the network driver opens.
  4. Click Advanced.
  5. Adjust the following properties (see note below):
    1. Select the parameter that relates to the number of receive descriptors (e.g., Receive Descriptors) and set it to its maximum value.
    2. Select the parameter that relates to the number of CPU interrupts (e.g., Interrupt Moderation Rate) and set it to a low value, e.g., 1000. The way to set the number of CPU interrupts may differ for your network adapter. You may have to use a separate parameter to enable the interrupt moderation.
    3. Select the parameter that relates to speed and duplex mode (e.g., Speed and Duplex Mode) and set it to automatic (e.g., Auto Negotiation).
  6. Repeat steps 2 to 5 for all applicable network adapters.

Disabling the Windows Firewall#

Disabling the Windows Firewall is an extreme measure that is not generally recommended. In some situations, however, it may be necessary in order to fix performance problems.

To turn off the firewall on selected network adapters:

  1. Press Win+R, type wf.msc, and press the Enter key.
    The Windows Firewall with Advanced Security window opens.
  2. Click Windows Firewall Properties.

    Windows Firewall with Advanced Security Window

    The Windows Firewall with Advanced Security on Local Computer Properties… window opens.

  3. Click the tab of the profile where you want to turn off firewall protection.
    Typically, this will be the Public Profile tab. However, if you're using a dedicated network card, Basler recommends also disabling firewall protection for the other profiles.

  4. Click Customize.

    Windows Firewall with Advanced Security Settings

    The Protected Network Connections for the Public Profile window opens. The window lists connections where the firewall is turned on.

    Protected Network Connections Window

  5. Clear the connections where cameras are attached. This turns off their firewall protection.

  6. Repeat steps 3 to 5 for all profiles where you want to turn off firewall protection.

Peer-to-Peer Network Architecture#

One option is to establish a direct peer-to-peer connection between your cameras and your host computer.

The cameras can be connected to individual GigE network adapters or to a multiport adapter in the host computer.

Peer-to-peer Network Architecture

  • Advantage: Each camera has an individual connection to the host computer. Thus, each camera has the full connection bandwidth available for transmitting acquired images. This means that you can operate each camera at its full acquisition rate.
  • Disadvantage: The number of cameras that can be connected to a single computer is limited.

Info

In peer-to-peer connections, each adapter needs to be in a different subnet and each camera has to have an IP address in the subnet of the adapter that the camera is connected to.
Example: The IP addresses of the adapters are 192.168.1.1, 192.168.2.1, 192.168.3.1, etc. and the subnet masks are set to 255.255.255.0. The cameras can then have the following IP addresses: 192.168.1.100, 192.168.2.100, 192.169.3.100, etc. with the subnet masks set to 255.255.255.0.

Connecting via Network Switches#

As an alternative, you can establish a connection between your cameras and your host computer via network switches.

The example below shows a 1-port GigE network adapter connected to a 4-port network switch. You can also use multiport network adapters or multiple switches.

Connecting Via Network Switches

  • Advantage: Allows you to connect many cameras to a single host computer.
  • Advantage: Allows longer overall cable lengths because the cables between devices can each be up to 100 meters long.
  • Disadvantage: The switch only has a single GigE connection to the computer. The cameras must share the bandwidth available on this single path. The bandwidth available on the single path is about 125 MByte/s.

Info

When multiple cameras are attached to a switch, the switch must have sufficient buffer capacity. This allows the switch to hold incoming data from the cameras while it transmits data on the single outgoing line.
All cameras have to have an address in the same subnet, i.e., the adapter's subnet.
Example: If the computer's address is 192.168.1.1, the cameras can take the IP addresses 192.168.1.100, 192.168.1.101, etc.