[Muscle] How to read/write from/to smartcard?

Santosh santosh.ry at gmail.com
Thu Sep 27 03:44:36 PDT 2007


Hello,

For SCR3310 usb smartcard reader on Linux 2.4.24, I'm using this
1. libusb-0.1.12
2. pcsc-lite-1.4.4
3. ccid-1.3.0

root@(none):~# ./pcsc_demo
PC/SC sample code
V 1.3 2003-2007, Ludovic Rousseau <ludovic.rousseau at free.fr>
THIS PROGRAM IS NOT DESIGNED AS A TESTING TOOL FOR END USERS!
Do NOT use it unless you really know what you do.
SCardListReaders: OK
SCardListReaders: OK
0: SCM SCR 3310 (21120641202391) 00 00
 Protocol: 1
SCardConnect: OK
 Reader: SCM SCR 3310 (21120641202391) 00 00 (length 36 bytes)
 State: 0x34
 Prot: 1
 ATR (length 4 bytes): 3B 02 53 01
SCardStatus: OK
Sending: 00 A4 00 00 02 3F 00
Received: 6D 00
SCardTransmit: OK
SCardDisconnect: OK
 Protocol: 1
SCardConnect: OK
Sending: 00 A4 00 00 02 3F 00
Received: 6D 00
SCardTransmit: OK
SCardReconnect: OK
 Reader: SCM SCR 3310 (21120641202391) 00 00 (length 36 bytes)
 State: 0x34
 Prot: 1
 ATR (length 4 bytes): 3B 02 53 01
SCardStatus: OK
 state: 0x0122
SCardGetStatusChange: OK
SCardBeginTransaction: OK
Sending: 00 A4 00 00 02 3F 00
Received: 6D 00
SCardTransmit: OK
SCardEndTransaction: OK
SCardDisconnect: OK


Now I need to read/write from smartcard, Please let me know how can I do
this. Do I've to write a C program or there is already a tool to do this?
I apologize if this is a dumb question, I'm new to smartcards.

Thanks,
Santosh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drizzle.com/pipermail/muscle/attachments/20070927/11b0ad2b/attachment.html


More information about the Muscle mailing list