Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Add Freeze support #320

Merged
merged 9 commits into from
Jul 8, 2019
Merged

Add Freeze support #320

merged 9 commits into from
Jul 8, 2019

Conversation

emgre
Copy link
Member

@emgre emgre commented Jun 28, 2019

Closes #319.

  • Add support for IMMED_FREEZE (0x07), IMMED_FREEZE_NR (0x08), FREEZE_CLEAR (0x09) and FREEZE_CLEAR_NR (0x0A).
  • The No Acknowledgment versions are available through the broadcast addresses
  • Support qualifier all (0x06) and start-stop 8-bit/16-bit (0x00, 0x01)
  • IOutstationApplication now must implement IDnpTimeSource, so it must be able to return the current time.
  • When a freeze operation occurs, the current value and flags of the counter is copied to the frozen value (if it exists). The current time (returned by IOutstationApplication) is used as a timestamp.
  • When a clear is done, the current time (returned by IOutstationApplication) is used as a timestamp for the counter.
  • The UpdateBuilder does not have an update member function to update the frozen counters, since all is done automatically now.
  • Manual freezing is available in UpdateBuilder, also in the C# and Java bindings.
  • A new DefaultOutstationApplication is available and it handles basic time synchronisation with std::chrono::system_clock.
  • The outstation demo was reverted (I had copied the TLS outstation by mistake...)

@emgre emgre requested a review from jadamcrain July 8, 2019 15:03
@emgre emgre merged commit a723e09 into develop Jul 8, 2019
@emgre emgre deleted the feature/freeze-counter branch November 15, 2019 13:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add freeze support (0x07, 0x08, 0x09, 0x0A) for counters (g20/g21)
2 participants