i'm try to develop Project RFID Reader in windows 10 IOT in c#
i'm use RFID sticker buy from china. refer link below https://www.aliexpress.com/item-img/10-NFC-13-56-NTAG-213-RFID/32709729334.html
and i'm use example from like below RFID RC522 Raspberry PI 2 Windows IOT
During test RFID reader. it's work to read UID 4 byte.but i'm try to read 7 byte UID. It 's not working to read.
i'm modify some part of RC522 RFID
internal Uid(byte[] uid)
{
FullUid = uid;
//================ Change to 7 byte ======================
Bcc = uid[7];
Bytes = new byte[7];
System.Array.Copy(FullUid, 0, Bytes, 0, 7);
//Bcc = uid[4];
//Bytes = new byte[4];
//System.Array.Copy(FullUid, 0, Bytes, 0, 4);
foreach (var b in Bytes)
{
if (b != 0x00)
IsValid = true;
}
}
And
public Uid ReadUid()
{
// Run the anti-collision loop on the card
//Transceive(false , PiccCommands.Anticollision_1, PiccCommands.Anticollision_2);
Transceive(false, PiccCommands.Anticollision_1, PiccCommands.Anticollision_2);
// Return tag UID from FIFO
//return new Uid(ReadFromFifo(5));
return new Uid(ReadFromFifo(8));
}
it's still not reading. So please advise.