Example program to read HID ProxCards using the gatech BuzzCard format with a HID ProxPoint Plus 6005BG00.
Dependencies: HID_Wiegand mbed USBDevice
See library: http://mbed.org/users/cbookman3/code/HID_Wiegand/wiki/Homepage
Revision 0:59e72754e5b6, committed 2014-04-22
- Comitter:
- cbookman3
- Date:
- Tue Apr 22 17:53:41 2014 +0000
- Child:
- 1:093dffbd107b
- Commit message:
- Example Program
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Wiegand.lib Tue Apr 22 17:53:41 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/cbookman3/code/HID_Wiegand/#21edeadd0ca0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Apr 22 17:53:41 2014 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "Wiegand.h" + +Serial pc(USBTX, USBRX); // tx, rx +void onCardRead(); + +Wiegand rfid(p30, p29, p28, &onCardRead); //, PinName pHold, &onCardRead); //void (*onCardRead)(void)); + +int main() { + while(1) { + rfid.doEvents(); + } +} + +void onCardRead() { + uint64_t data; + data = rfid.getBits(14, 33); + pc.printf("\nRead id of: %lld",data); + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Apr 22 17:53:41 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e \ No newline at end of file