Geraffel-Village / Beernary

Hard- & software stack for authentication, authorization and accounting of your private beer tap via RFID tokens. Created by the Geraffel gang, it runs reliably on very simple and cheap hardware.
GNU General Public License v2.0
6 stars 2 forks source link

B33rn4ryReader: fix reading / decoding of tagID for serial-reader #13

Closed SvenRoederer closed 5 years ago

SvenRoederer commented 5 years ago

as per datashee we receive the TagID and a checksum from the reader, like "data:F004414A2E; cksum:D". The first and last byte of data seem rubbish, so we keep "data:004414A2". This hex-value we just need to convert to integer to get our ID (as read from the USB-reader).

Using the correct values also seems to make the checksum-code working as the fail messages are gone.

SvenRoederer commented 5 years ago

I had this branch running on the real hardware and w0000t ....