Closed tomekit closed 5 years ago
Right, so it looks like that uninstalling the official drivers:
sudo dpkg -r libacsccid
Removing things from blacklist and restarting the: pcscd
service solved the problem for me.
I'm currently running into the same error: smartcard.Exceptions.CardConnectionException: Failed to transmit with protocol T0. Card protocol mismatch.
on Ubuntu 19.04.
Fixed it by uninstalling the official ACS drivers and restarting the pcscd
service, e.g.:
# List the current installed drivers
$ dpkg --get-selections | grep libacsccid
libacsccid1
# Remove the driver
$ sudo dpkg -r libacsccid1
# Restart the pcscd service
$ sudo service pcscd restart
Interesting to note that my CCID driver https://github.com/LudovicRousseau/CCID works better than the fork from ACS https://github.com/acshk/acsccid with an ACS ACR122U reader :-)
@tomekit & @roaldnefs I suggest you to report the problem to https://github.com/acshk/acsccid so that @godfreychung can have a look at the issue.
Hi, I have almost the same problem, the reader is ACM1252SM rev 1.00C I've installed the driver for MacOS from ACS, and I'm using pyscard module also,
for some reason on older installation, there's no protocol problem but on newer one there's it's same MacOS "mojave "and pyscard versions "1.9.9" but different other libraries such as libusb, ndeflib, ndef, swig, pkg-config, pcsc-lite
exception: Failed to transmit with protocol T0 probably because of parameter value hresult = -2146434967
@ramymagdy-rm you should report the problem to ACS if you use their driver. Maybe they know how to debug the situation with the ACM1252SM reader.
I'm having a similar issue using the ACR122U on macOS Catalina. I'm using the pyscard library
smartcard.Exceptions.CardConnectionException: Failed to transmit with protocol T1. Transaction failed.
This occurs when transmitting ~40 bytes; but I don't see that error when transmitting smaller commands. Not sure what that means or what to do. I'm not using any of the drivers from ACS.
Same answer as before: report the problem to ACS. The problem is not with pyscard but within a lower layer (the ACS driver?).
Interesting to note that my CCID driver https://github.com/LudovicRousseau/CCID works better than the fork from ACS https://github.com/acshk/acsccid with an ACS ACR122U reader :-)
@tomekit & @roaldnefs I suggest you to report the problem to https://github.com/acshk/acsccid so that @godfreychung can have a look at the issue.
Very Interesting @LudovicRousseau , I already install ccid by ACR, can you explain how to uninstall them and replace by yours ?
Thanks.
I've got the ACR122U reader connected to Ubuntu 18.10 machine. I am using
RFIDIOt
sample scripts which do use the:pyscard
. For instancecardselect.py
: https://github.com/AdamLaurie/RFIDIOt/blob/master/cardselect.pyEverything worked fine until it stopped same day it was all configured.
I am getting the immediate exception (in case card is not present):
or immediate exception when card is present:
My setup is mostly this:
After this the:
pcsc_scan
works perfectly fine.Any idea what I am doing wrong? Thanks !