Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hack for AlcorMicro AU9560 and Acos-ID card
Perform a double reset cold + hot so that the Acos-ID card uses a lower communication speed. The cold ATR of this card is: 3B DF 96 FF 91 01 31 FE 46 80 31 90 52 41 02 64 05 02 00 AC 73 D6 22 C0 17 While the hot ATR is: 3B DF 18 FF 91 01 31 FE 46 80 31 90 52 41 02 64 05 02 00 AC 73 D6 22 C0 99 Note how TA1 changed from 0x96 (250000 bits/s at 4 MHz) to 0x18 (129032 bits/s at 4.00 MHz). The pcscd trace is: 00000002 [] ifdhandler.c:926:IFDHSetProtocolParameters() Set adapted speed to 115625 bauds 00000003 [] ifdhandler.c:1039:IFDHSetProtocolParameters() BWI/CWI (TB3) present: 0x46 00000002 [] ifdhandler.c:1074:IFDHSetProtocolParameters() IFSC (TA3) present: 254 00000002 [] ifdhandler.c:1078:IFDHSetProtocolParameters() Timeout: 2928 ms 00000003 [] commands.c:2324:SetParameters() length: 7 bytes 00000006 [] -> 000000 61 07 00 00 00 00 0D 01 00 00 95 10 FF 46 00 FE 00 02267701 [] <- 000000 82 00 00 00 00 00 0D 41 FE 00 00000021 [] commands.c:2351:SetParameters Card absent or mute 00000011 [] ifdhandler.c:1246:IFDHPowerICC() action: Reset, usb:058f/9540:libudev:0:/dev/bus/usb/003/003 (lun: 0) 00000006 [] -> 000000 62 00 00 00 00 00 0E 00 00 00 00194208 [] <- 000000 80 19 00 00 00 00 0E 00 00 00 3B DF 96 FF 91 01 31 FE 46 80 31 90 52 41 02 64 05 02 00 AC 73 D6 22 C0 17 00000025 [] ifdhandler.c:1246:IFDHPowerICC() action: Reset, usb:058f/9540:libudev:0:/dev/bus/usb/003/003 (lun: 0) 00000007 [] -> 000000 62 00 00 00 00 00 0F 00 00 00 00056894 [] <- 000000 80 19 00 00 00 00 0F 00 00 00 3B DF 18 FF 91 01 31 FE 46 80 31 90 52 41 02 64 05 02 00 AC 73 D6 22 C0 99 00000022 [] winscard.c:430:SCardConnect() Active Protocol: T=1
- Loading branch information