<p>Falkenber9 <strong>uploaded patch set #10</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/23632">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">WIP: Add option to set UE operation mode in EF_AD (Administrative Data)<br><br>Use ``--opmode=OPMODE`` in cmdline mode or column ``OPMODE`` in csv mode<br>to specify OPMODE as listed below.<br><br>Details:<br>The ``EF_AD`` field contains administrative data (AD).<br>It consists of four bytes ``B1``, ``B2``, ``B3``, ``B4``,<br>and optionally further bytes for future use.<br><br>Previous implementation only sets the MNC field appropriately<br>(located in `B4`) and sets all other bits/bytes to 0.<br><br>However, `B1` also defines the *UE operation mode* (see below).<br>For type approval operations, such as testing with a test uSIM,<br>this value could be set to `0x80` rather than `0x00`(= normal operation).<br>This may unlock some UE capabilities that are restricted in<br>normal operation mode.<br><br>Excerpt from [ETSI TS 131 102, 4.2.18](https://www.etsi.org/deliver/etsi_ts/131100_131199/131102/04.15.00_60/ts_131102v041500p.pdf):<br><br>```<br>B1 - UE operation mode:<br>  Coding:<br>       Initial value<br> - '00' normal operation.<br>      - '80' type approval operations.<br>      - '01' normal operation + specific facilities.<br>        - '81' type approval operations + specific facilities.<br>        - '02' maintenance (off line).<br>        - '04' cell test operation.<br><br>B2 - Additional information:<br>   Coding:<br>       Reserved for future use<br><br>B3 - Additional information:<br>       Coding:<br>       - B3.b1: OFM setting (Ciphering Indicator)<br>    - B3.others: Reserved for future use<br><br>B4 - Length of MNC in the IMSI:<br>       Coding:<br>       - B4.b4..B4.b1: length:  '0010' (= 2) or '0011' (=3)<br>  - B4.others: Reserved for future use<br>```<br><br>**Legend:** Byte X, bit Y: BX.bY<br><br>Further reading: https://nickvsnetworking.com/usim-basics/<br><br>Change-Id: Ie9040c6b127c268878a0845ed73d0918ec6bbb08<br>---<br>M pySim-prog.py<br>M pySim/cards.py<br>2 files changed, 71 insertions(+), 21 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/32/23632/10</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23632">change 23632</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23632"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie9040c6b127c268878a0845ed73d0918ec6bbb08 </div>
<div style="display:none"> Gerrit-Change-Number: 23632 </div>
<div style="display:none"> Gerrit-PatchSet: 10 </div>
<div style="display:none"> Gerrit-Owner: Falkenber9 <robert.falkenberg@tu-dortmund.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>