Please enable JavaScript to view this site.

IDS Software Suite - obsolete functions 4.97

Windows_Logo
Linux_Logo

GigE

GigE

Syntax

INT is_SetAutoCfgIpSetup (INT iAdapterID, const UEYE_ETH_AUTOCFG_IP_SETUP* pSetup, UINT uStructSize)

Description

hint_info

This function is obsolete and should not be used anymore. We recommend to use the is_IpConfig() function instead.

You can use is_SetAutoCfgIpSetup() to set the IP auto configuration properties of a network adapter. The IP configuration can also be changed using the IDS Camera Manager.

hint_info

The is_SetAutoCfgIpSetup() function is only supported by cameras of the GigE uEye series.

Input parameters

iAdapterID

Internal adapter ID of the network adapter. It is returned by the is_DeviceInfo() function in the UEYE_ETH_ADAPTER_INFO structure.

pSetup

Pointer to a UEYE_ETH_AUTOCFG_IP_SETUP object

uStructSize

Size of the UEYE_ETH_AUTOCFG_IP_SETUP structure in bytes

Contents of the UEYE_ETH_AUTOCFG_IP_SETUP structure

UEYE_ETH_ADDR_IPV4

ipAutoCfgIpRangeBegin

First IPv4 address of the auto configuration range

UEYE_ETH_ADDR_IPV4

ipAutoCfgIpRangeEnd

Last IPv4 address of the auto configuration range

BYTE

reserved[4]

reserved

Return values

IS_SUCCESS

Function executed successfully

IS_INVALID_PARAMETER

One of the submitted parameters is outside the valid range or is not supported for this sensor or is not available in this mode.

IS_BAD_STRUCTURE_SIZE

An internal structure has an incorrect size.

IS_CANT_OPEN_DEVICE

An attempt to initialize or select the camera failed (no camera connected or initialization error).

IS_IO_REQUEST_FAILED

An IO request from the uEye driver failed. Possibly the versions of the ueye_api.dll (API) and the driver file (ueye_usb.sys or ueye_eth.sys) do not match.

Related functions

is_SetPersistentIpCfg()

is_DeviceInfo()

Example

UEYE_ETH_AUTOCFG_IP_SETUP autocfgip;
 
// Specify the IP address 192.168.10.15 in hexadecimal format
autocfgip.ipAutoCfgIpRangeBegin.dwAddr= 0xC0A80A0F;
 
// Specify the IP address 192.168.10.35 in hexadecimal format
autocfgip.ipAutoCfgIpRangeEnd.dwAddr= 0xC0A80A23;
 
// Set IP address
INT nRet= is_SetAutoCfgIpSetup( iAdapterId, &autocfgip, sizeof(UEYE_ETH_AUTOCFG_IP_SETUP));