The map knew the names the card was showing as hex
Every field in the cloud MQTT map that has a documented meaning now reads as a named row, on the same labels the register map uses for the same quantities. The raw block stays, and shrinks to what genuinely nobody has identified — which is the only honest reason for a key like 0410.b9 to be on screen at all. Three fields the reference decodes for nobody are decoded here. ac is where the charge is coming from — off or paused, grid, solar — and it is called chargingSource rather than chargingMode, because that name already belongs to a Modbus register and the last time a cloud field borrowed one, d9 spent a release reporting the wrong thing under the right name. b6 is the session's order id. f1, f2 and f3 are the identity fields the reference marks multi-value: four bytes read as the parts of a version, in the order they arrive, which is what the account view's own firmware string looks like. If the panel shows those parts reversed, the order is the thing to flip — it is the one assumption here that the wire has not yet confirmed. The rest was already decoded and simply never drawn. The readings card now shows the session's start, its id, the charging source, whether a cable is in, the charging window, and — since a reading is worth what its age is — the live-stream flag and both stream clocks, because telemetry and settings arrive on different messages with different triggers. Per-phase session energy joins the phase matrix as a fourth column, appearing on the transport that counts a session and staying away from the one that does not, exactly as the reactive and apparent pair does. The settings block gains the fourteen the register map has no address for: plug lock, auto restart, random delay, the schedule and its mode, the weekend window and how the weekend is handled, the light-off schedule and window, the breaker limit, the solar mode and its minimum current, automatic phase switching, the three panel gestures, and what the two balancing features are watching — the meter and monitor serials by name, their two unpinned numbers as the numbers they are. A local network block says whether the charger's own Modbus server is on and where, which is the answer the Modbus mode's setup screen otherwise has to be given by hand. The device block gains the controller version. A test now holds the line the projection quietly drew: every name in the message maps must reach a snapshot field. A name added to a map without a field to land in would otherwise surface in the raw block looking like something we understood. Left raw: a1, the frame opener the charger echoes back; b7, which the map itself calls unidentified; b9, bc and bd, which appear in no map; the five-minute 0400; and 0857 — a message type the reference's closed inventory of fourteen does not contain and this charger publishes anyway. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
197ff73a39
commit
8e2073fc4c
@@ -169,6 +169,56 @@
|
||||
"currentRange": "Strømområde",
|
||||
"ocppLink": "OCPP",
|
||||
"mqttLink": "MQTT",
|
||||
"plugged": "Kabel tilsluttet",
|
||||
"chargingSource": "Lader fra",
|
||||
"chargingWindow": "Ladevindue",
|
||||
"sessionStarted": "Session startet",
|
||||
"orderId": "Sessions-id",
|
||||
"liveStream": "Live-strøm",
|
||||
"telemetryAt": "Aflæsninger opdateret",
|
||||
"settingsAt": "Indstillinger opdateret",
|
||||
"plugLock": "Stiklås",
|
||||
"autoRestart": "Automatisk genstart",
|
||||
"randomDelay": "Tilfældig startforsinkelse",
|
||||
"scheduleEnabled": "Ladeplan",
|
||||
"scheduleMode": "Plantilstand",
|
||||
"weekendWindow": "Weekendvindue",
|
||||
"weekendMode": "Weekendhåndtering",
|
||||
"lightOff": "Lysslukningsplan",
|
||||
"lightOffWindow": "Lysslukningsvindue",
|
||||
"mainBreakerLimit": "Hovedsikringsgrænse",
|
||||
"solarChargeMode": "Solcelletilstand",
|
||||
"solarMinCurrent": "Mindste solcellestrøm",
|
||||
"autoPhaseSwitching": "Automatisk faseskift",
|
||||
"swipeUp": "Stryg op",
|
||||
"swipeDown": "Stryg ned",
|
||||
"smartTouch": "Berøringstilstand",
|
||||
"loadBalanceMeter": "Belastningsmåler",
|
||||
"loadBalanceMonitorMode": "Overvågningstilstand for belastning",
|
||||
"loadBalanceMeterFlag": "Målerflag for belastning",
|
||||
"solarMonitor": "Solcelleovervågning",
|
||||
"solarMonitoringMode": "Tilstand for solcelleovervågning",
|
||||
"controllerVersion": "Controllerversion",
|
||||
"localTitle": "Lokalt netværk",
|
||||
"modbusServer": "Modbus TCP-server",
|
||||
"modbusAddress": "Adresse",
|
||||
"modbusPort": "Port",
|
||||
"modbusTimeout": "Styringstimeout",
|
||||
"chargingSource0": "Slukket eller pauset",
|
||||
"chargingSource1": "Nettet",
|
||||
"chargingSource7": "Solceller",
|
||||
"gesture0": "Fra",
|
||||
"gesture1": "Start opladning",
|
||||
"gesture2": "Stop opladning",
|
||||
"gesture3": "Boost",
|
||||
"touch0": "Enkel",
|
||||
"touch1": "Beskyt mod fejlberøring",
|
||||
"scheduleMode0": "Normal",
|
||||
"scheduleMode1": "Smart",
|
||||
"weekendMode1": "Samme som hverdage",
|
||||
"weekendMode2": "Eget vindue",
|
||||
"solarMode0": "Solceller med netstøtte",
|
||||
"solarMode1": "Kun solceller",
|
||||
"alarmWord": "Ord {n}",
|
||||
"alarmsHint": "Laderen melder en alarm. Anker offentliggør ikke, hvad de enkelte bit betyder, så ordene vises, som de kommer.",
|
||||
"extra": "Som laderen sender det",
|
||||
|
||||
@@ -155,6 +155,56 @@
|
||||
"currentRange": "Current range",
|
||||
"ocppLink": "OCPP",
|
||||
"mqttLink": "MQTT",
|
||||
"plugged": "Cable plugged in",
|
||||
"chargingSource": "Charging from",
|
||||
"chargingWindow": "Charging window",
|
||||
"sessionStarted": "Session started",
|
||||
"orderId": "Session id",
|
||||
"liveStream": "Live stream",
|
||||
"telemetryAt": "Readings updated",
|
||||
"settingsAt": "Settings updated",
|
||||
"plugLock": "Plug lock",
|
||||
"autoRestart": "Auto restart",
|
||||
"randomDelay": "Random start delay",
|
||||
"scheduleEnabled": "Charging schedule",
|
||||
"scheduleMode": "Schedule mode",
|
||||
"weekendWindow": "Weekend window",
|
||||
"weekendMode": "Weekend handling",
|
||||
"lightOff": "Light-off schedule",
|
||||
"lightOffWindow": "Light-off window",
|
||||
"mainBreakerLimit": "Main breaker limit",
|
||||
"solarChargeMode": "Solar charging mode",
|
||||
"solarMinCurrent": "Solar minimum current",
|
||||
"autoPhaseSwitching": "Automatic phase switching",
|
||||
"swipeUp": "Swipe up",
|
||||
"swipeDown": "Swipe down",
|
||||
"smartTouch": "Touch mode",
|
||||
"loadBalanceMeter": "Load-balance meter",
|
||||
"loadBalanceMonitorMode": "Load-balance monitoring mode",
|
||||
"loadBalanceMeterFlag": "Load-balance meter flag",
|
||||
"solarMonitor": "Solar monitor",
|
||||
"solarMonitoringMode": "Solar monitoring mode",
|
||||
"controllerVersion": "Controller version",
|
||||
"localTitle": "Local network",
|
||||
"modbusServer": "Modbus TCP server",
|
||||
"modbusAddress": "Address",
|
||||
"modbusPort": "Port",
|
||||
"modbusTimeout": "Control timeout",
|
||||
"chargingSource0": "Off or paused",
|
||||
"chargingSource1": "Grid",
|
||||
"chargingSource7": "Solar",
|
||||
"gesture0": "Off",
|
||||
"gesture1": "Start charging",
|
||||
"gesture2": "Stop charging",
|
||||
"gesture3": "Boost",
|
||||
"touch0": "Simple",
|
||||
"touch1": "Anti-mistouch",
|
||||
"scheduleMode0": "Normal",
|
||||
"scheduleMode1": "Smart",
|
||||
"weekendMode1": "Same as weekdays",
|
||||
"weekendMode2": "Its own window",
|
||||
"solarMode0": "Solar with grid support",
|
||||
"solarMode1": "Solar only",
|
||||
"alarmWord": "Word {n}",
|
||||
"alarmsHint": "The charger reports an alarm. Anker does not publish what the individual bits mean, so the words are shown as they arrive.",
|
||||
"extra": "As the charger sends it",
|
||||
|
||||
@@ -171,6 +171,56 @@
|
||||
"currentRange": "Zakres prądu",
|
||||
"ocppLink": "OCPP",
|
||||
"mqttLink": "MQTT",
|
||||
"plugged": "Kabel podłączony",
|
||||
"chargingSource": "Ładowanie z",
|
||||
"chargingWindow": "Okno ładowania",
|
||||
"sessionStarted": "Sesja rozpoczęta",
|
||||
"orderId": "Id sesji",
|
||||
"liveStream": "Strumień na żywo",
|
||||
"telemetryAt": "Odczyty zaktualizowane",
|
||||
"settingsAt": "Ustawienia zaktualizowane",
|
||||
"plugLock": "Blokada wtyczki",
|
||||
"autoRestart": "Automatyczne wznowienie",
|
||||
"randomDelay": "Losowe opóźnienie startu",
|
||||
"scheduleEnabled": "Harmonogram ładowania",
|
||||
"scheduleMode": "Tryb harmonogramu",
|
||||
"weekendWindow": "Okno weekendowe",
|
||||
"weekendMode": "Obsługa weekendu",
|
||||
"lightOff": "Harmonogram wygaszania",
|
||||
"lightOffWindow": "Okno wygaszania",
|
||||
"mainBreakerLimit": "Limit bezpiecznika głównego",
|
||||
"solarChargeMode": "Tryb ładowania solarnego",
|
||||
"solarMinCurrent": "Minimalny prąd solarny",
|
||||
"autoPhaseSwitching": "Automatyczne przełączanie faz",
|
||||
"swipeUp": "Przesunięcie w górę",
|
||||
"swipeDown": "Przesunięcie w dół",
|
||||
"smartTouch": "Tryb dotyku",
|
||||
"loadBalanceMeter": "Licznik balansowania",
|
||||
"loadBalanceMonitorMode": "Tryb monitorowania balansowania",
|
||||
"loadBalanceMeterFlag": "Flaga licznika balansowania",
|
||||
"solarMonitor": "Monitor solarny",
|
||||
"solarMonitoringMode": "Tryb monitorowania solarnego",
|
||||
"controllerVersion": "Wersja sterownika",
|
||||
"localTitle": "Sieć lokalna",
|
||||
"modbusServer": "Serwer Modbus TCP",
|
||||
"modbusAddress": "Adres",
|
||||
"modbusPort": "Port",
|
||||
"modbusTimeout": "Limit czasu sterowania",
|
||||
"chargingSource0": "Wyłączone lub wstrzymane",
|
||||
"chargingSource1": "Sieć",
|
||||
"chargingSource7": "Fotowoltaika",
|
||||
"gesture0": "Wyłączone",
|
||||
"gesture1": "Rozpocznij ładowanie",
|
||||
"gesture2": "Zatrzymaj ładowanie",
|
||||
"gesture3": "Boost",
|
||||
"touch0": "Prosty",
|
||||
"touch1": "Zabezpieczenie przed dotknięciem",
|
||||
"scheduleMode0": "Normalny",
|
||||
"scheduleMode1": "Inteligentny",
|
||||
"weekendMode1": "Tak jak w dni robocze",
|
||||
"weekendMode2": "Własne okno",
|
||||
"solarMode0": "Fotowoltaika ze wsparciem sieci",
|
||||
"solarMode1": "Tylko fotowoltaika",
|
||||
"alarmWord": "Słowo {n}",
|
||||
"alarmsHint": "Ładowarka zgłasza alarm. Anker nie publikuje znaczenia poszczególnych bitów, więc słowa pokazane są tak, jak przychodzą.",
|
||||
"extra": "Tak, jak przysyła to ładowarka",
|
||||
|
||||
@@ -402,12 +402,26 @@ const deviceLive = computed(() => {
|
||||
["startCountdown", countdown(s.startCountdownSeconds)],
|
||||
["cpSignal", s.cpSignalDesc],
|
||||
["cpVoltage", unit(s.cpVoltage, 2, "V")],
|
||||
["plugged", yesNo(s.plugged)],
|
||||
// Where the charge is coming from. The reference marks this reading
|
||||
// uncertain, and an unlisted value falls back to its number rather than
|
||||
// borrowing the name of a neighbouring one.
|
||||
["chargingSource", enumLabel("chargingSource", s.chargingSource)],
|
||||
["chargingWindow", sessionLength(s.chargingWindowSeconds)],
|
||||
["sessionStarted", s.sessionStartedAt ? formatDateTime(new Date(s.sessionStartedAt * 1000)) : null],
|
||||
["orderId", isSet(s.orderId) ? String(s.orderId) : null],
|
||||
["phaseMode", enumLabel("phaseMode", s.phaseMode)],
|
||||
["relayTemps",
|
||||
isSet(s.relay1TempC) && isSet(s.relay2TempC)
|
||||
? `${s.relay1TempC.toFixed(1)} / ${s.relay2TempC.toFixed(1)} °C`
|
||||
: unit(s.relay1TempC, 1, "°C")],
|
||||
["pwm", yesNo(s.pwmEnabled)],
|
||||
// Two streams, two clocks: telemetry flows only inside a trigger window,
|
||||
// the settings arrive with a command. A reading is worth as much as its
|
||||
// age, so each half says when it last spoke.
|
||||
["liveStream", yesNo(s.live)],
|
||||
["telemetryAt", s.telemetryAt ? formatDateTime(s.telemetryAt) : null],
|
||||
["settingsAt", s.settingsAt ? formatDateTime(s.settingsAt) : null],
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -429,6 +443,45 @@ const deviceSettings = computed(() => {
|
||||
["loadBalancing", yesNo(s.loadBalancing)],
|
||||
["solarBalancing", yesNo(s.solarBalancing)],
|
||||
["ledBrightness", isSet(s.ledBrightness) ? `${s.ledBrightness} %` : null],
|
||||
// The rest of the settings group, which only the cloud transport reports:
|
||||
// the register map has no address for any of them.
|
||||
["plugLock", yesNo(set.plugLock)],
|
||||
["autoRestart", yesNo(set.autoRestart)],
|
||||
["randomDelay", yesNo(set.randomDelay)],
|
||||
["scheduleEnabled", yesNo(set.scheduleEnabled)],
|
||||
["scheduleMode", enumLabel("scheduleMode", set.scheduleMode)],
|
||||
["weekendWindow", set.weekendStart && set.weekendEnd ? `${set.weekendStart}–${set.weekendEnd}` : null],
|
||||
["weekendMode", enumLabel("weekendMode", set.weekendMode)],
|
||||
["lightOff", yesNo(set.lightOffSchedule)],
|
||||
["lightOffWindow", set.lightOffStart && set.lightOffEnd ? `${set.lightOffStart}–${set.lightOffEnd}` : null],
|
||||
["mainBreakerLimit", unit(set.mainBreakerLimitA, 0, "A")],
|
||||
["solarChargeMode", enumLabel("solarMode", set.solarChargeMode)],
|
||||
["solarMinCurrent", unit(set.solarMinCurrentA, 0, "A")],
|
||||
["autoPhaseSwitching", yesNo(set.autoPhaseSwitching)],
|
||||
["swipeUp", enumLabel("gesture", s.swipeUpMode)],
|
||||
["swipeDown", enumLabel("gesture", s.swipeDownMode)],
|
||||
["smartTouch", enumLabel("touch", s.smartTouchMode)],
|
||||
// What the two balancing features watch. The reference has not pinned down
|
||||
// what the two modes and the flag select, so they are shown as the numbers
|
||||
// they are rather than under names that would imply we knew.
|
||||
["loadBalanceMeter", s.loadBalanceMonitorSN],
|
||||
["loadBalanceMonitorMode", isSet(s.loadBalanceMonitorMode) ? String(s.loadBalanceMonitorMode) : null],
|
||||
["loadBalanceMeterFlag", isSet(s.loadBalanceMeterFlag) ? String(s.loadBalanceMeterFlag) : null],
|
||||
["solarMonitor", s.solarMonitorSN],
|
||||
["solarMonitoringMode", isSet(s.solarMonitoringMode) ? String(s.solarMonitoringMode) : null],
|
||||
]);
|
||||
});
|
||||
|
||||
// What the charger says about its own LAN side. The cloud transport is the only
|
||||
// one that can answer it — a charger whose Modbus server is off is a charger the
|
||||
// Modbus transport cannot ask.
|
||||
const deviceLocal = computed(() => {
|
||||
const local = dev.value.local || {};
|
||||
return rows([
|
||||
["modbusServer", yesNo(local.modbusEnabled)],
|
||||
["modbusAddress", local.host],
|
||||
["modbusPort", isSet(local.port) ? String(local.port) : null],
|
||||
["modbusTimeout", isSet(local.timeoutSeconds) ? `${local.timeoutSeconds} s` : null],
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -509,6 +562,7 @@ const deviceIdentity = computed(() => {
|
||||
["model", s.model],
|
||||
["serial", s.serial],
|
||||
["firmware", s.firmware],
|
||||
["controllerVersion", s.controllerVersion],
|
||||
["hardware", s.hardware],
|
||||
["productNumber", isSet(s.productNumber) ? String(s.productNumber) : null],
|
||||
["ratedPower", unit(s.ratedPowerW, 0, "W")],
|
||||
@@ -547,9 +601,18 @@ const devicePhases = computed(() => {
|
||||
watts: cell(s[`powerL${n}`], 0, "W"),
|
||||
reactive: cell(s[`reactiveL${n}`], 0, "var"),
|
||||
apparent: cell(s[`apparentL${n}`], 0, "VA"),
|
||||
sessionWh: cell(s[`sessionWhL${n}`], 0, "Wh"),
|
||||
}));
|
||||
});
|
||||
|
||||
// The session's energy per phase is a cloud reading — a session is a cloud idea,
|
||||
// and no register counts one — so the column joins the matrix when the charger
|
||||
// reports it rather than standing as three dashes on the other transport.
|
||||
const devicePhasesHaveSessionWh = computed(() => {
|
||||
const s = dev.value;
|
||||
return [1, 2, 3].some((n) => isSet(s[`sessionWhL${n}`]));
|
||||
});
|
||||
|
||||
// Reactive and apparent power are registers of their own, and the cloud has no
|
||||
// message carrying either — so on that transport the two columns could only ever
|
||||
// be three dashes each. They appear when the charger actually reports them,
|
||||
@@ -1597,6 +1660,7 @@ onMounted(async () => {
|
||||
<th class="py-1 text-right font-medium">{{ t("charging.modbus.activePower") }}</th>
|
||||
<th v-if="devicePhasesHaveVA" class="py-1 text-right font-medium">{{ t("charging.modbus.reactivePower") }}</th>
|
||||
<th v-if="devicePhasesHaveVA" class="py-1 text-right font-medium">{{ t("charging.modbus.apparentPower") }}</th>
|
||||
<th v-if="devicePhasesHaveSessionWh" class="py-1 text-right font-medium">{{ t("charging.modbus.sessionEnergy") }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="data">
|
||||
@@ -1607,6 +1671,7 @@ onMounted(async () => {
|
||||
<td class="py-1 text-right text-strong">{{ p.watts }}</td>
|
||||
<td v-if="devicePhasesHaveVA" class="py-1 text-right text-strong">{{ p.reactive }}</td>
|
||||
<td v-if="devicePhasesHaveVA" class="py-1 text-right text-strong">{{ p.apparent }}</td>
|
||||
<td v-if="devicePhasesHaveSessionWh" class="py-1 text-right text-strong">{{ p.sessionWh }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1636,6 +1701,18 @@ onMounted(async () => {
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<!-- The charger's own LAN side, which only the cloud transport can
|
||||
report: whether its Modbus server is on, and where. -->
|
||||
<section v-if="deviceLocal.length" class="rounded-control bg-sunken p-3">
|
||||
<h4 class="eyebrow">{{ t("charging.modbus.localTitle") }}</h4>
|
||||
<dl class="mt-2 grid grid-cols-2 gap-x-3 gap-y-1">
|
||||
<template v-for="r in deviceLocal" :key="r.label">
|
||||
<dt class="text-xs text-muted">{{ r.label }}</dt>
|
||||
<dd class="data text-right text-xs text-strong">{{ r.value }}</dd>
|
||||
</template>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section v-if="deviceIdentity.length" class="rounded-control bg-sunken p-3">
|
||||
<h4 class="eyebrow">{{ t("charging.modbus.device") }}</h4>
|
||||
<dl class="mt-2 grid grid-cols-2 gap-x-3 gap-y-1">
|
||||
|
||||
Reference in New Issue
Block a user