I downloaded the android ACS library and was trying out the sample code and the ReaderTest app on my android device using the ACR122U reader with a otg cable.
I tried sending the following APDU command - FF CA 00 00 00 but i keep hitting this exception at the following line in the code snippet below:
// Transmit APDU
responseLength = mReader.transmit(params[0].slotNum,
command, command.length, response,
response.length);
the exception :
com.acs.smartcard.InvalidDeviceStateException: The current state is not equal to specific
I've checked to make sure that all elements being passed to the .transmit method are accurate (slotNum, command, command.length, etc). Just can't make out why that exception is being thrown.
Any help would be greatly appreciated !