|
Welcome to the GSM-Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Only registered members may post questions, contact other members or search our database of over 8 million posts. Registration is fast, simple and absolutely free so please - Click to REGISTER! If you have any problems with the registration process or your account login, please contact contact us . |
|
Register | FAQ | Donate | Forum Rules | Root any Device | ★iPhone Unlock★ | ★ Direct Codes ★ | Direct Unlock Source | Search | Today's Posts | Mark Forums Read |
| LinkBack | Thread Tools | Display Modes |
07-31-2012, 14:23 | #1 (permalink) |
Junior Member Join Date: Mar 2004 Age: 39
Posts: 26
Member: 57612 Status: Offline Thanks Meter: 0 | Strange sim card reading error I have Cardinal Sim editor and a Phoenix compatible usb sim reader and the program could read every sim card I inserted so far, but I've got a card recently and the program says: unknown smart card error (end of the hex string: C6A0) All the cards work with echo option, except for this one. I was trying to figure out the proper settings for this card but to no avail. Anyway, I don't think that there's a problem with the settings because I can get the ATR and the scanner part works, though return values are weird and in scripter too. Here is the ATR: Code: >>> ATR Info Tool [CARDinal] <<< Pure ATR = 3B 9E 95 80 1F C7 80 31 E0 73 FE 21 1B 66 D0 00 6C A2 0B 00 TS = 3B T0 = 9E TA[0] = 95 TD[0] = 80 TD[1] = 1F TA[2] = C7 HIST = 80 31 E0 73 FE 21 1B 66 D0 00 6C A2 0B 00 ASCII = . 1 . s . ! . f . . l . . . Default 'F' = 512 Default 'D' = 16 'P' (Vpp) = 5 V 'I' (Ipp) = max. 50 mA 'N' (GTime) = 2 + 0 etu = 2 etu Selected 'F' = 372 Selected 'D' = 1 Default protocol = T=0 Selected protocol = T=0 Supported protocols : T=0; T=15; Here is the script example: Code: ; .SCR Script sample for CARDinal Scripter ; ; Use this script on GSM SIM card ; ; semicolon = comment ; command = CLA INS P1 P2 P3 R01 DataToSend R02 ; | | |-- Status Word ; | |---------- DATA (lenght = P3) ; |----------------- ACK ; ; command = CLA INS P1 P2 P3 R01 DataToRec R02 ; | | |-- Status Word ; | |---------- rXX; XX=P3 ; |----------------- ACK ; ; command = CLA INS P1 P2 P3 R02 ; | |----------------- Status Word ; |--------------------- P3 = 00 a0 a4 00 00 02 r01 3f 00 r02 ; SelectFile(3f00) - ROOT - GSM MF a0 c0 00 00 06 r01 r06 r02 ; GetResponse(6 Bytes) ;a0 c0 00 00 06 r09 ; equivalent with previous command a0 a4 00 00 02 r01 2f e2 r02 ; SelectFile(2fE2) - ICCID a0 c0 00 00 06 r01 r06 r02 ; GetResponse(6 Bytes) a0 b0 00 00 0a r01 r0a r02 ; ReadBinary(10 Bytes) ;a0 fa 00 00 00 r02 ; Sleep - this command is ignored on Phase 2/2+ SIM cards Code: Checking script ... Script is OK! ATR = 3B 9E 95 80 1F C7 80 31 E0 73 FE 21 1B 66 D0 00 6C A2 0B 00 --> CMD = A0 A4 00 00 02 <-- SW = C6A0 --> CMD = A0 C0 00 00 06 <-- SW = A400 --> CMD = A0 A4 00 00 02 <-- SW = 0002 --> CMD = A0 C0 00 00 06 <-- SW = A0C0 --> CMD = A0 B0 00 00 0A <-- SW = 0000 [End of script] GSM Sim utility also supports this type of card reader, so I also tested the card with that program and interestingly it CAN read the ADN and SMS. But I don't like that program because when you want to write back the data to the card, it totally messes up sms messages and you cannot see the data in hexa. So is this some kind of protection or encryption of sim data or how comes it that Cardinal cannot read data from the card, but GSM SIM utility can? (in mobile phone the card works well) Thanks for any help. |
11-12-2014, 21:59 | #3 (permalink) |
Junior Member Join Date: Nov 2014
Posts: 2
Member: 2291718 Status: Offline Thanks Meter: 0 | how to read access conditions Hello! Help me, please, what the apdu command is to read firstly 16 bytes of access conditions of EF, and then to read a data? It may seen as 'a0 b0 xx 00 10'. What are the exact values of p1 and p2 ? |
Bookmarks |
Thread Tools | |
Display Modes | |
| |
Similar Threads | ||||
thread | Thread Starter | Forum | Replies | Last Post |
Eeprom reading | KLImax | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 2 | 09-22-2011 15:55 |
SIM restriction pending -- what does it mean? | Ryu | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 7 | 07-17-2011 10:05 |
|