ieee2030-5

Implementation guide

Resources and DER controls

Follow resource links, page through lists and select the active distributed energy resource control.

Serve and traverse a resource tree

Create a ResourceTree<T> for the resources an authenticated client may access. Give it limits sized for the device. Publish linked resources before publishing the objects that refer to them. Use the ordered member paths and timestamp keys from the function set when publishing a list. The tree checks that each member exists and that its resource type satisfies the list schema.

A client starts at its configured DeviceCapability URL and follows the advertised links. Resolve relative, absolute-path and absolute HTTPS links with resolve_href before sending a request. The resolver checks the destination against the authenticated origin. Pass PageQuery::parse the query component when reading a list. A page exposes the original total in all and the current results in members.len(). Advance by the number of members returned. Keep the same a value between requests when paging through equal timestamps. Each read observes the current tree.

method_mode exposes the 2018 WADL policy for each resource and method. The tree implements bounded collection insertion, replacement, and deletion. The publisher supplies the new resource path and list position on POST. A dangling single-resource link blocks deletion until its owner updates it. subscribe associates a subscription ID with a path. Mutations return the matching subscription IDs for delivery. IEEE supplemental WADL

Evaluate controls at an instant

Parse the program and control with Document::parse, obtain the generated DERProgram and DERControl views, and project the event with schedule::from_control. Supply the device category, first receipt time in server UTC seconds, and a stable random draw for each randomization interval. Persist these draws across polls of the same event. Each projection retains the complete mode element, including a curve link when present.

Use schedule::effective_control with the discovered program views, their defaults and their observed controls. It selects the default of the lowest-primacy program and evaluates the requested mode at the supplied time. Use schedule::select directly when the application already has projected events and its applicable default. The return value identifies the event mRID and the selected value, the fallback default, or idle. Selection uses half-open intervals. When a higher-priority overlap is known before a lower-priority event starts, the lower one is skipped. When the lower event is already active, it continues until the replacement starts. A displaced event stays displaced. Equal primacy and creation time for overlapping controls produce an explicit ambiguity error. Event::start and Event::end return the effective interval. To plan ahead, evaluate select once at each instant from schedule::changes; the selection is constant until the next one. CSIP Implementation Guide §7.10

Use one Responses instance per device and event. After each actual transition, call acknowledge and queue any returned POST for delivery to the event's replyTo link. A retry sends the queued write. Call report with a DER and validated availability, capability, settings or status XML to obtain its PUT target and payload.

Apply an Australian site limit

Enable the csip-aus Cargo feature and parse Australian resources with Document::parse_aus. The supported v1.2 namespace is https://csipaus.org/ns. Project each control with csip_aus::events and the site's connection-point ID. It returns one typed event per site limit, keyed by connection point and mode, and skips base modes. Use ActivePower::from_control to read a limit from a default. effective_limit also checks that a supplied default belongs to that key. Retain the signed mantissa and decimal multiplier when the application supports fractional watts. whole_watts returns an error if conversion would round or overflow. CSIP-AUS v1.2 Explainer §§6–7

Run the in-process exchanges, receipt-order scheduling examples and extension round trips from the repository root.

cargo test --features csip-aus --test resource --test schedule --test csip_aus
← All guides