Skip to content

Commit 087cf20

Browse files
committed
mobibi stuff
1 parent 83483a1 commit 087cf20

File tree

1 file changed

+35
-9
lines changed

1 file changed

+35
-9
lines changed

client/src/cmdhf14b.c

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2878,10 +2878,15 @@ static int CmdHF14BMobibRead(const char *Cmd) {
28782878
};
28792879
transport_14b_apdu_t cmds_v2[] = {
28802880
{"SELECT AID ??", "\x00\xa4\x04\x00\x0b\xa0\x00\x00\x02\x91\xd0\x56\x00\x01\x90\x01", 16},
2881-
// Holder
2881+
// ShortEF=02: ICC
2882+
{"- ICC", "\x00\xb2\x01\x14\x1d", 5},
2883+
// ShortEF=06: ??, records length up to 0x20?
2884+
//{"- ShortEF=06", "\x00\xb2\x01\x34\x1d", 5},
2885+
// ShortEF=1C: Holder, records length up to 0x30?
28822886
{"- Holder1", "\x00\xb2\x01\xe4\x1d", 5},
2887+
{"- Holder2", "\x00\xb2\x02\xe4\x1d", 5}, // extra
28832888
{"SELECT AID 1TIC.ICA", "\x00\xa4\x04\x00\x0e\x31\x54\x49\x43\x2e\x49\x43\x41\xd0\x56\x00\x01\x91\x01\x00", 20},
2884-
// Contracts
2889+
// ShortEF=09: Contracts
28852890
{"- Contra1", "\x00\xb2\x01\x4c\x1d", 5},
28862891
{"- Contra2", "\x00\xb2\x02\x4c\x1d", 5},
28872892
{"- Contra3", "\x00\xb2\x03\x4c\x1d", 5},
@@ -2890,9 +2895,14 @@ static int CmdHF14BMobibRead(const char *Cmd) {
28902895
{"- Contra6", "\x00\xb2\x06\x4c\x1d", 5},
28912896
{"- Contra7", "\x00\xb2\x07\x4c\x1d", 5},
28922897
{"- Contra8", "\x00\xb2\x08\x4c\x1d", 5},
2893-
// Counter
2894-
{"- Counter", "\x00\xb2\x01\xcc\x24", 5},
2895-
// Events
2898+
{"- Contra9", "\x00\xb2\x09\x4c\x1d", 5},
2899+
{"- ContraA", "\x00\xb2\x0a\x4c\x1d", 5}, // extra
2900+
{"- ContraB", "\x00\xb2\x0b\x4c\x1d", 5}, // extra
2901+
{"- ContraC", "\x00\xb2\x0c\x4c\x1d", 5}, // extra
2902+
// ShortEF=19: Counter, length up to 0x24?
2903+
{"- Counter", "\x00\xb2\x01\xcc\x1d", 5},
2904+
// ShortEF=17: Events
2905+
// ShortEF=1d: Special Events
28962906
{"- ? Ev1", "\x00\xb2\x01\xbc\x1d", 5},
28972907
{"- SpecEv1", "\x00\xb2\x01\xec\x1d", 5},
28982908
{"- ? Ev2", "\x00\xb2\x02\xbc\x1d", 5},
@@ -2901,17 +2911,33 @@ static int CmdHF14BMobibRead(const char *Cmd) {
29012911
{"- SpecEv3", "\x00\xb2\x03\xec\x1d", 5},
29022912
{"- ? Ev4", "\x00\xb2\x04\xbc\x1d", 5},
29032913
{"- SpecEv4", "\x00\xb2\x04\xec\x1d", 5},
2904-
// Contract Extensions
2905-
{"- ? ContraExt", "\x00\xb2\x0c\x4c\x1d", 5},
2914+
// ShortEF=16: Contract Extensions
2915+
//{"- ? ContraExt", "\x00\xb2\x0c\x4c\x1d", 5}, == ContraC
2916+
{"- ? ContraExt1", "\x00\xb2\x01\xb4\x1d", 5},
29062917
{"- ? ContraExt2", "\x00\xb2\x02\xb4\x1d", 5},
29072918
{"- ? ContraExt3", "\x00\xb2\x03\xb4\x1d", 5},
29082919
{"- ? ContraExt4", "\x00\xb2\x04\xb4\x1d", 5},
29092920
{"- ? ContraExt5", "\x00\xb2\x05\xb4\x1d", 5},
29102921
{"- ? ContraExt6", "\x00\xb2\x06\xb4\x1d", 5},
29112922
{"- ? ContraExt7", "\x00\xb2\x07\xb4\x1d", 5},
29122923
{"- ? ContraExt8", "\x00\xb2\x08\xb4\x1d", 5},
2913-
// Best Contract?
2914-
{"- ConList", "\x00\xb2\x01\xf4\x30", 5},
2924+
// ShortEF=1E: Best Contract?, length up to 0x30?
2925+
{"- ConList", "\x00\xb2\x01\xf4\x1d", 5},
2926+
// ShortEF=01: ??, 1 records length up to 0x30?
2927+
// ShortEF=07: ??, 2 records length up to 0x30?
2928+
{"- ShortEF=07, rec1", "\x00\xb2\x01\x3c\x1d", 5},
2929+
{"- ShortEF=07, rec2", "\x00\xb2\x02\x3c\x1d", 5},
2930+
// ShortEF=08: ??, 3 records length up to 0x30?
2931+
// ShortEF=10: ??, 1 records length up to 0x24?
2932+
// ShortEF=11: ??, 1 records length up to 0x30?
2933+
// ShortEF=12: ??, 12 records length up to 0x15?
2934+
// ShortEF=13: ??, 4 records length up to 0x30?
2935+
// ShortEF=14: ??, 1 records length up to 0x20?
2936+
// ShortEF=15: ??, 8 records length up to 0x40?
2937+
// ShortEF=18: ??, 8 records length up to 0x40?
2938+
// ShortEF=1A: ??, 8 records length up to 0x30?
2939+
// ShortEF=1B: ??, 1 records length up to 0x18?
2940+
// ShortEF=1C: ??, 1 records length up to 0x18?
29152941
};
29162942
bool activate_field = true;
29172943
bool leave_signal_on = true;

0 commit comments

Comments
 (0)