Forum › MIFARE SDK › Ultralight C authentication with Taplinx › Reply To: Ultralight C authentication with Taplinx
Hi ,
I am new to android development, currently i am working validating the authentication Ultralight c ,
I have used the bellow code
public static final byte[] KEY_2KTDES_ULC=
{ (byte)0x42,(byte)0x52,(byte)0x45,(byte)0x41,(byte)0x4B,(byte)0x4D,(byte)0x45,(byte)0x49,
(byte)0x46,(byte)0x59,(byte)0x4F,(byte)0x55,(byte)0x43,(byte)0x41,(byte)0x4E,(byte)0x21
};
try {
ultralightC.getReader().connect();
ultralightC.getReader().setTimeout(2000);
Log.d(TAG,"Card Details :" +ultralightC.getCardDetails().cardName);
Key key=new SecretKeySpec(KEY_2KTDES_ULC,"DESede");
KeyData keyData=new KeyData();
keyData.setKey(key);
ultralightC.authenticate(keyData);
Log.d(TAG,"Authenticated");
}
catch (Throwable t)
{
t.printStackTrace();
}
Getting bellow error:
com.nxp.nfclib.exceptions.NxpNfcLibException: Transceive failed
Please help..
+ 0
|
- 0