i have just completed the implementation of the module Smart cards and usb CCID driver.
The result is this: In use: For use it i have implemented new usb_mode:
Code: Select all
pyb.usb_mode('CCID')
pyb.usb_mode('CCID+MSC')
Code: Select all
>>> s = pyb.SMARTCARD()
>>> s.atr()
b';\xff\x18\x00\xff\x811\xfeU\x00k\x02\t\x03\x03\x01\x01\x01CNS\x101\x80\x9d'
>>> s.send_apdu(b'\x00\x84\x00\x00\x10')
b'\xed\x15\xf8Xy\xc4\xce\x8a\x0f\x9b\xcb\x17x*\xe7D\x90\x00'
>>>