Project

General

Profile

Actions

Bug #5285

closed

Multislot simultaneous acces sometimes fails with the CCID error 0xFE "Card absent or mute"

Added by rousseau over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/29/2021
Due date:
% Done:

100%

Spec Reference:

Description

I am working on adding support of concurrent multi slot access in my CCID driver.
It is now possible to handle 2 APDUs on 2 slots at the same time.

I note that, sometimes, the sysmoOCTSIM reader reports the CCID error 0xFE "Card absent or mute".
My setup is 1 sysmoOCTSIM and 3 SIM cards in the first 3 reader slots.
The SIM cards are sysmoUSIM-SJS1.

I used the Python script usim_read.py presented in https://ludovicrousseau.blogspot.com/2021/02/reading-sim-card-phone-book-in-python.html
My test is to read the phone book from the SIM cards.
To preform parallel accesses I use the Makefile presented in https://ludovicrousseau.blogspot.com/2021/03/accessing-lot-of-smart-cards.html

The problem occurs for slot 1 or 2, never for slot 0.
So I exchanged the cards from slot 0 and 1. But the problem is still present only in slots 1 et 2. So the SIM card should not be the source of problem.
I then used slots 1, 2 and 3 and let the slot 0 empty. In this case the problem occurs in slot 2 and 3 and never in slot 1.
It looks like the first slot with a card has no problem. But the next slots may report this 0xFE error.

I do not have a hardware spy to know why the communication between the card and the reader fails.
My setup is easy to reproduce. I can configure it on your end if I have access to a computer connected to a sysmoOCTSIM and 2 sysmoUSIM-SJS1 SIM cards in the reader.

I attach 2 log files:
  • log.txt is a pcscd log with all debug messages
  • log_CCID.txt contains only the CCID frames

The error frame is:

000001 80 00 00 00 00 01 12 41 FE 00


Files

log.txt log.txt 139 KB rousseau, 10/29/2021 09:26 AM
log_CCID.txt log_CCID.txt 12.8 KB rousseau, 10/29/2021 09:26 AM
sysmoOCTSIM-0.2.71-ebfc-dirty.bin sysmoOCTSIM-0.2.71-ebfc-dirty.bin 70.2 KB fake setparameters response, no actual PSS exchange Hoernchen, 11/27/2021 11:42 AM
sysmoOCTSIM-0.2.71-ebfc-dirty.bin sysmoOCTSIM-0.2.71-ebfc-dirty.bin 70.2 KB fixed slot status irq msg Hoernchen, 11/27/2021 02:37 PM
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)