Announce two new product: SmartCard Reader Rockey200 and USB2.0 Extension Cable

ROCKEY 200 is a handy and portable USB Smart Card reader that can perform read/write operations on any ISO 7816-1/2/3/4 smart cards which are compatible with protocol T=0 and T=1.

USB2.0 Extension Cable With high speed USB 2.0 devices such as USB token ,USB Card Reader and so on.

Come to try it now!

How to use pyGlobalPlatform to list smartcard readers

pyGlobalPlatform is a open source python library of globalplatform client library.
User avatar
JavaCardOS
Posts: 257
Joined: Thu Apr 30, 2015 12:00 pm
Points: 2253
Contact:

How to use pyGlobalPlatform to list smartcard readers

Postby JavaCardOS » Wed Nov 25, 2015 8:24 am

The following demo code shows how to use pyGlobalPlatform to list smartcard readers.

Code: Select all

# Import the module
import globalplatform as gp

# Establish context
context = gp.establishContext()

# List readers
readernames = gp.listReaders(context)

# print all the reader names
for readername in readernames:
     print readername
 
# Release context   
gp.releaseContext(context)

User avatar
rainly
Posts: 11
Joined: Tue Jun 09, 2015 4:38 am
Points: 18
Contact:

Re: How to use pyGlobalPlatform to list smartcard readers

Postby rainly » Tue Dec 01, 2015 4:00 am

what's the types of the file? it also python?

kuafu
Posts: 76
Joined: Thu Jun 25, 2015 2:09 am
Points: 957
Contact:

Re: How to use pyGlobalPlatform to list smartcard readers

Postby kuafu » Tue Dec 01, 2015 10:11 pm

Life is short ,use python.


Return to “pyGlobalPlatform”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer