OptrisOptrisDocumentation

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

NetworkDiscoveryInfo

public sealed record NetworkDiscoveryInfo : IEquatable<NetworkDiscoveryInfo>

What a network camera said about itself the last time it answered discovery: the fields DeviceInfo has no place for.

Every Optris network camera answers the discovery broadcast with one record about itself. DeviceInfo carries the part a camera is opened with; this is the whole record, including what a commissioning tool needs to set the camera's address by broadcast: its MAC address, whether it can be configured that way at all, and whether it has been told to refuse.

NetworkDiscoveryInfo: constructors

public NetworkDiscoveryInfo(string Serial, string MacAddress, string Address, string StreamDestination, ushort StreamPort, uint HardwareRevision, uint FirmwareRevision, ushort ProtocolVersion, bool AnswersByBroadcast, bool AcceptsBroadcastConfig, byte Policy, string HeardOn, TimeSpan Age)

What a network camera said about itself the last time it answered discovery: the fields DeviceInfo has no place for.

  • Serial: The camera's serial number.
  • MacAddress: The camera's MAC address, 9C:43:1E:70:40:3E. The address Sdk.ConfigureNetworkByBroadcast(…) is given.
  • Address: The address the camera has now.
  • StreamDestination: Where the camera sends its stream, as it reported it.
  • StreamPort: The UDP port it sends the stream to.
  • HardwareRevision: As in DeviceInfo.
  • FirmwareRevision: As in DeviceInfo.
  • ProtocolVersion: The version of the discovery record. 1000: the camera answers by unicast and cannot be configured by broadcast. 1001: it answers by broadcast, so it is found from a host in another subnet of the same network segment, and it understands Sdk.ConfigureNetworkByBroadcast(…).
  • AnswersByBroadcast: ProtocolVersion is 1001 or later.
  • AcceptsBroadcastConfig: The camera accepts a network setting by broadcast. False for a camera that cannot take one and for one whose owner has switched it off.
  • Policy: The camera's policy byte as it sent it; bit 0 is AcceptsBroadcastConfig. Zero for a version 1000 camera.
  • HeardOn: This machine's address on the interface the reply arrived on.
  • Age: How long ago the reply was heard.

Every Optris network camera answers the discovery broadcast with one record about itself. DeviceInfo carries the part a camera is opened with; this is the whole record, including what a commissioning tool needs to set the camera's address by broadcast: its MAC address, whether it can be configured that way at all, and whether it has been told to refuse.

NetworkDiscoveryInfo: properties

public bool AcceptsBroadcastConfig { get; init; }

The camera accepts a network setting by broadcast. False for a camera that cannot take one and for one whose owner has switched it off.

public string Address { get; init; }

The address the camera has now.

public TimeSpan Age { get; init; }

How long ago the reply was heard.

public bool AnswersByBroadcast { get; init; }

ProtocolVersion is 1001 or later.

public uint FirmwareRevision { get; init; }

As in DeviceInfo.

public uint HardwareRevision { get; init; }

As in DeviceInfo.

public string HeardOn { get; init; }

This machine's address on the interface the reply arrived on.

public string MacAddress { get; init; }

The camera's MAC address, 9C:43:1E:70:40:3E. The address Sdk.ConfigureNetworkByBroadcast(…) is given.

public byte Policy { get; init; }

The camera's policy byte as it sent it; bit 0 is AcceptsBroadcastConfig. Zero for a version 1000 camera.

public ushort ProtocolVersion { get; init; }

The version of the discovery record. 1000: the camera answers by unicast and cannot be configured by broadcast. 1001: it answers by broadcast, so it is found from a host in another subnet of the same network segment, and it understands Sdk.ConfigureNetworkByBroadcast(…).

public string Serial { get; init; }

The camera's serial number.

public string StreamDestination { get; init; }

Where the camera sends its stream, as it reported it.

public ushort StreamPort { get; init; }

The UDP port it sends the stream to.