Forum › MIFARE SDK › Problem authenticating a MIFARE Ultralight EV1 tag › Reply To: Problem authenticating a MIFARE Ultralight EV1 tag
Hi Jorge,
The development team has analyzed the issue. They say, that you obviously not use the latest edition of TapLinx (please note the MIFARE SDK for Android is no longer maintained).
They gave me the following code snippet:
With the current release (version 1.1) of TapLinx there is no issue regarding Ultralight authentication.
Regards,
The TapLinx team
The development team has analyzed the issue. They say, that you obviously not use the latest edition of TapLinx (please note the MIFARE SDK for Android is no longer maintained).
They gave me the following code snippet:
public void testAuthProgramPwd_UL18() throws Exception {
boolean result = false;
mUltralightEv1Obj.getReader().setTimeout(2000);
//Setting new password setPasswordPack(ack);
setPassword(password);
byte[] passwordAck = mUltralightEv1Obj.authenticatePwd(password);
result = Arrays.equals(ack, passwordAck);
//Auth is successful
// Resetting to original password
setPasswordPack(originalAck);
setPassword(originalPassword);
mUltralightEv1Obj.enablePasswordProtection(true, 10);
//Trying to authenticate with old password again
mUltralightEv1Obj.authenticatePwd(password);
//Authenticate failed with timeout as Tag Lost exception which is expected as per the datasheet
Assert.assertEquals(true, result);
}
With the current release (version 1.1) of TapLinx there is no issue regarding Ultralight authentication.
Regards,
The TapLinx team
+ 0
|
- 0