Skip to main content

API_VERSION

Constant API_VERSION 

Source
pub const API_VERSION: u32 = 10;
Expand description

Current GenICam Zenoh API version.

Increment this constant when making breaking changes to the Zenoh wire protocol. The service publishes this value; clients check it on discovery and emit warnings when versions differ.

§Version history

  • 1 — initial NodeValueUpdate contract with optional min/max/inc.
  • 2 — adds FeatureState / NumericRange / CommandResult for live introspection. NodeValueUpdate stays wire-compatible; readers that understand the new types can consume the new queryables and payloads.
  • 3 — DeviceAnnounce carries the device’s own identity (ip, mac, user_name, manufacturer), and serial is the serial the device reports rather than the service’s device id (#137). The new fields are optional, so a version 2 announce still deserialises.
  • 4 — event-vision blocks move off keys::image onto their own key, keys::evs, framed by an EvsHeader (#138). Nothing else changes, but a version 3 client subscribed only to image no longer receives anything from an event camera, and the version is what tells it why.
  • 5 — a pixel format is viva-pfnc’s: ImageMeta names any PFNC format by its PFNC name (RGB8Packed where version 4 said RGB8, Coord3D_ABC32f where it said Unknown), and a USB3 Vision camera’s device id names its vendor, product and serial (u3v_device_id). The frame header’s one-byte codes are unchanged.
  • 6 — AcquisitionStatus carries the stream’s counters, StreamCounters, in stats, where version 5 had one dropped count; it is sent every second while acquiring, frames or not, and a final AcquisitionStatus::stopped snapshot follows the stream’s end.
  • 7 — FrameHeader version 2 carries the row stride, so padded images retain their row layout in remote consumers. The header is 20 bytes; version-1 image headers are rejected.
  • 8 — version-3 image headers carry bounded per-frame metadata inline, preserving exact identifiers, timestamps and chunk values with the pixels.
  • 9 — GenICam device events: keys::events_control starts and stops monitoring (EventControlRequest), each event is a CameraEvent on keys::events, and EventMonitorStatus on keys::events_status says when monitoring stops and what could not be restored.
  • 10 — a camera’s configuration is saved on keys::configuration_save (ConfigurationSaved) and restored on keys::configuration_load (ConfigurationLoaded), and a <Register> node is read on keys::node_register (RegisterData) and written on keys::node_register_set (RegisterWriteRequest).