diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9518dd3..684055c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ # Build the B-BC example and publish a GitHub Release (binaries + metrics.json) when a -# vX.Y.Z tag is pushed. PRs and pushes to main run the same build + smoke test without +# vX.Y.Z tag is pushed. PRs run the same build + smoke test without # publishing. The build is exactly what README.md tells a customer to run: plain CMake in # the adapter's default SOURCE mode, which compiles the stack into the executable. # @@ -10,7 +10,6 @@ name: build-and-release on: pull_request: push: - branches: [main] tags: ["v*.*.*"] workflow_dispatch: diff --git a/README.md b/README.md index b1203a3..db09849 100644 --- a/README.md +++ b/README.md @@ -266,9 +266,9 @@ While the example runs, these keys are available: ## Verify -With [bacpypes3](https://github.com/JoelBender/bacpypes3), `BAC0`, the -[CAS BACnet Explorer](https://store.chipkin.com/products/tools/cas-bacnet-explorer), -or any client: +With the +[CAS BACnet Explorer](https://store.chipkin.com/products/tools/cas-bacnet-explorer) +or any BACnet client: 1. **Discover** - Who-Is -> I-Am from `389005` (vendor `389`). *Verified live.* 2. **Object model** - fifteen objects incl. Analog Value "Diamond", Notification @@ -299,109 +299,95 @@ or any client: For a property-by-property review against the conformance statement, see [TUTORIAL.md](TUTORIAL.md). -## Footprint - -Release-build sizes and start-up timing, from the latest tagged release's CI -run (`metrics-windows.json` / `metrics-linux.json`): - - -| Platform | Binary | Size | SHA-256 (prefix) | Start-up to `ready` | Stack commit | Link mode | Compiler | -|---|---|---|---|---|---|---|---| -| Windows x64 (windows-2022) | `BACnetExampleBBC.exe` | 3,457,536 bytes (~3.3 MiB) | `fc06ece93ad8983d` | 540 ms | `abd4cee1` | STATIC | Visual Studio 17 2022 | -| Linux x64 (ubuntu-latest) | `BACnetExampleBBC` | 64,216 bytes (~63 KiB) | `88daf21f620cedeb` | 109 ms | `abd4cee1` | STATIC | `/usr/bin/c++` | - -From release [v1.0.0](https://github.com/chipkin/BACnetProfileExample-B-BC-CPP/releases/tag/v1.0.0). -v1.0.0 was built with `CAS_BACNET_STACK_LINK=STATIC`; the next release refreshes -these numbers from the SOURCE-mode build documented above. ## The BACnet profile example series -The CAS BACnet Stack supports every standardized device profile in ASHRAE 135-2024 Annex L, and there is one example repository per profile. Pick the profile your device claims, then the language you build in. +The CAS BACnet Stack supports every standardized device profile in ASHRAE 135-2024 Annex L, and there is one example repository per profile. Pick the profile your device claims, then the language you build in. "Ask" means the example hasn't been built yet for that language - [contact Chipkin](https://www.chipkin.com/contact/) if you need one. ### Controllers (Annex L.4) -| Profile | C++ | Node.js | -|---|---|---| -| **B-SS** Smart Sensor | [B-SS-CPP](https://github.com/chipkin/BACnetProfileExample-B-SS-CPP) | — | -| **B-SA** Smart Actuator | [B-SA-CPP](https://github.com/chipkin/BACnetProfileExample-B-SA-CPP) | — | -| **B-ASC** Application Specific Controller | [B-ASC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ASC-CPP) | [B-ASC-Node](https://github.com/chipkin/BACnetProfileExample-B-ASC-Node) | -| **B-AAC** Advanced Application Controller | [B-AAC-CPP](https://github.com/chipkin/BACnetProfileExample-B-AAC-CPP) | — | -| **B-BC** Building Controller | [B-BC-CPP](https://github.com/chipkin/BACnetProfileExample-B-BC-CPP) | — | +| Profile | C++ | Node.js | C# | Rust | Python | +|---|---|---|---|---|---| +| **B-SS** Smart Sensor | [B-SS-CPP](https://github.com/chipkin/BACnetProfileExample-B-SS-CPP) | Ask | Ask | Ask | Ask | +| **B-SA** Smart Actuator | [B-SA-CPP](https://github.com/chipkin/BACnetProfileExample-B-SA-CPP) | Ask | Ask | Ask | Ask | +| **B-ASC** Application Specific Controller | [B-ASC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ASC-CPP) | [B-ASC-Node](https://github.com/chipkin/BACnetProfileExample-B-ASC-Node) | Ask | Ask | Ask | +| **B-AAC** Advanced Application Controller | [B-AAC-CPP](https://github.com/chipkin/BACnetProfileExample-B-AAC-CPP) | Ask | Ask | Ask | Ask | +| **B-BC** Building Controller | [B-BC-CPP](https://github.com/chipkin/BACnetProfileExample-B-BC-CPP) | Ask | Ask | Ask | Ask | ### Life safety controllers (Annex L.5) -| Profile | C++ | Node.js | -|---|---|---| -| **B-LSC** Life Safety Controller | [B-LSC-CPP](https://github.com/chipkin/BACnetProfileExample-B-LSC-CPP) 🚧 | — | -| **B-ALSC** Advanced Life Safety Controller | [B-ALSC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ALSC-CPP) | — | +| Profile | C++ | Node.js | C# | Rust | Python | +|---|---|---|---|---|---| +| **B-LSC** Life Safety Controller | [B-LSC-CPP](https://github.com/chipkin/BACnetProfileExample-B-LSC-CPP) 🚧 | Ask | Ask | Ask | Ask | +| **B-ALSC** Advanced Life Safety Controller | [B-ALSC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ALSC-CPP) | Ask | Ask | Ask | Ask | ### Access control controllers (Annex L.6) -| Profile | C++ | Node.js | -|---|---|---| -| **B-ACC** Access Control Controller | [B-ACC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ACC-CPP) | — | -| **B-AACC** Advanced Access Control Controller | [B-AACC-CPP](https://github.com/chipkin/BACnetProfileExample-B-AACC-CPP) | — | +| Profile | C++ | Node.js | C# | Rust | Python | +|---|---|---|---|---|---| +| **B-ACC** Access Control Controller | [B-ACC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ACC-CPP) | Ask | Ask | Ask | Ask | +| **B-AACC** Advanced Access Control Controller | [B-AACC-CPP](https://github.com/chipkin/BACnetProfileExample-B-AACC-CPP) | Ask | Ask | Ask | Ask | ### Lighting controllers (Annex L.11) -| Profile | C++ | Node.js | -|---|---|---| -| **B-LD** Lighting Device | [B-LD-CPP](https://github.com/chipkin/BACnetProfileExample-B-LD-CPP) | — | -| **B-LS** Lighting Supervisor | [B-LS-CPP](https://github.com/chipkin/BACnetProfileExample-B-LS-CPP) | — | +| Profile | C++ | Node.js | C# | Rust | Python | +|---|---|---|---|---|---| +| **B-LD** Lighting Device | [B-LD-CPP](https://github.com/chipkin/BACnetProfileExample-B-LD-CPP) | Ask | Ask | Ask | Ask | +| **B-LS** Lighting Supervisor | [B-LS-CPP](https://github.com/chipkin/BACnetProfileExample-B-LS-CPP) | Ask | Ask | Ask | Ask | ### Elevator controllers (Annex L.13) -| Profile | C++ | Node.js | -|---|---|---| -| **B-EM** Elevator Monitor | [B-EM-CPP](https://github.com/chipkin/BACnetProfileExample-B-EM-CPP) | — | -| **B-EC** Elevator Controller | [B-EC-CPP](https://github.com/chipkin/BACnetProfileExample-B-EC-CPP) | — | -| **B-AEC** Advanced Elevator Controller | [B-AEC-CPP](https://github.com/chipkin/BACnetProfileExample-B-AEC-CPP) | — | +| Profile | C++ | Node.js | C# | Rust | Python | +|---|---|---|---|---|---| +| **B-EM** Elevator Monitor | [B-EM-CPP](https://github.com/chipkin/BACnetProfileExample-B-EM-CPP) | Ask | Ask | Ask | Ask | +| **B-EC** Elevator Controller | [B-EC-CPP](https://github.com/chipkin/BACnetProfileExample-B-EC-CPP) | Ask | Ask | Ask | Ask | +| **B-AEC** Advanced Elevator Controller | [B-AEC-CPP](https://github.com/chipkin/BACnetProfileExample-B-AEC-CPP) | Ask | Ask | Ask | Ask | ### Authentication and authorization (Annex L.14) -| Profile | C++ | Node.js | -|---|---|---| -| **B-AS** Authorization Server | [B-AS-CPP](https://github.com/chipkin/BACnetProfileExample-B-AS-CPP) | — | +| Profile | C++ | Node.js | C# | Rust | Python | +|---|---|---|---|---|---| +| **B-AS** Authorization Server | [B-AS-CPP](https://github.com/chipkin/BACnetProfileExample-B-AS-CPP) | Ask | Ask | Ask | Ask | ### Miscellaneous (Annex L.7, combinable with any one family) -| Profile | C++ | Node.js | -|---|---|---| -| **B-BBMD** Broadcast Management Device | [B-BBMD-CPP](https://github.com/chipkin/BACnetProfileExample-B-BBMD-CPP) | — | -| **B-ACDC** Access Control Door Controller | [B-ACDC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ACDC-CPP) | — | -| **B-ACCR** Access Control Credential Reader | [B-ACCR-CPP](https://github.com/chipkin/BACnetProfileExample-B-ACCR-CPP) | — | -| **B-RTR** Router | [B-RTR-CPP](https://github.com/chipkin/BACnetProfileExample-B-RTR-CPP) | — | -| **B-GW** Gateway | [B-GW-CPP](https://github.com/chipkin/BACnetProfileExample-B-GW-CPP) | — | -| **B-DAP** Device Address Proxy | [B-DAP-CPP](https://github.com/chipkin/BACnetProfileExample-B-DAP-CPP) | — | -| **B-SCHUB** BACnet/SC Hub | [B-SCHUB-CPP](https://github.com/chipkin/BACnetProfileExample-B-SCHUB-CPP) | — | -| **B-GENERAL** General device (Annex L.8) | *(satisfied by every example above)* | — | +| Profile | C++ | Node.js | C# | Rust | Python | +|---|---|---|---|---|---| +| **B-BBMD** Broadcast Management Device | [B-BBMD-CPP](https://github.com/chipkin/BACnetProfileExample-B-BBMD-CPP) | Ask | Ask | Ask | Ask | +| **B-ACDC** Access Control Door Controller | [B-ACDC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ACDC-CPP) | Ask | Ask | Ask | Ask | +| **B-ACCR** Access Control Credential Reader | [B-ACCR-CPP](https://github.com/chipkin/BACnetProfileExample-B-ACCR-CPP) | Ask | Ask | Ask | Ask | +| **B-RTR** Router | [B-RTR-CPP](https://github.com/chipkin/BACnetProfileExample-B-RTR-CPP) | Ask | Ask | Ask | Ask | +| **B-GW** Gateway | [B-GW-CPP](https://github.com/chipkin/BACnetProfileExample-B-GW-CPP) | Ask | Ask | Ask | Ask | +| **B-DAP** Device Address Proxy | [B-DAP-CPP](https://github.com/chipkin/BACnetProfileExample-B-DAP-CPP) | Ask | Ask | Ask | Ask | +| **B-SCHUB** BACnet/SC Hub | [B-SCHUB-CPP](https://github.com/chipkin/BACnetProfileExample-B-SCHUB-CPP) | Ask | Ask | Ask | Ask | +| **B-GENERAL** General device (Annex L.8) | *(satisfied by every example above)* | — | — | — | — | ### Operator interfaces and workstations (Annex L.1–L.3, L.9–L.10, L.12) Client-side profiles. -| Profile | C++ | Node.js | -|---|---|---| -| **B-OD** Operator Display | [B-OD-CPP](https://github.com/chipkin/BACnetProfileExample-B-OD-CPP) | — | -| **B-OWS** Operator Workstation | planned | — | -| **B-AWS** Advanced Operator Workstation | planned | — | -| **B-XAWS** Extended Advanced Operator Workstation | planned | — | -| **B-LSAP** Life Safety Annunciator Panel | planned | — | -| **B-LSWS** Life Safety Workstation | planned | — | -| **B-ALSWS** Advanced Life Safety Workstation | planned | — | -| **B-ACSD** Access Control Security Display | planned | — | -| **B-ACWS** Access Control Workstation | planned | — | -| **B-AACWS** Advanced Access Control Workstation | planned | — | -| **B-LOD** Lighting Operator Display | planned | — | -| **B-ALWS** Advanced Lighting Workstation | planned | — | -| **B-LCS** Lighting Control Station | planned | — | -| **B-ALCS** Advanced Lighting Control Station | planned | — | -| **B-ED** Elevator Display | planned | — | -| **B-EWS** Elevator Workstation | planned | — | -| **B-AEWS** Advanced Elevator Workstation | planned | — | - -🚧 = in progress. Profile definitions: ANSI/ASHRAE 135-2024 Annex L. BIBB definitions: Annex K. Get the stack: . +| Profile | C++ | Node.js | C# | Rust | Python | +|---|---|---|---|---|---| +| **B-OD** Operator Display | [B-OD-CPP](https://github.com/chipkin/BACnetProfileExample-B-OD-CPP) | Ask | Ask | Ask | Ask | +| **B-OWS** Operator Workstation | planned | — | — | — | — | +| **B-AWS** Advanced Operator Workstation | planned | — | — | — | — | +| **B-XAWS** Extended Advanced Operator Workstation | planned | — | — | — | — | +| **B-LSAP** Life Safety Annunciator Panel | planned | — | — | — | — | +| **B-LSWS** Life Safety Workstation | planned | — | — | — | — | +| **B-ALSWS** Advanced Life Safety Workstation | planned | — | — | — | — | +| **B-ACSD** Access Control Security Display | planned | — | — | — | — | +| **B-ACWS** Access Control Workstation | planned | — | — | — | — | +| **B-AACWS** Advanced Access Control Workstation | planned | — | — | — | — | +| **B-LOD** Lighting Operator Display | planned | — | — | — | — | +| **B-ALWS** Advanced Lighting Workstation | planned | — | — | — | — | +| **B-LCS** Lighting Control Station | planned | — | — | — | — | +| **B-ALCS** Advanced Lighting Control Station | planned | — | — | — | — | +| **B-ED** Elevator Display | planned | — | — | — | — | +| **B-EWS** Elevator Workstation | planned | — | — | — | — | +| **B-AEWS** Advanced Elevator Workstation | planned | — | — | — | — | + +🚧 = in progress. "Ask" = not yet built for that language; contact Chipkin if you need it. Profile definitions: ANSI/ASHRAE 135-2024 Annex L. BIBB definitions: Annex K. Get the stack: . ## References