aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpySim-read.py13
-rw-r--r--pysim-testdata/Fairwaves-SIM.ok28
-rw-r--r--pysim-testdata/Wavemobile-SIM.ok39
-rw-r--r--pysim-testdata/sysmoISIM-SJA2.ok50
-rw-r--r--pysim-testdata/sysmoUSIM-SJS1.ok36
5 files changed, 166 insertions, 0 deletions
diff --git a/pySim-read.py b/pySim-read.py
index 7557201..4551e82 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -29,6 +29,7 @@ import random
import re
import sys
from pySim.ts_51_011 import EF, DF, EF_SST_map
+from pySim.ts_31_102 import EF_UST_map
from pySim.commands import SimCardCommands
from pySim.cards import card_detect, Card
@@ -242,5 +243,17 @@ if __name__ == '__main__':
else:
print("SIM Service Table: Can't read, response code = %s" % (sw,))
+ # Check whether we have th AID of USIM, if so select it by its AID
+ # EF.UST - File Id in ADF USIM : 6f38
+ if '9000' == card.select_adf_by_aid():
+ # EF.UST
+ (res, sw) = card.read_binary('6f38')
+ if sw == '9000':
+ print("USIM Service Table: %s" % res)
+ # Print those which are available
+ print("%s" % dec_st(res, table="usim"))
+ else:
+ print("USIM Service Table: Can't read, response code = %s" % (sw,))
+
# Done for this card and maybe for everything ?
print("Done !\n")
diff --git a/pysim-testdata/Fairwaves-SIM.ok b/pysim-testdata/Fairwaves-SIM.ok
index 9df44fd..0dbd89f 100644
--- a/pysim-testdata/Fairwaves-SIM.ok
+++ b/pysim-testdata/Fairwaves-SIM.ok
@@ -86,5 +86,33 @@ SIM Service Table: ff3cc3ff030fff0f000fff03f0c0
Service 58 - Extension 8
Service 59 - MMS User Connectivity Parameters
+USIM Service Table: 01ea1ffc21360480010000
+ Service 1 - Local Phone Book
+ Service 10 - Short Message Storage (SMS)
+ Service 12 - Short Message Service Parameters (SMSP)
+ Service 14 - Capability Configuration Parameters 2 (CCP2)
+ Service 15 - Cell Broadcast Message Identifier
+ Service 16 - Cell Broadcast Message Identifier Ranges
+ Service 17 - Group Identifier Level 1
+ Service 18 - Group Identifier Level 2
+ Service 19 - Service Provider Name
+ Service 20 - User controlled PLMN selector with Access Technology
+ Service 21 - MSISDN
+ Service 27 - GSM Access
+ Service 28 - Data download via SMS-PP
+ Service 29 - Data download via SMS-CB
+ Service 30 - Call Control by USIM
+ Service 31 - MO-SMS Control by USIM
+ Service 32 - RUN AT COMMAND command
+ Service 33 - shall be set to 1
+ Service 38 - GSM security context
+ Service 42 - Operator controlled PLMN selector with Access Technology
+ Service 43 - HPLMN selector with Access Technology
+ Service 45 - PLMN Network Name
+ Service 46 - Operator PLMN List
+ Service 51 - Service Provider Display Information
+ Service 64 - VGCS security
+ Service 65 - VBS security
+
Done !
diff --git a/pysim-testdata/Wavemobile-SIM.ok b/pysim-testdata/Wavemobile-SIM.ok
index 01ba6b7..2de0892 100644
--- a/pysim-testdata/Wavemobile-SIM.ok
+++ b/pysim-testdata/Wavemobile-SIM.ok
@@ -91,5 +91,44 @@ SIM Service Table: ff33ff0f3c00ff0f000cf0c0f0030000
Service 58 - Extension 8
Service 59 - MMS User Connectivity Parameters
+USIM Service Table: 9eff1b3c37fe5900000000
+ Service 2 - Fixed Dialling Numbers (FDN)
+ Service 3 - Extension 2
+ Service 4 - Service Dialling Numbers (SDN)
+ Service 5 - Extension3
+ Service 8 - Outgoing Call Information (OCI and OCT)
+ Service 9 - Incoming Call Information (ICI and ICT)
+ Service 10 - Short Message Storage (SMS)
+ Service 11 - Short Message Status Reports (SMSR)
+ Service 12 - Short Message Service Parameters (SMSP)
+ Service 13 - Advice of Charge (AoC)
+ Service 14 - Capability Configuration Parameters 2 (CCP2)
+ Service 15 - Cell Broadcast Message Identifier
+ Service 16 - Cell Broadcast Message Identifier Ranges
+ Service 17 - Group Identifier Level 1
+ Service 18 - Group Identifier Level 2
+ Service 20 - User controlled PLMN selector with Access Technology
+ Service 21 - MSISDN
+ Service 27 - GSM Access
+ Service 28 - Data download via SMS-PP
+ Service 29 - Data download via SMS-CB
+ Service 30 - Call Control by USIM
+ Service 33 - shall be set to 1
+ Service 34 - Enabled Services Table
+ Service 35 - APN Control List (ACL)
+ Service 37 - Co-operative Network List
+ Service 38 - GSM security context
+ Service 42 - Operator controlled PLMN selector with Access Technology
+ Service 43 - HPLMN selector with Access Technology
+ Service 44 - Extension 5
+ Service 45 - PLMN Network Name
+ Service 46 - Operator PLMN List
+ Service 47 - Mailbox Dialling Numbers
+ Service 48 - Message Waiting Indication Status
+ Service 49 - Call Forwarding Indication Status
+ Service 52 - Multimedia Messaging Service (MMS)
+ Service 53 - Extension 8
+ Service 55 - MMS User Connectivity Parameters
+
Done !
diff --git a/pysim-testdata/sysmoISIM-SJA2.ok b/pysim-testdata/sysmoISIM-SJA2.ok
index f1acc16..80045cf 100644
--- a/pysim-testdata/sysmoISIM-SJA2.ok
+++ b/pysim-testdata/sysmoISIM-SJA2.ok
@@ -100,5 +100,55 @@ SIM Service Table: ff33ffff3f003f0f300cf0c3f00000
Service 58 - Extension 8
Service 59 - MMS User Connectivity Parameters
+USIM Service Table: beff9f9de73e0408400170730000002e00000000
+ Service 2 - Fixed Dialling Numbers (FDN)
+ Service 3 - Extension 2
+ Service 4 - Service Dialling Numbers (SDN)
+ Service 5 - Extension3
+ Service 6 - Barred Dialling Numbers (BDN)
+ Service 8 - Outgoing Call Information (OCI and OCT)
+ Service 9 - Incoming Call Information (ICI and ICT)
+ Service 10 - Short Message Storage (SMS)
+ Service 11 - Short Message Status Reports (SMSR)
+ Service 12 - Short Message Service Parameters (SMSP)
+ Service 13 - Advice of Charge (AoC)
+ Service 14 - Capability Configuration Parameters 2 (CCP2)
+ Service 15 - Cell Broadcast Message Identifier
+ Service 16 - Cell Broadcast Message Identifier Ranges
+ Service 17 - Group Identifier Level 1
+ Service 18 - Group Identifier Level 2
+ Service 19 - Service Provider Name
+ Service 20 - User controlled PLMN selector with Access Technology
+ Service 21 - MSISDN
+ Service 24 - Enhanced Multi-Level Precedence and Pre-emption Service
+ Service 25 - Automatic Answer for eMLPP
+ Service 27 - GSM Access
+ Service 28 - Data download via SMS-PP
+ Service 29 - Data download via SMS-CB
+ Service 32 - RUN AT COMMAND command
+ Service 33 - shall be set to 1
+ Service 34 - Enabled Services Table
+ Service 35 - APN Control List (ACL)
+ Service 38 - GSM security context
+ Service 39 - CPBCCH Information
+ Service 40 - Investigation Scan
+ Service 42 - Operator controlled PLMN selector with Access Technology
+ Service 43 - HPLMN selector with Access Technology
+ Service 44 - Extension 5
+ Service 45 - PLMN Network Name
+ Service 46 - Operator PLMN List
+ Service 51 - Service Provider Display Information
+ Service 60 - User Controlled PLMN selector for I-WLAN access
+ Service 71 - Equivalent HPLMN
+ Service 73 - Equivalent HPLMN Presentation Indication
+ Service 85 - EPS Mobility Management Information
+ Service 86 - Allowed CSG Lists and corresponding indications
+ Service 87 - Call control on EPS PDN connection by USIM
+ Service 89 - eCall Data
+ Service 90 - Operator CSG Lists and corresponding indications
+ Service 93 - Communication Control for IMS by USIM
+ Service 94 - Extended Terminal Applications
+ Service 95 - Support of UICC access to IMS
+
Done !
diff --git a/pysim-testdata/sysmoUSIM-SJS1.ok b/pysim-testdata/sysmoUSIM-SJS1.ok
index 2244716..408f211 100644
--- a/pysim-testdata/sysmoUSIM-SJS1.ok
+++ b/pysim-testdata/sysmoUSIM-SJS1.ok
@@ -102,5 +102,41 @@ SIM Service Table: ff3fffff3f003f1ff00c00c0f00000
Service 58 - Extension 8
Service 59 - MMS User Connectivity Parameters
+USIM Service Table: 9e6b1dfc67f6580000
+ Service 2 - Fixed Dialling Numbers (FDN)
+ Service 3 - Extension 2
+ Service 4 - Service Dialling Numbers (SDN)
+ Service 5 - Extension3
+ Service 8 - Outgoing Call Information (OCI and OCT)
+ Service 9 - Incoming Call Information (ICI and ICT)
+ Service 10 - Short Message Storage (SMS)
+ Service 12 - Short Message Service Parameters (SMSP)
+ Service 14 - Capability Configuration Parameters 2 (CCP2)
+ Service 15 - Cell Broadcast Message Identifier
+ Service 17 - Group Identifier Level 1
+ Service 19 - Service Provider Name
+ Service 20 - User controlled PLMN selector with Access Technology
+ Service 21 - MSISDN
+ Service 27 - GSM Access
+ Service 28 - Data download via SMS-PP
+ Service 29 - Data download via SMS-CB
+ Service 30 - Call Control by USIM
+ Service 31 - MO-SMS Control by USIM
+ Service 32 - RUN AT COMMAND command
+ Service 33 - shall be set to 1
+ Service 34 - Enabled Services Table
+ Service 35 - APN Control List (ACL)
+ Service 38 - GSM security context
+ Service 39 - CPBCCH Information
+ Service 42 - Operator controlled PLMN selector with Access Technology
+ Service 43 - HPLMN selector with Access Technology
+ Service 45 - PLMN Network Name
+ Service 46 - Operator PLMN List
+ Service 47 - Mailbox Dialling Numbers
+ Service 48 - Message Waiting Indication Status
+ Service 52 - Multimedia Messaging Service (MMS)
+ Service 53 - Extension 8
+ Service 55 - MMS User Connectivity Parameters
+
Done !