Search code examples
smartcardapdusmartcard-readercontactless-smartcard

GET RESPONSE APDU Command


When I am tryi ng to get the response by using (A0 C0 00 00 1A)GET RESPONSE command, I am getting SCardTransmit Failed! (80100008) The data buffer to receive returned data is too small for the returned data. HOW TO RESOLVE THIS ERROR?


Solution

  • I don't know the framework you are using. I assume you use native WinSCard or PCSC Lite. When using SCardTransmit you have to make sure parameter pcbRecvLength is big enough for your response to fit in.