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/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/26203 ) Change subject: ts_51_011: add status word definition ...................................................................... ts_51_011: add status word definition There is no status word definition given in the SIM profile. Lets add one to be complete Change-Id: I01f2643a93e4a9b2ce2f95134aa5d773179d9b1c --- M pySim/ts_51_011.py 1 file changed, 38 insertions(+), 1 deletion(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py index c146a79..73d569e 100644 --- a/pySim/ts_51_011.py +++ b/pySim/ts_51_011.py @@ -976,6 +976,43 @@ class CardProfileSIM(CardProfile): def __init__(self): - super().__init__('SIM', desc='GSM SIM Card', cla="a0", sel_ctrl="0000", files_in_mf=[DF_TELECOM(), DF_GSM()]) + sw = { + 'Normal': { + '9000': 'Normal ending of the command', + '91xx': 'normal ending of the command, with extra information from the proactive SIM containing a command for the ME', + '9exx': 'length XX of the response data given in case of a SIM data download error', + '9fxx': 'length XX of the response data', + }, + 'Postponed processing': { + '9300': 'SIM Application Toolkit is busy. Command cannot be executed at present, further normal commands are allowed', + }, + 'Memory management': { + '920x': 'command successful but after using an internal update retry routine X times', + '9240': 'memory problem', + }, + 'Referencing management': { + '9400': 'no EF selected', + '9402': 'out of range (invalid address)', + '9404': 'file ID not found or pattern not found', + '9408': 'file is inconsistent with the command', + }, + 'Security management': { + '9802': 'no CHV initialized', + '9804': 'access condition not fulfilled, unsuccessful CHV verification or authentication failed', + '9808': 'in contradiction with CHV status', + '9810': 'in contradiction with invalidation status', + '9840': 'unsuccessful verification, CHV blocked, UNBLOCK CHV blocked', + '9850': 'increase cannot be performed, Max value reached', + }, + 'Application independent errors': { + '67xx': 'incorrect parameter P3', + '6bxx': 'incorrect parameter P1 or P2', + '6dxx': 'unknown instruction code given in the command', + '6exx': 'wrong instruction class given in the command', + '6fxx': 'technical problem with no diagnostic given', + }, + } + + super().__init__('SIM', desc='GSM SIM Card', cla="a0", sel_ctrl="0000", files_in_mf=[DF_TELECOM(), DF_GSM()], sw=sw) def decode_select_response(self, data_hex:str) -> Any: return _decode_select_response(data_hex) -- To view, visit https://gerrit.osmocom.org/c/pysim/+/26203 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I01f2643a93e4a9b2ce2f95134aa5d773179d9b1c Gerrit-Change-Number: 26203 Gerrit-PatchSet: 2 Gerrit-Owner: dexter <pmaier at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211111/504257b4/attachment.htm>