Skip to content

PersoSim@SQM 2.8.0

Choose a tag to compare

@joseph0x45 joseph0x45 released this 03 Jul 12:04
· 17 commits to main since this release

PersoSim@SQM v2.8.0

What's New Since v2.7.0

Switch reader/driver via HTTP

The Interface menu (File / Personalization / Interface) can now be driven
remotely - no clicking required. Send a POST /driver request to select the
virtual driver, then Basic or Standard reader:

GET|POST http://localhost:7777/driver

POST body: "virtual" | "basic" | "standard"

Each call blocks until the switch actually completes (or fails) and returns a
definitive result:

200  {"ok": true,  "readerType": "BASIC", "commType": "VIRTUAL"}
500  {"ok": false, "error": "..."}                                switch failed
503  {"ok": false, "error": "reader control not available yet"}   simulator not ready
400  {"ok": false, "error": "unknown driver action: ..."}         bad request body

GET /driver returns the current selection without changing anything.

Python client: setup_persosim()

persosim_client.py adds a helper that chains the virtual-driver switch and
reader selection into one call, blocking at each step:

client.setup_persosim("basic")     # or "standard"
client.get_driver()                # {"readerType": ..., "commType": ...}

Raises PersoSimError if either step fails - most commonly because nothing is
listening on localhost:5678 (the external virtual PCSC driver process).

Internal Changelog

v2.8.0 Remote driver/reader switching (POST /driver), setup_persosim() client
helper, build script support for the driver connector UI JAR