I am developing a simple application involving an ACR1251 smart card reader. Currently I don't have it with me, but it's a time-sensitive project, so I'm using vsmartcard to emulate a reader and a ISO 7816 card.
The code I'm having problems with is:
from smartcard.System import readers
reader = readers()[0]
conn = reader.createConnection()
conn.connect()
response, sw1, sw2 = conn.transmit([0xFF, 0xCA, 0x00, 0x00, 0x00]) # Get Data UID
The response codes are 0x69 0x88, that mean "Incorrect secure messaging (SM) data object". I haven't found anything mentioning SM in pyscard's documentation, and googling wasn't successful either.
Am I missing something in my code? This is definitely possible, as I am trying to do this in the simplest way possible and pyscard is quite low level, and the documentation is not really aimed at doing simple things.
Also it could be a problem with the emulator, in that case I guess I'd just have to wait for customs to process the reader.