I am working on 8051 based hand held device..it has smart card reader Interfaced..but when i send RESET command to smart card from MCU...what all fields i have to check...and after this i am sending APDU..to select MF...but I am getting error from Smart Card Reader....But i am not able find why this ERROR i am getting...becoz all the files in smart card are personalised properly and SC reader is working fine( NEW ONE)..Can Anybody give some kind Guidance on Same....
Right now before sending RESET i am setting PTS of card ( card protocol).
And I am not changing SC reader protocol & using Default 9600 baudrate..and in MCU i am setting 9600 baud rate..
MY MCU is P8051
Card reader is ACR 30 with Serial Interface
Smart card is 4k Altexo schumberger cards...
PLat form : SDCC for linux
Sequence of my Present code :
1) Based on ACR 30 manual ,I initially set the protol for SC reader by using SELECT_CARD_TYPE command corresponding to smart card ..
2) I am using both 9600 baud rate...for MCU but for SC reader i not setting 9600 baud exclusively( but assuming that it will tuned to its default baud rate..ie 9600).
3) I send the RESET command...and got ATR...but I dont know what all fields
i need to check in ATR.
4)Right now after receiving ATR...I am immediately sending APDU to select
MF( master file) inside Smart card...but then as per SC reader Manul i am getting
0505..ie Transmission failur...
regards,
Prasad
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel