Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Guide: choosing and implementing a binding

Source docs/guides/bindings.md

On this page
  1. What is in the live tree
  2. Bindings proposed in drafts
  3. How to choose
  4. How to implement one
  5. Common errors

A binding says how the protocol’s objects and functions are carried by an existing standard: an API family, a messaging protocol, a notification format, a field bus. The protocol maps to existing standards and never replaces them. A binding cites the standard by identifier, edition and clause, never copies its text, and is never a statement that an implementation conforms to, or is certified for, the external standard. The rules for authors of bindings are in bindings/README.md; this guide is for the people who choose and implement them.

What is in the live tree

The live tree has no binding folder yet: bindings/ holds the layout rules and the manifest schema (binding.schema.json), and every binding below that has a folder is proposed by a draft. What is live are the wire contracts of specification section 6:

Plane Live contract Where Notes
Participant gateway (registration, claims, registers, join, admit, describe) OpenAPI 3.1, seven operations schemas/openapi/obsp-gateway.openapi.yaml make openapi checks it; the Rust and Python references implement it
Field channels and events AsyncAPI 3 schemas/asyncapi/obsp-field.asyncapi.yaml; the documents for draft bindings (WIS 2.0, CloudEvents, correction subscriptions, federation sync) are listed in schemas/asyncapi/README.md event envelope maps one to one to CloudEvents 1.0 attributes
Control (site cell and node, grid and site cell) protobuf package obsp.v1 over gRPC or HTTP/2 with mutual TLS 1.3 schemas/proto/obsp/v1/ only common.proto exists so far; make proto compiles it; the current node-agent framing obsp-control/0 stays supported until 0.2
Field data MQTT 5 with Sparkplug B; connectors for LoRaWAN, OPC UA and vendor buses specification section 6 named, with no mapping file in the live tree; the Sparkplug mapping is a draft
Exchange OpenAPI 3.1; OGC API family, SensorThings, STAC, WIS 2.0 specification section 6 named, with no mapping file in the live tree; read APIs are gap G-EXCH-1
Evidence DSSE-signed in-toto statements, SLSA provenance, SCITT receipts specification section 6 the signature envelope is a draft (OIP-0008)
Telemetry OpenTelemetry OTLP specification section 6

Crosswalks are a different tool: data that maps schema fields to the terms of one standard. A binding carries objects over a standard; a crosswalk only maps vocabulary.

Bindings proposed in drafts

Every row has status proposed and exists only in the patches of its draft. The editions are as the draft states them; where a draft marks an edition as not checked, the guide repeats that. Nothing here is accepted.

Binding id Carries Standard and edition (as the draft states) Functions Profiles Draft
sparkplug field telemetry through a connector Sparkplug 3.0.0 (ISO/IEC 20237:2023) over MQTT 5.0 observe NODE OIP-0007
cap alert notices OASIS CAP 1.2 (ITU-T X.1303 bis) exchange GRID OIP-0005
ogc-api products, observations, catalogue OGC API Features Part 1, EDR, Records Part 1 (editions and document numbers not checked) exchange GRID, CONSUMER OIP-0009 (read endpoints: OIP-0001)
stac product versions as Items and Collections, with an obsp extension STAC 1.1.0 exchange GRID, CONSUMER OIP-0009
wis2 publication of observations and products WMO-No. 1061 Volume II, WIS2 Notification Message (edition in force not checked) exchange GRID, CONSUMER OIP-0009
lorawan field telemetry from uplinks delivered by a network server LoRaWAN L2 1.0.4; LoRaWAN 1.1 observe NODE OIP-0019
opcua field telemetry from PubSub and client reads IEC 62541 parts 3, 4, 6, 8, 14 (2020 or later) observe NODE OIP-0019
nmea field telemetry from sentences NMEA 0183 4.11 (IEC 61162-1:2016) observe NODE OIP-0019
sdi12 field telemetry from a datalogger SDI-12 1.4 observe NODE OIP-0019
wis2-ingest observations from BUFR messages announced by WIS 2.0 notifications WMO BUFR edition 4 (WMO-No. 306), WIGOS station identifier (WMO-No. 1160), WIS2 Notification Message (editions as published, not checked) observe NODE OIP-0019

