paulo-raca / YetAnotherArduinoWiegandLibrary

Event-driven Wiegand Library for Arduino
The Unlicense
70 stars 28 forks source link

Card read error: Unsupported message format #16

Open 8483 opened 5 years ago

8483 commented 5 years ago

I am trying to get this access control device (125Khz) to work.

I've tested the code on another device (13.56Mhz) and it works.

The error I am getting on the first device is

Card read error: Unsupported message format - Raw data: 11bits / 0000

Also, whenever I press a key on the access control device, I get the same error

Card read error: Unsupported message format - Raw data: 2bits / 00

Why isn't the Wiegand data read properly? What might be the problem?

paulo-raca commented 5 years ago

It's hard to tell without looking at the signal. Do you have a scope?

8483 commented 5 years ago

I am pretty new to all of this, so can you please tell me what you mean by scope?

paulo-raca commented 5 years ago

Scope is short for oscilloscope, but I actually meant a logic analyser.

This is device that connects into your data wires and captures the signal for inspection. It can be very handy to debug problems like this one ;)

While I haven't tried this you can use an Arduino + Sigrok (An open source desktop frontend for various logic analyzers), to inspect the signal -- It won't be a great logic analyzer, but should be good enough for wiegand. Alternatively, you can get a cheap USBee clone from eBay/AliExpress.

8483 commented 5 years ago

I see, thanks for the explanation.

That one is way beyond my skill level.

How can the first reader not work, and the second does... When they both send the same Wiegand signal?

What would the scope help me find out specifically?

paulo-raca commented 5 years ago

I don't know why one works and the other doesn't. It can be timing too fast/too slow, a different format, a bogus RFID reader etc.

I need the logic analyzer output to figure out what is wrong. Specifically, this is what a wiegand signal looks like: https://www.sigrok.org/blog/new-protocol-decoder-wiegand