BLEKey
BLEKey copied to clipboard
Decoding output from BLEKey
Hello, My name is Eric Stein and I am having some trouble decoding the read output from the BLEKey. I got the module to work perfectly, but have some questions about the format of the output of the BLEKey.
My example :
I have a Wiegand 26 Bit card and I did get it to Read and Write using the BLE Key. Its attributes are: • Facility Code -2 • Card # 26040 • It's Binary reading is 1000 0001 0011 0010 1101 1100 01 after dropping the first and last bits it is 000 0010 0110 0101 1011 1000 • Based upon my conversion table, the equivalent Hex # should be 0265B8 or 204CB71 without dropping the first and last bits. (neither looks anything like the BLEKey output)
The problem is that I do not get the same Hexadecimal # as what is outputted using the BLE Scanner App. The BLE Key Hex output is 1A71CB04062000 My Question is how do I get from the BLEKeys output to facility coded and card number. I am trying to understand this output. Any help with this is appreciated!
Thank you,
Eric Stein
BLE has a different endianness so the bits are reversed. Look at the python client for an example of how to decipher them. Or you can look at this ipython notebook I made: https://gist.github.com/blark/684bad9bd396915ad7bffe88cbbe9fe6
Hello,Is it possible to modify the BLEKey output to match the card number? Thanks