background image

 
 
 

 

 

 

YHY521X

 

RFID

 

module

 

RFID/NFC Reader/Writer Module 

User manual

 

 

Version 1.0 
June, 2018 
 

RFID

 

 
 
 
 
 
 

 

 

SMART RFID MODULE

 

Содержание YHY521X

Страница 1: ...YHY521X RFID module RFID NFC Reader Writer Module User manual Version 1 0 June 2018 RFID SMART RFID MODULE...

Страница 2: ...rrupt request system 10 12 Antenna Power 10 13 External antenna 10 14 YHY521X Command set 11 14 1 Commands overview 11 14 2 Commands and response 12 14 2 1 Detect_Clone 12 14 2 3 MConfigure 12 14 2 4...

Страница 3: ...EHUOYAN YHY521X Manual Page 3 of 36 15 Electrial Characteristics 34 15 1 Operating condition 34 15 2 Current consumption 35 16 Package outline 35 17 Contact information 36...

Страница 4: ...nd to perform one action such as read or write data from card s block The user does not need input three steps request anticollision and selection The module will do this function for you automaticall...

Страница 5: ...ast data collection systems Figure 1 YHY521X Applications 5 Quick reference data _____________________________ Table 1 Quick reference data Symbol Parameter Conditions Min Typ Max Unit VCC Supply volt...

Страница 6: ...Simplified YHY521X Block diagram The Analog circuitry and MFRC522 handle the modulation and demodulation RFID signal The MCU handles the protocol requirements for the communication schemes including t...

Страница 7: ...2 VCC PWR Power supply 3 3V DC J1 3 TXD O Uart Transmitter J1 4 RXD I Uart Receiver J1 5 SIG O Interrupt output LOW level indicates card in the field J1 6 RFU O Reserved For Use J4 used for connect to...

Страница 8: ...transfer speed by the CONFIG command after reset the module the new speed will active Table 5 Selectable transfer speeds Transfer Speed kbit s Configure Code 2 4 1 4 8 2 9 6 3 14 4 4 19 2 5 38 4 6 57...

Страница 9: ...ck the validity of the packet and to trap any data corruption This is calculated by XOR all the bytes in the packet except the Header and the CSUM byte CSUM Length Command Data 0 Data 1 Data n 1 Note...

Страница 10: ...signal on pin SIG maybe used to interrupt the host using its interrupt handling capabilities This allows the implementation of efficient host software In the auto seek mode if detect a card into the R...

Страница 11: ...D COMMANDS 0x12 Card_Sleep Card Sleep Halt 0x19 Card_Type Read Card Type 0x20 Card_ID Read Card UID RFID M1 S50 commands 0x0c Detect_Clone Detect a clone card 0x21 Block_Read Read Data From Card Block...

Страница 12: ...0c BCC Table 10 Response YHY521X Host Receive Head Length Status Data XOR Checksum Success 0xAA 0xBB 0x02 0x0C 0x0E Failure 0xAA 0xBB 0x02 0XF3 0Xf1 Table 11 Example Send AA BB 02 0C 0E Description AA...

Страница 13: ...and it will read the selected sector and upload to host and then halt the card 8 Same 1 and it will read the NTAG213 NDEF text and upload to host and then halt the card 9 Same 1 and it will read the...

Страница 14: ...e reader will read the card id itself when there is a card into the RF field and then output the id to host at the same time the buzzer would beep one time if it is connecting to a buzzer Example 2 Au...

Страница 15: ...UID of this tag Auto scan commands AA BB 12 04 01 00 FF FF FF FF FF FF 00 00 00 00 00 00 00 05 12 Auto mode 1 baud 19200 AA BB 12 04 02 00 FF FF FF FF FF FF 00 00 00 00 00 00 00 05 11 Auto mode 2 scan...

Страница 16: ...ill use the EEPROM s key to auth the card After reset this keys will active Table 19 Command Host YHY521X Send Header Length Command Data XOR Checksum 0xAA 0xBB 0x09 0x05 7 bytes Sector 1 byte Keys 6...

Страница 17: ...ngth COMMAND antenna soft power down BCC Receive Success AA BB 02 11 13 Description AA BB 02 11 13 Head Length Status BCC Receive Failure AA BB 02 EE EC Description AA BB 02 EE EC Head Length Error BC...

Страница 18: ...2 EC EE Description AA BB 02 EC EE Head Length Error BCC 14 2 15 Card_Sleep This command sets the Card into sleeping After successfully operation the card will be halt Reactivate the card need to remo...

