Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding output from BLEKey #10

Open
dynamicsecuritytech opened this issue Aug 30, 2016 · 2 comments
Open

Decoding output from BLEKey #10

dynamicsecuritytech opened this issue Aug 30, 2016 · 2 comments

Comments

@dynamicsecuritytech
Copy link

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

@blark
Copy link
Contributor

blark commented Sep 1, 2016

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

@jarvla
Copy link

jarvla commented Oct 12, 2018

Hello,Is it possible to modify the BLEKey output to match the card number?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants