Closed djarbz closed 3 years ago
Mhh not sure it is a software issue, that's an usual behavior with Wiegand :) If you invert D0 and D1, 00110111 become 11001000. So please be sure it is probably wired and inverse D0 and D1. This ticket is old now so I will close it but feel free to comment.
It took me a while to figure this one out, either I'm doing something wrong, or the LEOSAC card to HEX conversion is wrong.
I have noticed that LEOSAC inverts the Facility Code and Stamp Number. If my real facility code is 55, LEOSAC is looking for 200. Same for the stamp number.
Then I've also noticed that the parity calculation is backwards, even parity is calculated as odd and vice versa.
I have created a bash script to take a FC and Stamp number input and spit out the "proper" HEX for LEOSAC.
The second script does the reverse, takes a valid HEX input and spits out the FC & Stamp info.