Page 1 of 1

Smart Card and CCID driver

Posted: Thu Jan 21, 2016 4:40 pm
by pagano.paganino
Hi folks,
i have just completed the implementation of the module Smart cards and usb CCID driver.

The result is this:
rsz_img_6169.jpg
rsz_img_6169.jpg (254.94 KiB) Viewed 13137 times
rsz_img_6176.jpg
rsz_img_6176.jpg (247.03 KiB) Viewed 13137 times
In use:
rsz_img_6185.jpg
rsz_img_6185.jpg (185.44 KiB) Viewed 13137 times
For use it i have implemented new usb_mode:

Code: Select all

pyb.usb_mode('CCID')
pyb.usb_mode('CCID+MSC')
and a pyb module SMARTCARD():

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'
>>>

Re: Smart Card and CCID driver

Posted: Thu Jan 21, 2016 4:41 pm
by pagano.paganino
Windows usb CCID driver:
Capture.PNG
Capture.PNG (37.19 KiB) Viewed 13136 times
Capture0.PNG
Capture0.PNG (38.22 KiB) Viewed 13136 times
Capture1.PNG
Capture1.PNG (38.91 KiB) Viewed 13136 times

Re: Smart Card and CCID driver

Posted: Thu Jan 21, 2016 4:42 pm
by pagano.paganino
In CDC mode:
Capture3.PNG
Capture3.PNG (14.97 KiB) Viewed 13135 times

Re: Smart Card and CCID driver

Posted: Thu Jan 21, 2016 4:42 pm
by pagano.paganino
In normal use case:
Capture2.PNG
Capture2.PNG (22.61 KiB) Viewed 13135 times

Re: Smart Card and CCID driver

Posted: Tue Jan 26, 2016 8:26 pm
by roland_vs
Dear pagano,

This is interesting. Is such a board available? I would very much like to play with the smartcard function of the controller.

Regards,

Roland

Re: Smart Card and CCID driver

Posted: Wed Jan 27, 2016 10:47 pm
by pagano.paganino
Hi Roland,
thank you for your interest.
At the moment I do not have available pcb, is a prototype.
But aside the pcb I haven't released and I still don't know when and if they release the source code of the module SMARTCARD.

Best regards,

Re: Smart Card and CCID driver

Posted: Fri Sep 23, 2016 1:30 pm
by lolo2580
Hi,
I'am a new develloper on pyboard and I am very interested by your project, I want make a synchronous SMARTCARD transceiver.
I would like adapt your library Pyb.SMARTCARD(), it's possible to share it ??

Thank you,
Laurent

Re: Smart Card and CCID driver

Posted: Sun Sep 25, 2016 2:34 pm
by pagano.paganino
Thanks for your interest,
at the moment i cant't share pyb.SMARCARD module.
But i can help you with suggestions in how to implement it.

Regards,