optris_sdk_pif_identity
Who the attached PIF is.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_pif_identity).
kind
optris_sdk_pif_device_kind kind
What is attached.
detection
optris_sdk_pif_detection detection
Whether that was detected or declared.
device_count
uint8_t device_count
How many physical devices the flat channel space spans. Only a stackable PIF has more than one.
reserved0
uint8_t reserved0
Reserved; always zero.
firmware_version
uint16_t firmware_version
Firmware version of the PIF, or 0 if not reported.
Show 0 as "not reported" rather than as a revision of 0.
Autonomous cameras (Xi 80, Xi 410, Xi 410MT, Xi 1M) report it, and a detected interface on the PI family is asked the same question, because the PIF EEPROM those cameras read carries no firmware field.
0 is the expected answer on the PI family, and that is measured rather than assumed. A PI 400 (12090031, hardware 400, firmware 2448) with an industrial current PIF seated and detected was sent PIF_DEVINFO sub-command 1 and did not answer: a response timeout after two seconds, no NAK and no payload.
A declared interface -- a standard one on the PI 1 family, or a proprietary interface or temperature probe on any non-autonomous camera -- is not asked at all, and reports 0. There is nothing to ask: those are the interfaces the camera cannot see, which is why they have to be declared.
serial
char serial[OPTRIS_SDK_MAX_SERIAL]
Serial number of the PIF, UTF-8, NUL-terminated, or empty if not reported.
Show an empty field as "not reported" rather than as a serial. A declared interface leaves it empty, for the same reason it reports no firmware version: nothing read it. It used to carry "0" there, which reads like a serial number and is not one.
A detected interface reports the serial its own EEPROM carries, or the one the camera's PIF_DEVINFO answer gave.