The last message in the map, and it reboots the charger
0108 was the one thing in the MQTT inventory nobody had wired: the device power mode, whose single documented value restarts the charger. It is the only way to reboot a charger that is on neither a CSMS nor the local network — which is most of them — so the cloud transport sends it now, and "reset" reaches it too, since that is what the OCPP path has always called the same act. Nothing waits for a confirmation: the device that would send it is the device rebooting, so the command answers at once and says the charger drops off the cloud for about a minute. The gate is unchanged and now covers both spellings — an explicit confirm plus a password step-up, audited either way. Modbus still refuses, because no register does this, but its refusal now names both transports that can rather than only the CSMS. Both clients already had the reset button and its password prompt; they were hidden in every mode that reads the device, which is why the cloud never showed one. Modbus is now the only mode without it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b2d333a63f
commit
4ff6242c8f
17 files changed
+159
-21
No files matched your search
@@ -147,6 +147,7 @@
|
||||
"reset": "Genstart laderen",
|
||||
"resetConfirm": "Genstart denne lader nu? En igangværende opladning bliver afbrudt. Indtast din adgangskode igen for at bekræfte.",
|
||||
"resetPassword": "Din kontoadgangskode",
|
||||
"restartCloudHint": "Laderen genstarter i stedet for at svare og forsvinder fra skyen i cirka et minut.",
|
||||
"connectHint": "Indtast laderens serienummer og opdater. Laderen skal være forbundet til DriverVaults OCPP-backend (opsættes under Indstillinger → Integrationer).",
|
||||
"connectionTitle": "Laderforbindelse",
|
||||
"enterSerial": "Indtast et serienummer i stedet",
|
||||
|
||||
@@ -147,6 +147,7 @@
|
||||
"reset": "Reset charger",
|
||||
"resetConfirm": "Reboot this charger now? Any active charging session will be interrupted. Re-enter your password to confirm.",
|
||||
"resetPassword": "Your account password",
|
||||
"restartCloudHint": "The charger reboots rather than answering, and drops off the cloud for about a minute.",
|
||||
"connectHint": "Enter your charger's serial and refresh. The charger must be connected to DriverVault's OCPP backend (set up in Settings → Integrations).",
|
||||
"connectionTitle": "Charger connection",
|
||||
"enterSerial": "Enter a serial instead",
|
||||
|
||||
@@ -149,6 +149,7 @@
|
||||
"reset": "Zrestartuj ładowarkę",
|
||||
"resetConfirm": "Zrestartować teraz tę ładowarkę? Trwająca sesja ładowania zostanie przerwana. Wpisz ponownie hasło, aby potwierdzić.",
|
||||
"resetPassword": "Hasło do Twojego konta",
|
||||
"restartCloudHint": "Ładowarka zrestartuje się zamiast odpowiedzieć i zniknie z chmury na około minutę.",
|
||||
"connectHint": "Wpisz numer seryjny ładowarki i odśwież. Ładowarka musi być połączona z backendem OCPP DriverVault (konfiguracja w Ustawienia → Integracje).",
|
||||
"connectionTitle": "Połączenie z ładowarką",
|
||||
"enterSerial": "Wpisz numer seryjny zamiast tego",
|
||||
|
||||
@@ -1606,9 +1606,11 @@ class _HomeTabState extends State<_HomeTab> {
|
||||
),
|
||||
],
|
||||
|
||||
// Reset reboots the charger over OCPP; neither the register map nor the
|
||||
// cloud has an equivalent, so the button is not offered there.
|
||||
if (!_readsDevice) ...[
|
||||
// Rebooting the charger: an OCPP reset, or the cloud's own restart
|
||||
// message, which is the way to reach a charger that is on neither a CSMS
|
||||
// nor the LAN. No register does it, so Modbus is the one mode without
|
||||
// the button.
|
||||
if (!_readsDevice || _isCloud) ...[
|
||||
const SizedBox(height: 12),
|
||||
if (!_resetPrompt)
|
||||
SizedBox(
|
||||
@@ -1639,6 +1641,13 @@ class _HomeTabState extends State<_HomeTab> {
|
||||
Text(t("charging.control.resetConfirm"),
|
||||
style: const TextStyle(
|
||||
fontSize: 12, fontWeight: FontWeight.w500, color: DriverVault.danger)),
|
||||
// Over the cloud there is nothing to confirm it with: the
|
||||
// charger that would answer is the one rebooting.
|
||||
if (_isCloud) ...[
|
||||
const SizedBox(height: 4),
|
||||
Text(t("charging.control.restartCloudHint"),
|
||||
style: const TextStyle(fontSize: 11, color: DriverVault.danger)),
|
||||
],
|
||||
const SizedBox(height: 8),
|
||||
TextField(
|
||||
controller: _resetPassword,
|
||||
|
||||
Reference in new issue
Block a user