You are on page 1of 3

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.

Following are the techniques for data retrieval


Getting the code
1. As the antenna is always on so when we will bring the card near to it the card data
(sector zero) & (block zero) is automatically received. Following data is received
in this case
0111000102030405060708091011121314151606
Where the first is “character 2” and the last is “character 3” STX and ETX
2. When we want to receive the code by sending command (the card must be placed
near the antenna) we send the following signal
01010707
Where the first is “character 2” and the last is “character 3” STX and ETX
And the response from the module is the same
0111000102030405060708091011121314151606
Reading the configuration
Following command should be generated
010302300333
Where the first is “character 2” and the last is “character 3” STX and ETX
The data received from module is
010400010D040D
Only the underlined data is important
(010 = checksum, D= RS232 output, 00 = block)

Another technique reading the reader mode is by sending following command


010302310130
Where the first is “character 2” and the last is “character 3” STX and ETX
This will return
0102000D0E

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 received data can be


010A00 ABA interface
010B00 Wiegand output
010D00 RS 232 interface
We will be using RS 232 interface so if received parameter is other than D such as
010400010B040D
Changing the mode
Then we need to convert it to RS 232 mode
For converting we need to send following code
0106013003010D043D
Where the first is “character 2” and the last is “character 3” STX and ETX
This is responded by
01010000 (indication Success)
Changing the block
When we need to change block we need to send following command.
For changing to block 1
0106013003010D0138
Received
01010000
For changing to block 5
0106013003010D053C

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.

You might also like