Android library to communicate with RFID Module RC522
readBlock()
was always returning true, making you think everything was perfect.calculateAccessBits()
- Calculates bytes 6, 7 and 8 for a sector's trailer, based on a given access conditionscalculateAccessConditions()
- Does the opposite, calculates access conditions, given the access bitswriteTrailer()
function, writes KEY A, KEY B and access bits to a sector's trailer. Note that this can be done using writeBlock()
by putting together the whole block data by yourself.AUTH_A
and AUTH_B
are public constants now, as they should have always been.getUuid()
to getUid()
, old name still available for compatibilitywrite()
to writeBlock()
for consistency with readBlock()
. Old name still available for compatibility.getBlockAddress()
static method to calculate a sector's block's absolute address, e.g. sector 2, block 2 address is 10.