Wiegand Protocol on PI

270 views
Skip to first unread message

James Manley

unread,
Mar 23, 2020, 4:22:41 PM3/23/20
to atxhs-...@googlegroups.com
So I'm trying to work on a card reader for a project.

I'm wanting to use a PI to read a HID card to check against a database to see who it should let in.

The HID card readers use the Wiegand protocol, which doesnt seem to complicated, but it a bit more than i know how to handle.

I'm just wanting a bare bones codes to be able to read the card and spit out the number.

I'm finding alot of things on git-hub and other places with entire projects involving the code, but nothing that is a simple "here is the card #"  simple code.

I have been able to get the reader to work on an arduino using a simple library for it, but im not sure how to translate it to python.

if anybody has experience with this or is able to point me int he right direction, it'd be appreciated.

(yes it needs to be HID, with Wiegand protocol, no i cant use RFID, or NFC, or other protocols instead)

(it could be on an arduino instead, but id like to try and make it on the pi if i could)

Tim Fredlund

unread,
Mar 23, 2020, 6:07:57 PM3/23/20
to atxhs-discuss
Hi James,

Once upon a time, we were working on a project at the hackerspace involving HID readers and Wiegand -- we leaned pretty heavily on this arduino library to make our raspberry pi code:  https://github.com/paulo-raca/YetAnotherArduinoWiegandLibrary . We only got about halfway through the project, just passing the "yes it reads cards and does other stuff" point, so the derivative code is long gone I'm afraid.. I've also got some PIC code, but it's pretty gnarly.

The short version is that the protocol is really straightforward, and easiest to implement if you can make use of interrupts.

Good luck,
 
Tim Fredlund | @ethosrot | #tc


--
You received this message because you are subscribed to the Google Groups "ATXHS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atxhs-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/atxhs-discuss/CAOL5BA2wM5ABPLWkd%3Djf815E08ckEtoVJSeLCG4ZA8pbxEkHMA%40mail.gmail.com.

Tim Fredlund

unread,
Mar 23, 2020, 6:12:49 PM3/23/20
to atxhs-discuss
In retrospect, it was actually the predecessor to this library that we used. This is far more polished. Either way, there you go. Feel free to DM me if you've got access control / wiegand questions.

Tim Fredlund | @ethosrot | #tc

Reply all
Reply to author
Forward
0 new messages