Forum › MIFARE SDK › Trying to read DESFire EV1 Card, requires Authentication. › Reply To: Trying to read DESFire EV1 Card, requires Authentication.
Thanks for your answer.
My problem is that com.nxp.nfcliblite.cards.IDESFireEV1 and com.nxp.nfclib.desfire.DESFireEV1 are different.
I can't find a usage of getApplicationIDs, readData, ... in the sample app.
Extract:
In desfireCardLogic, I can get the card name or the uid, but I don't understand how to go deeper, get the application list and so on.
Thanks.
My problem is that com.nxp.nfcliblite.cards.IDESFireEV1 and com.nxp.nfclib.desfire.DESFireEV1 are different.
I can't find a usage of getApplicationIDs, readData, ... in the sample app.
Extract:
@Override
public void onDESFireCardDetected(final IDESFireEV1 objDESFire) {
if (mCardType == EnumCardType.EnumDESFireEV1 && mIsPerformingCardOperations) {
//Already Some Operations are happening in the same card, discard the callback
Log.d(TAG, "----- Already Some Operations are happening in the same card, discard the callback: " + mCardType.toString());
return;
}
mIsPerformingCardOperations = true;
mCardType = EnumCardType.EnumDESFireEV1;
mDESFire = objDESFire;
/* Insert your logic here by commenting the function call below. */
try {
mDESFire.getReader().close();
mDESFire.getReader().connect();
desfireCardLogic();
} catch (Throwable t) {
t.printStackTrace();
showMessage("Unknown Error Tap Again!", 't');
}
mIsPerformingCardOperations = false;
}
In desfireCardLogic, I can get the card name or the uid, but I don't understand how to go deeper, get the application list and so on.
DESFireEV1.CardDetails details = mDESFire.getCardDetails();
showMessage("cardName : " + details.cardName, 'a');
String uid = Utilities.dumpBytes(details.uid);
showMessage("uid:" + uid, 'a');
Thanks.
+ 0
|
- 0