Wiegand-Protocol-Library-for-Arduino | Wiegand 26 and Wiegand 34 Protocol Library for Arduino
kandi X-RAY | Wiegand-Protocol-Library-for-Arduino Summary
kandi X-RAY | Wiegand-Protocol-Library-for-Arduino Summary
Wiegand 26 and Wiegand 34 Protocol Library for Arduino
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Wiegand-Protocol-Library-for-Arduino
Wiegand-Protocol-Library-for-Arduino Key Features
Wiegand-Protocol-Library-for-Arduino Examples and Code Snippets
Community Discussions
Trending Discussions on Wiegand-Protocol-Library-for-Arduino
QUESTION
I'm trying to write a library for Hikvision card reader with keypad. Here is some information about that reader. Also I took as an example Arduino library. This library works well for reading Data and uses same external interrupt pins: https://github.com/monkeyboard/Wiegand-Protocol-Library-for-Arduino
I searched a lot in Google but there are no C examples that i could find. I wrote my code from zero but it didn't worked. I can see some output data but it has nothing in common with real data. So here is example: I put card on Reader which is Wiegand 26 protocol with ID:0x1532FC and Output is 0x94F8.
Maybe Someone will help me to find a mistake.
So here is my code:
...ANSWER
Answered 2017-Jun-14 at 14:55There is a silly mistake in:
QUESTION
I'm using Android things with a VSIONIS keypad in reader mode, which outputs on D0 and D1 pins in Wiegnad 26 format. I found a few libraries on how to do this on Arduino and have ported over the code, but cannot seem to make it work on Android Things. I'm using a Raspberry Pi 3. Does anyone have any knowledge on how to make this work?
Here's the Arduino library.
Here's the ported over code:
...ANSWER
Answered 2017-Feb-15 at 23:57A couple things I noticed looking at the reference implementation you linked:
- In both of the GPIO callback functions, your version doesn't shift the bit flags into the value (e.g.
cardTempHigh = 1
should becardTempHigh <<= 1
instead). - The
systemTick
variable is not updated regularly. In the reference code, thelastWiegand
value is constantly updated from the clock. - You might look into posting both GPIO callbacks to a
HandlerThread
. Right now the code is posting all events to the main thread which might be affecting your ability to process each interrupt in a timely fashion. To do this, register your callback using theregisterGpioCallback(GpioCallback, Handler)
version of the method instead.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Wiegand-Protocol-Library-for-Arduino
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page