esprfid / esp-rfid

ESP8266 RFID (RC522, PN532, Wiegand, RDM6300) Access Control system featuring WebSocket, JSON, NTP Client, Javascript, SPIFFS
MIT License
1.37k stars 423 forks source link

Incorrect UID read with Wiegand 32 bit device - anyone know protocol #556

Closed windy54 closed 1 year ago

windy54 commented 1 year ago

We currently use a 522 reader and have been donated several Wiegand devices.

These output 32 bits when a card is read.

The displayed UID is totally different to the UID stored on the card.

I have investigated the code and have a fix but this is to the Wiegand.cpp library file not the esp-rfid code.

If we had not already been using a 522 reader this issue would never have arisen.

So my question is, does anyone have a reference to the Wiegand 32 bit protocol? I can't find one.

I am going to post a similar question in the github repository for the code.

evazzoler commented 1 year ago

Try to check if D0 and D1 are inverted.

windy54 commented 1 year ago

They are okay, I originally had them inverted on my logic analyser. When I work through manually the errors occur when the last bit is read in.

Sent from my iPhone

On 18 Nov 2022, at 10:28, Enrico Vazzoler @.***> wrote:

 Try to check if D0 and D1 are inverted.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

matjack1 commented 1 year ago

hey @windy54 do you confirm this is something to do with the Wiegand library? Am I right?

I'm going to close this for now, but if you still need help on this one let me know. Maybe can you provide a couple of examples of RFID reads from the two sensors for the same card?

windy54 commented 1 year ago

Hi,Yes I have edited the wiegand.cpp file, I will send the edits to you.CheersSteve GaleOn 23 Jan 2023, at 20:39, Matteo Giaccone @.***> wrote: hey @windy54 do you confirm this is something to do with the Wiegand library? Am I right? I'm going to close this for now, but if you still need help on this one let me know. Maybe can you provide a couple of examples of RFID reads from the two sensors for the same card?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>