Home

OMT-20X manual - e

image

Contents

1. base station Just send command to module over UART YW 200 series contactless card Read Write module support ISO14443 A Mifare One and then other compatible card 2 YW 200 Series Module 550 570 UltraLight MifarePro ISO14443 B SR176 15015693 CODE 512 Type Card Vec Interface Card supported This Page Protocol YW 201 ISO14443 A 5V IIC UART TTL a Mifare Pro Mifare S50 S70 yw 202 18014443 ncUART TL Mifare 15014443 ISO14443 B 8512 ICode 812 YW 203 16015693 3 3V 5V IC UART TTL 15015693 Mifare 50 870 ISO14443 A Mifare Pro YW 204 5014443 3 3 5 IICGjUART TTL ISO14443 B 15015693 58176 ICode 512 15015693 3 YW 201 Characteristic Completely operation of Mifare One through simple command set Contactless Card RFID www e omnitech com Page 3 17 Contactless Card Read Write Module COMT YW202 User s Manual Communication Protocol 1 UART Baud Rate 19200bps 2 Max rate 400Kbps Auto request card When the card put into antenna the pin CARDIN will be low Package DIP32 KS Power supply 4 5 5 5V Read Card distance 5 10cm Depend on the antenna 5 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 Ante
2. Contactless Card RFID www e omnitech com Page 12 17 Contactless Card Read Write Module COMT YW202 User s Manual EEPROM Ps Address High byte afront Data not more than 16 bytes 0x00 Status Return 0x04 Ox1C 0x00 Success OxFF OxFF Fail 16 Send 0x03 0 1 CPUCard Reset 0x04 OxIF 0 00 0x00 Success Information about Return OxFF reset OxFF Fail 17 Send COS 3 0 20 Send COS of n Bytes Type B Sen CPUCard 0x04 0 20 0 00 0 00 Success Return OxFF Fail OxFF 18 Type B 0x07 0 21 4Bytes Card No Send CPUCard Sleep 0x04 0 21 0x00 0x00 Success Retti OxFF OxFF Fail 19 Get SR512 Send 0x03 0x23 ChipID 0x05 0x23 0x00 ChipID 1 Bytes Inculde Return 04 0x23 Others Select 20 Get SR512 Send 0x03 0x24 UID 0x24 0x00 8UID Success UID 8 Bytes Return 0x04 0 24 Others Fail 21 ReadSR512 0 04 0x26 Block Addr Send Block Data 1Byte 0x08 0x26 0x00 Block Data 4 Bytes Return 0x04 0x26 Others Fail 22 Write Send 0x08 0x27 Block Block Addr 1Byte Data 4Byte Contactless Card RFID www e omnitech com Page 13 17 Contactless Card Read Write Module COMT YW202 User s Manual SR512 Addr 1 Byte Block Data 4Byte 0x04 0x27 0x00 Success Return Others Fail 23 SR512 Send 0x03 0x28
3. 3D 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 6 8 Decrement of purse Contactless Card RFID Page 15 17 www e omnitech com Contactless Card Read Write Module COMT YW202 User s Manual 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 01 00 00 00 27 03 Receive 02 04 14 00 10 10 03 6 9 2initial purse 2 Send 02 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 purse backup from 1102 Send 02 0C 18 00 3D 3C FF FF FF FF FF FF 15 03 Receive 02 04 18 00 03 6 9 4 purse 2 Send 02 15 00 3C FF FF FF FF 22 03 Receive 02 08 15 00 FF 04 00 00 E6 03 6 10 Card halt Send 02 10 03 19 1A 03 Receive 02 04 19 00 1D 03 6 11 Read RC531EEPROM 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 6 12 Write RC531EEPROM 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 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 04 01 00 05 O3 turn
4. Completion 0x04 0x28 0x00 Success Return Others Fail 24 SR512 Send 0x03 0x25 Reset To 0x04 0x25 0x00 Success Inventory Return 5 Mifare Ox0C n 0x29 Key set 1 Byte Start Block No 1Byte Block number 1Byte Key 6Bytes Card write 16 Data 16Bytes Blocknumber Multi block a Key Set 1Byte Select Key 0 gt 0 A 1 Key B Key gt 0 Use key passed 1 Use key downloaded send b Index of Key Downloaded BIT2 BIT7 gt 0 31 Block number lt 4 block in general but 4 in every sector is Key Configure Block So you must pay attention during writing multi block 0x04 0x29 status 0x00 Success return Other fail Table 6 Contactless Card RFID www e omnitech com Page 14 17 Contactless Card Read Write Module COMT YW202 User s Manual Turn on the antenna before the operation of contactless card 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 020B 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 Send 02 12 00 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 020A 1A 00 FF FF FF FF FF FF 10 10 03 Receive 02 1A 00 FF FF FF FF FF FF 10 10 03 6 5 Initial purse Send 02 OF 14 00
5. 4 6 6 Tead ose suede eee 14 6 7 increment of purse 15 6 8 decrement of purse 15 6 9 purse bacKkup eee m ete decree 15 6 9 linitial purse 1 15 60 59 2 inital purse 2 oi ore ner DRE 15 6 9 3 purse backup from 160 2 15 6 9 A read purse 2 onse us OUI ERES sed pr NOR MR 15 6 10 15 6 11 read 5 tute n dip ive US 15 6 12 write 5 gt IEEE eee pieces 15 6 13 module inet rr 15 6 14 mod le set eset n eim e 16 85 u Qua 16 Contactless Card RFID Page 2 17 www e omnitech com Contactless Card Read Write Module COMT YW202 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 Y W 201 integrates MF RC531 RF base station Engineers need not take care how to control MF
6. Contactless Card Read Write Module COMT YW202 User s Manual Contactless Card Read Write Module OMT YW202 User s Manual Version 1 4 English Contactless Card RFID Page 1 17 www e omnitech com Contactless Card Read Write Module COMT YW202 User s Manual Content A cutem 3 2 YW 200 Series Module iiiter eerie 3 27 YW 201 Characteristics iecit peri etes tete 3 4 5 a 4 4 1 FUNGUO 4 4 2 Puk 5 3 SBEOLOCOIS 5 5 1 UART Protocols of 65 1 40 0 0120 2000000000000000 00000000000 0000000000000000 5 5 2 Protocol setenta OO ri E x EI 7 5 3 Switch of Uart and a 8 8 7 Command test sample i2 AS RS REED 14 6 15 request unum ama as manus i es 14 6 22 read block ones esie 14 6 3 Write 14 6 4 download key 14 6 5 initial purse nn sss 1
7. Set 1 Byte Block No 1Byte Key 6Bytes a Key Set 1Byte Select Key 0 gt 0 A 1 Key B 4 Read Block Send 0x0B 0 11 8Byte Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 Contactless Card RFID www e omnitech com Page 9 17 Write 5 Block Read 6 Sector Initialize 7 purse Contactless Card Read Write Module COMT YW202 User s Manual gt 0 31 Return Send 0x14 0x04 0 1 0x11 0x12 0 Data 0x00 Success 16 bytes of data return OxFF 24bytes OxFF Fail Key set 1Byte Block No 1Byte Key 6Bytes Data 16Bytes a Key Set 1Byte Select Key 0 gt 0 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 Return Send 0x04 0x0B 0x12 0 13 0 00 OxFF 8bytes Status 0x00 Success OxFF Fail Key Set 1Byte Index of Sector 1Byte Key 6Bytes a Key Set 1 Byte Select Key 0 gt 0 A 1 Key Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt 0 31 Return Send 0x44 0x13 0 Data 0x00 success 64bytes of data return 0x04 0 0 0 13 0 14 OxFF 12Bytes OxFF Fail Key Set 1 Byte Index of Block 1Byte Ke
8. ed 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 Protocol 1 Format of TXD MCU YW 20x Module Address of LEN CMD DATA CHK module W R EENI l Content Write 0 The Package Length Command Contentof CheckSum Read OxA1 n bytes Num of 1 1 1 n 1 Byte Table 4 Contactless Card RFID Page 7 17 www e omnitech com b d e f g Contactless Card Read Write Module COMT YW202 User s Manual Address of module W R When Write to module the Address is 0xAO When Read from module the Address is 1 Package Length the byte from Length itself to Checksum Command Refer to the Command List The Content of n bytes the parameter CheckSum XOR result from Length to then last byte of DATA 2 Respond Format YW 20xmodule gt MCU LEN CMD STATUS DATA CHK Content The 0x00 Success Package Length Command Content CheckSum Fail of n bytes Num of 1 1 1 n 1 Byte Table 5 h Package Length the byte from Le
9. h 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 1 Byte CMD 1Byte DATA 1Byte CHK CMD 0x10 0x10 Add 0x01 before 0x10 DATA 0x00 0 14 0 04 0 10 0 00 Package Send 0x02 0x04 0x10 0x10 0x00 0x14 0x03 2 Respond Format YW 201module MCU STX LEN CMD STATUS DATA ETX Content 0x02 Package Command 0x00 The CheckSum 0x03 Contactless Card RFID Page 6 17 www e omnitech com Contactless Card Read Write Module COMT YW202 User s Manual Length Success OxFF Fail Content of n bytes Num of Byte 1 n a b c d e g h i Table 3 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 add
10. ngth itself to Checksum i Command Refer to the Command List J Status Operation result Success 0x00 Fail OxFF k Content of n bytes the parameter 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 is selected Contactless Card RFID www e omnitech com Page 8 17 Contactless Card Read Write Module COMT YW202 User s Manual 6 Command List CMD LEN CM STATUS M Dir Description Name D and DATA System Command 0x00 4 combination with 610 and bit Antenna Status BITO 0x01 0 Turn off Antenna Send 0x04 0x01 1 Turn on Antenna 0x02 Modue Auto Request BIT1 1 Setting 0x03 0 Turn off Auto Request 1 Turn on Auto Request Retur 0x00 Status 0 04 0 01 0 00 Success OxFF Fail Send 0x03 0x02 2 Power eit atus 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 Request 0 Serial No 3 x 0 08 Status 0 0x00 Request success Card Serial Return 0 10 0 4 bytes Request Fail 0x04 OxFF Key
11. nna Receive Ant ND 2 TGND Sane 12 NC Not Use 13 NC Not Use Contactless Card RFID Page 4 17 www e omnitech com Contactless Card Read Write Module COMT YW202 User s Manual 4 2 Dimension Card In Out Indicate Only when auto request is ere 0 Card In 1 Card Out 15 TXD SDA UART TXD SDA 16 RXD SCL UART RXD SCL 17 VCC 5V VCC 18 GND GND Communication Protocol Selector 0 1 19 PORTSEL 20 Not Use 21 NC Not Use 31 TXI Antenna Output 1 32 TX2 Antenna Output 2 Table 1 Pic2 Protocols 5 1 UART Protocols of Commands Uart Protocols of Commands use data blocks The format of data block 1 Format of TXD YW 201 Module STX LEN CMD DATA CHK ETX Description The Package 0x02 Commad Content of CheckSum 0x03 Length n bytes Contactless Card RFID Page 5 17 www e omnitech com Contactless Card Read Write Module COMT YW202 User s Manual Number of 1 1 1 n 1 1 b c d e g i Table 2 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 Lengt
12. off antenna Receive 02 04 01 00 05 03 Send 02 04 01 01 04 O3 turn on antenna Receive 02 04 01 00 05 03 6 15 Mifare Write multi block 3 block Send 02 3C 29 60 04 10 03 FF FF FF FF FF FF 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 15 15 15 15 15 Contactless Card RFID Page 16 17 www e omnitech com Contactless Card Read Write Module COMT YW202 User s Manual 15 15 15 15 15 15 15 15 15 15 15 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 72 03 Receive 02 04 29 00 2D 03 8 Application Contactless Card RFID www e omnitech com 45 4 INTICARDIN RXD TXD 52 5 GND WOWPORTSEL Pic 3 Page 17 17
13. y 0 gt 0 A 1 Key Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt 0 31 Contactless Card RFID www e omnitech com Page 11 17 Contactless Card Read Write Module COMT YW202 User s Manual 11 12 13 14 15 Purse backup Card Halt Key Download Read EEPROM Write Return Send 0x04 0x0C 0x17 0 18 0 00 OxFF 9Bytes Status 0x00 Success OxFF Fail Key Set 1 Byte Index of Block 1Byte Index of Block Backup 1Byte Key 6Byte a Key Set 1Byte Select Key 0 gt 0 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 Return 0x0C 0x18 0x00 OxFF Status 0x00 Success OxFF Fail Send 0x03 0x19 0x00 Status Return 0x04 0x19 0x00 Success OxFF OxFF Fail Index of key 1 Byte 0 Send 0 0 OxlA IR 31 6Bytes 0x00 Status Return 0x04 0 1 0 00 Success OxFF OxFF Fail Address 2Bytes Legnth 1Bytes Ps Send 0x06 Ox1B Address High byte afront Length not more than 16 0 Data m x 0 00 success n Length bytes of n 0 data return Return 0 1 0 0 04 OxFF OxFF fail Send n 5 0 1 N bytes data Address 2Bytes Data nBytes
14. y 6Bytes Purse Initial Value 4Bytes LSB a Key Set 1 Byte Select Key 0 gt 0 A 1 Key B Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 Contactless Card RFID www e omnitech com Page 10 17 Contactless Card Read Write Module COMT YW202 User s Manual 8 Read purse decrement Increment 10 gt 0 31 Return Send 0x04 0x0B 0x14 0 15 0 00 OxFF 8Bytes Status 0x00 Success OxFF Fail Key Set 1Byte Index of Block 1Byte Key 6Bytes Set 1 Byte Select Key 0 gt 0 A 1 Key Key Mode BIT1 gt 0 Use key passed 1 Use key downloaded b Index of Key Downloaded BIT2 BIT7 gt 0 31 Return Send 0x08 0x04 0 0 0 15 0 16 0 Data 0x00 Success 4bytes of purse value LSB OxFF 12Byes OxFF Fail Key Set 1Byte Index of Block 1Byte Key 6Bytes d value of decrement 4Bytes L SB a Key Set 1Byte Select Key 0 gt 0 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 Return Send 0x04 0 0 0 16 0 17 0 00 OxFF 12Bytes Status 0x00 Success OxFF Fail Key Set 1Byte Index of Block 1Byte Key 6Bytes ae value of Increment 4Bytes LSB Set 1 Byte Select Ke

Download Pdf Manuals

image

Related Search

Related Contents

Valvole a sfera rotative SS-138B ed SS-252B Fisherr  Manuale Istruzioni Criterion RD1000  JUDY USER MANUAL  AmHaze UM - Chauvet Professional  ipi rapport 1  

Copyright © All rights reserved.
Failed to retrieve file