Home
Contactless Card Read/Write Module YW-201
Contents
1. FF FF FF FF FF 23 03 Receive 02 08 15 00 10 02 00 00 00 1F 03 7 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 7 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 7 9 purse backup 7 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 7 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 7 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 Contactless Card REID Page 13 14 http www youwokeji com cn Contactless Card Read Write Module YW 201 C User s Manual 7 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 7 10 card halt Send 02 1003 19 1A 03 Receive 02 04 19 00 1D 03 7 11 read RCSOOEEPROM Send 0206 1B 0070 10 107D 03 Receive 02 14 1B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 OF 03 7 12 write RC500EEPROM 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 7 13 module IDLE Send 021003 1002 01 03 Receive 02 04 10 02 00 06 03 7 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 8 Order Web
2. Number of 1 1 1 n 1 1 Byte Table 2 a Asynchronism half duplex 1 Start bit 7 Data bits 1 Stop bit b The default transfer speed is 19200 bit s Contactless Card RFID Page 5 14 http www youwokeji com cn c d e f g h i Contactless Card Read Write Module YW 201 C User s Manual 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 0x10 0x00 0x14 0x03 2 Respond Format YW 201 Cmodule gt MCU STX LEN CMD STATUS DATA CHK ETX Content 0x00 The Package 0x02 Command Success Content of CheckSum 0x03 Length OxFF Fail n bytes Num of 1 1 1 1 n 1 1 Byte Table 3 a Asynchronism half duplex 1 Start bit 7 Dat
3. 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 Power s tatus Setting 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 Ri t Era Seri d ea 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 Read 0 Use key passed Block 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 0 31 Dat Retur 0x14 0x00 0x00 Success 16 bytes of data return 0x11 e n 0x04 OxFF OxFF Fail Write Block Send 0x1B 0x12 24bytes Key set 1Byte Block No 1Byte Key 6Bytes Data 16Bytes a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Contactless Card RFID http www youwokeji com cn Key Mode BIT1 gt 0 Use key passed Page 9 14 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 Contactless Card Read Write Module YW 201 C gt User s Manual gt 0 31 0x00 Status 0x04 0x12 0x00 Success OxFF OxFF Fail Retur Key Set 1Byte Index of Sector 1Byte Key 6Bytes
4. 13 Downloa GBytes d 0x00 Status Retur 0x04 OxlA 0x00 Success n OxFF OxFF Fail Address 2Bytes Legnth 1 Bytes Ps Send 0x06 0x1B y Address High byte afront Re Length not more than 16 Ollie te Dat 0x00 Length b fd x00 success n Lengt tes of data EEPROM n 4 0x00 nee Retur a return 0x1B n 0x04 OxFF OxFF fail Address 2Bytes Data nBytes N byt Ps Send n 5 0x1C eal data Address High byte afront ia Data not more than 16 bytes 15 RC500 EEPROM 0x00 Status Retur 0x04 0x1C 0x00 Success n OxFF OxFF Fail Table 6 7 Command test sample Contactless Card RFID Turn on the antenna before the operation of contactless card http www youwokeji com cn Samples below are based on uart protocol Page 12 14 Contactless Card Read Write Module CYW 201 C gt User s Manual 7 1 request card Send 02 04 10 10 00 14 03 Receive 02 08 10 10 00 4D 56 A2 57 F6 03 7 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 7 3 write block 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 7 4 download key Send 02 0A 1A 00 FF FF FF FF FF FF 10 10 03 Receive 020A 1A 00 FF FF FF FF FF FF 10 10 03 7 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 7 6 read purse Send 02 0B 15 00 3D FF
5. Contactless Card Read Write Module YW 201 C User s Manual Contactless Card Read Write Module YW 201 C User s Manual version 1 4 English WEB _ http www yoworfid com MSN amp EMAIL coodor 126 com PHONE 086 10 59395668 MOBILE 086 13671114914 MANAGER Mr Zhou Contactless Card RFID Page 1 14 http www youwokeji com cn Contactless Card Read Write Module YW 201 C User s Manual Content IN E oae ANNA 3 2 VY We200 C Series MI o AS 3 3 YW201 G Charactertstie isaac diia doi tears tad delia da dida dai Sia tees 3 4 Funcion specification in Ainsi a esc ine cani e ia ceusedupnstbsceacenbeduee sts 4 4 1 ON 4 4 2 DGS OM yas Boece A as eevee odd aaa eee E hse Jia 5 De REOLOCOIS rata E TA IN eae AI Selatan I acetate 5 5 1 UART Protocols of Commannds cccccscccssseceeseeeeseeescecscecseeeeesseeesaeecseeeeeeaeeeneeenseees 5 52 TIE Protocol iii a it 7 5 3 Switchiot Uart and Ml a ao o a ru e Ear as 8 AA NN 8 J Command test AAA sees edeeaaveouteses 12 Tel request ACA keine aie E AAA as 13 122 read A aee RNE A E T feet A T vega TOE 13 RI write BOCK id tales a a a a a a a E no E an eae 13 The download Ke di A aa a dt faded ees 13 Tode initial A NT 13 LATA PUES A AEEA AOA EOE 13 Tte increment of PULSE oeren ean e E A AA E E A E A iS 13 T8 decrement A a a a 13 WP ae 810 A Da A ee 13 BOOST mitral purses A i elke a hoon A EAE 13 Kee ANTENA PURSES LA eas a ee agate UNIS 13 7 9 3 purse backup
6. Key A 1 Key B Key Mode BIT1 gt value of 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt gt 0 31 Retur Send Increment 0x04 OxOF 0x16 0x17 0x00 OxFF 12Bytes Status 0x00 Success OxFF Fail Key Set Byte Index of Block 1Byte Key 6Bytes Increment 4Bytes LSB a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Key Mode BIT1 gt value of 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt 30 31 Retur Send Purse backup 0x04 Ox0C 0x17 0x18 0x00 OxFF 9Bytes Status 0x00 Success OxFF Fail Key Set Byte 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 0 31 ps the index of block and the backup block must be in the same sector Retur Card Halt Send Ox0C 0x03 0x18 0x19 0x00 OxFF Status 0x00 Success OxFF Fail Contactless Card RFID http www youwokeji com cn Page 11 14 Contactless Card Read Write Module YW 201 C gt User s Manual Retur 0x00 Status 0x04 0x19 0x00 Success n OxFF OxFF Fail Index of key Byte Send Ox0A OxlA ADS Key Key
7. a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Send 0x0B 0x13 8bytes Key Mode BIT1 gt Read 0 Use key passed 6 1 Use key downloaded Sector gt b Index of Key Downloaded BIT2 BIT7 gt gt 0 31 Dat 0x44 0x13 0x00 0x00 success 64bytes of data return Retur a 0x04 0x13 OxFF OxFF Fail Key Set 1Byte Index of Block 1Byte Key GBytes Purse Initial Value 4Bytes LSB a Key Set 1Byte Select Key A B BITO gt 0 Key A 1 Key B Send OxOF 0x14 12Bytes Key Mode BIT1 gt Initialize 7 purse 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt 0 31 0x00 Status 0x04 0x14 0x00 Success OxFF OxFF Fail Retur 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 Send OxOB 0x15 8Bytes Key Mode BIT1 gt Read 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BITT gt 20731 purse Dat 0x08 0x00 0x00 Success 4bytes of purse value LSB Retur 0x15 a 0x04 OxFF OxFF Fail Contactless Card RFID Page 10 14 http www youwokeji com cn 10 11 12 Contactless Card Read Write Module YW 201 C User s Manual Send decremen t OxOF 0x16 12Byes Key Set Byte Index of Block 1Byte Key 6Bytes decrement 4Bytes LSB a Key Set 1Byte Select Key A B BITO gt 0
8. a bits 1 Stop bit b The default transfer speed is 19200 bit s Contactless Card RFID Page 6 14 http www youwokeji com cn c d e f g h i j Contactless Card Read Write Module YW 201 C User s Manual 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 C Module Address of LEN CMD DATA CHK module W R LEN LENDI l ENKI Content Write OxA0 The Package Length Command Content 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 e Command Refer to the Command List f The Content
9. from 1 to 2 ccccsscccessseeccessseeceessseeceessseeeeesseeceeees 13 To Y A read purse iria aiii 14 LAO CN a 14 1 11 read RODOOEEPROM c coccion cion ikenien decades debi iaa ea dicas dels decada ds 14 A a o A REN 14 118 module IDLE cidad aaa 14 LM e o e do Soc 14 O A ROO REST 14 Contactless Card REID Page 2 14 http www youwokeji com cn 1 Summary Contactless Card Read Write Module YW 201 C User s Manual YW 201 C 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 18014443 A Mifare One CODE SL2 and then other compatible card 2 YW 200 C Series Module S50 S70 UltraLight MifarePro 15014443 B SR176 IS015693 I Type Card Voc Interface Card This Page Protocol supported Mifare S50 S70 YW 201 C I18014443 A 5V IIC UART TTL af Mifare Pro Mifare S50 S70 ISO14443 A Mifare Pro YW 202 orar 13 V 5V HCUART ITL bbs SR176 ICode SL2 YW 203 C 15015693 3 3V 5V IC UART TTL 18015693 Mifare S50 570 ISO14443 A Mifare Pro YW 204 C ISO14443 B 3 3V 5V JIC UART TTL 15014443 B 15015693 SR176 ICode SL2 15015693 3 YW 201 C Characteristic Completely
10. http www yoworfid com Phone 86 10 59395668 Cell phone 86 13671114914 Email coodor 126 com Contactless Card RFID http www youwokeji com cn Page 14 14
11. of n bytes the parameter Contactless Card RFID Page 7 14 http www youwokeji com cn Contactless Card Read Write Module YW 201 C gt User s Manual g CheckSum XOR result from Length to then last byte of DATA 2 Respond Format YW 201 Cmodule 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 C 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 Name STATUS and DATA Description System Command 1 Modue Send 0x04 0x01 0x00 4 combination with bit0 and bitl Setting Antenna Status BITO 0x01 0 Turn off Antenna 1 Turn on Antenna 0x02 Contactless Card RFID http www youwokeji com cn Page 8 14 Contactless Card Read Write Module YW 201 C gt User s Manual Auto Request BIT1
12. operation of Mifare One through simple command set Contactless Card RFID http www youwokeji com cn Page 3 14 Contactless Card Read Write Module YW 201 C gt User s Manual Communication Protocol 1 UART Baud Rate 19200bps 2 IIC Max rate 400Kbps gt Auto request card When the card put into antenna the pin CARDIN will be low ES Power supply 4 5 5 5V Read Card distance 5 10cm Depend on the antenna ES You can get C51 source code example with theh module 4 Function specification 4 1 Pin Function YW 20x C Pin function Table 1 Pin Function Description 1 VCC 5V VCC 2 GND GND 3 RXD SCL UART RXD IIC SCL 4 TXD SDA UART TXD IIC SDA Card In Out Indicate Only when auto request gt SARTU 0 Card In 1 Card Out Communication Protocol Selector 0 IIC 1 6 PORTSEL UART 7 NC Not Use 8 NC Not Use Contactless Card RFID Page 4 14 http www youwokeji com cn Contactless Card Read Write Module YW 201 C User s Manual 9 NC Not Use 10 NC Not Use Table 1 4 2 Dimension YW 20x C 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 C Module STX LEN CMD DATA CHK ETX Description The Package 0x02 Commad Content of CheckSum 0x03 Length n bytes
Download Pdf Manuals
Related Search
Related Contents
descargar Instructivo CLUB MANAGERS moNIToR DE TENSÃo TRIFÁSICo User Manual - Chetton Hill INSTRUCTION & SERVICE MANUAL Delta Tau ACC-14M User's Manual 230004 - Carro RB ONE R kit v2 LONG MAN MANUAL Wireless Handheld Gun Type 2D Image Reader 1 昇 降 式 移 動 足 場 『アップスター42』取扱説明書 Copyright © All rights reserved.
Failed to retrieve file