view doc/vendor/grcard2-person-script @ 56:b9fc7022f9ac

doc/Sysmocom-SIM-notes: update for current situation
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 22 Mar 2021 21:30:42 +0000
parents 322f6fcdc36e
children
line wrap: on
line source

; The present article is a "personalization" command script which we
; (FreeCalypso) received from Grcard in response to technical questions
; about the card-model-specific proprietary file which the Osmocom wiki page
; calls EF.WEKI.  This header comment was added by us; all following
; comments, commands and data are unchanged bits from Grcard.

;1 : 
Reset

;2 : Check Card(It is verify supper ADM, The ADM is ADM8)
Send A020000B08 3838383838383838
Assert 9000

;4 : Select 3F00
Send A0A4000002 3F00
Assert 9F17
;5 : PIN1(PIN1=1234)
Send A0D43A0108 30303030FFFFFFFF
Assert 9000
;6 : PIN2(PIN2=5678)
Send A0D43A0208 35363738FFFFFFFF
Assert 9000
;7 : PUK1(PUK1=12345678)
Send A0D43B0008 3132333435363738
Assert 9000
;8 : PUK2(PUK2=87654321)
Send A0D43B0208 3837363534333231
Assert 9000
;9 : ADM(ADM=3838383838383838, It is ADM2)
Send A0D43A0508 3838383838383838
Assert 9000

;===========================================================================================

;10 : Select ICCID
Send A0A4000002 2FE2
Assert 9F0F
;11 : Write ICCID(ICCID=89860001010123456789)
Send A0D600000A  98680010101032547698
Assert 9000
;12 : Select 7F20
Send A0A4000002 7F20
Assert 9F17
;13 : Select GSM_KI
Send A0A4000002 0001
Assert 9F0F
;14 : Write GSM_KI(KI=000102030405060708090A0B0C0D0E0F)
;Here's comp128v1
 Send A0D6000013 00100 0 000102030405060708090A0B0C0D0E0F

;Here's comp128v2
;Send A0D6000013 00100 1 000102030405060708090A0B0C0D0E0F

;Here's comp128v3
;Send A0D6000013 00100 2 000102030405060708090A0B0C0D0E0F
Assert 9000

;17 : Select GSM_IMSI
Send A0A4000002 6F07
Assert 9F0F
;18 : Write GSM_IMSI(IMSI=001010123456789)
Send A0D6000009  080910101032547698
Assert 9000
;19 : Select GSM_ACC
Send A0A4000002 6F78
Assert 9F0F
;20 : Write GSM_ACC
Send A0D6000002  0200
Assert 9000
;21 : Select GSM_LOCI
Send A0A4000002 6F7E
Assert 9F0F
;22 : Write GSM_LOCI
Send A0D600000B FFFFFFFF00F1100000FF01
Assert 9000
;23 : Select GSM_AD
Send A0A4000002 6FAD
Assert 9F0F
;24 : Write GSM_AD
Send A0D6000003  000000
Assert 9000
;25 : Select GSM_SPN
Send A0A4000002 6F46
Assert 9F0F
;26 : Write GSM_SPN(SPN=GSM)
Send A0D6000011  0047534DFFFFFFFFFFFFFFFFFFFFFFFFFF
Assert 9000
;27 : Select GSM_PLMN
Send A0A4000002 6F30
Assert 9F0F
;28 : Write GSM_PLMN
Send A0D60000F0  00F110FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Assert 9000
;29 : Select GSM_FPLMN
Send A0A4000002 6F7B
Assert 9F0F
;30 : Write GSM_FPLMN
Send A0D600000C FFFFFFFFFFFFFFFFFFFFFFFF
Assert 9000
;31 : Select GSM_HPLMN
Send A0A4000002 6F31
Assert 9F0F
;32 : Write GSM_HPLMN
Send A0D6000001  50
Assert 9000

;===========================================================================================

;39 : Select 3F00
Send A0A4000002 3F00
Assert 9F17
;40 : Select 7F10
Send A0A4000002 7F10
Assert 9F17
;41 : Select SMSP
Send A0A4000002 6F42
Assert 9F0F
;42 : Write SMSP(SMSP=+139012345678)
Send A0DC010428 FFFFFFFFFFFFFFFFFFFFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF 0791310921436587 FFFFFFFFFFFFFF
Assert 9000
;43 : Select 6F40
Send A0A4000002 6F40
Assert 9F0F
;44 : MSISDN(MSISDN=139456781234)
Send A0DC01041CFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0781314965872143 FFFFFFFFFFFF
Assert 9000