ATrappmann/PN5180-Library

Issue in library for locking SLIX2

Nettermann90 opened this issue · 3 comments

There is an Issue in the Enable Privacy on SLIX2 Tags.

In file:
PN5180ISO15693.cpp

function:
ISO15693ErrorCode PN5180ISO15693::enablePrivacy(uint8_t *password, uint8_t *random)

you need to replace the line:
uint8_t setPrivacy[] = {0x02, 0xBA, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

with:
uint8_t setPrivacy[] = {0x02, 0xBA, 0x04, 0x00, 0x00, 0x00, 0x00};

there are two bytes to much, with the origianl code it will not work.

Best Regards,
Felix

You're right! It's already fixed in this fork:
https://github.com/tueddy/PN5180-Library/blob/master/PN5180ISO15693.cpp

grafik

Fixed in Version 1.8