Smart Card and CCID driver

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
pagano.paganino
Posts: 44
Joined: Fri Sep 11, 2015 10:47 pm

Smart Card and CCID driver

Postby pagano.paganino » Thu Jan 21, 2016 4:40 pm

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 1099 times

rsz_img_6176.jpg
rsz_img_6176.jpg (247.03 KiB) Viewed 1099 times

In use:
rsz_img_6185.jpg
rsz_img_6185.jpg (185.44 KiB) Viewed 1099 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'
>>>

pagano.paganino
Posts: 44
Joined: Fri Sep 11, 2015 10:47 pm

Re: Smart Card and CCID driver

Postby pagano.paganino » Thu Jan 21, 2016 4:41 pm

Windows usb CCID driver:

Capture.PNG
Capture.PNG (37.19 KiB) Viewed 1098 times

Capture0.PNG
Capture0.PNG (38.22 KiB) Viewed 1098 times

Capture1.PNG
Capture1.PNG (38.91 KiB) Viewed 1098 times

pagano.paganino
Posts: 44
Joined: Fri Sep 11, 2015 10:47 pm

Re: Smart Card and CCID driver

Postby pagano.paganino » Thu Jan 21, 2016 4:42 pm

In CDC mode:
Capture3.PNG
Capture3.PNG (14.97 KiB) Viewed 1097 times

pagano.paganino
Posts: 44
Joined: Fri Sep 11, 2015 10:47 pm

Re: Smart Card and CCID driver

Postby pagano.paganino » Thu Jan 21, 2016 4:42 pm

In normal use case:
Capture2.PNG
Capture2.PNG (22.61 KiB) Viewed 1097 times

User avatar
roland_vs
Posts: 38
Joined: Tue Dec 08, 2015 8:28 pm
Location: Netherlands
Contact:

Re: Smart Card and CCID driver

Postby roland_vs » Tue Jan 26, 2016 8:26 pm

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

pagano.paganino
Posts: 44
Joined: Fri Sep 11, 2015 10:47 pm

Re: Smart Card and CCID driver

Postby pagano.paganino » Wed Jan 27, 2016 10:47 pm

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,

lolo2580
Posts: 2
Joined: Wed Sep 14, 2016 2:07 pm

Re: Smart Card and CCID driver

Postby lolo2580 » Fri Sep 23, 2016 1:30 pm

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

pagano.paganino
Posts: 44
Joined: Fri Sep 11, 2015 10:47 pm

Re: Smart Card and CCID driver

Postby pagano.paganino » Sun Sep 25, 2016 2:34 pm

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,


Return to “Hardware Projects”

Who is online

Users browsing this forum: No registered users and 1 guest