Closed LostOctopus closed 1 year ago
I think the "problem" comes from the reader and/or driver.
pyscard has no mechanism to slow down a .transmit()
.
You can try to write a C program (instead of Python) just to be sure.
You can contact the smart card reader manufacturer.
I changed the reader and effectively this comes from here. Thank you Ludovic. Now I have to find a fast reader.
Your system information
Please describe your issue in as much detail as possible:
The transmit command speed differs even if the script is the same. I run the same script but one time on two, the speed is two times slower. After a quick investigation I observe the behavior described below. Using a profiling tool it seems that it comes from SCardTransmit, I guess this correspond to the PCSC driver or maybe the connection with the interface maybe. The script works each time, but it takes twice longer.
Steps for reproducing this issue:
Remark the speed is always Speed1 just after inserting the card in the reader. If I remove and insert back the card I stay on Speed1 in all cases.
Code