Essel Technology RFID A1 Скачать руководство пользователя страница 24

 

 
 

24 
 

4.2.2

 

Read Block (0x02) 

 

 

Table 4.2 

 

The ‘

Read Block

 command takes as arguments the first block address to read (Block Address), the number of blocks 

to read (Read Length), the byte offset in the data buffer (Data Buffer Offset), the Authentication Key Number and 
(optionally) the Authentication Key.  If the Authentication Key is set-up, the command first tries to authenticate the 
sector which contains the first buffer.  If authentication fails, the 

Result Register

 is updated with the appropriate 

error value and command execution finishes.  After a successful authentication, the first block is read and stored in 
the data buffer.  The command continues to read following blocks if the Read Length is higher than 1.  If the next 
blocks fall into another tag memory sector this sector is authenticated using the same key.  If everything goes well all 
block bytes are copied to the Data Buffer starting from Data Buffer Offset and the Result Register is updated with the 

No Error

 value.  If the RFID Module is unable to read the block, an error value is stored in the Result Register. 

 

 

Command Number

Command Name

Valid Tag Types

Argument Offset [bytes]

0x00

0x01

0x02

0x03

0x04

Argument Name

Block Address

Read Length

Data Buffer Offset

Authentication Key 

Number

Authentication Key

Argument Size [bytes]

0x01

0x01

0x01

0x01

0x06

Argument Description

Address of the first 

block in the memory 

that is to be read.

Number of blocks to 

read. Value has to be 

larger than 0.

Buffer offset in bytes of 

where the data from 

the tag is to be stored. 
The total read size and 

the offset must not 

exceed the data buffer 

length (number of 

bytes).

The 6 least significant 

bits define the 

Authentication Key 

Number from 0 to 39 

that is to be used to 

decrypt the data read.  

If the most significant 

bit (bit 7) is set, then 

the key will be used as 
key B.  If bit 7 is zero it 

will be used as key A.  If 

bit 6 is set, then the 

key will be taken from 

the following argument 

list (next 6 bytes).

Optional parameter 

used when bit 6 in 

Authentication Key 

Number argument is 

set. This Key will be 

used as Key B if bit 7 in 

Authentication Key 

Number is set or as Key 

A if bit 7 is not set. The 

byte order is the least 

significant byte first.

0x02

Read Block

Mifare Classic

Содержание RFID A1

Страница 1: ...2 3 Operating Conditions 7 2 4 Current Consumption 7 2 5 GPIO 8 2 6 Antenna Output 8 2 7 Communication Buses 9 2 8 Flash 9 3 System 10 3 1 Overview 10 3 2 Modules 12 3 2 1 Core 12 3 2 2 RFID 12 3 2 3...

Страница 2: ...x03 25 4 2 4 Read Data Block 0x04 26 4 2 5 Write Data Block 0x05 27 4 2 6 Read Page 0x06 28 4 2 7 Write Page 0x07 29 4 2 8 Encrypt Data 0x08 30 4 2 9 Decrypt Data 0x09 32 4 2 10 Read Value 0x0A 34 4 2...

Страница 3: ...E 51 4 3 Power Down Mode 52 4 4 Memory Locking 52 5 Communication Interface 53 5 1 nBUSY line 53 5 2 SPI Bus 53 5 2 1 Bus signals and timings requirements 53 5 2 2 Exchanging data reading or reading a...

Страница 4: ...rst in an evolving family of 13 56MHz sub assemblies from Eccel Technology Ltd IB Technology The product is designed with embedded applications in mind This product is an ideal design choice if the us...

Страница 5: ...push pull output Master In Slave Out output for the Serial Peripheral Interface Bus 8 SPI MOSI Digital input with no pull resistors Master Out Slave In input for for the Serial Peripheral Interface B...

Страница 6: ...by using the Serial Peripheral Interface Bus The lowest pin count connection can be achieved by using the I2C Bus For the module to be a fully functional RFID reader writer it only requires connection...

Страница 7: ...NT ANT1 and ANT2 Current 0 100 mA Maximum continuous current This depends upon the impedance of the circuit between ANT1 and ANT2 at 13 56MHz Symbol Parameter Min Max Unit TO Ambient Temperature 25 85...

Страница 8: ...rrent 6 mA IIOLEAK Input Leakage Current 0 1 40 nA High impedance IO connected to VDD or GND RIOESD Internal ESD Series Resistor 200 VIOHYST IO Pin Histeresis 0 1VDD V Symbol Parameter Min Typ Max Uni...

Страница 9: ...To CLK Time Delay 2 s Minimum time delay between falling edge of Chip Select and first clock edge TCSHMIN SPI CS high Minimum Time 50 s Minimum time when CS is in HIGH state between SPI transmissions...

Страница 10: ...and the execution of commands received from the user s master controller RFID dedicated RFID IC together with its firmware drivers responsible for communication with the RFID tag COMMUNICATION SYSTEM...

Страница 11: ...11 CORE I2C SPI RFID ANT1 ANT2 COMMUNICATION SYSTEM SDA SCL CS CLK MOSI MISO nBUSY POWER MANAGER nPWRDN ADDR0 ADDR1 ADDR2 Figure 3 1...

Страница 12: ...ponent of the RFID A1 module is responsible for the entire communication with the user master controller together with parsing commands for subsequent execution by the module core Two communication in...

Страница 13: ...mory and can be modified and stored using Unlock and Lock commands The RFID A1 module is automatically returned to factory default state if after power up there is no valid configuration stored in non...

Страница 14: ...ation Key Password 14 R W when unlocked Yes 450 0x01C2 6 Authentication Key Password 15 R W when unlocked Yes 456 0x01C8 6 Authentication Key Password 16 R W when unlocked Yes 462 0x01CE 6 Authenticat...

Страница 15: ...riting to the non volatile memory 0x05 System Error Internal system error Shall be considered as fatal 0x06 Tag CRC Error During communication with the tag a CRC was not correct 0x07 Tag Collision Res...

Страница 16: ...ad and write access This is the place from where the system parses the arguments necessary to perform requested operation when a command is executed Depending upon the command this register is parsed...

Страница 17: ...Type Register is 1 byte long located at address 0x001E with read only access This register contains information about the type of tag which was last seen in the field Possible tag types are shown in...

Страница 18: ...nd write access but only after first unlocking the device This register is inaccessible when the module is locked It contains an 8 byte long password which must be used with the Unlock Command to unlo...

Страница 19: ...fset 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F Byte Position 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Access R W R W R W R W R W R W R W R W R W R W R W R W R W R W...

Страница 20: ...registers numbered from 0 to 39 The number of the key register to be used is passed as an argument in some commands 3 3 12 User Memory There are 128 bytes of memory available for the user as a protect...

Страница 21: ...al register the Command Register Writing to this register is interpreted as a command execution request from the user The command type corresponds to the value written into the register Execution of a...

Страница 22: ...er Authentication Key 32 bit signed Value Stored Block Address Result Register 0x0C Increment Value Block Address Authentication Key Number Authentication Key 32 bit signed Delta Value Result Register...

Страница 23: ...there is no tag in the field it returns No Tag value in the Tag Type Register If there is a tag in the field it reads its UID and type and writes it to Tag UID and Tag Type registers The UID Size Reg...

Страница 24: ...d the block an error value is stored in the Result Register Command Number Command Name Valid Tag Types Argument Offset bytes 0x00 0x01 0x02 0x03 0x04 Argument Name Block Address Read Length Data Buff...

Страница 25: ...appropriate error code is stored in the Result Register Command Number Command Name Valid Tag Types Argument Offset bytes 0x00 0x01 0x02 0x03 0x04 Argument Name Block Address Write Length Data Buffer...

Страница 26: ...er Offset and the Result Register is updated with a No Error value If the RFID Module is unable to read the block an error value is stored in the Result Register Command Number Command Name Valid Tag...

Страница 27: ...Register is updated with a No Error value If the RFID Module is unable to write to the blocks an error value is stored in the Result Register Command Number Command Name Valid Tag Types Argument Offse...

Страница 28: ...ues to read subsequent pages if the Read Length is higher than 1 If everything goes well all bytes are copied to the Data Buffer starting from Data Buffer Offset and the Result Register is updated wit...

Страница 29: ...continues to write to subsequent pages if the Write Length is higher than 1 If everything goes well all bytes are copied from the Data Buffer starting from the Data Buffer Offset and the Result Regist...

Страница 30: ...and Number Command Name Valid Tag Types Argument Offset bytes 0x00 0x01 0x02 0x03 Argument Name Encryption Key Number Initialization Vector Number Data Buffer Offset Data Length Argument Size bytes 0x...

Страница 31: ...bsequent 16 byte block instead of the Initialization Vector the algorithm uses the ciphertext output of the previous 16 byte block encryption The same AES Key is used for all blocks When working with...

Страница 32: ...r Command Name Valid Tag Types Argument Offset bytes 0x00 0x01 0x02 0x03 Argument Name Decryption Key Number Initialization Vector Number Data Buffer Offset Data Length Argument Size bytes 0x01 0x01 0...

Страница 33: ...bsequent 16 byte block instead of the Initialization Vector the algorithm uses the ciphertext output of the previous 16 byte block decryption The same AES Key is used for all blocks When working with...

Страница 34: ...ment Offset bytes 0x00 0x01 0x02 0x03 Argument Name Block Address Data Buffer Offset Authentication Key Number Authentication Key Argument Size bytes 0x01 0x01 0x01 0x06 Argument Description The Block...

Страница 35: ...uthentication Key Argument Size bytes 0x01 0x04 0x01 0x01 0x06 Argument Description Address of the block in the memory to where the value is to be written The block will be formatted as a value type b...

Страница 36: ...s Delta Value Authentication Key Number Authentication Key Argument Size bytes 0x01 0x04 0x01 0x06 Argument Description Address of the block in the memory from which the value is to be read and increm...

Страница 37: ...lta Value Authentication Key Number Authentication Key Argument Size bytes 0x01 0x04 0x01 0x06 Argument Description Address of the block in the memory from which the value is to be read and incremente...

Страница 38: ...dress Authentication Key Number Authentication Key Argument Size bytes 0x01 0x01 0x06 Argument Description Address of the block in the memory from which the value is to be read The block has to be for...

Страница 39: ...ize bytes 0x01 0x01 0x06 Argument Description Address of the block in the memory to which the value is to be transferred The block is formatted as a value type block after execution of this command Th...

Страница 40: ...3 Argument Name Block Address Data Buffer Offset Authentication Key Number Authentication Key Argument Size bytes 0x01 0x01 0x01 0x06 Argument Description Address of the block in the memory from which...

Страница 41: ...Ultralight EV1 NTAG213 NTAG215 and NTAG216 tags After successful reading the first 8 bytes in the data buffer are filled with data defined by the NXP standard Example are shown in Table 4 17 Mifare U...

Страница 42: ...ned in Table 4 20 Command Number Command Name Valid Tag Types Argument Offset bytes 0x00 0x01 0x02 Argument Name UID Type Authentication Key Number Authentication Key Argument Size bytes 0x01 0x01 0x0...

Страница 43: ...the double size UID 0x01 Anti collision and selection with the double size UID and optional usage of a selection process shortcut 0x02 Anti collision and selection with a single size random ID 0x03 An...

Страница 44: ...24 bit integer with the least significant byte first Command Number Command Name Valid Tag Types Argument Offset bytes 0x00 0x01 Argument Name Counter Number Data Buffer Offset Argument Size bytes 0x0...

Страница 45: ...Increment Value is a 24 bit unsigned number with the least significant byte first Command Number Command Name Valid Tag Types Argument Offset bytes 0x00 0x01 Argument Name Counter Number Increment Va...

Страница 46: ...ffset index The value 0x00 is stored if there has been no tearing event and 0x01 is stored if a tearing event occurred Command Number Command Name Valid Tag Types Argument Offset bytes 0x00 0x01 Argum...

Страница 47: ...Argument Name Data Buffer Offset Password Number Password Argument Size bytes 0x01 0x01 0x04 Argument Description Buffer offset in bytes where the PACK result will be stored Offset cannot exceed the...

Страница 48: ...29 0xa14a 0xb16b 0xc18c 0xd1ad 0xe1ce 0xf1ef 0x1231 0x0210 0x3273 0x2252 0x52b5 0x4294 0x72f7 0x62d6 0x9339 0x8318 0xb37b 0xa35a 0xd3bd 0xc39c 0xf3ff 0xe3de 0x2462 0x3443 0x0420 0x1401 0x64e6 0x74c7 0...

Страница 49: ...a 0xa5cb 0x95a8 0x8589 0xf56e 0xe54f 0xd52c 0xc50d 0x34e2 0x24c3 0x14a0 0x0481 0x7466 0x6447 0x5424 0x4405 0xa7db 0xb7fa 0x8799 0x97b8 0xe75f 0xf77e 0xc71d 0xd73c 0x26d3 0x36f2 0x0691 0x16b0 0x6657 0x...

Страница 50: ...ent Offset bytes 0x00 0x02 0x02 Argument Name Destination Address Source Address Data Length Argument Size bytes 0x02 0x02 0x02 Argument Description The address in the memory to where the data is to b...

Страница 51: ...protected memory which contains AES Initialization Vectors AES Encryption Keys Authentication Keys and Passwords User Memory Password will be saved to non volatile memory and locked direct access will...

Страница 52: ...is finished before going into the Power Down state Command execution if the line is pulled low whilst the system is executing a command then the Power Manager will wait until command execution is fini...

Страница 53: ...on on the module or to read any data from the module which is a result of current processing 5 2 SPI Bus The RFID A1 Module provides a SPI slave bus This is one of two buses provided by the module It...

Страница 54: ...lt of low power consumption as the system must jump from sleep state to run state at various points during communication 5 2 2 Exchanging data reading or reading and writing The SPI bus is a type of s...

Страница 55: ...er wants the data sent via the MOSI line to be written to the module s registers then the third byte in the packet should have the value 0x01 If the master sets this byte to value 0x00 then the RFID A...

Страница 56: ...struction After reset or power up when the module starts it samples three IO lines I2C AD0 I2C AD1 and I2C AD2 to construct the I2C address to which it will respond Thanks to this solution there is th...

Страница 57: ...ending a START condition followed by the I2C address to be written and two bytes representing the index Later and without sending a STOP condition the master must send a repeated START signal this tim...

Страница 58: ...58 6 Mechanical 6 1 Dimensions Drawing 1 Table 6 1...

Страница 59: ...59 6 2 Recommended Footprint Drawing 2...

Страница 60: ...60...

Отзывы: