Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,50 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [1.0.1] - 2026-09-17

### Fixed

- **Reading the Device's `Description` aborted the connection instead of
returning the string.** `DEVICE_DESCRIPTION` was 286 characters, over the
stack's 256-character buffer on a full build - and, contrary to the
truncation guard's own (wrong) comment claiming this string "fits with
room to spare," the over-length read Aborted outright rather than being
truncated. Shortened to 214 characters (well under the limit, with real
margin) and corrected the guard's comment; it now also warns loudly if a
served string is ever too long again, instead of silently clipping it.
This was also the actual trigger for `ReadPropertyMultiple(ALL)` aborting
the entire Device read (see chipkin/cas-bacnet-stack#2175) - fixing it
here makes RPM(ALL) on the Device object succeed even before that stack
issue lands. (chipkin/BACnetProfileExample-B-BC-CPP#7)
- **The Device's `Local_Date`/`Local_Time` read back `Error:
read-access-denied`**, even though this example claims DM-TS-B/DM-UTC-B -
these two properties are exactly what a client reads to confirm a time
sync took. The stack deliberately refuses to invent a default for either
(documented in `main.cpp`'s "WHAT false-WITHOUT-AN-ERROR-CODE ACTUALLY
DOES" comment) - the app has to actually serve them. `GetPropertyDate`/
`GetPropertyTime` now answer the Device object with the real wall-clock
local date/time, the same clock `HelperGetSystemTime()` already uses.
New `PROPERTY_IDENTIFIER_LOCAL_DATE`/`_LOCAL_TIME` constants in `common/`
2.8.0. (chipkin/BACnetProfileExample-B-BC-CPP#7)

### Changed

- `README.md`/`docs/PICS.md` said `Protocol_Revision 24`; the running device
(against the currently pinned stack) reports 26 - the stack computes this
value itself, so this was a docs-only correction, not a code change.
Updated the "Versions" banner to the current stack commit (`986c48a6`) and
`common/` version (2.8.0) too. (chipkin/BACnetProfileExample-B-BC-CPP#7)

### Added

- Synced `common/` to 2.7.0 (from `BACnetProfileExample-B-SS-CPP`): RX/TX log
lines now name the service, the object/property being requested, and any
NPDU routing destination (DNET/DADR) - live-verified against this
example's own SCHED-E-B remote-discovery Who-Is, which correctly showed
`DNET=65535`. A new `--xml` option (off by default) prints every frame as
a full XML block instead. See `common/CHANGELOG.md` for the decode
details.

### Changed

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ and ReadRange). It listens on **BACnet/IP (UDP 47808)** and claims only B-BC.
Statement: every object, every property, and who answers it.

> **Versions:** this document describes **example v1.0.0**, built and verified
> against **CAS BACnet Stack 6.0.21** (`6.x` @ `abd4cee1`), at
> **Protocol_Revision 24**, with the vendored `common/` helper at **v2.5.0**.
> against **CAS BACnet Stack 6.0.21** (`6.x` @ `986c48a6`), at
> **Protocol_Revision 26**, with the vendored `common/` helper at **v2.8.0**.
> Running the example prints all three - if what it prints disagrees with this
> line, trust the program and check `CHANGELOG.md`.

Expand Down Expand Up @@ -274,7 +274,7 @@ or any BACnet client:
2. **Object model** - fifteen objects incl. Analog Value "Diamond", Notification
Class "Crimson", Schedule "Saffron", Calendar "Cream", File "Ivory", Trend Log
"Lilac" and Trend Log Multiple "Magenta". `Object_List` lists them all;
`Protocol_Revision` = 24. *Verified live.*
`Protocol_Revision` = 26. *Verified live.*
3. **Command an output (F-OUTPUTS)** - WriteProperty Analog Output 1
(Chartreuse) `Present_Value` at a priority; read it back. *Verified live.*
4. **Fire an alarm** - WriteProperty Diamond `Present_Value` = `95`; read
Expand Down
3 changes: 3 additions & 0 deletions common/CASBACnetStackExampleConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ static const uint32_t PROPERTY_IDENTIFIER_APPLICATION_SOFTWARE_VERSION = 12;
static const uint32_t PROPERTY_IDENTIFIER_APDU_LENGTH = 399;
static const uint32_t PROPERTY_IDENTIFIER_DESCRIPTION = 28;
static const uint32_t PROPERTY_IDENTIFIER_FIRMWARE_REVISION = 44;
static const uint32_t PROPERTY_IDENTIFIER_LOCAL_DATE = 56;
static const uint32_t PROPERTY_IDENTIFIER_LOCAL_TIME = 57;
static const uint32_t PROPERTY_IDENTIFIER_LOCATION = 58;
static const uint32_t PROPERTY_IDENTIFIER_MODEL_NAME = 70;
static const uint32_t PROPERTY_IDENTIFIER_IP_ADDRESS = 400;
static const uint32_t PROPERTY_IDENTIFIER_IP_DEFAULT_GATEWAY = 401;
static const uint32_t PROPERTY_IDENTIFIER_BACNET_IP_MODE = 408;
static const uint32_t PROPERTY_IDENTIFIER_IP_SUBNET_MASK = 411;
static const uint32_t PROPERTY_IDENTIFIER_BACNET_IP_UDP_PORT = 412;
static const uint32_t PROPERTY_IDENTIFIER_LINK_SPEED = 420;
static const uint32_t PROPERTY_IDENTIFIER_MAC_ADDRESS = 423;
static const uint32_t PROPERTY_IDENTIFIER_NUMBER_OF_STATES = 74;
static const uint32_t PROPERTY_IDENTIFIER_OBJECT_IDENTIFIER = 75;
Expand Down
Loading
Loading