background image

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&EMAIL

  [email protected] 

PHONE

  086-10-87171913 

MOBILE

  086-13671114914 

MANAGER

  Mr Zhou 

 
 
 
 
 

Contactless  Card,  RFID…                                                                                                                Page  1    /  15   

http://www.youwokeji.com.cn 

Содержание YW-201

Страница 1: ...al Contactless Card Read Write Module YW 201 User s Manual version 1 4 English WEB http www youwokeji com cn MSN 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 ...

Страница 2: ...mple 13 6 1 request card 13 6 2 read block 13 6 3 write block 13 6 4 download key 13 6 5 initial purse 13 6 6 read purse 13 6 7 increment of purse 13 6 8 decrement of purse 13 6 9 purse backup 13 6 9 1 initial purse 1 13 6 9 2 initial purse 2 14 6 9 3 purse backup from 1 to 2 14 6 9 4 read purse 2 14 6 10 card halt 14 6 11 read RC500EEPROM 14 6 12 write RC500EEPROM 14 6 13 module IDLE 14 6 14 modu...

Страница 3: ...70 UltraLight MifarePro ISO14443 B SR176 ISO15693 I CODE SL2 and then other compatible card 2 YW 200 Series Module Type Card Protocol Vcc Interface Card supported This Page YW 201 ISO14443 A 5V IIC UART TTL Mifare S50 S70 Mifare Pro YW 202 ISO14443 A ISO14443 B 3 3V 5V IIC UART TTL Mifare S50 S70 Mifare Pro ISO14443 B SR176 YW 203 ISO15693 3 3V 5V IIC UART TTL ICode SL2 ISO15693 YW 204 ISO14443 A ...

Страница 4: ...stance 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 2 TGND Antenna GND 12 NC Not Use 13 NC Not Use 14 CARDIN Card In Out Indicate Only when auto request 0 Card In 1 Card Out 15 TXD SDA UART TXD IIC SDA 16 RXD SCL UART RXD IIC SCL 17 VCC 5V VCC Cont...

Страница 5: ...Antenna Output 2 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 0x02 Package Length Commad The Content of n bytes CheckSum 0x03 Number of Byte 1 1 1 n 1 1 Table 2 Contactless Card RFID Page 5 15 http www youwokeji com cn ...

Страница 6: ...d Refer to the Command List g The Content of n bytes the parameter h CheckSum XOR result from Length to then last byte of Content but not include the added byte 0x10 due to 0x02 0x03 or 0x10 i 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 0...

Страница 7: ...ommand to the module the module send back this command to the MCU g Status Operation result Success 0x00 Fail 0xFF h During the communication command content i CheckSum XOR result from Length to then last byte of Content but not include the added byte 0x10 due to 0x02 0x03 or 0x10 j Block End ETX 0x02 5 2 IIC Protocol Table 4 1 Format of TXD MCU YW 201 Module Address of module W R LEN CMD DATA CHK...

Страница 8: ...ength itself to Checksum i Command Refer to the Command List j Status Operation result Success 0x00 Fail 0xFF k The Content of n bytes the parameter l 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 selecte...

Страница 9: ...0 request all card in antenna area 0x01 request card that have not halted in antenna area 0x08 0x00 Seri al No 3 Request Card Retur n 0x04 0x10 0xFF Status 0x00 Request success Card Serial No 4 bytes 0xFF Request Fail Send 0x0B 0x11 8Byte Key Set 1Byte Block No 1Byte Key 6Bytes a Key Set 1Byte Select Key A B BIT0 0 Key A 1 Key B Key Mode BIT1 0 Use key passed 1 Use key downloaded b Index of Key Do...

Страница 10: ...eturn 6 Read Sector Retur n 0x04 0x13 0xFF 0xFF Fail Send 0x0F 0x14 12Bytes Key Set 1Byte Index of Block 1Byte Key 6Bytes Purse Initial Value 4Bytes LSB a Key Set 1Byte Select Key A B BIT0 0 Key A 1 Key B Key Mode BIT1 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 0 31 0x00 7 Initiali ze purse Retur n 0x04 0x14 0xFF Status 0x00 Success 0xFF Fail 8 Read purse Send 0x0B 0...

Страница 11: ...f Block 1Byte Key 6Bytes value of Increment 4Bytes LSB a Key Set 1Byte Select Key A B BIT0 0 Key A 1 Key B Key Mode BIT1 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 0 31 0x00 10 Incremen t Retur n 0x04 0x17 0xFF Status 0x00 Success 0xFF Fail Send 0x0C 0x18 9Bytes Key Set 1Byte Index of Block 1Byte Index of Block Backup 1Byte Key 6Byte a Key Set 1Byte Select Key A B BI...

Страница 12: ...tes Legnth 1Bytes Ps Address High byte afront Length not more than 16 n 4 0x00 Dat a 0x00 success n Length bytes of data return 14 Read RC500 EEPROM Retur n 0x04 0x1B 0xFF 0xFF fail Send n 5 0x1C N bytes data Address 2Bytes Data nBytes Ps Address High byte afront Data not more than 16 bytes 0x00 15 Write RC500 EEPROM Retur n 0x04 0x1C 0xFF Status 0x00 Success 0xFF Fail Table 6 Tips Turn on the ant...

Страница 13: ... Send 02 0A 1A 00 FF FF FF FF FF FF 10 10 03 Receive 02 0A 1A 00 FF FF FF FF FF FF 10 10 03 6 5 initial purse Send 02 0F 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 0F 16 00 3D FF FF FF FF FF FF 01 00 00 00 25 03 Receive 02 04 16 00 12 03 ...

Страница 14: ...alt Send 02 10 03 19 1A 03 Receive 02 04 19 00 1D 03 6 11 read RC500EEPROM 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 0F 03 6 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 6 13 module IDLE Send 02 10 03 10 02 01 03 Receive 02 04 10 02 00 06 03 6 14 module set Send 02 ...

Страница 15: ...ect 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 youwokeji 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 ...

Отзывы: