Skip to contentSkip to conversation

phonesim: Add +CUAD command and EFdir EF.

PATCH In review Andrzej Zaborowski 2 participants 4 messages Jan 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phonesim: Add +CUAD command and EFdir EF.

Add +PTTY in +CLAC output too.

---
 src/default.xml       |   23 +++++++++++++++++++++++
 src/simfilesystem.cpp |    5 +++++
 2 files changed, 28 insertions(+), 0 deletions(-)
src/default.xml +23 -0
index ab1ed06..803c539 100644
@@ -3165,6 +3165,7 @@
 +CMEE
 +CMGF
 +CMGS
++CUAD
 +DR
 +DS
 +GCAP
@@ -3179,6 +3180,7 @@
 +ILRR
 +IPR
 +FCLASS
++PTTY
 +VBT
 +VCID
 +VGR
@@ -3234,6 +3236,20 @@ OK</response>
     <response>+PTTY: ${PTTY}\n\nOK</response>
 </chat>
 
+<chat>
+    <!-- Discover UICC applications -->
+    <!-- the response is in sync with the EFdir contents in the filesystem
+	 definition below -->
+    <command>AT+CUAD</command>
+    <response>+CUAD: "611B4F10A0000000871002FFFFFFFF8905080000FFFFFFFFFFFFFFFFFFFFFFFFFF611F4F0CA000000063504B43532D313550094D49445066696C657351043F007F80"\n\nOK</response>
+</chat>
+
+<chat>
+    <!-- Query "Discover UICC applications" support -->
+    <command>AT+CUAD=?</command>
+    <response>OK</response>
+</chat>
+
 <!-- SIM filesystem definition, based on standard test strings
      presented in GSM 11.10-4.  This is primarily intended for
      testing icon definitions within SIM toolkit applications -->
@@ -3476,6 +3492,13 @@ OK</response>
     5A 55
 </file>
 
+<file name="EFdir" recordsize="33">
+    61 1B 4F 10 A0 00 00 00 87 10 02 FF FF FF FF 89 05 08 00 00 FF FF
+    FF FF FF FF FF FF FF FF FF FF FF
+    61 1F 4F 0C A0 00 00 00 63 50 4B 43 53 2D 31 35 50 09 4D 49 44 50
+    66 69 6C 65 73 51 04 3F 00 7F 80"
+</file>
+
 </filesystem>
 
 </simulator>
src/simfilesystem.cpp +5 -0
index 6e05039..46f3b1f 100644
@@ -121,6 +121,11 @@ static SimFileInfo const knownFiles[] =
     {"6F16",        "7F20",     "EFcphs_info", 0x14ff44,  FILE_TYPE_TRANSPARENT},
     {"6F17",        "7F20",     "EFcphs_mbdn", 0x11ff44,  FILE_TYPE_LINEAR_FIXED},
     {"6F11",        "7F20",     "EFcphs_mwis", 0x11ff44,  FILE_TYPE_TRANSPARENT},
+
+    // TS 102.221
+    {"2F00",        "3F00",     "EFdir",       0x04ff44,  FILE_TYPE_LINEAR_FIXED},
+    {"2F06",        "3F00",     "EFarr",       0x04ff44,  FILE_TYPE_LINEAR_FIXED},
+
     {0,             0,          0,             0,         FILE_TYPE_TRANSPARENT}
 };
 
Signature · 1 line
1.7.1.86.g0e460.dirty
#1 lore raw

PATCH 1/1 phonesim: Fix access bits for EFiccid, EFpl.

---
 src/simfilesystem.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
src/simfilesystem.cpp +2 -2
index 46f3b1f..2264c44 100644
@@ -106,8 +106,8 @@ static SimFileInfo const knownFiles[] =
     {"6FDE",        "7F20",     "EFspni",      0x04ff44,  FILE_TYPE_TRANSPARENT},
     {"6FDF",        "7F20",     "EFpnni",      0x04ff44,  FILE_TYPE_LINEAR_FIXED},
 
-    {"2FE2",        "3F00",     "EFiccid",     0x04ff44,  FILE_TYPE_TRANSPARENT},
-    {"2F05",        "3F00",     "EFpl",        0x11ff44,  FILE_TYPE_TRANSPARENT},
+    {"2FE2",        "3F00",     "EFiccid",     0x0fff44,  FILE_TYPE_TRANSPARENT},
+    {"2F05",        "3F00",     "EFpl",        0x01ff44,  FILE_TYPE_TRANSPARENT},
 
     {"5F50",        "7F10",     "DFgraphics",  0,         FILE_TYPE_TRANSPARENT},
     {"4F20",        "5F50",     "EFimg",       0x14ff44,  FILE_TYPE_LINEAR_FIXED},
Signature · 1 line
1.7.1.86.g0e460.dirty
#3 lore raw
In reply to Andrzej Zaborowski

Hi Andrew,

Quoted 6 lines · Andrzej Zaborowski

Add +PTTY in +CLAC output too.

---
 src/default.xml       |   23 +++++++++++++++++++++++
 src/simfilesystem.cpp |    5 +++++
 2 files changed, 28 insertions(+), 0 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis

#2 lore raw

Re: [PATCH] phonesim: Fix access bits for EFiccid, EFpl.

In reply to Andrzej Zaborowski

Hi Andrew,

Quoted 4 lines · Andrzej Zaborowski
---
 src/simfilesystem.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Good catch. Patch has been applied, thanks.

Regards,
-Denis