From a36f26e8e17083a16d464d6d9f8737293aabcda4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Mon, 24 Aug 2026 20:09:22 +0300 Subject: [PATCH] OTA send UX + PoR transparency; v1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pysimSendOta: Response Parser filled strictly from decoded PoR (por.decoded) for both SPI2 variants; envelope SW/failures no longer leak into it — they render in a new inline result line (#sp-send-result) next to Send to Card, always including SW on failure - Default-level stderr tracing per send (no flags needed): 'OTA SEND: SPI .. KIc .. KID .. TAR .. CNTR .. LEN ..B CHUNKS N', 'OTA SEND FAILED: chunk N SW xxxx' and 'OTA PoR[envelope|sms-submit]: status=.. TAR=.. CNTR=.. PCNTR=.. RPL=.. RHL=..' (+ compact summary / undecodable raw / none fallbacks) - _decode_por: surface every parsed PoR field verbatim (cntr, rpl, rhl, cc_rc, raw) instead of status/tar/pcntr only - genSp: CNTR normalization padEnd -> padStart so short input like '1' becomes 0000000001, not 1000000000 (counter is big-endian 5 bytes) - tests: TestDecodePor completeness + cntr_low field-report cases Version 1.9.3 -> 1.9.4 everywhere; SW cache otaman-v14 -> otaman-v15 --- docs/api.md | 2 +- frontend/index.html | 28 +++++++++++++++++++++++++--- frontend/sw.js | 2 +- pyproject.toml | 2 +- pysim_otaman_server/server.py | 25 ++++++++++++++++++++++++- tests/test_ota_helpers.py | 24 ++++++++++++++++++++++++ 6 files changed, 76 insertions(+), 7 deletions(-) diff --git a/docs/api.md b/docs/api.md index b2cf56e..811db5f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -54,7 +54,7 @@ Returns server version for compatibility checking. **Example response:** ```json -{"version": "1.9.3"} +{"version": "1.9.4"} ``` ### `GET /api/status` diff --git a/frontend/index.html b/frontend/index.html index 61b58ed..71a7853 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -18,7 +18,7 @@
-

OTAMan SIM OTA with a Human Face v1.9.3

+

OTAMan SIM OTA with a Human Face v1.9.4

github @@ -814,6 +814,7 @@ +