mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
BER-TLV EF support (command, filesystem, shell)
This adds support for a new EF file type: BER-TLV files. They are different from transparent and linear fixed EFs in that they neither operate on a byte stream nor fixed-sized records, but on BER-TLV encoded objects. One can specify a tag value, and the card will return the entire TLV for that tag. As indicated in the spec, the magic tag value 0x5C (92) will return a list of tags existing in the file. Change-Id: Ibfcce757dcd477fd0d6857f64fbb4346d6d62e63
This commit is contained in:
@@ -334,6 +334,43 @@ to the SIM card.
|
||||
This allows for easy interactive modification of file contents.
|
||||
|
||||
|
||||
|
||||
BER-TLV EF commands
|
||||
-------------------
|
||||
|
||||
BER-TLV EFs are files that contain BER-TLV structured data. Every file can contain any number
|
||||
of variable-length IEs (DOs). The tag within a BER-TLV EF must be unique within the file.
|
||||
|
||||
The commands below become enabled only when your currently selected file is of *BER-TLV EF* type.
|
||||
|
||||
retrieve_tags
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
Retrieve a list of all tags present in the currently selected file.
|
||||
|
||||
|
||||
retrieve_data
|
||||
~~~~~~~~~~~~~
|
||||
.. argparse::
|
||||
:module: pySim.filesystem
|
||||
:func: BerTlvEF.ShellCommands.retrieve_data_parser
|
||||
|
||||
|
||||
set_data
|
||||
~~~~~~~~
|
||||
.. argparse::
|
||||
:module: pySim.filesystem
|
||||
:func: BerTlvEF.ShellCommands.set_data_parser
|
||||
|
||||
|
||||
del_data
|
||||
~~~~~~~~
|
||||
.. argparse::
|
||||
:module: pySim.filesystem
|
||||
:func: BerTlvEF.ShellCommands.del_data_parser
|
||||
|
||||
|
||||
|
||||
USIM commands
|
||||
-------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user