What does HRESULT 0x8010002F (SCARD_E_COMM_DATA_LOST) mean?

 
Previous Next
SCARD_E_NO_READERS_AVAILABLE SCARD_E_NO_KEY_CONTAINER

SCARD_E_COMM_DATA_LOST

SCARD_E_COMM_DATA_LOST Communication with the smart card was interrupted and data was lost. The documented action is to retry, but the application should first discard the interrupted command state and verify that the card connection is still valid.

Safe recovery

  • Use SCardStatus to check the card and reader state before retransmitting an APDU.
  • Reconnect after card removal, reset, USB reconnect, reader power loss, or a protocol reset; do not reuse an assumption about the previous transaction state.
  • If the error recurs, test the card and reader separately and inspect reader/minidriver events for transport or power instability.

Microsoft: SCardStatus

Microsoft: SCardTransmit

Microsoft: Smart Card architecture

Microsoft: Smart card events


Looking for a different code? Search another status or error code.