PySIM: SW match failed

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Harald Welte laforge at gnumonks.org
Thu Nov 5 09:05:15 UTC 2015


On Wed, Nov 04, 2015 at 03:36:17PM +0100, Sipos Csaba wrote:
> RuntimeError: SW match failed ! Expected 9000 and got 6a86.

According to ISO 7816-4, this 6a86 means 'incorrect P1 or P2 parameter'.

> At this point I don't have any more ideas what to try, if anyone would have any suggestions I would apreciate it.

Please activate (or hack some code for) tracing the actual APDUs that
pySim excahnges with the card.  IIRC, pySim already has that option.

Once you see the raw APDUs, you can compare their encoding (particularly
P1/P2) with those described in the relevant ETSI/3GPP (U)SIM
specifications.

-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)



More information about the OpenBSC mailing list