OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

PifIdentity

public readonly struct PifIdentity

Who the attached process interface is.

PifIdentity: properties

public PifDetection Detection { get; }

Whether that was detected or declared.

public int DeviceCount { get; }

How many physical devices the flat channel space spans.

Only a stackable PIF has more than one.

public Nullable<int> FirmwareVersion { get; }

The PIF's firmware revision, or null when the interface did not report one.

null means "not reported" and is a different statement from any revision number, including zero. Render it as "not reported"; there is no revision 0 to confuse it with, and a camera that stays silent can no longer be shown as running firmware 0.

Autonomous cameras (Xi 80, Xi 410, Xi 410MT, Xi 1M) always reported it. A detected interface on the PI family is asked the same question, because the PIF EEPROM those cameras read carries no firmware field and there is nowhere else for it to come from.

On the PI family null is the expected answer, 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 the command on 2026-09-29 and did not answer: a response timeout after two seconds, no refusal 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 is always null. There is nothing to ask: those are the interfaces the camera cannot see, which is why they have to be declared.

A simulated camera's interface never reports a revision, so this is always null there.

Example

string shown =
    identity.FirmwareVersion?.ToString() ?? "not reported";
public PifDeviceKind Kind { get; }

What is attached.

public string Serial { get; }

The PIF's serial number, or an empty string when the interface did not report one.

Empty means "not reported", the same statement PifIdentity.FirmwareVersion makes with null. Render it as "not reported" rather than displaying it verbatim.

A declared interface is empty here, because nothing read its serial. It used to be "0", which reads like a serial number and is not one -- the same defect as the firmware zero above, in this field.

A detected interface reports the serial its own EEPROM carries, or the one the camera's answer gave.