Project

General

Profile

Actions

Bug #4815

closed

PowerUp when no card is inserted fails after a very long delay: 60 seconds

Added by rousseau over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Target version:
-
Start date:
10/17/2020
Due date:
% Done:

100%

Spec Reference:

Description

If I insert a card connector but without a SIM card in the card connector then the reader (sysmoOCTSIM in my case) reports a card present.
My CCID driver then tries to power up the card. The reader does not respond before 60 seconds. I think that is a very long delay.

00000008 [140021143160576] ifdhandler.c:1885:IFDHICCPresence() usb:1d50/6141:libudev:0:/dev/bus/usb/001/008 (lun: 20001)
00000010 [140021143160576] -> 000003 65 00 00 00 00 01 32 00 00 00 
00000531 [140021143160576] <- 000003 81 00 00 00 00 01 32 01 00 00 
00000020 [140021143160576] ifdhandler.c:2006:IFDHICCPresence() Card present
00000009 [140021143160576] ifdhandler.c:1184:IFDHPowerICC() action: PowerUp, usb:1d50/6141:libudev:0:/dev/bus/usb/001/008 (lun: 20001)
00000010 [140021143160576] -> 000003 62 00 00 00 00 01 33 01 00 00 
58660283 [140021143160576] <- 000003 80 00 00 00 00 01 33 41 FE 00 
00000020 [140021143160576] commands.c:246:CmdPowerOn Card absent or mute
00000009 [140021143160576] commands.c:275:CmdPowerOn() Power up with 5V failed. Try with auto.
00000009 [140021143160576] -> 000003 62 00 00 00 00 01 34 03 00 00 
58660581 [140021143160576] <- 000003 80 00 00 00 00 01 34 41 FE 00 
00000023 [140021143160576] commands.c:246:CmdPowerOn Card absent or mute
00000008 [140021143160576] commands.c:275:CmdPowerOn() Power up with 1.8V failed. Try with 3V.
00000010 [140021143160576] -> 000003 62 00 00 00 00 01 35 02 00 00 
58660339 [140021143160576] <- 000003 80 00 00 00 00 01 35 41 FE 00 
00000024 [140021143160576] commands.c:246:CmdPowerOn Card absent or mute
00000008 [140021143160576] commands.c:275:CmdPowerOn() Power up with 3V failed. Try with 5V.
00000006 [140021143160576] ifdhandler.c:1251:IFDHPowerICC() PowerUp failed

From the logs you can see that the reader answers with the "Card absent or mute" status only after 58660283 µs (or 59 seconds).

I have not checked the ISO 76816-3 to know the maximum delay allowed for the card to send the first ATR byte (TS).
I think 60 seconds is very long. I guess a timeout of 1 second is enough.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)