RFID Card Details
RFID Card Details
RFID Card Details
There are 15 sectors having four blocks each. Each block has space of 16 bytes which can
accommodate 32 characters. So we have 32 characters that we can use for each block
By default sector zero and block zero is being selected. So our 32 character code resides
in sector zero blocks zero.
When we need to change the block with in the sector we write the configuration and then
send reset signal. Now the block has changed.
Before changing the block reset the module and after changing the block write
configuration and then again reset it.
Comparison
The first technique gives us the information about checksum, reader mode and block
number. The later technique only tells us about the reader mode.
The underlined are the places when you need to change your block and it is followed by
the checksum (LRC). Checksum needs to be calculated
Using exclusive OR function of calculator and applying it to
RAD (reader address) exOR LEN (length of status and data) exOR DATA0 exOR
DATA01…..DATA (last)
In this case it can be calculated as
01 XOR 06 XOR 01 XOR 30 XOR 03 XOR 01 XOR 0D XOR 05 =3C
Putting this value in above statement and the command is ready.
Master reset
This command will reset the DATA section in all blocks to zero
Master reset command
01020AAAA3
Results
01010000
And then as the card is already placed there it will read the current data on the card
011100000000000000FF078069FFFFFFFFFFFF01
Read the data
This command will result in data read
01010707
The result is now
011100000000000000FF078069FFFFFFFFFFFF01
Write the data
Following command is used for writing the data to card
If the data is 01020304050607080910111213141516
01110B010203040506070809101112131415160D
The result is 01010000 for true
The result is 01018585 for fail
Note
Before writing the data to the card select the sector and block or if using the default just
enter the data.