alengwenus / pypck

Asynchronous LCN-PCK library written in Python
MIT License
8 stars 4 forks source link

Handle global status responses #71

Closed alengwenus closed 3 years ago

alengwenus commented 3 years ago

If a module is configured to send local status responses, it sends the message to segment id 0 which works fine.

If it is configured to send global status responses, the message is targeted to segment 4 (all segments). A segment coupler in the same segment of PCHK will then replace the segment information with the local segment id. However, if there is no segment coupler, segment id 4 has to be handled the same way as segment id 0. Therefore segment id 4 needs to be translated to the logical source address just as id 0.

alengwenus commented 3 years ago

Fixed in https://github.com/alengwenus/pypck/commit/892e1d74ebc5c12ece69b97c5b628ffe2f172bd1.