39 lines
1.8 KiB
Go
39 lines
1.8 KiB
Go
// Copyright © 2026 Setti Solutions S.R.L, www.setti.md. All rights reserved.
|
|
|
|
package main
|
|
|
|
import "time"
|
|
|
|
// The values the bridge uses that are not facts of a device (docs/
|
|
// parameters.md U3, E9: no number standing for a real-world fact lives in
|
|
// the code unless it is law, a specification's rule or a safe side). One
|
|
// place: every use refers to these.
|
|
|
|
// Para14aMinW: §14a EnWG's minimum power a grid operator must leave a
|
|
// controllable consumer (Mindestbezugsleistung, 4.2 kW): Bundesnetzagentur,
|
|
// Festlegung BK6-22-300 of 27.11.2023, Anlage 1 (netzorientierte Steuerung).
|
|
// Used only as the LPC failsafe limit the bridge holds until the control box
|
|
// writes its own (the lowest the operator may impose: the safe side); the
|
|
// control box's own value wins as soon as it sent one. Not applied: the
|
|
// higher minimum for several devices or large heat pumps behind one energy
|
|
// manager (Anlage 1's scaling): the control box computes the limit.
|
|
const Para14aMinW = 4200.0
|
|
|
|
// LPCFailsafeDurationMin: the shortest failsafe duration the EEBUS use case
|
|
// allows (UC TS Limitation of Power Consumption V1.0.0, scenario 2: the
|
|
// failsafe duration minimum is 2 h to 24 h; eebus-go's cs/lpc
|
|
// SetFailsafeDurationMinimum refuses anything outside). Held until the
|
|
// control box writes its own.
|
|
const LPCFailsafeDurationMin = 2 * time.Hour
|
|
|
|
// OrderPhases: a W budget turned into amps for a wallbox whose phase count
|
|
// is not known: three phases, the most a connection has, so the current
|
|
// never lets it draw more than the budget (the safe side, as the agent's
|
|
// evphases.ASSUMED["order"]). Never used to declare a power.
|
|
const OrderPhases = 3.0
|
|
|
|
// IECMinChargeA: the least charging current a wallbox can signal (IEC
|
|
// 61851-1, control pilot PWM: 6 A); below it a wallbox's share pauses it.
|
|
// The wallbox's own current_min wins where it reports one.
|
|
const IECMinChargeA = 6.0
|