From 6d187c17d0481f29339a5bebf34ed31cb329b484 Mon Sep 17 00:00:00 2001 From: SWS-Chipkin Date: Wed, 16 Sep 2026 17:52:10 -0700 Subject: [PATCH 1/3] docs: sync series profile table (adds Go column, links the 5 new B-SS ports) Co-Authored-By: Claude Sonnet 5 --- README.md | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 87 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c72207..f1185fb 100644 --- a/README.md +++ b/README.md @@ -260,9 +260,93 @@ browse its four objects and read their properties. ## The BACnet profile example series -This example is part of a series covering the BACnet standardized device -profiles (ANSI/ASHRAE 135 Annex L). See the sibling repositories in this -directory (`BACnetProfileExample-*`) for the other profiles and languages. + +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://store.chipkin.com/contact-us) if you need one. + +### Controllers (Annex L.4) + +| Profile | C++ | Node.js | C# | Rust | Python | Go | +|---|---|---|---|---|---|---| +| **B-SS** Smart Sensor | [B-SS-CPP](https://github.com/chipkin/BACnetProfileExample-B-SS-CPP) | [B-SS-Node](https://github.com/chipkin/BACnetProfileExample-B-SS-Node) | [B-SS-CS](https://github.com/chipkin/BACnetProfileExample-B-SS-CS) | [B-SS-Rust](https://github.com/chipkin/BACnetProfileExample-B-SS-Rust) | [B-SS-Python](https://github.com/chipkin/BACnetProfileExample-B-SS-Python) | [B-SS-Go](https://github.com/chipkin/BACnetProfileExample-B-SS-Go) | +| **B-SA** Smart Actuator | [B-SA-CPP](https://github.com/chipkin/BACnetProfileExample-B-SA-CPP) | Ask | 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 | Ask | +| **B-AAC** Advanced Application Controller | [B-AAC-CPP](https://github.com/chipkin/BACnetProfileExample-B-AAC-CPP) | Ask | Ask | Ask | Ask | Ask | +| **B-BC** Building Controller | [B-BC-CPP](https://github.com/chipkin/BACnetProfileExample-B-BC-CPP) | Ask | Ask | Ask | Ask | Ask | + +### Life safety controllers (Annex L.5) + +| Profile | C++ | Node.js | C# | Rust | Python | Go | +|---|---|---|---|---|---|---| +| **B-LSC** Life Safety Controller | [B-LSC-CPP](https://github.com/chipkin/BACnetProfileExample-B-LSC-CPP) 🚧 | Ask | 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 | Ask | + +### Access control controllers (Annex L.6) + +| Profile | C++ | Node.js | C# | Rust | Python | Go | +|---|---|---|---|---|---|---| +| **B-ACC** Access Control Controller | [B-ACC-CPP](https://github.com/chipkin/BACnetProfileExample-B-ACC-CPP) | Ask | 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 | Ask | + +### Lighting controllers (Annex L.11) + +| Profile | C++ | Node.js | C# | Rust | Python | Go | +|---|---|---|---|---|---|---| +| **B-LD** Lighting Device | [B-LD-CPP](https://github.com/chipkin/BACnetProfileExample-B-LD-CPP) | Ask | Ask | Ask | Ask | Ask | +| **B-LS** Lighting Supervisor | [B-LS-CPP](https://github.com/chipkin/BACnetProfileExample-B-LS-CPP) | Ask | Ask | Ask | Ask | Ask | + +### Elevator controllers (Annex L.13) + +| Profile | C++ | Node.js | C# | Rust | Python | Go | +|---|---|---|---|---|---|---| +| **B-EM** Elevator Monitor | [B-EM-CPP](https://github.com/chipkin/BACnetProfileExample-B-EM-CPP) | Ask | Ask | Ask | Ask | Ask | +| **B-EC** Elevator Controller | [B-EC-CPP](https://github.com/chipkin/BACnetProfileExample-B-EC-CPP) | Ask | Ask | Ask | Ask | Ask | +| **B-AEC** Advanced Elevator Controller | [B-AEC-CPP](https://github.com/chipkin/BACnetProfileExample-B-AEC-CPP) | Ask | Ask | Ask | Ask | Ask | + +### Authentication and authorization (Annex L.14) + +| Profile | C++ | Node.js | C# | Rust | Python | Go | +|---|---|---|---|---|---|---| +| **B-AS** Authorization Server | [B-AS-CPP](https://github.com/chipkin/BACnetProfileExample-B-AS-CPP) | Ask | Ask | Ask | Ask | Ask | + +### Miscellaneous (Annex L.7, combinable with any one family) + +| Profile | C++ | Node.js | C# | Rust | Python | Go | +|---|---|---|---|---|---|---| +| **B-BBMD** Broadcast Management Device | [B-BBMD-CPP](https://github.com/chipkin/BACnetProfileExample-B-BBMD-CPP) | Ask | 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 | Ask | +| **B-ACCR** Access Control Credential Reader | [B-ACCR-CPP](https://github.com/chipkin/BACnetProfileExample-B-ACCR-CPP) | Ask | Ask | Ask | Ask | Ask | +| **B-RTR** Router | [B-RTR-CPP](https://github.com/chipkin/BACnetProfileExample-B-RTR-CPP) | Ask | Ask | Ask | Ask | Ask | +| **B-GW** Gateway | [B-GW-CPP](https://github.com/chipkin/BACnetProfileExample-B-GW-CPP) | Ask | Ask | Ask | Ask | Ask | +| **B-DAP** Device Address Proxy | [B-DAP-CPP](https://github.com/chipkin/BACnetProfileExample-B-DAP-CPP) | Ask | Ask | Ask | Ask | Ask | +| **B-SCHUB** BACnet/SC Hub | [B-SCHUB-CPP](https://github.com/chipkin/BACnetProfileExample-B-SCHUB-CPP) | Ask | 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 | C# | Rust | Python | Go | +|---|---|---|---|---|---|---| +| **B-OD** Operator Display | [B-OD-CPP](https://github.com/chipkin/BACnetProfileExample-B-OD-CPP) | Ask | 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 From d89e8414a013c96b1c8fdf73dce7373c48fdecca Mon Sep 17 00:00:00 2001 From: SWS-Chipkin Date: Wed, 16 Sep 2026 18:02:16 -0700 Subject: [PATCH 2/3] fix: pin MSBuild PlatformToolset to v143 for the native library build windows-2022 GitHub-hosted runners don't have the v145 toolset the checked-out vcxproj requests installed, so the native DLL build failed with MSB8020 on this repo's first real CI run. v143 is what's actually present (confirmed locally and matches the sibling C#/CS build). Co-Authored-By: Claude Sonnet 5 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a8ef59..af74ece 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,7 +84,7 @@ jobs: $msbuild = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" ` -latest -products * -requires Microsoft.Component.MSBuild -find "MSBuild\**\Bin\MSBuild.exe" | Select-Object -First 1 & $msbuild submodules\cas-bacnet-stack\projects\msvs\BuildCASBACnetStack.sln ` - /p:Configuration=ReleaseDll /p:Platform=x64 /m + /p:Configuration=ReleaseDll /p:Platform=x64 /p:PlatformToolset=v143 /m if ($LASTEXITCODE -ne 0) { throw "MSBuild failed with exit code $LASTEXITCODE" } New-Item -ItemType Directory -Force lib | Out-Null Get-ChildItem submodules\cas-bacnet-stack\bin\CASBACnetStack_x64_Release.dll From 16fa8b44b001cde551f8cd16f9161762781e8b97 Mon Sep 17 00:00:00 2001 From: SWS-Chipkin Date: Wed, 16 Sep 2026 21:20:56 -0700 Subject: [PATCH 3/3] fix: add rpath so the Linux binary finds its native library at runtime The Linux CI smoke test failed with 'cannot open shared object file' even though libCASBACnetStack_x64_Release.so is copied right next to the executable - the -L flag only affects link-time symbol resolution, not the runtime loader's search path. Added -Wl,-rpath,'$ORIGIN' to the Linux cgo LDFLAGS to search the executable's own directory, matching Windows' default same-directory DLL search behavior. Co-Authored-By: Claude Sonnet 5 --- cas_bacnet_stack/cas_bacnet_stack_adapter.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cas_bacnet_stack/cas_bacnet_stack_adapter.go b/cas_bacnet_stack/cas_bacnet_stack_adapter.go index a384cb7..2452d72 100644 --- a/cas_bacnet_stack/cas_bacnet_stack_adapter.go +++ b/cas_bacnet_stack/cas_bacnet_stack_adapter.go @@ -28,7 +28,14 @@ package casbacnetstack /* #cgo CFLAGS: -I../submodules/cas-bacnet-stack/source #cgo windows LDFLAGS: -L../lib -lCASBACnetStack_x64_Release -#cgo linux LDFLAGS: -L../lib -lCASBACnetStack_x64_Release +// -Wl,-rpath,'$ORIGIN' makes the Linux dynamic linker search the +// executable's own directory at runtime, matching Windows' default +// same-directory DLL search. Without it, `go build` links fine but the +// resulting binary fails at startup with "cannot open shared object +// file" even when libCASBACnetStack_x64_Release.so sits right next to +// it - -L only affects link-time symbol resolution, not the runtime +// loader's search path. Found via a real CI failure, not by inspection. +#cgo linux LDFLAGS: -L../lib -lCASBACnetStack_x64_Release -Wl,-rpath,'$ORIGIN' #include #include "CASBACnetStackDLL.h"