![]() |
![]() |
---|---|
GigE |
GigE |
Syntax
INT is_GetEthDeviceInfo (HIDS hDev, UEYE_ETH_DEVICE_INFO* pDeviceInfo, UINT uStructSize)
Description
This function is obsolete and should not be used anymore. We recommend to use the is_DeviceInfo() function instead. |
Using is_GetEthDeviceInfo(), you can query information about the connected GigE uEye cameras. The resulting information is written to the UEYE_ETH_DEVICE_INFO structure. For this purpose, the cameras need not be initialized.
The is_GetEthDeviceInfo() function is only supported by cameras of the GigE uEye series. |
Input parameters
hDev |
DevID | IS_USE_DEVICE_ID, |
pDeviceInfo |
Pointer to a UEYE_ETH_DEVICE_INFO object |
uStructSize |
Size of the UEYE_ETH_DEVICE_INFO structure in bytes |
The is_GetEthDeviceInfo() function does not accept a camera handle as the hDev parameter. As stated above, the internal device ID must be used for the call. The advantage is that you can also query information related to GigE uEye cameras that are currently not initialized. This information can also be queried using the IDS Camera Manager. |
Contents of the UEYE_ETH_DEVICE_INFO structure
UEYE_ETH_DEVICE_INFO_HEARTBEAT |
infoDevHeartbeat |
Camera-related data retrieved from the camera (from the heartbeat telegram) See below: DEVICE_INFO_HEARTBEAT |
UEYE_ETH_DEVICE_INFO_CONTROL |
infoDevControl |
Camera-related driver data See below: DEVICE_INFO_CONTROL |
UEYE_ETH_ADAPTER_INFO |
infoAdapter |
Network-card related driver data See below: ADAPTER_INFO |
UEYE_ETH_DRIVER_INFO |
infoDriver |
General driver data See below: DRIVER_INFO |
Contents of the UEYE_ETH_DEVICE_INFO::UEYE_ETH_DEVICE_INFO_HEARTBEAT structure
BYTE |
bySerialNumber[12] |
Serial number (string) |
BYTE |
byDeviceType |
Type of camera series |
BYTE |
byCameraID |
User-defined camera ID |
WORD |
wSensorID |
Sensor ID |
WORD |
wSizeImgMem_MB |
Image memory size in MB |
BYTE |
reserved_1[2] |
reserved |
DWORD |
dwVerStarterFirmware |
Starter firmware version |
DWORD |
dwVerRuntimeFirmware |
Runtime firmware version |
DWORD |
dwStatus |
Status word for current camera status (see below: dwStatus) |
BYTE |
reserved_2[4] |
reserved |
WORD |
wTemperature |
Camera temperature in degrees Celsius Bits 15: algebraic sign Bits 14...11: filled according to algebraic sign Bits 10...4: temperature (places before the decimal point) Bits 3...0: temperature (places after the decimal point) See conversion example. See the "Ambient conditions" chapter in the uEye manual for the permissible temperature range. |
WORD |
wLinkSpeed_Mb |
Link bandwidth in Mbits/s |
UEYE_ETH_ADDR_MAC |
macDevice |
MAC address of the camera |
BYTE |
reserved_3[2] |
reserved |
UEYE_ETH_IP_CONFIGURATION |
ipcfgPersistentIpCfg |
Persistent IP configuration |
UEYE_ETH_IP_CONFIGURATION |
ipcfgCurrentIpCfg |
Current IP configuration |
UEYE_ETH_ADDR_MAC |
macPairedHost |
MAC address of the connected PC, if any |
BYTE |
reserved_4[2] |
reserved |
UEYE_ETH_ADDR_IPV4 |
ipPairedHostIp |
IP address of the connected PC, if any |
UEYE_ETH_ADDR_IPV4 |
ipAutoCfgIpRangeBegin |
First IP address of the auto configuration range |
UEYE_ETH_ADDR_IPV4 |
ipAutoCfgIpRangeEnd |
Last IP address of the auto configuration range |
BYTE |
abyUserSpace[8] |
The first eight bytes of the user EEPROM |
BYTE |
reserved_5[84] |
reserved |
BYTE |
reserved_6[64] |
reserved |
Status flags in UEYE_ETH_DEVICE_INFO::UEYE_ETH_DEVICE_INFO_HEARTBEAT::dwStatus
IS_ETH_DEVSTATUS_READY_TO_OPERATE |
Camera is ready to operate |
IS_ETH_DEVSTATUS_TESTING_IP_CURRENT |
Camera is testing current IP address |
IS_ETH_DEVSTATUS_TESTING_IP_PERSISTENT |
Camera is testing persistent IP address |
IS_ETH_DEVSTATUS_TESTING_IP_RANGE |
Camera is testing auto config IP range |
IS_ETH_DEVSTATUS_INAPPLICABLE_IP_CURRENT |
Current IP address already assigned on the network |
IS_ETH_DEVSTATUS_INAPPLICABLE_IP_PERSISTENT |
Persistent IP address already assigned on the network |
IS_ETH_DEVSTATUS_INAPPLICABLE_IP_RANGE |
IP addresses of auto config IP range already assigned on the network |
IS_ETH_DEVSTATUS_UNPAIRED |
Camera has not been initialized (paired) |
IS_ETH_DEVSTATUS_PAIRING_IN_PROGRESS |
Camera is being initialized (paired) |
IS_ETH_DEVSTATUS_PAIRED |
Camera has been initialized (paired) |
IS_ETH_DEVSTATUS_FORCE_100MBPS |
Camera configured for 100 Mbits/s |
IS_ETH_DEVSTATUS_NO_COMPORT |
Camera supports no uEye COM port |
IS_ETH_DEVSTATUS_RECEIVING_FW_STARTER |
Camera is receiving starter firmware |
IS_ETH_DEVSTATUS_RECEIVING_FW_RUNTIME |
Camera is receiving runtime firmware |
IS_ETH_DEVSTATUS_INAPPLICABLE_FW_RUNTIME |
Runtime firmware cannot be used |
IS_ETH_DEVSTATUS_INAPPLICABLE_FW_STARTER |
Starter firmware cannot be used |
IS_ETH_DEVSTATUS_REBOOTING_FW_RUNTIME |
Camera is rebooting runtime firmware |
IS_ETH_DEVSTATUS_REBOOTING_FW_STARTER |
Camera is rebooting starter firmware |
IS_ETH_DEVSTATUS_REBOOTING_FW_FAILSAFE |
Camera is rebooting failsafe firmware |
IS_ETH_DEVSTATUS_RUNTIME_FW_ERR0 |
Checksum error (error 0) in runtime firmware |
Contents of the UEYE_ETH_DEVICE_INFO::UEYE_ETH_DEVICE_INFO_CONTROL structure
DWORD |
dwDeviceID |
Internal device ID of the camera |
DWORD |
dwControlStatus |
Status word for driver-based camera management (see below dwControlStatus) |
BYTE |
reserved_1[80] |
reserved |
BYTE |
reserved_2[64] |
reserved |
Status flags in UEYE_ETH_DEVICE_INFO::UEYE_ETH_DEVICE_INFO_CONTROL::dwControlStatus
IS_ETH_CTRLSTATUS_AVAILABLE |
The camera is available |
IS_ETH_CTRLSTATUS_ACCESSIBLE1 |
Camera has valid IP address and can be accessed over the network |
IS_ETH_CTRLSTATUS_ACCESSIBLE2 |
Camera has no persistent IP address; the auto IP range is valid |
IS_ETH_CTRLSTATUS_PERSISTENT_IP_USED |
Camera can be accessed over the network by its persistent IP address |
IS_ETH_CTRLSTATUS_COMPATIBLE |
Camera is compatible with the installed driver |
IS_ETH_CTRLSTATUS_ADAPTER_ON_DHCP |
DHCP is enabled on the PC network card |
IS_ETH_CTRLSTATUS_UNPAIRING_IN_PROGRESS |
Camera is being closed on this PC |
IS_ETH_CTRLSTATUS_PAIRING_IN_PROGRESS |
Camera is being initialized on this PC |
IS_ETH_CTRLSTATUS_PAIRED |
Camera has been initialized on this PC |
IS_ETH_CTRLSTATUS_FW_UPLOAD_STARTER |
Starter firmware is being loaded onto the camera |
IS_ETH_CTRLSTATUS_FW_UPLOAD_RUNTIME |
Runtime firmware is being loaded onto the camera |
IS_ETH_CTRLSTATUS_REBOOTING |
Camera is rebooting |
IS_ETH_CTRLSTATUS_INITIALIZED |
Camera has been initialized in the driver |
IS_ETH_CTRLSTATUS_TO_BE_DELETED |
Camera is being removed from driver management |
IS_ETH_CTRLSTATUS_TO_BE_REMOVED |
Camera is being removed from driver management |
Contents of the UEYE_ETH_DEVICE_INFO::UEYE_ETH_ADAPTER_INFO structure
DWORD |
dwAdapterID |
Network adapter ID as defined internally in the driver |
DWORD |
dwDeviceLinkspeed |
Possible values: IS_ETH_LINKSPEED_100MB = 100 Mbits/s IS_ETH_LINKSPEED_1000MB = 1000 Mbits/s |
UEYE_ETH_ETHERNET_CONFIGURATION |
ethcfg |
Ethernet configuration of the network adapter |
BYTE |
reserved_2[2] |
reserved |
BOOL |
bIsEnabledDHCP |
The adapter is configured for DHCP |
UEYE_ETH_AUTOCFG_IP_SETUP |
autoCfgIp |
Setting of the IP address auto configuration |
BOOL |
bIsValidAutoCfgIpRange |
The IP auto configuration setting is valid |
DWORD |
dwCntDevicesKnown |
Number of cameras detected at this network adapter |
DWORD |
dwCntDevicesPaired |
Number of cameras initialized using this network adapter |
WORD |
wPacketFilter |
Filter settings for incoming packets (see below wPacketFilter) |
BYTE |
reserved_3[38] |
reserved |
BYTE |
reserved_4[64] |
reserved |
Value range of UEYE_ETH_DEVICE_INFO::UEYE_ETH_ADAPTER_INFO::wPacketFilter
IS_ETH_PCKTFLT_PASSALL |
Forward all packets to the operating system. |
IS_ETH_PCKTFLT_BLOCKUEGET |
Block GigE uEye data packets directed to the operating system (recommended). |
IS_ETH_PCKTFLT_BLOCKALL |
Block all packets directed to the operating system. |
Contents of the UEYE_ETH_DEVICE_INFO::UEYE_ETH_DRIVER_INFO structure
DWORD |
dwMinVerStarterFirmware |
Minimum compatible starter firmware version |
DWORD |
dwMaxVerStarterFirmware |
Maximum compatible starter firmware version |
BYTE |
reserved_1[8] |
reserved |
BYTE |
reserved_2[64] |
reserved |
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_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_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. |
IS_NOT_SUPPORTED |
The camera model used here does not support this function or setting. |
IS_SUCCESS |
Function executed successfully |
•is_GetCameraList()
//Create structure
UEYE_ETH_DEVICE_INFO di;
//Create special camera handle from the internal device ID, see box above
HIDS hDev = (HIDS)(dwDeviceID | IS_USE_DEVICE_ID);
//Insert GigE uEye information into the structure
INT nRet = is_GetEthDeviceInfo( hDev, &di, sizeof(UEYE_ETH_DEVICE_INFO));
//Read out and convert camera temperature
DWORD dwTempFahrenheit;
DWORD dwTempCelsius;
dwTempCelsius = (float) di.infoDevHeartbeat.wTemperature / 16;
dwTempFahrenheit = ((float) di.infoDevHeartbeat.wTemperature * 0.1125) + 32;