From ebd0fa9d439fcc7da83aef2ca84ffb8a42a3053d Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Fri, 29 May 2015 16:42:51 +0200 Subject: [PATCH] gsmtap.py: Send ATR bytes as test command --- usb_application/gsmtap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usb_application/gsmtap.py b/usb_application/gsmtap.py index 96038eac..9e7a1021 100755 --- a/usb_application/gsmtap.py +++ b/usb_application/gsmtap.py @@ -17,8 +17,9 @@ def gsmtap_send_apdu(data): s.close() if __name__ == '__main__': - cmds = ("\xa0\xa4\x00\x00\x02\x6f\x7e\x9f\x0f", - "\xa0\xd6\x00\x00\x0b\xff\xff\xff\xff\x09\xf1\x07\xff\xfe\x00\x03\x90\x00", + cmds = ("\x3B\x99\x18\x00\x11\x88\x22\x33\x44\x55\x66\x77\x60", # ATR + "\xa0\xa4\x00\x00\x02\x6f\x7e\x9f\x0f", # SELECT FILE + "\xa0\xd6\x00\x00\x0b\xff\xff\xff\xff\x09\xf1\x07\xff\xfe\x00\x03\x90\x00", # UPDATE BINARY ) for cmd in cmds: gsmtap_send_apdu(array.array('B', cmd))