<p style="white-space: pre-wrap; word-wrap: break-word;">The ``EF_AD`` field contains administrative data (AD).<br>It consists of four bytes ``B1``, ``B2``, ``B3``, ``B4``, and optionally further bytes for future use.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Current implementation only sets the MNC field appropriately (located in `B4`) and sets all other bits/bytes to 0.</p><p style="white-space: pre-wrap; word-wrap: break-word;">However, `B1` defines the *UE operation mode* as listed below. For type approval operations (such as testing with a test uSIM), this value should be set to `0x80` rather than `0x00`(= normal operation).<br>This may unlock some UE capabilities that are restricted in normal operation mode.</p><p style="white-space: pre-wrap; word-wrap: break-word;">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):</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">```<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. </pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">B2 - Additional information:<br>    Coding:<br>       Reserved for future use</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">B3 - Additional information:<br> Coding:<br>       - B3.b1: OFM setting (Ciphering)<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>```</pre><p style="white-space: pre-wrap; word-wrap: break-word;">**Legend:** Byte X, bit Y: BX.bY</p><p style="white-space: pre-wrap; word-wrap: break-word;">Further reading: https://nickvsnetworking.com/usim-basics/<br></p><p><a href="https://gerrit.osmocom.org/c/pysim/+/23632">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><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: 1 </div>
<div style="display:none"> Gerrit-Owner: Robert Falkenberg <robert.falkenberg@tu-dortmund.de> </div>
<div style="display:none"> Gerrit-CC: Jenkins Builder </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 05 Apr 2021 06:27:09 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>