Commit Graph

14 Commits (cb7213a09cfe0f93ec8e2e707f2ba83fcb2aea34)

Author SHA1 Message Date
Simon Stürz 3798cbb380 Update license text and add SPDX identifier 2025-11-14 15:21:23 +01:00
Simon Stürz 9ccaff3c2f Add Qt6 support 2025-08-21 15:26:39 +02:00
Michael Zanetti 365386ea71 Add IAS WD cluster 2022-05-13 11:21:20 +02:00
Michael Zanetti a38e8be190 Simplify ZigbeeCluster inheritance
Instead of having 2 methods (setAttribute and addOrUpdateAttribute)
to allow specific cluster implementations to override behavior,
merge them into one, setAttribute, and use standard C++ syntax for
calling a base class implementation.
2022-02-14 11:23:36 +01:00
Michael Zanetti df0b7e9c63 Rafactor handling of TSNs in ZCL to allow the application using it.
This patch separates the transactionSequenceNumber used for sending from the
one received. According to the specification, the transactionSequenceNumber is
not meant to equally increase on both ends, but instead really just be a "random"
number which allows to match a reply to a request. Syncing them on both ends
has the outcome to increase the likelyhood of collisions if a device sends
a notification at the same time we send a request and thus even may wrongly
interpret that incoming command as a reply to the request. In fact, ideally TSNs for
outgoing messages would stay away as far as possible from incoming ones.

The old code additionally had the problem that it would re-use the last received
TSN for outgoing requests, given it used a post-increment when reading
m_transactionSequenceNumber after setting it to the last received TSN.

The new code will use a single static upcounting TSN for all outgoing requests
but will still allow overriding it with a custom TSN of for some reason a certain
device requires a specific TSN (apparently those exist).
It will not do anything with incoming TSNs but forward them now to the application
layer which may decide to use it match its own transactions or to deduplicate packets.

This allows fixing the issue in nymea that remote controls sometimes produce duplicate
pressed events (seen most often with the Tradfri Symfonisk) by discarding commands that
didn't increase the TSN.
2022-01-22 13:51:21 +01:00
Michael Zanetti e7d533b9e8 Add support for IAS Zone enrollment 2021-10-15 17:01:14 +02:00
Simon Stürz 1dd3406120 Update IAS Zone cluster 2020-12-15 16:44:06 +01:00
Simon Stürz 1c30c1de8b Implement ZCL default response for clusters and improve ISA zone cluster 2020-12-15 15:17:41 +01:00
Simon Stürz 4eafe285b0 Clean up clusters and implement default get methods for now 2020-11-12 13:27:37 +01:00
Michael Zanetti 40512509ae Fix some typos 2020-11-11 14:43:26 +01:00
Simon Stürz cdd7a1a1aa Implement power configuration cluster 2020-06-13 21:18:01 +02:00
Simon Stürz 80d4b1416e Restructure the descriptor handling and implement level control cluster server side 2020-06-03 19:50:47 +02:00
Simon Stürz 71675df1c7 Improve IAS zone cluster attribute updating and implement generic cluster attribute changed signal for endpoints 2020-05-30 10:57:41 +02:00
Simon Stürz 8105a9082b Add identify and iaszone cluster implementations 2020-05-29 13:55:00 +02:00