Skip to content

trovis-modbus 3.1.0

Choose a tag to compare

@Tom-Bom-badil Tom-Bom-badil released this 15 Sep 21:59
· 7 commits to main since this release

trovis-modbus 3.1.0

This release improves Modbus write reliability and updates the library for the
current modbus-connection 4.12.x API.

Write reliability

  • Add verified writes for normal state-setting registers and coils.
  • After a write, read back the affected datapoint and update the local cache
    only after successful verification.
  • On a lost write response, perform a targeted readback first instead of
    immediately repeating the write, avoiding unnecessary duplicate writes when
    the controller has already accepted the value.
  • Retry failed or mismatching normal writes up to two times.
  • Add the public TrovisWriteVerificationError for writes that cannot be
    verified successfully.
  • Apply the same write/readback verification to the TROVIS write-access
    register.

Safety

  • Explicitly mark one-shot command/trigger datapoints as non-retryable where
    repeating the command could have unintended effects.
  • In particular, forced_charging remains non-retryable because the exact
    controller behavior of repeated trigger writes is not sufficiently defined.

Modbus connection

  • Require modbus-connection >= 4.12.1, <5.
  • Use the current ModbusUnit timing-requirement API.
  • Request a 5 s connection timeout and 0 s connect delay for TROVIS
    communication.
  • Update tests and mocks for the current modbus-connection API.

No intentional breaking changes are introduced to the public TROVIS device
model.