I am working on OpenSC (v0.14.0) to interact with Charismathics card having ‘Siemens CardOS v4.3b’.
OpenSC fails to get the MF from this card; while a Software tool provided by manufacturer is able to read the data objects present on this card.
My question is: whether it is valid for the Smartcards to have different location address for MF for different card OS? (May be a dumb question, but I found MF location is hardcoded to “3F002F00” inside ‘libopensc\dir.c’)
If it is valid, is there any way to get information about file structure (and location addresses) for a particular card? Appreciate any help / guidance in this regard.
matched driver 'Siemens CardOS'
card info name:'CardOS M4', type:1004, flags:0x0, max_send/recv_size:0/0
[opensc-pkcs11] libopensc\card.c:250:sc_connect_card: returning with: 0 (Success)
SCM Microsystems Inc. SCR33x USB Smart Card Reader 0: Connected SC card 013FC618
[opensc-pkcs11] libopensc\dir.c:140:sc_enum_apps: called
called; type=2, path=3f002f00
[opensc-pkcs11] libopensc\card-cardos.c:449:cardos_select_file: called
[opensc-pkcs11] libopensc\apdu.c:559:sc_transmit_apdu: called
[opensc-pkcs11] libopensc\card.c:325:sc_lock: called
[opensc-pkcs11] libopensc\reader-pcsc.c:517:pcsc_lock: called
[opensc-pkcs11] libopensc\apdu.c:526:sc_transmit: called
[opensc-pkcs11] libopensc\apdu.c:380:sc_single_transmit: called
CLA:0, INS:A4, P1:8, P2:0, data(2) 00C4E7BA
reader 'SCM Microsystems Inc. SCR33x USB Smart Card Reader 0'
Outgoing APDU data [ 8 bytes] =====================================
00 A4 08 00 02 2F 00 00 ...../..
[opensc-pkcs11] libopensc\reader-pcsc.c:182:pcsc_internal_transmit: called
Incoming APDU data [ 2 bytes] =====================================
6A 82 j.
[opensc-pkcs11] libopensc\apdu.c:395:sc_single_transmit: returning with: 0 (Success)
[opensc-pkcs11] libopensc\apdu.c:548:sc_transmit: returning with: 0 (Success)
[opensc-pkcs11] libopensc\card.c:361:sc_unlock: called
[opensc-pkcs11] libopensc\reader-pcsc.c:554:pcsc_unlock: called
file not found
[opensc-pkcs11] libopensc\iso7816.c:507:iso7816_select_file: returning with: -1201 (File not found)
[opensc-pkcs11] libopensc\card-cardos.c:453:cardos_select_file: returning with: -1201 (File not found)
[opensc-pkcs11] libopensc\card.c:640:sc_select_file: 'SELECT' error: -1201 (File not found)
[opensc-pkcs11] libopensc\dir.c:151:sc_enum_apps: Cannot select EF.DIR file: -1201 (File not found)
Thanks and Best regards,