From 6118146598066dd1b761b8a691de8ed603933d8b Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Sun, 3 May 2015 16:34:06 +0200 Subject: [PATCH] sm_emul: send ATR with 0x18 and answer to pts --- usb_application/smartcard_emulator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usb_application/smartcard_emulator.py b/usb_application/smartcard_emulator.py index 635f4eff..a394124f 100644 --- a/usb_application/smartcard_emulator.py +++ b/usb_application/smartcard_emulator.py @@ -8,11 +8,13 @@ LEN = 4 class SmartCardEmulator: def getATR(self): - return array.array('B', constants.ATR_SYSMOCOM2) + return array.array('B', constants.ATR_SYSMOCOM1) def send_receive_cmd(self, cmd): if cmd[INS] == 0xA4: resp = [0x9F, 0x16] + elif cmd == [0xff, 0x00, 0xff]: + resp = [0xff] elif len(cmd) == 5 and cmd[INS] == 0xC0: data = self.ans_from_len[cmd[LEN]] SW = [0x90, 0x00]