Forum / MIFARE and NFC Reader IC`s / Mifare DesFire EV1 tag reading limits with Lite SDK?
Tagged: 1
-
Is it possible to read data from DesFire EV1 via Lite SDK by using following functions or are those available for Advanced SDK only:
getApplicationIDs
selectApplication
readData
+ 0 | - 0
Hi Harri,
Of course you can read from a file using the MIFARE SDK Lite. The Lite SDK has some limits in contrast to the Advanced SDK, no hardware keystore etc.
Kind regards,
The MIFARE Team
+ 0 | - 0
Hi
Got following problem to read a file using SDK LITE:
@Override
public void onDESFireCardDetected(IDESFireEV1 objDESFire) {
DESFireEV1 clsDESFireEV1 = (DESFireEV1) objDESFire;
final int appId = 0x00000;
try {
Log.d(TAG, "Connect");
clsDESFireEV1.getReader().connect();
clsDESFireEV1.selectApplication(appId);
objDESFire.getReader().connect();
//objDESFire.selectApplication(appId);
This will result to:
java.lang.ClassCastException: com.nxp.nfcliblite.cards.DESFireEV1 cannot be cast to com.nxp.nfclib.desfire.DESFireEV1
Then if I do following:
@Override
public void onDESFireCardDetected(IDESFireEV1 objDESFire) {
//DESFireEV1 clsDESFireEV1 = (DESFireEV1) objDESFire;
final int appId = 0x00000;
try {
Log.d(TAG, "Connect");
//clsDESFireEV1.getReader().connect();
//clsDESFireEV1.selectApplication(appId);
objDESFire.getReader().connect();
objDESFire.selectApplication(appId);
But got error: Cannot resolve method 'selectApplication(int)'
Any guidance how to resolve this to be able to select application and read data from it?
+ 0 | - 0
Hi Harri,
Unfortunately the MIFARE SDK Lite also contain classes from Advanced SDK. But these classes cannot be used and cannot be connected with “Lite classes”. While programming with the Lite SDK you have to be very careful not to use the wrong class. I recommend to avoid using complete import statements and use complete class paths to be sure using the correct class.
This deficiency is known and hopefully removed in one of next releases.
Kind regards,
The MIFARE Team
+ 0 | - 0
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.