Closed mvzlb closed 1 year ago
SLE4442 are memory cards, not microprocessor cards.
I do not know the SLE4442 cards. If the documentation says Le is mandatory then just add it. But I note that the card (or reader) answered with 90 00 to the write command. So it looks like the command worked.
Maybe you wrote something in the wrong place that killed the card.
It is not a problem with PySCard. See https://ludovicrousseau.blogspot.com/2020/11/how-to-get-smart-card-support.html
Maybe you wrote something in the wrong place that killed the card.
That seems to be the case. If I change the write address from 0x00 to 0x80 everything works as expected (even without Le
)!
Your system information
Please describe your issue in as much detail as possible:
I'm expecting to write and retrieve binary data to/from to a blank SLE4442 memory card using a Cherry ST-1144 terminal via the "Update Binary" command as documented in https://www.hidglobal.de/sites/default/files/resource_files/plt-03099_a.4_-_omnikey_sw_dev_guide.pdf (8.1.2)
I have a few blank memory card here that I can read using pyscard, but become completely unresponsive after writing data. This happened for two cards now.
Steps for reproducing this issue:
Reading blank card:
Write some data:
Now the card is unresponsive. Neither reinserting the card or replugging the terminal helps, the card seems to be dead:
pcscd
logChecking the documentation again, I just noticed that I forgot the
Le
field in the "Update Binary" command. But before I waste another card I'd like to ask:Le
byte really cause the card to become permanently(?) unresponsive?Thanks in advance!