Skip to content

v4.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 05:47
· 3 commits to main since this release

Changed

  • The server is pysim-free. The PWA now talks to simple-server
    (simple_server, the new entry point) instead of the pySim-wrapping
    pysim-simple-server: own PC/SC transport, file model and FCP parser,
    SCP80/SCP81, RAM/CAP, CAT/STK, test scripts/suites, eSIM ES10 and the
    network simulator, all written from the pinned specs. GET /api/command,
    /api/commands, /api/cardinfo and /api/sp-verify are gone; the PWA's
    Status tab shows the server's own session model and equip/reset/status-poll
    have dedicated endpoints. The GSMTAP tracer now hooks the transport's
    send_tpdu, so the init phase and the T=0 GET RESPONSE TPDUs are in the
    capture (as far as PC/SC exposes them).
  • The runtime dependency floor is pyscard, pycryptodomex and
    gsm0338
    (requirements.txt); pySim and requirements-pysim.txt are no
    longer installed. setup/start create the venv, install the floor and
    launch simple-server; the serial -d/--device transport and the -p
    reader-slot form are gone (PC/SC only; -r NAME names a reader).
  • Updating in place refuses a major-version jump. tools/update.py
    will not move a 3.x install to 4.0.0 (--check included): the backend, the
    scripts and the dependencies changed, so a 3.x install stays on the last 3.x
    release.
  • The distribution is named simple (the console script stays
    simple-server).

Fixed

  • 2G SIM detection and selection. The first 4.0.0 probe sent the USIM
    AID before the SIM probe; the bench 2G SIM answers an unknown AID with
    6999 and then refuses every command until a reset, and it also
    refuses an A0 SELECT MF until a DF has been selected. detect_card now
    probes SELECT MF (CLA 00) → SELECT DF.GSM (CLA A0, 7F20, pySim's
    SimCardBase.probe()) → USIM ADF (last), and the TS 51 011 select form
    carries the response-data octet (A0A4 0000 02 <fid> 00).

Verified

  • Live smoke on the bench cards before the release: the UICC (status, tree,
    select/read, the STK menu, send-ota with the PoR and the counter, tar-probe,
    the PWA), the eUICC (EID, EUICCInfo1/2, addresses, GetRat, profiles,
    notifications and an enable/disable roundtrip with the re-init and the
    verified state), the SCP81 TLS-PSK listener (the HTTP OTA trigger, the PSK
    handshake, the 204 dialog and a command script with its R-APDU) and the 2G
    SIM (detection as sim/CLA A0, EF.ICCID 897010272147119764, the
    MegaFonPRO STK menu with the CAT CLA A0). Reading a 2G SIM's files still
    refuses without an FCP (the recorded post-4.0.0 fallback).

Legacy

  • The pySim-based 3.x line is frozen at its final 3.x release in the
    simple-pysim fork (GPL-2.0-or-later, maintenance mode). The legacy
    pysim_simple_server/ package and requirements-pysim.txt were removed
    from this repository - they live in the fork - so the 4.x tree, the tests
    and the release workflow carry no pySim dependency at all.
  • The license is now MIT. simtrace-analyser (the source of the
    client-side EF decoders) is MIT, and the 4.x server no longer imports
    pySim, so the repository moves from GPL-2.0-or-later to MIT. The
    simple-pysim fork keeps its GPL license.