Add device lock support and demo mode

Device lock (hardware lock of the DSP, independent of the app lock):
- detect a locked DSP from the 0x2C answer during connect and wait for the code
- unlock with 0x2D, optionally remember the code and unlock automatically
- set a new code (0x2F) from the device settings
- simulator: --lock CODE

Demo mode:
- switch in the settings starts a simulated DSP 204/408 inside the server
- real DSPs are disconnected and greyed out meanwhile and resume afterwards
- demo devices are never saved or exported; sim.py ships with the Pi image and EXEs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-01 21:14:04 +01:00
1 parent fe13f261f7
commit 61400df667
13 files changed
+426 -38

No files matched your search

+35 -1
View File
@@ -286,7 +286,41 @@ const DE = {
"{pct} % of {rated}": "{pct} % von {rated}",
"— empty —": "— leer —",
"— no amplifier —": "— kein Verstärker —",
"“{s}”": "„{s}“"
"“{s}”": "„{s}“",
// device lock, demo mode
"A code is remembered for this DSP.": "Für diesen DSP ist ein Code gespeichert.",
"Code forgotten": "Code vergessen",
"Connect the DSP to set a code.": "Zum Festlegen eines Codes den DSP verbinden.",
"DSP locked": "DSP gesperrt",
"DSP unlocked": "DSP entsperrt",
"Device lock (code)": "Gerätesperre (Code)",
"Enter code": "Code eingeben",
"Forget code": "Code vergessen",
"From the next connection on, {name} asks for the code {code} – also in the original software. Note it down: this app cannot remove the lock again.": "Ab der nächsten Verbindung fragt {name} nach dem Code {code} – auch in der Original-Software. Bitte notieren: Diese App kann die Sperre nicht wieder entfernen.",
"Hardware lock of the DSP: a locked DSP only accepts a connection after its code was entered. Independent of the lock of this app.": "Sperre im DSP selbst: Ein gesperrter DSP lässt sich erst nach Eingabe seines Codes bedienen. Unabhängig von der Sperre dieser App.",
"Lock code": "Sperrcode",
"Lock code set": "Sperrcode festgelegt",
"Locked with a code": "Mit Code gesperrt",
"No code remembered – it is asked for when the DSP is locked.": "Kein Code gespeichert – er wird abgefragt, wenn der DSP gesperrt ist.",
"Remember the code and unlock automatically": "Code merken und automatisch entsperren",
"Set a new lock code": "Neuen Sperrcode festlegen",
"Set code": "Code festlegen",
"Set lock code": "Sperrcode festlegen",
"The code has 4 characters: digits and letters A–Z": "Der Code hat 4 Zeichen: Ziffern und Buchstaben A–Z",
"This DSP is locked with a code.": "Dieser DSP ist mit einem Code gesperrt.",
"Unlock automatically with the remembered code": "Mit dem gespeicherten Code automatisch entsperren",
"Wrong code – please try again.": "Falscher Code – bitte erneut versuchen.",
"code remembered": "Code gespeichert",
"{name} is locked with a code. Enter the 4-character code (digits and letters A–Z).": "{name} ist mit einem Code gesperrt. Bitte den 4-stelligen Code eingeben (Ziffern und Buchstaben A–Z).",
"The DSP is not locked": "Der DSP ist nicht gesperrt",
"The remembered lock code was rejected": "Der gespeicherte Sperrcode wurde abgelehnt",
"Demo mode": "Demo-Modus",
"Demo mode · simulated DSP": "Demo-Modus · simulierter DSP",
"Demo mode – simulated DSP": "Demo-Modus – simulierter DSP",
"Disconnected while demo mode is on": "Getrennt, solange der Demo-Modus aktiv ist",
"Try everything with a simulated DSP – nothing is sent to real devices. While demo mode is on, the real DSPs are disconnected.": "Alles gefahrlos mit einem simulierten DSP ausprobieren – an echte Geräte wird nichts gesendet. Solange der Demo-Modus aktiv ist, sind die echten DSPs getrennt.",
"Not available for the demo device": "Für das Demo-Gerät nicht verfügbar",
"Demo mode is on – switch it off to connect the real DSPs": "Der Demo-Modus ist aktiv – zum Verbinden der echten DSPs bitte ausschalten",
};
const DE_PATTERNS = [