Describe the bug
I want to read the UID of some cards ( desfires, too ).
I bought this Module.
The module is a pn532 and as of #198 i suspected it could read the card
To Reproduce
Pi.Init<BootstrapWiringPi>();
while (true)
{
var device = new RFIDControllerMfrc522(Pi.Spi.Channel0,
spiFrequency: 500000,
Pi.Gpio[20]);
// If a card is found
var result = device.DetectCard();
if (result == RFIDControllerMfrc522.Status.Error) continue;
Console.WriteLine("Card detected");
// Get the UID of the card
var uidResponse = device.ReadCardUniqueId();
Console.WriteLine($"Raw: {uidResponse.Data}");
Console.WriteLine($"Card UID: {uidResponse.Data[0]}|{uidResponse.Data[1]}|{uidResponse.Data[2]}|{uidResponse.Data[3]}");
Console.WriteLine($"UID String: {Encoding.UTF8.GetString(uidResponse.Data)}");
}
No Output is printed to my console.
I tried various other pins or frequencies...
However the Demo Codes define like that.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug I want to read the UID of some cards ( desfires, too ). I bought this Module. The module is a pn532 and as of #198 i suspected it could read the card
To Reproduce
No Output is printed to my console. I tried various other pins or frequencies... However the Demo Codes define like that.
Expected behavior The Uid of the chip should be printed to the console
Devices
Additional context The examples apparently work:
Any help on how to get this to work?