Not able to selectApplication via TapLinx SDK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Not able to selectApplication via TapLinx SDK

1,007 次查看
Sarfraz1
Contributor I

Hi,

We are trying to develop an integrated application for saving data on cards in text format. For this purpose trying with TapLinx. As far as I understood from "Starting Development with Taplinx SDK" we can read and write data on Desfire v1 8k tag in NDEF format.

I used Desfire Ev1 8K tags in which we store text data using TagXplorer-v1.2. Now when trying to read data using TapLinx SDK. Can connect to the reader using TapLinxTest-Desktop app. Able to get application ids (as an example "0x9f7870"), but when try to selectApplication with this Id we get exception "Application not found". Below is the code I tried. I need your help!!!

desfire.selectApplication( 0 );
try
{
desfire.authenticate( 0, IDESFireEV1.AuthType.Native, KeyType.THREEDES, m_2k3desDef );
}
catch( Exception e )
{ // No default PICC Master Key
logWindow.append( e.getMessage() + "\n" );
bSuccess = false;
}
int[] appIds = desfire.getApplicationIDs();
if(appIds.length==0)
return bReturn;

byte[] bappId=intToBytes(appIds[0]);
try
{
// byte[] fileIds=desfire.readData(arg0, arg1, arg2)
desfire.selectApplication(bappId);
}
catch (Exception e)
{
return bReturn;
}

0 项奖励
回复
1 回复

989 次查看
Fabian_R
NXP TechSupport
NXP TechSupport

Hello sir,

Is there any particular reason you are using MIFARE cards instead of on an NTAG device? MIFARE products may require an NDA and, if you are only interested in writing NDEF messages I would strongly recommend the option of using NTAG products.

I would like to invite you to check our NTAG portfolio, where you will find that NTAG 215 has 32-bit password protection and the interaction with any Android Phone will be much more agile since MIFARE cards are a more complex device intended for closed-loop micropayments and public transit usage.

If you could provide me with some more information regarding your application, I may provide a better help

Please let me know what are your thoughts.

Best Regards,
Fabian
0 项奖励
回复