The draft OIP-0007 also defines the universal connector contract that the field bindings share: a connector maps an external source to observation records and never guesses what a source does not say (an unmapped metric is not invented, a null is not zero, a gap is recorded, a quality is not assumed good). OIP-0004 (federation bindings) names a protocol object, not a standard binding, and is not in this list. Domain packs list the bindings that fit each domain in profiles/domains/<domain>/pack.yaml (some of those ids are proposed by drafts).

How to choose

  1. Start from the function and the profile, not the standard. A node that reads instruments picks a field binding (observe, NODE). A grid or a consumer picks an exchange binding (exchange). Nothing in a binding changes which functions your profile covers.
  2. Pick what your source or your counterpart already speaks. An instrument bus decides the field binding; the audience decides the exchange binding (weather services read WIS 2.0, EO catalogues read STAC, GIS tools read OGC API, alerting chains read CAP). Several bindings may run side by side; each is a separate view of the same objects.
  3. Prefer the live contracts for the participant API. Use the OpenAPI gateway for registration, claims and registers, whatever else you add.
  4. Check the status. A binding with status proposed can change before acceptance. Build it behind your own adapter, keep the mapping table beside your code, and plan to re-run its checks when the draft changes.
  5. Check the edition. A binding targets a published edition only. If your counterpart speaks a draft or a different edition of the standard, say so in your claim’s scope; do not claim the binding.
  6. Mind neutrality and claims. Say “carries objects over X” or “maps to X”, never “compliant with X” or “certified for X”. Do not name a vendor product in a binding.

How to implement one

A binding folder (bindings/<id>/) holds PROFILE.md (scope, requirement ids BND-<ID>-NN, the mapping table, what is out of scope, open questions), binding.yaml (the manifest), positive and negative examples (at least two each) and the artefact in the standard’s own syntax. To implement one that has landed, or one a draft proposes (apply the draft’s patches to a throwaway copy first; the draft’s README.md lists them in order):

  1. Read PROFILE.md end to end, especially the unmapped fields and the open questions.
  2. Build your adapter from the mapping table: each protocol field is on one side (schema and JSON pointer), the standard’s term and clause on the other. Where the table says a field is unmapped, keep it in an extensions member or leave it out and say so; never guess.
  3. Feed the positive examples through your adapter and compare; feed the negative ones and check each is refused for its stated reason (the file name says which).
  4. Validate every protocol object you produce with obsp validate <file> --schema <name> and compute reference digests with obsp digest.
  5. Run the conformance case that covers each BND- requirement; a requirement without a case is listed as a gap of registers/functions.yaml. Then run the profile’s suite on your evidence as in the conformance guide.
  6. Record in your claim’s scope which binding and which edition you carried, and the evidence digests.

Checks you can run today: make openapi (gateway document), make proto (needs protoc), python3 tools/validate.py --only bindings once a binding folder exists, and the draft check python3 -m unittest tests.test_validate -k draft_patches, which proves every draft’s patches, bindings included, still apply to the live tree.

Common errors

What you see Cause Fix
binding.yaml rejected: the standard is a draft edition a binding targets published editions only track the draft in an open question; bind the published edition
PROFILE.md requirement id not matching BND-<ID>-NN id built from the folder name with hyphens capitals, hyphens removed: ogc-api gives BND-OGCAPI-01
a binding requirement with no case every requirement needs a case or a gap row add the case, or register the gap
a mapped value is 0 where the source said nothing a missing value mapped to zero use the typed missing state (P5)
duplicate observations after a restart no idempotency key on the connector’s output derive the key from source identity and time, and absorb duplicates
OBS-CONTRACT-0001 from a gateway the adapter produced an object that fails its schema validate before sending