scp81: queue explicit commands, expanded-format output for the RAM chain (v2.1.14)

- POST /api/scp81/queue takes an explicit APDU list (or single APDU) and
  queues it as the SCP81 script; entries that already are Command Scripting
  templates (AA.../AE80..., the expanded format) are sent verbatim instead of
  being wrapped again
- Remote APDU -> RAM chain: "To expanded" builds each command in the
  TS 102 226 expanded form (AA definite / AE80 indefinite selector) and
  "Queue in SCP81" queues the built commands for the next card POST, so the
  full-featured RAM/INSTALL [for install] form (AIDs, privileges, TK/STK
  parameters) can drive the HTTP OTA install
- RU strings; api.md; service worker v151
This commit is contained in:
2026-09-16 08:05:57 +03:00
parent e32a6e17e4
commit b811906751
6 changed files with 131 additions and 7 deletions
+9
View File
@@ -496,6 +496,15 @@ Returns the BIP/TLS event log (open/close, SEND/RECEIVE DATA hex, TLS
handshake and HTTP request/response records). `?after=<seq>` returns only
newer entries; `seq` echoes the latest sequence number.
### `POST /api/scp81/queue`
Queue explicit commands as the SCP81 script (used by the Remote APDU tab's
RAM chain "Queue in SCP81"). Body `{"apdus": ["80E60C002E...", ...]}` (or a
single `apdu`), optional `kind` and `force`. Entries that already are
Command Scripting templates (`AA...`/`AE80...`, the expanded format) are
sent verbatim instead of being wrapped again. Refused while a script is
mid-run unless forced.
### `POST /api/scp81/ram-install`
Queue a RAM (GP) install as the SCP81 command script. The `.cap` is parsed