LudovicRousseau / pcsc-tools

Some tools to be used with smart cards and PC/SC
https://pcsc-tools.apdu.fr/
GNU General Public License v2.0
190 stars 62 forks source link

Transaction Failed on almost any Apdu, when using SIM Cards and ACR38U #30

Closed AbbassFaytaroony closed 4 years ago

AbbassFaytaroony commented 4 years ago

Hello , thank you for making these tools available! I am trying to test these tools against the following hardware :

Getting always an error. Ex: GScriptor:

Beginning script execution...

Sending: A0 A4 00 00 02 3F 00 

Errors During Script Execution: Transaction failed.
Script was executed without error.

Noting that all tools connected successfuly to the reader and performed reset command successfully returning the ATR .

I tried sending the same Apdu from a Java application is throwing : PCSCException: scard_e_not_transacted. This maybe related to the current issue

LudovicRousseau commented 4 years ago

https://pcsclite.apdu.fr/#support

I need, at least, a pcscd trace log.

AbbassFaytaroony commented 4 years ago

Sure! Here is the trace of :

LudovicRousseau commented 4 years ago

The reader reported "Card absent or mute". It looks like you are using a memory card https://smartcard-atr.apdu.fr/parse?ATR=3B+04+A2+13+10+91, and not a smart card. I am not surprised it does not work.

AbbassFaytaroony commented 4 years ago

Thank you for your response! The thing keeping me thinking about it is that the link you sent indicated the cards might be PM2P Chipkarte SLE 4442, Code FFFFFF exactly as the supplier indicated. Any other thought or hint?

LudovicRousseau commented 4 years ago

Try to find documentation about using MEMORY cards with your reader. Maybe your reader can use it.