bacnet-interop provides reproducible BACnet/IP interoperability testing infrastructure using multiple independent BACnet protocol implementations.
It offers Dockerized BACnet devices, deterministic device fixtures, BACnet object models, BBMD and routed-network scenarios, codec test vectors, and automated protocol compatibility testing.
A BACnet/SC (Secure Connect) hub and node from BACnet Stack 1.7.0 run in their own image (new in 0.17.0).
Reference implementations include BACnet Stack (C), BACpypes3 (Python), legacy BACpypes 0.x (Python), BACnet4J (Java), System.IO.BACnet (C#), Worldiety (Go), cB-Sigma's bacnet and bacnet-sim (Go), ulbios/bacnet (Go) and bacnet-js (TypeScript on Node.js).
The infrastructure is independently maintained and can be used by any BACnet client implementation.
OTFabric go-bacnet consumes these reference images to validate its own BACnet protocol implementation.
Latest images: v0.17.0 (what changed).
| Image | Upstream | Role |
|---|---|---|
bacnet-interop-bacnet-stack |
bacnet-stack 1.6.1 (C) | Device oracle (+ BBMD) |
bacnet-interop-bacpypes3 |
BACpypes3 0.0.110 (Python) | Device oracle (+ BBMD) |
bacnet-interop-bacpypes |
legacy BACpypes 0.19.0 (Python, PyPI bacpypes; not BACpypes3) |
Device oracle (+ BBMD), client mode (new in 0.14.0) |
bacnet-interop-bacnet4j |
BACnet4J 6.1.1 (Java) | Device oracle (+ BBMD) |
bacnet-interop-worldiety |
worldiety/bacnet 3cb2aa80 (Go) |
Native transport and APDU layer; the adapter supplies the object model |
bacnet-interop-sysiobacnet |
System.IO.BACnet, NuGet BACnet 4.0.0 (C#) |
Device oracle; the stack behind YABE (new in 0.10.0) |
bacnet-interop-cbsigma |
cB-Sigma bacnet v0.2.0 device role and bacnet-sim v0.1.0 (Go) |
Device oracle; the simulator (CBSIGMA_ROLE=sim) adds ReadRange, alarms, BBMD and segmentation fault switches (new in 0.13.0) |
bacnet-interop-ulbios |
ulbios/bacnet 227d6227 (Go, no releases) |
Small codec library (Who-Is, I-Am, ReadProperty, WriteProperty and their answers): device with an adapter object model, and client mode (new in 0.14.0) |
bacnet-interop-bacnet-js |
@bacnet-js/client 3.3.2 (TypeScript on Node.js) | Device oracle (the adapter supplies the object model) and client (client mode) (new in 0.14.0) |
bacnet-interop-bacnet-stack-router |
bacnet-stack 1.6.1 apps/router (C) |
Native BACnet/IP ↔ BACnet/IP router (new in 0.10.0) |
bacnet-interop-bacnet-stack-sc |
bacnet-stack 1.7.0 apps/sc-hub and apps/server with libwebsockets 4.3.10 (C) |
BACnet/SC hub function and BACnet/SC device node on TCP 4443, mutual TLS with the consumer's certificates (new in 0.17.0) |
bacnet-interop-bip-router |
none (Python, written for the tests) | Topology aid for routed scenarios; not evidence about any stack |
What each peer can execute, and where a peer behaves differently from the
others: PEER_SUPPORT.md. Per-image details, environment
variables and observed behaviour: adapters/<name>/README.md.
The adapters never patch an upstream stack. They load a fixture, start the stack's own server, and where a stack has no object or service of its own supply it in adapter code, which the capability matrix marks as such.
ghcr.io/otfabric/bacnet-interop-otfabric is go-bacnet behind the same
contract: a device (with BBMD mode) and a client. You can test your stack
against ours the way we test ours against yours. Its name looks like those of
the reference images, but it is not an independent implementation and it is
not part of a release of this repository. Its tags are go-bacnet versions, and
manifest.json does not list it. See own/go-bacnet/README.md.
Device models under fixtures/device/, selected with DEVICE_FIXTURE_FILE
and FIXTURE:
| Fixture | Adds | Served by |
|---|---|---|
| v1 | Device, Analog Value, Binary Value (frozen) | all device peers |
| v2 | Trend Log (default) | all device peers (BACpypes3 skips the Trend Log; cbsigma serves ReadRange in its simulator role only) |
| v3 | Notification Class, Event Enrollment, alarms | bacnet-stack, BACnet4J; System.IO.BACnet with an adapter-supplied alarm model |
| v4 | File objects | bacnet-stack, BACnet4J, System.IO.BACnet, legacy BACpypes |
| v5 | Object lifecycle and list mutation | bacnet-stack, BACnet4J |
| v6 | Messaging and time synchronization | bacnet-stack, BACpypes3, BACnet4J, legacy BACpypes (adapter sinks) |
| v7 | Identity (Who-Am-I / You-Are) | bacnet-stack |
| v8 | Life safety | bacnet-stack, BACnet4J |
| v9 | Large object model: 40 more objects, an Object_List that does not fit a 50-octet APDU | bacnet-stack only (new in 0.10.0) |
device-server-v1, the fixture of the client-mode scenario files, is
served by the bacnet-js device as well.
fixtures/codec/ holds wire vectors for go-bacnet's codec tests,
fixtures/topology/ and fixtures/bbmd/ the routed and BBMD scenarios. See
fixtures/README.md, including what a hand-written vector
does and does not prove.
make validate-fixtures # manifest, schemas, fixture metadata, adapters/inventory.yaml
make dissect-fixtures # codec vectors against Wireshark's dissector (needs tshark)
make build # all adapter images as bacnet-interop-<name>:local
make smoke # ready event (and a Who-Is probe) per image; writes reports/results.json (interop-result-v1)
make ci # validate-fixtures + build + smokemake build-<name> builds one image. Images are built for the host
architecture; the release workflow publishes linux/amd64 and linux/arm64.
The Upstream workflow checks every pin daily against the latest upstream
(scripts/latest-upstream.py <stack>) and the base-image digests. A stack
that is behind is built and smoke-tested at the latest upstream
(make candidate-<stack> CANDIDATE_VERSION=… [CANDIDATE_SHA=…]); the
result goes to the issue "Upstream releases: pins behind the latest". Pins
are never changed by it.
To run the go-bacnet assertions, from a go-bacnet checkout next to this one:
make -C ../go-bacnet interop-pinned # against the published images pinned in interop/bacnet-interop-pin.json
make -C ../go-bacnet interop # against the :local images built hereEvery image writes JSON Lines to stdout. The first line is the ready event, written once the BACnet/IP socket is bound:
{"event":"ready","adapter":"bacnet-stack","version":"0.17.0","fixture":"device-baseline-v2",