trovis-modbus 3.1.0
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
TrovisWriteVerificationErrorfor 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_chargingremains 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
ModbusUnittiming-requirement API. - Request a 5 s connection timeout and 0 s connect delay for TROVIS
communication. - Update tests and mocks for the current
modbus-connectionAPI.
No intentional breaking changes are introduced to the public TROVIS device
model.