From d01bd3632c4747b8c624cc0eba7da4959357c285 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 15 Feb 2022 15:56:48 +0100 Subject: [PATCH] docs: Document missing 'status' command in 7816 section Change-Id: I9af85a36bc4f24c3a22b9b2a6b8e2abd86edfe4e --- docs/shell.rst | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/shell.rst b/docs/shell.rst index fcc171bd..0f3139f8 100644 --- a/docs/shell.rst +++ b/docs/shell.rst @@ -98,6 +98,41 @@ This will pySIM-shell (MF/ADF.USIM)> +status +~~~~~~ + +The ``status`` command [re-]obtains the File Control Template of the +currently-selected file and print its decoded output. + +Example: + +:: + + pySIM-shell (MF/ADF.ISIM)> status + { + "file_descriptor": { + "file_descriptor_byte": { + "shareable": true, + "file_type": "df", + "structure": "no_info_given" + }, + "record_len": null, + "num_of_rec": null + }, + "file_identifier": "ff01", + "df_name": "a0000000871004ffffffff8907090000", + "proprietary_information": { + "uicc_characteristics": "71", + "available_memory": 101640 + }, + "life_cycle_status_integer": "operational_activated", + "security_attrib_compact": "00", + "pin_status_template_do": { + "ps_do": "70", + "key_reference": 11 + } + } + change_chv ~~~~~~~~~~