Home
Contactless Card Read/Write Module YW
Contents
1. Contactless Card Read Write Module YW 201 User s Manual 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 0 31 Retur Send Read Sector 0x04 Ox0B 0x12 0x13 0x00 OxFF 8bytes Status 0x00 Success OxFF Fail Key Set 1Byte Index of Sector 1Byte Key 6Bytes a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt gt 0 31 Retur Send Initiali ze purse 0x44 0x13 Dat 0x00 0x00 success 64bytes of data return 0x04 OxOF 0x13 0x14 OxFF 12Bytes OxFF Fail Key Set Byte Index of Block 1Byte Key 6Bytes Purse Initial Value 4Bytes LSB a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt 0 31 Retur Read Send purse 0x04 0x0B 0x14 0x15 0x00 OxFF 8Bytes Status 0x00 Success OxFF Fail Key Set 1Byte Index of Block 1Byte Key 6Bytes a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt gt 0 31 Contactless Card RFID http www youwokeji com cn Page 10 15 Contactles
2. 6 12 write RC5OOEEPROM Send 02 15 1C 00 70 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 79 03 Receive 02 04 1C 00 18 03 6 13 module IDLE Send 021003 1002 01 03 Receive 02 04 10 02 00 06 03 6 14 module set Send 02 04 01 00 05 03 turn off antenna Receive 02 04 01 00 05 03 Send 02 04 01 01 04 03 turn on antenna Receive 02 04 01 00 05 03 Contactless Card RFID http www youwokeji com cn Page 14 15 Contactless Card Read Write Module YW 201 User s Manual 8 Application INTICARDIN 4 O PORTSEL RXD 1x0 9 About the Antenna For higher capability we can select YW 300 antenna module on the system of YW 201 Contactless card module For more information about YW 300 antenna module please visit http www youwokeji com cn 10 Order Web http www youwoke ji com cn Phone 86 10 87171913 Cell phone 86 13671114914 Email Zhou21cn 126 com Contactless Card RFID Page 15 15 http www youwokeji com cn
3. http www youwokeji com cn 0x18 0x00 OxFF Status 0x00 Success Page 11 15 Contactless Card Read Write Module YW 201 User s Manual OxFF Fail Send 0x03 0x19 12 Card Halt Retur 0x00 Status 0x04 0x19 0x00 Success n OxFF OxFF Fail Index of key Byte Send Ox0A 0x1A 50 31 Key Key 13 Downloa GBytes d 0x00 Status Retur 0x04 Ox1A 0x00 Success n OxFF OxFF Fail Address 2Bytes Legnth 1 Bytes Ps Send 0x06 0x1B A Address High byte afront eag Length not more than 16 14 RC500 Dat oon es Ed x00 success n Lengt tes of data EEPROM n 4 0x00 CATE ny Retur a return Ox1B n 0x04 OxFF OxFF fail Address 2Bytes Data nBytes N byt Ps Send n 5 0x1C adel ak f data Address High byte afront ra Data not more than 16 bytes 15 RC500 EEPROM 0x00 Status Retur 0x04 0x1C 0x00 Success n OxFF OxFF Fail Table 6 Contactless Card RFID Turn on the antenna before the operation of contactless card http www youwokeji com cn Page 12 15 Contactless Card Read Write Module YW 201 User s Manual 7 Command test sample Samples below are based on uart protocol 6 1 request card Send 02 04 10 10 00 14 03 Receive 02 08 10 10 00 4D 56 A2 57 F6 03 6 2 read block Send 02 0B 11 00 3E FF FF FF FF FF FF 24 03 Receive 02 14 11 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 03 6 3 write block
4. Send 02 1B 12 00 3E FF FF FF FF FF FF 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 36 03 Receive 02 04 12 00 16 03 6 4 download key Send 02 0A 1A 00 FF FF FF FF FF FF 10 10 03 Receive 02 OA 1A 00 FF FF FF FF FF FF 10 10 03 6 5 initial purse Send 02 OF 14 00 3D FF FF FF FF FF FF 01 00 00 00 27 03 Receive 02 04 14 00 10 10 03 6 6 read purse Send 02 0B 15 00 3D FF FF FF FF FF FF 23 03 Receive 02 08 15 00 10 02 00 00 00 1F 03 6 7 increment of purse Send 02 OF 16 00 3D FF FF FF FF FF FF 01 00 00 00 25 03 Receive 02 04 16 00 12 03 6 8 decrement of purse Send 02 OF 17 00 3D FF FF FF FF FF FF 01 00 00 00 24 03 Receive 02 04 17 00 13 03 6 9 purse backup 6 9 1 initial purse 1 Send 02 OF 14 00 3D FF FF FF FF FF FF 01 00 00 00 27 03 Receive 02 04 14 00 10 10 03 Contactless Card RFID Page 13 15 http www youwokeji com cn Contactless Card Read Write Module YW 201 User s Manual 6 9 2 initial purse 2 Send 02 OF 14 00 3C FF FF FF FF FF FF 05 00 00 00 22 03 Receive 02 04 14 00 10 10 03 6 9 3 purse backup from 1 to 2 Send 02 0C 18 00 3D 3C FF FF FF FF FF FF 15 03 Receive 02 04 18 00 1C 03 6 9 4 read purse 2 Send 02 0B 15 00 3C FF FF FF FF FF FF 22 03 Receive 02 08 15 00 FF 04 00 00 E6 03 6 10 card halt Send 02 1003 19 1A 03 Receive 02 04 19 00 1D 03 6 11 read RCSOOEEPROM Send 02 06 1B 00 70 10 10 7D 03 Receive 02 14 1B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 OF 03
5. Table 1 4 2 Dimension Pic 2 5 Protocols 5 1 UART Protocols of Commands Uart Protocols of Commands use data blocks The format of data block 1 Format of TXD MCU YW 201 Module STX LEN CMD DATA CHK ETX Description The Package 0x02 Commad Content of CheckSum 0x03 Length n bytes Number of 1 1 1 n 1 1 Byte Table 2 Contactless Card RFID Page 5 15 http www youwokeji com cn a b c d e f g h i Contactless Card Read Write Module YW 201 User s Manual Asynchronism half duplex 1 Start bit 7 Data bits 1 Stop bit The default transfer speed is 19200 bit s Block Header STX 0x02 Block End ETX 0x03 From header to end but not include the header STX and the end ETX if there is 0x02 0x03 or 0x10 then must add 0x10 before it Block Header STX 0x02 Package Length the byte from Length itself to Checksum but not include the added byte 0x10 due to 0x02 0x03 or 0x10 Command Refer to the Command List The Content of n bytes the parameter CheckSum XOR result from Length to then last byte of Content but not include the added byte 0x10 due to 0x02 0x03 or 0x10 Block End ETX 0x02 Example CMD 0x10 DATA 0x00 Block Header 0x02 LEN 0x04 1Byte Len 1Byte CMD 1Byte DATA 1Byte CHK CMD 0x10 0x10 Add 0x01 before 0x10 DATA 0x00 CHECKSUM 0x14 0x04 0x10 0x00 Package Send 0x02 0x04 0x10
6. 0x10 0x00 0x14 0x03 2 Respond Format YW 201module gt MCU STX LEN CMD STATUS DATA CHK ETX Content 0x00 The Package 0x02 Command Success Content of CheckSum 0x03 Length f OxFF Fail n bytes Num of 1 1 1 1 n 1 1 Byte Table 3 Contactless Card RFID Page 6 15 http www youwokeji com cn a b c d e f g h i j Contactless Card Read Write Module YW 201 User s Manual Asynchronism half duplex 1 Start bit 7 Data bits 1 Stop bit The default transfer speed is 19200 bit s Block Header STX 0x02 Block End ETX 0x03 From header to end but not include the header STX and the end ETX if there is 0x02 0x03 or 0x10 then must add 0x10 before it Block Header STX 0x02 Package Length the byte from Length itself to Checksum but not include the added byte 0x10 due to 0x02 0x03 or 0x10 Command Refer to the Command List When the MCU send the command to the module the module send back this command to the MCU Status Operation result Success 0x00 Fail OxFF During the communication command content CheckSum XOR result from Length to then last byte of Content but not include the added byte 0x10 due to 0x02 0x03 or 0x10 Block End ETX 0x02 5 2 IC Protocol 1 Format of TXD MCU YW 201 Module Address of LEN CMD DATA CHK Content Write OxA0 The Package Length Command C
7. YW 203 18015693 3 3V 5V IC UART TTL 18015693 Mifare S50 S70 ISO14443 A Mifare Pro YW 204 ISO14443 B 3 3V 5V IIC UART TTL 15014443 B 15015693 SR176 ICode SLZ 15015693 3 YW 201 Characteristic Completely operation of Mifare One through simple command set Contactless Card RFID http www youwokeji com cn Page 3 15 Contactless Card Read Write Module YW 201 User s Manual Communication Protocol 1 UART Baud Rate 19200bps 2 IIC Max rate 400Kbps Auto request card When the card put into antenna the pin CARDIN will be low Package DIP32 ES Power supply 4 5 5 5V Read Card distance 5 10cm Depend on the antenna You can get C51 source code example with theh module 4 Function specification 4 1 Pin Function Pic 1 Pin function Table 1 Pin Function Description 1 RX Antenna Receive gt TGND Antenna GND 12 NC Not Use 13 NC Not Use Card In Out Indicate Only when auto request 14 CARDIN e card ta 1 Card Out 15 TXD SDA UART TXD IIC SDA 16 RXD SCL UART RXD IIC SCL 17 VCC 5V VCC Contactless Card RFID Page 4 15 http www youwokeji com cn Contactless Card Read Write Module YW 201 User s Manual 18 GND GND Communication Protocol Selector 0 IIC 1 19 PORTSEL UART 20 NC Not Use 21 NC Not Use 31 TX1 Antenna Output 1 32 TX2 Antenna Output 2
8. Contactless Card Read Write Module YW 201 User s Manual Contactless Card Read Write Module YW 201 User s Manual version 1 4 English WEB http www youwokeji com cn MSN amp EMAIL Zhou21cn 126 com PHONE 086 10 87171913 MOBILE 086 13671114914 MANAGER Mr Zhou Contactless Card RFID Page 1 15 http www youwokeji com cn Contactless Card Read Write Module YW 201 User s Manual Content 1 SUMMAT oaee NN 3 2 VY WE200 SES MIA een A 3 3 XY W220 Characteristics teclas diria drid leia dla dead dla da teresa deena tees 3 4 Funcion specification in esnie e N a E E ia ar s i 4 4 1 O 4 4 2 Bitten tite bee O EA rec rar ee Teco tran tere IA eect reer 5 De REOLOCOIS rata NA A A RA dae Ed 3 5 5 1 UART Protocols of Commands cccccscccsssecesseceeseeeececscecseeeeesseeeeaeecsneeeeaeeeeteeensaees 5 52 TIE Protocol iii dal it 7 5 3 Switchiot UW arta A e uo a e dar e os 8 AA na e ea e ei e deste adhevetia uate sleevchia dette vlccsstea ieteb dessa tens 8 J Command test AAA inan eE aea Nina aa ENE AEEA EAE ni ANEN 13 62 1 r quest Card AAA EAE E E E ee E 13 0d REad bl OCK naaa aa n a T T e E RONEN 13 63 write DOC k id A a a a a a a a no aaee 13 6 4 download Ke id A td dt faded es 13 A AC gy eno E E EA A Pe A 13 6 6 ead PUSE A A ino 13 OL Increment of PUES ti 13 6 8 decrement A A 13 6 92 PUESE Lack ia icicos 13 A A A al hoon ve Beta evened 13 6 9 2 tial PURSE La saat ate sete e
9. cg daa 14 6 9 3 purse backup from 1 to Z oooooonccnnonccccnnoncncnononancnnonnnccnnnnnnccnnnnnnconnnnncnnnns 14 0 9 4 read purse rita ao iia 14 AO e e ss A A A E steers 14 6 11 read ROCDODEEPROM wi cccc estes deaths dekh deta headsets 14 6 12 write RCOSQOEEPROM ee cecccescccsseeesseecsseecesseeeseecnseecsseecsneceeseeeeseeeseeeseees 14 6 13 module IDLE cocoa iene aba nen 14 014 module SOEs se steht A e atten E A Dacthias date 14 Si APP Cat ON aaae dls 15 9 Aboutithe ADAM A diodes 15 10 Ori dad A A Aia 15 Contactless Card REID Page 2 15 http www youwokeji com cn Contactless Card Read Write Module YW 201 User s Manual 1 Summary YW 201 contactless card Read Write module was designed on high integrated reader ICs for contactless communication on 13 56MHz of Philips YW 201 integrates MF RC500 RF base station Engineers need not take care how to control MF RC500 RF base station Just send command to module over IIC or UART YW 200 series contactless card Read Write module support 1S014443 A Mifare One CODE SL2 and then other compatible card 2 YW 200 Series Module S50 S70 UltraLight MifarePro 15014443 B SR176 IS015693 I Type Card Vcc Interface Card supported This Page Protocol Mifare S50 S70 YW 201 ISO14443 A 5V IIC UART TTL af Mifare Pro Mifare S50 S70 ISO14443 A Mifare Pro YW 202 18014443 B 3 3V 5V HC UART TTL 18014443 B SR176 ICode SL2
10. ess Card REID Page 8 15 http www youwokeji com cn Contactless Card Read Write Module YW 201 User s Manual Setting Power Setting Request Card Read Block Write Block 0x01 Antenna Status BITO 0 Turn off Antenna 0x02 l Turn on Antenna Auto Request BIT1 0x03 0 Turn off Auto Request 1 Turn on Auto Request Status Retur 0x00 0x04 0x01 0x00 Success n OxFF OxFF Fail Send 0x03 0x02 Status Retur 0x00 0x04 0x02 0x00 Success n OxFF OxFF Fail Contactless card Command Request card mode 0x00 0x00 request all card in antenna area Send 0x04 0x10 0x01 request card that have not halted in 0x01 antenna area Seri 0x08 oxoo al Status Retur N 0x00 Request success Card Serial 0x10 o n No 4 bytes 0x04 OxFF OxFF Request Fail Key Set 1Byte Block No 1Byte Key 6Bytes a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Send 0x0B 0x11 8Byte Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 20731 Dat Retur 0x14 0x00 0x00 Success 16 bytes of data return 0x11 a n 0x04 OxFF OxFF Fail Send 0x1B 0x12 24bytes Key set 1Byte Block No 1Byte Key 6Bytes Data 16Bytes Contactless Card RFID http www youwokeji com cn a Key o y Select Key A B BITO gt 0 Key 4 Ig Key 18 Key Mode BIT1 gt
11. ontent of CheckSum Read OxAl n bytes Num of 1 1 1 n 1 Byte Table 4 a Address of module W R b When Write to module the Address is OxAO c When Read from module the Address is OxA1 d Package Length the byte from Length itself to Checksum Contactless Card RFID Page 7 15 http www youwokeji com cn Contactless Card Read Write Module YW 201 User s Manual e Command Refer to the Command List f The Content of n bytes the parameter g CheckSum XOR result from Length to then last byte of DATA 2 Respond Format Y W 201module MCU LEN CMD STATUS DATA CHK Content The 0x00 Success Package Length Command Content CheckSum OxFF Fail of n bytes Num of 1 1 1 n 1 Byte Table 5 h Package Length the byte from Length itself to Checksum i Command Refer to the Command List j Status Operation result Success 0x00 Fail OxFF k The Content of n bytes the parameter 1 CheckSum XOR result from Length to then last byte of DATA 5 3 Switch of Uart and IIC YW 201 Contactless card read write module support UART and IIC they can be switched by the port PORTSEL PORTSEL 1 High UART is selected PORTSEL 0 Low IIC is selected 6 Command List CMD Dir LEN CMD STATUS Name and DATA Description System Command 1 Modue Send 0x04 0x01 0x00 4 combination with bitO and bitl Contactl
12. s Card Read Write Module YW 201 User s Manual 10 11 Contactless Card RFID decremen t Incremen t Purse backup Retur Send 0x08 0x04 OxOF 0x15 0x16 Dat 0x00 0x00 Success 4bytes of purse value LSB OxFF 12Byes OxFF Fail Key Set 1Byte Index of Block 1Byte Key 6Bytes decrement 4Bytes LSB value of a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt gt 0 31 Retur Send 0x04 OxOF 0x16 0x17 0x00 OxFF 12Bytes Status 0x00 Success OxFF Fail Key Set 1Byte Index of Block 1Byte Key 6Bytes Increment 4Bytes LSB value of a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt gt 0 31 Retur Send 0x04 0x0C 0x17 0x18 0x00 OxFF 9Bytes Status 0x00 Success OxFF Fail Key Set 1Byte Index of Block 1Byte Index of Block Backup 1Byte Key 6Byte a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt gt 0 31 ps the index of block and the backup block must be in the same sector Retur n Ox0C
Download Pdf Manuals
Related Search
Related Contents
ETHERNET-Module, Grundlagen 2 - Pantech Solutions COTEL CARMEN SonoLab Echo-I User Manual télécharger la documentation Guida per l`utente - ACE CAD Enterprise Co., Ltd. Samsung SGH-X510 Lietotāja rokasgrāmata Sharp MXTRX2 AKG AVR 135 BL Sony NV-U83T GPS Receiver User Manual Copyright © All rights reserved.
Failed to retrieve file