Страница 19: ...ead Length Status Data XOR Checksum Success 0xAA 0xBB 0x04 0x19 Card type 2Bytes BCC Failure 0xAA 0xBB 0x02 0x E6 0xE4 Card type 0x0400 Mifare 1k card s50 0x0200 Mifare 4k card s70 0x4400 UL NTAG2XX T...

Страница 20: ...Card ID BCC Receive Failure AA BB 02 DF DD Description AA BB 02 DF DD Head Length Error BCC 14 2 18 Block_Read This command reads data from the appointed block One block has 16 bytes Table 60 Command...

Страница 21: ...h does not add 1 14 2 19 Block_Write This command writes 16 bytes data to the appointed card s block Table 63 Command Host YHY521X Send Header Length Command Data XOR Checksum 0xAA 0xBB 0x1A 0x22 Bloc...

Страница 22: ...B 02 22 20 Head Length Status BCC Receive Failure AA BB 02 DD DF Description AA BB 02 DD DF Head Length Error BCC If write one block data include AA then the 00 will be added behind AA but the length...

Страница 23: ...xDC 0xDE Table 68 Example Send AA BB 0E 23 00 09 FF FF FF FF FF FF 01 00 00 00 25 Description AA BB 0E 23 00 09 FF FF FF FF FF FF 01 00 00 00 25 Head Length COMMAND Key type A Init Block 09 Sector 02...

Страница 24: ...06 24 01 00 00 00 23 Head Length Status 4 Bytes value BCC Receive Failure AA BB 02 DB D9 Description AA BB 02 DB D9 Head Length Error BCC 14 2 22 Value_Inc This command perform value increment Table 7...

Страница 25: ...e decrement Table 74 Command Host YHY521X Send Header Length Command Data XOR Checksum 0xAA 0xBB 0x0E 0x26 Value Info 12 bytes BCC Value Info Key type Block number Key Value Key type 1 byte 0x00 Key A...

Страница 26: ...0x27 Backup Info 9 bytes BCC Backup Info Key type Key Source block Target block Key type 1 byte 0x00 Key A 0x01 Key B Key 6 bytes default FFFFFFFFFFFF Source block 1 byte Target block 1 byte Note If...

Страница 27: ...r 1 byte 0x00 0x1F 0 31 Key 6 bytes default FFFFFFFFFFFF Note If auth mode is 1 then this key is not active it can be any 6 data bytes Table 81 Response YHY521X Host Receive Head Length Status Data XO...

Страница 28: ...3A 58 if sector is 0 31 Write Info Key type Sector number Key SData Key type 1 byte 0x00 Key A 0x01 Key B Sector number 1 byte 0x01 0x1F 1 31 Key 6 bytes default FFFFFFFFFFFF SData 48 Bytes data to be...

Страница 29: ...0x28 Start page BCC Table 87 Response YHY521X Host Receive Head Length Status Data XOR Checksum Success 0xAA 0xBB 0x12 0x28 4 pages data 16Bytes BCC Failure 0xAA 0xBB 0x02 0xD7 0xD5 Table 88 Example S...

Страница 30: ...nd AA BB 07 29 08 01 00 00 00 27 Description AA BB 07 29 08 01 00 00 00 27 Head Length COMMAND Page 08 4 bytes BCC Receive Success AA BB 02 29 2B Description AA BB 02 29 2B Head Length Status BCC Rece...

Страница 31: ...F BD Head Length Error BCC 14 2 30 Ntag_Write_Text This command can write the NDEF text data into the NTAG213 chip Table 95 Command Host YHY521X Send Header Length Command Data XOR Checksum 0xAA 0xBB...

Страница 32: ...e NTAG213 NDEF URL data Send command aabb03130010 to switch off the auto scan then send AA BB 02 20 22 to get the UID of the tag at last you can send this command to read the NDEF URL data For example...

Страница 33: ...escription AA BB 0E 42 01 65 6D 63 Head Length Status http www ehuoyan com BCC Receive Failure AA BB 02 BD BF Description AA BB 02 BD BF Head Length Error BCC 14 2 32 Ntag_Write_URL This command can w...

Страница 34: ...L Tail length URL head code ehuoyan com BCC Receive Success AA BB 02 43 41 Description AA BB 02 43 41 Head Length Status BCC Receive Failure AA BB 02 BC BE Description AA BB 02 BC BE Head Length Error...

Страница 35: ...nsumption SYMBOL PARAMETER CONDITIONS MIN TYP MAX UNIT IVCC Supply Current VCC 2 7V 3 6V Continuous read or write 43 65 mA Antenna Soft Power Down 15 20 mA Module Hard Power Down 10 A 16 Package outli...

Страница 36: ...back view 17 Contact information ___ _____________________ To obtain information about EHUOYAN Inc sales and technical information please reference the following information Contact Information Ehuoya...

Отзывы: