Skip to content

Stack 6.0.22, SCHED-E-B wire verification, TODO issue tracking (1.0.6) - #17

Merged
sws-chipkin merged 9 commits into
mainfrom
update-stack-6x
Sep 23, 2026
Merged

sws-chipkin merged 9 commits into
mainfrom
update-stack-6x

Conversation

@sws-chipkin

@sws-chipkin sws-chipkin commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Brings main from 1.0.2 up to 1.0.6.

Stack: 6.0.21 -> 6.0.22

  • The submodule moves from issues/runbook @ a8d3b6bf back to 6.x @ 22ac3c98, the branch .gitmodules names. #2163, #2164 and #2165 are all on 6.x now.
  • An existing build tree needs cmake -B build re-run before building (cas-bacnet-stack#2342).

Fixes and verification

Also included (earlier local commits)

  • 1.0.3: Application_Software_Version and Firmware_Revision now report the real values.
  • common/ synced to 3.0.0, which merges the B-BC and B-SCHUB forks.
  • 1.0.4: Device renamed "Rainbow" -> "Chipkin Example B-BC".

Testing

  • Built on Windows with NMake against 6.0.22. --version prints v1.0.6 / 6.0.22.0 / common 3.0.0.
  • Checked live with bacpypes3: Device_Address_Binding, ReadPropertyMultiple of the whole Device, Weekly_Schedule, Trend Log 1 (20 records) / Trend Log Multiple 1 (21) record counts, Network Port properties, and tests/sched_e_b_remote_peer.py (PASS).

Also merges main (#9) and resolves its conflicts: TODO items renumbered, and #9's CHANGELOG entry moved into 1.0.6.

Closes #6
Closes #12
Closes #13

🤖 Generated with Claude Code

sws-chipkin and others added 9 commits September 22, 2026 01:50
…values

Application_Software_Version (12) and Firmware_Revision (44) were hardcoded
to the literal "1.0.0" regardless of the actual build. Application_Software_Version
now reads APP_VERSION directly (one source of truth with --version's own
banner). Firmware_Revision is now built at runtime from the CAS BACnet
Stack's own BACnetStack_GetAPIMajorVersion()/GetAPIMinorVersion()/
GetAPIPatchVersion()/GetAPIBuildVersion() (the same 4 calls
common/CASExampleHelper.cpp's PrintVersion() already uses for the startup
banner), populated once right after LoadBACnetFunctions() succeeds.

Bump to 1.0.3 and add CHANGELOG entry per this series' rebuild convention.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The prior commit's CHANGELOG entry for the Application_Software_Version /
Firmware_Revision fix didn't yet have real verification numbers. Add them:
a live ReadProperty via bacpypes3 against the running device confirmed
Application_Software_Version = "1.0.3" and Firmware_Revision = "6.0.21.0",
matching the running build instead of the old stale "1.0.0" constant.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This repo's own common/ line (2.6.0-2.9.0: RX/TX service/object/
property-naming SummarizeBacnetFrame(), the --xml frame dump,
GetLocalLinkSpeedBitsPerSecond(), Local_Date/Local_Time property IDs)
had never been re-synced series-wide. Meanwhile
BACnetProfileExample-B-SCHUB-CPP separately carried its own,
differently-numbered 2.6.0-2.7.0 (the CASExampleLog structured-logging
facility, ParseDccPasswordArg(), HandleHelpAndVersionArgs()'s
showDccPasswordCliOption parameter, KeyCommand::Metrics), reusing this
repo's version numbers for unrelated content.

The two lines touch disjoint code and merge without functional conflict;
common/ 3.0.0 combines both, so this repo picks up SCHUB's additions
while keeping everything it already had. Verified by rebuilding (this
repo's own code, the origin of most of this content, needed no other
changes) and running --version locally: "Common helper (common/)
version: 3.0.0".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Every example in the series announced the identical Object_Name
"Rainbow" for its Device object, so two examples running on the same
subnet were indistinguishable by name. Renamed to "Chipkin Example
B-BC" (the series' BACnet profile code) so devices are identifiable
on the network; sub-object names are unchanged. docs/colour-table.md
(series root, not in this repo) updated to match. APP_VERSION bumped
1.0.3 -> 1.0.4.

Verified by rebuilding and confirming the new name in the startup log.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… pass

docs/objects.json (the input to tools/gen-objects-properties.py, which
generates docs/PICS.md) still had the Device object's
after the device-rename commit updated main.cpp/README.md/AGENTS.md/
docs/PICS.md directly but missed this source file. Fixed to "Chipkin Example
B-BC", matching what main.cpp now serves. Re-ran
tools/gen-objects-properties.py against this repo to confirm docs/PICS.md
(already updated by hand in the rename commit) is byte-identical to what
the generator now produces from the corrected JSON - no drift.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Moves the stack submodule from issues/runbook @ a8d3b6bf (6.0.21) back
to the 6.x branch .gitmodules names, now at release 6.0.22. The fixes
the old pin was ahead of 6.x for (#2163/#2164/#2165) have landed on 6.x.
No main.cpp change needed beyond the version bump. An existing build
tree needs `cmake -B build` re-run first (cas-bacnet-stack#2342).

Re-verified TODO.md live on 6.0.22 (bacpypes3):
- #2051 Trend Log 1 Record_Count still 0 (Magenta: 32 records)
- #2050 AddTrendLogObject flood: gone (0 lines)
- #2196 closed upstream but still reproduces -> refiled as #2340
- new item 8: startup SC "UUID has not been set" error -> #2341
- Device_Address_Binding, RPM(Device, ALL), Weekly_Schedule all clean

Also commits TUTORIAL.md's "Rainbow" -> "Chipkin Example B-BC"
rename, left uncommitted by the 1.0.4 pass.

Refs #12, #13, #14, #15, #16

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds tests/sched_e_b_remote_peer.py. It plays peer device 389002 with
a commandable AO 1 on its own UDP port and sends B-BC a unicast I-Am,
so the stack's DAB binds it on a single host without a BBMD. It then
writes Schedule 1's Schedule_Default to force a re-evaluation.
Result on 6.0.22: B-BC sends WriteProperty Analog_Output 1.Present_Value
@ priority 8 to the peer, the peer SimpleACKs and its Priority_Array[8]
reads 42.5 (RESULT: PASS).

Stack gap found along the way: the startup evaluation runs before the
peer is bound, so the write is skipped ("not resolved in DAB") and never
re-sent after the I-Am arrives. Filed as cas-bacnet-stack#2343. TODO.md
item 3, TUTORIAL.md and AGENTS.md updated to match.

Closes #6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Calendar Date_List gap: closed cas-bacnet-stack #963 -> #1758 in
  main.cpp comments, README.md and docs/objects.json (PICS regenerated).
- SCHED-E-B: README, PICS and objects.json no longer say the remote
  write is "not wire-verified". They link #2343 (dropped startup write).
- README known-gaps summary drops the #2050 flood (gone on 6.0.22).
- APP_VERSION 1.0.5 -> 1.0.6; CHANGELOG 1.0.4-1.0.6 dated 2026-09-22.

Rebuilt and smoke-tested: v1.0.6 / stack 6.0.22.0 banner, device
ready, tests/sched_e_b_remote_peer.py PASS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts resolved in favour of both sides:
- #9 showed #2051 was an example bug (window built from local time,
  stack compares UTC), not a stack defect. Dropped every "Lilac never
  records" claim this branch had carried forward; TODO.md item 1 stays
  removed and items are renumbered (tracking-issue list, cross-refs in
  AGENTS.md, TUTORIAL.md and docs/objects.json updated to match).
- Kept this branch's 6.0.22 / SCHED-E-B / #2340-#2343 content.
- Moved #9's CHANGELOG entry out of the 1.0.1 section into 1.0.6.
- Last #963 references -> #1758; PICS regenerated.

Re-verified live on the merged build (v1.0.6, stack 6.0.22):
Trend Log 1 Record_Count 20, Trend Log Multiple 1 21, 0 flood lines,
RPM(Device, ALL) ok, tests/sched_e_b_remote_peer.py PASS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sws-chipkin
sws-chipkin merged commit fa37054 into main Sep 23, 2026
3 checks passed
@sws-chipkin
sws-chipkin deleted the update-stack-6x branch October 21, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant