Home
JMY505M User`s Manual - Jinmuyu Electronics Co., Ltd
Contents
1. 0x06 0x24 Data Checksum Data 4 bytes value data LSB first Module returns failure 0x02 OxDB Checksum 5 2 18 Mifare 1K 4K purse increment Function purse increment of Mifare 1K 4K The format of the purse uses Mifare1K 4K s default Purse increment means the increment on the basis of the original number Host sends OxOE 0x25 KeyID Block Key Value Checksum Key ID 1 byte Key identification Block 1 byte block number to initialize 0 to Ox3F for S50 0 to OxFF for S70 Key 6 bytes the key of the card Value 4 bytes increment value LSB first Module returns success 0x02 0x25 Checksum Module returns failure 0x02 OxDA Checksum 5 2 19 Mifare 1K 4K purse decrement Function purse decrement of Mifare 1K 4K The format of the purse uses Mifare 1K 4K s default Purse decrement means the decrement on the basis of the original number Purse decrement only needs the read authority of the key Host sends OxOE 0x26 KeyID Block Key Value Checksum Key ID 1 byte Key identification Block 1 byte Block number to initialize 0 to Ox3F for S50 0 to OxFF for S70 Key 6 bytes the key of the card Value 4 bytes increment value LSB first Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 22 27 Mifare Module http www jinmuyu com Module returns
2. Mifare Module http www jinmuyu com 4 Communication protocols 4 1 Overview The module has IIC and UART interfaces We recommend using IC interface whose communication rate is up to 400Kbps normal rate is 100Kbps But the baud rate of UART is 19 2Kbps and 115 2Kbps We supply sample source code in C and ASM of MCS51 of the interface program both in IIC and UART IIC mode is very convenient user no need to modify the sample code except pin definition in actual using Whatever what type of interface user chooses Please read this chapter before programming and refer to the sample program There are detailed comments in the sample source code 4 2 UART protocol 4 2 1 Parameters The communication protocol is byte oriented Both sending and receiving bytes are in hexadecimal format The communication parameters are as follows Baud rate 19200bps default 115200bps Data bits 8 bits Stop bits 1 bit Parity check None Flow control None 4 2 2 Data send format Header Length Command Data Checksum Header 2 bytes they are OxAA OxBB Length 1 byte number of bytes from Command length byte to the last byte of Data Command 1 byte the command of this instruction Data length depends on the command type length from 0 to 69 bytes Checksum 1 byte Exclusive OR XOR results from length byte to the last byte of data If there is OxAA in data package and then MUST insert 0x00 follow to distingu
3. 9 27 Mifare Module http www jinmuyu com START condition STOP condtion START and STOP conditions 4 3 2 4 Acknowledge ACK All addresses and data words are serially transmitted to and from the module in 8 bit words The module sends a zero to acknowledge that it is not busy and has received each word This happens during the ninth clock cycle 4 3 2 5 Bus state When the module has received command and then doesn t acknowledge IIC bus until ends with the card communication y DATA OUTPUT B BY TRANSMITTER DATA OUTPUT t I not acknowledge BY RECEIVER acknowledge SCLFROM B m MASTER e SE e clock pulse for acknowledgement MSC ECC Acknowledge on the I C bus 4 3 2 6 Device addressing The module requires a 7 bit device address following a start condition to enable the chip for a read or write operation The device address word consists of 7 addressing bits and 1 operation select bit The first 7 bits of the module address are 1010000 0xAO in hex The eighth bit of the device address is the read write operation select bit A read operation is initiated if this bit is high and a write operation is initiated if this bit is low MSB LSB T T Riv 4 4 shove sddress KC eg The first byte after the START procedure 4 3 2 7 Write operation The host device sends a command to module via write operation Copyright 2003 2011 Jinmuyu Ele
4. All rights reserved 12 27 Mifare Module 5 Description of commands 5 1 List of commands Command code Command function 0x10 Read product information 0x11 Module working mode set 0x12 Sets module idle 0x15 EEPROM read 0x16 EEPROM write 0x17 Set UART communication baud rate 0x19 Set IIC address Ox1A Set multi card operation Ox1C Set auto detecting card interval time 0x20 ISO14443A Request cards 0x21 Mifare 1K 4K data block read 0x29 Mifare 1K 4K sector 4 blocks read Ox2A Mifare 1K 4K multi blocks read 0x22 Mifare 1K 4K data block write 0x2B Mifare 1K 4K multi blocks write 0x23 Mifare 1K 4K purse block initialize 0x24 Mifare 1 K AK purse read 0x25 Mifare 1K 4K purse increment 0x26 Mifare 1K 4K purse decrement 0x27 Mifare 1K 4K purse copy 0x28 ISO14443A card halt Ox2D Download Mifare 1K 4K card key to module 0x41 Ultra Light card read 0x42 Ultra Light card write Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved http www jinmuyu com 13 27 Mifare Module http www jinmuyu com 5 2 Explanation of commands 5 2 1 Read product information Function read the product information of CURRENT PRODUCT includes product name firmware version firmware date and configuration information Host sends 0x02 0x10 Checksum Module returns success OxID 0x10 Information Checksum Information 27 bytes 8 bytes product name 4 bytes firmw
5. LTD All rights reserved Copyright 2003 2011 Jinmuyu Electronics Co Mifare Module 3 3 Pin configurations and pin outs http www jinmuyu com PIN Function Type Description 1 NC NC 2 NC NC 13 RE Output RE DE 485 directional control output Card in out indication 14 ICC Output 0 card in 1 card out 15 TXD SDA Input output UART TXD IIC SDA 16 RXD SCL Input UART RXD IIC SCL 17 VCC Power VCC 18 GND Power GND Serial port selector 19 SPS Input 0 IIC 1 UART 31 NC NC 32 NC NC 3 4 Antennas Normally as the size of TX600 series antenna may not meet the actual demands the antenna needs to be customized especially in some compact systems The following information for customization is needed 1 Dimension of the antenna PCB 2 the position and direction of the antenna outlet and the connector 3 the description of the antenna periphery Jinmuyu will design the most proper antenna according to the user s exact requirements We provide many models of antenna Please visit our website to get more information There are some recommended models in the table Antenna model Size of antenna Card operating distance TX600 70mm 70mm 90mm TX601 50mm 50mm 70mm TX602 30mm 30mm 60mm Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 5 27 Mifare Module http www jinmuyu com 3 5 Connection
6. bytes Data Bytes data to write Module returns success 0x02 0x16 Checksum Module returns failure 0x02 OxE9 Checksum 5 2 6 Set UART communication baud rate Function set UART communication baud rate of the module After module receive the command it will first save the new setting and then send the execute result according to the host At last it will validate the new setting UART communication baud rate is default 19200bps Settings will SAVE in the module it will not be lost after power OFF Host sends 0x03 Ox17 Baudrate Checksum Baud rate 1 byte baud rate code 0 19200bps 1 115200bps other values RFU Module returns success 0x02 Ox17 Checksum Module returns failure 0x02 OxES Checksum 5 2 7 Set IIC communication address Function set IIC communication address of the module After module receive the command it will first save the new address and then send the executed result to the host At last it will validate the new settings The IIC address of the module is 1 byte HEX data Lsb is 0 the address of module must be the even number and the invalid address will NOT be Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 16 27 Mifare Module http www jinmuyu com accepted Settings will save in the module and it will be not lost after power OFF Host sends 0x03 0x19 Address Checks
7. E Bee piso 11 4 3 3 Data tee 11 4 3 4 RING 11 4 3 5 Data tetum ormat EE 11 4 3 6 Description of IIC command transaction eee essent 12 5 Description of emma ee NEESS a o NEESS ue 13 5 1 Last of COMMANDS 3 n rrr EUH e EYE RUPEE edd 13 5 2 Explanation of commands err ter ee Pr PERO NR ER HO eege AEN ege eege 14 52 1 Read product information urere rite tete rr enr a e pre eege Eeer 14 5 2 2 Module working mode get 14 5 23 Set module idle tete tree te teste hi ence Ee Per ree e deve IEEE 15 5 2 4 EEPROM I630 urere icit cire deeg eege Eegen dE 15 5 2 5 EEPROM idc 16 5 2 6 Set UART communication baud rate enne 16 Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 1 27 Mifare Module http www jinmuyu com 5 3 5 4 5 5 5 6 5 2 7 Set IIC communication addresg cece essent nennen 16 5 2 8 Set m lti card operation uec tede nda ere ena rt har HEU EL PR eiae 17 3 29 Set automatic detecting card interval time essen 17 5 2 10 ISO144434A request cards EE 18 5 2 11 Mifare 1K 4K data block read 18 5 2 12 Mifare 1K 4K sector 4 blocks read 19 5 2 13 Mifare 1K 4K multi blocks read 19 5 2 14 Mifare 1K 4K data block wt 20 5 2 15 Mifare 1K 4K multi blocks write esee 20 5 2 16 Mifare 1K 4K purse block initialize esee 21 52 17 Mifare TK AK purse te ada odere eese rere tera ri aen
8. JMY505M User s Manual Revision 3 42 Jinmuyu Electronics Co LTD 2011 6 28 A Please read this manual carefully before using If any problem please mail to jinmuyu vip sina com Mifare Module Contents http www jinmuyu com PLOCUCE INMHOCUCH OD E 3 2 Characteristics EE 3 3 Physical parameter and pin out 4 3 1 PROTO e EE 4 3 2 DIMENSION IT EL M M 4 3 3 Pin configurations and pin outen 3 3 4 CHE 5 3 5 Connection Ee E EE 6 3 6 bell testing board m 6 3 7 Model rule utat usi A 7 3 7 1 Model format EU e E T a 7 3 7 2 Card operatine ypes E 7 4 Communication protocols cu erit oett teet en te aen t n de beo a TEE Ee 8 4 1 EIERE eege ege E 8 4 2 WART ee 8 4 2 1 IS E ere RES ARRANGE RENE EAA AERE VERE UE RR RU VR EAR ES ERA 8 4 2 2 Data send Ree E 8 4 2 3 Data C IG BENE UERSUM 8 4 3 TICE prot vc sissies M M 9 4 3 1 Module IIC address and multi device communications seen 9 4 3 2 WG device Operation eese eh pa Eeer 9 4 3 2 1 Clock and data transactioti ed eege SE 9 4 3 2 2 Start condition wevccsssec ates 9 4 3 2 3 Stop CODGIUOD EE 9 4 3 2 4 Acknowledge AC RK 2 creer eee eres expen exe Pes edt tenet 10 4 3 2 5 h rEu c LM 10 4 3 2 6 D vice ddressmg irte ORE SEED Eee eg 10 4 3 2 7 Ke E 10 4 3 2 8
9. are version 8 bytes firmware date 1 byte UART baud rate code 1byte RFU 1 byte IIC address 1 byte multi card operation enable state 1 byte ISO15693 automatic detecting card s AFI 1 byte ISO15693 automatic detecting card s AFI enable state 1 byte automatic detecting card interval multiple of 10ms Module returns failure 0x02 OxEF Checksum 5 2 2 Module working mode set Function set the antenna RF output ON OFF set the automatic detecting card ON OFF Antenna RF output is default ON and automatic detecting card is OFF The module will NOT SAVE the setting and all settings will LOSE on next power up The multi card operation will be prohibited while users turn ON the automatic detecting card If there is more than one card in the RF electric field then the operation will fail Host sends 0x03 0x11 Mode Checksum Mode 1 byte Antenna status BITO 0 OFF BITO 1 ON Auto request BIT1 20 OFF BIT1 1 ON Module returns success 0x02 0x11 Checksum Module returns failure Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 14 27 Mifare Module http www jinmuyu com 0x02 OxEE Checksum 5 2 3 Set module idle Function set the module idle In idle mode the module of RF output turn to OFF PCD power down and CPU in idle mode so the power consumption reduces to about 100uA Sending the next command to mod
10. ata Checksum e Failure Length Invert Command Checksum Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 11 27 Mifare Module http www jinmuyu com 4 3 6 Description of IIC command transaction E g to read the block 1 of Mifare card the steps Send command 0A210001 FFFFFFFFFFFF2A There are steps here A Write command to module Start condition Send control byte it is OxAO the meaning is address OxAO write control 0x00 Send module command 0x0A210001FFFFFFFFFFFF Send command checksum 0x2A AR WN gt Stop condition B Send IIC read command If module no ACK then the module is working Repeat this step 1 Start condition 2 Send control byte OxA1 it is IIC slave address OxAO read control 0x01 3 If module is no ACK go to step B if yes go to step C C Get the data bytes from module 1 Get the first byte and send ACK if the data is 0x12 the meaning is there are 18 bytes useful bytes in this package Get the else 17 bytes data and send ACK after every byte Get the checksum and send NACK Stop condition D Verify the checksum if ok then the communication is ok E Verify the received data from second byte this byte is the status of the command just executed If equal to the command 0x21 then the command execute successful Then the 16 bytes data started from third byte are correct Copyright 2003 2011 Jinmuyu Electronics Co LTD
11. block 1 1A220001FFFFFFFFFFFF1234567890ABCDEF1234567890ABCDEF39 Request card WUPA 03200023 Halt card 021210 5 6 Interface program source code We have interface program source code to help users They are KELL project in C51 or ASM51 format Please mail to jinmuyu vip sina com to obtain the program Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 26 27
12. bytes the key of the card Data blocks 16 bytes data to write Module returns success 0x42 Ox2B Checksum Module returns failure 0x02 OxD4 Checksum 5 2 16 Mifare 1K 4K purse block initialize Function initialize a block of Mifare 1K 4K to a purse The format of purse uses Mifare 1K 4K s default The key of the card could not use as a purse Host sends OxOE 0x23 KeyID Block Key Value Checksum Key ID 1 byte Key identification Block 1 byte Block number to initialize 0 to Ox3F for S50 0 to OxFF for S70 Key 6 bytes the key of the card Value 4 bytes initialized value LSB first Module returns success 0x02 0x23 Checksum Module returns failure 0x02 OxDC Checksum 5 2 17 Mifare 1K 4K purse read Function read a purse of Mifare 1K 4K The format of the purse uses Mifare 1K 4K s default Module will read the data in the block and check if it is a purse format If yes return 4 bytes value data if no return failure Host sends Ox0A 0x24 Key ID Block Key Checksum Key ID 1 byte Key identification Block 1 byte block number of the value to read 0 to Ox3F for S50 0 to OxFF for S70 Key 6 bytes the key of the card Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 21 27 Mifare Module http www jinmuyu com Module returns success
13. ce and stability The module and antenna is split design They are connecting by a 50ohm coaxial wire whose length is up to 1000cm in good situation But the best length of the coaxial line is 60cm 2 Characteristics PCD model Working frequency Supported standard Antenna Connection Card supported Anti collision ability operate single card only Auto detecting card EEPROM Power supply Interface Communication rate Max command length Interface level Power consumption Operating distance Dimension Package Weight ISP Operating temperature Storage temperature RoHS NXP MF RC500 13 56MHz ISO14443A length 60cm max 1000cm customization is available Mifare 1K 4K FMIIRFOS Ultra Light Full function anti collision be able to process multi cards default Supported default ON 512 Bytes DC 5V 0 5V IIC amp UART selected by SPS pin recommend to use IIC IIC 400Kbps UART 19 2Kbps 115 2Kbps 72 Bytes 3 3V TTL level 5V tolerance 70mA 100mm depending on card and antenna design 21mm 42mm DIP32 About 15g Supported 25 to 85 C 40 to 125 C Compliant Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 3 27 lt Mifare Module http www jinmuyu com 3 Physical parameter and pin outs 3 1 Photo NC NC SPS GND VCC JMY605 NC NC ICC TXD RXD 41 148mm 1 524mm 20 32mm 15 24mm 41 148mm 1 524mm 4 27
14. ctronics Co LTD All rights reserved 10 27 Mifare Module E wW T R A A DEVICE R Ww Len Command Code Data 0 A A A C C C K K K T T ADDRESS E DATA I SDA LINE M S B 4 3 2 8 Read operation The host device gets result via read operation S T A DEVICE O mza T ADDRESS SDA LINE A A A A Len amp Command Code Status c Dea Data n K K M s B mor AO R l W 4 3 3 Data transaction http www jinmuyu com A c K K K Kiskt v u The module is a slave device of the IIC bus then the host need to write the command package to module The module will execute the command Then the host needs to poll the status of the module while it is working by sending out the command of read continuously If the module answered to a read operation then the last command execution were finished At this time the host could read the result and or data from the module The read and write operation see chapter 4 3 2 7 and 4 3 2 8 4 3 4 Data send format Length Command Data Checksum e Length 1 byte number of bytes from length to the last byte of Data e Command 1 byte the command of this instruction e Data Data length depending on the command type length from 0 to 69 bytes e Checksum 1 byte Exclusive OR XOR results from length byte to the last byte of data 4 3 5 Data return format e Success Length Command D
15. ish with header But Length byte in the package does NOT increase 4 2 3 Data return format Success Header Length Command Data Checksum Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 8 27 Mifare Module http www jinmuyu com e Failure Header Length Invert Command Checksum 4 3 IIC protocol 4 3 1 Module IIC address and multi device communications IIC bus is able to connect with 128 devices The IC address of module is default 0xAO Users change the address setting via sending the command 0x19 so that user could connect multi module on the same IIC bus 4 3 2 IIC device operation 4 3 2 1 Clock and data transaction The SDA pin is normally pulled high with an external device Data on the SDA pin may change only during SCL low time periods Data changes during SCL high periods will indicate a start or stop condition as defined below MSB acknowledgement acknowledgement Se signal Som siave signal from cw byle complete Intern within slave jock ine heid kow while Tierra are seneced Data transfer on the I C bus 4 3 2 2 Start condition A high to low transition of SDA with SCL high is a start condition which must precede any other command 4 3 2 3 Stop condition A low to high transition of SDA with SCL high is a stop condition Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved
16. ll function of Mifare 1K 4K and Ultra Light Automatic detecting card supports only one card operation If there is more than one card in the RF effective field then the operation may fail Then the multi card operation will automatically turn OFF while the automatic detecting card function turned on Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 25 27 Mifare Module http www jinmuyu com 5 5 Example of commands 5 5 1 About UART communication protocol For example Read block 1 AABB 0A210001AA00BBCCDDEEFF2A AABB Header of UART protocol IIC protocol no this part OA package length from OA to FF are total OxOA bytes the 00 in red is a protocol byte see chapter 4 2 2 21 instruction of read 00 Authenticate KEY A using the key in package The key is AABBCCDDEEFF 01 block number to read AABBCCDDEEFF key of the sector of the card 00 protocol byte used to distinguish header See chapter 3 1 2 2A OA 21 00 01 AA BB CC DD EE FF 2A in sample program the function will calculate it see chapter 4 5 5 5 2 UART commands sample Read block 1 AABB 0A210001FFFFFFFFFFFF2A Read block 255 S70 AABB 0A2100FFFFFFFFFFFFFFD4 Write block 1 AABB 1A220001FFFFFFFFFFFF1234567890ABCDEF1234567890ABCDEF39 Request card WUPA AABB 03200023 Halt card AABB 021210 5 5 3 IIC commands sample Read block 1 0A210001 FFFFFFFFFFFF2A Read block 255 S70 0A2100FFFFFFFFFFFFFFD4 Write
17. p www jinmuyu com 0x12 0x21 Data Checksum Data 16 bytes card data Module returns failure 0x02 OxDE Checksum 5 2 12 Mifare 1K 4K sector 4 blocks read Function read Mifare 1 K AK sector 4 blocks For 50 and sector number less than 32 of S70 this command is called read sector it will read the sector trailer For sector 32 to 39 of S70 this command is called read 4 blocks Because the sectors are include 16 blocks and then module will read 4 blocks If you need to read the 16 blocks in these sectors you need do this command 4 times to fill the requirements The Sector in package is read start block number shift right 2 bits Host sends Ox0A 0x29 Key ID Sector Key Checksum Key ID 1 byte Key identification Sector 1 byte Sector number to read 0 to OxOF for S50 0 to Ox3F for S70 Key 6 bytes the key of the card Module returns success Ox42 0x29 Data Checksum Data 64 bytes card data Module returns failure 0x02 OxD6 Checksum 5 2 13 Mifare 1K 4K multi blocks read Function read multi data blocks in the same sector The function is supported only in the same sector If cross sectors then read will fail Host sends Ox0A Ox2A Key ID Start Block Blocks Key Checksum Key ID 1 byte key identification Start Block 1 byte start block to read Cop
18. rre e Re PEE RES 21 5 2 18 Mifare 1K 4K purse increment sse eene en eenrennennennas 22 5 2 19 Mifare 1K 4K purse decrement sees nennen 22 252520 Mifare 1K AK purse CODy en oie mo a P ERE ERR E ERE Pe VERRE eas RES terri Lets 23 22 2 b 395014443 A card halb i eet ter rettet t nere ote het t esi eo 23 5 2 22 Download Mifare 1K 4K card key to module A 23 5 2 23 Ultra Leight card read eret entree reo Eed 24 D224 Ultra Lagbt card write E 24 About KEY Identification EE 25 About automatic detecting Card 25 Example of commands rete Ie i po Dee S a tes e vehe eg eie 26 5 5 1 About UART communication protocol sesseseeseeseseeeeeneeerenen ener 26 5 52 UART commands sample euch ete o Hr eter i etes 26 5 5 3 TIC commands sample 2 eret ttr rhetor htt ENER SEENEN ENEE 26 Interface program source Code sse E NENEN 26 Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 2 27 Mifare Module 1 Product introduction http www jinmuyu com JMY605M is RFID read write module with an UART and IIC serial port JMY605M has various functions and supports multi ISO IEC standards of contactless IC card The designer combined some frequent used command of RF card and then user could operate the cards with full function by sending simple command to the module The impedance between RF module and antenna was tuned by impedance analyzer And then the module has excellent performan
19. schematics Power IIC Interface TIC Model Power UART Interface UART Model 3 6 JMY500 testing board JMY500 testing board is a tool designed for testing of JMY50x series module it could test the module completely with several steps JMY500 operate the module via MCS51 MCU and it could to change the communication port IIC or UART of module According to our source program include IIC and UART user is able to finish the program of application system JMY500 is also communicating with PC through RS232 port Then user programs the testing software and completes the test to the module Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 6 27 Mifare Module 3 7 Model rule 3 7 1 Model format http www jinmuyu com 1 2 3 JMY 505 X 1 company code 2 product series code 3 card operating type 3 7 2 Card operating type M PCD is RC500 support Mifare Class A PCD is RC500 support ISO14443A and Mifare Class C PCD is RC531 support I5014443A ISO14443B and Mifare Class G PCD is RC400 support ISO15693 H PCD is RC632 support ISO15693 I5014443A ISO14443B and Mifare Class D PCD is RC500 support ISO14443A and Mifare Class with 511 bytes communication buffer E PCD is RC531 support IS014443AB and Mifare Class with 511 bytes communication buffer Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved Heu
20. success 0x02 0x26 Checksum Module returns failure 0x02 OxD9 Checksum 5 2 20 Mifare 1K 4K purse copy Function copy the Mifare 1K 4K purse to another block in the same sector The format of the purse uses Mifare 1K AK s default Host sends 0x0B 0x27 Key ID Source Target Key Checksum Key ID 1 byte Key identification Source 1 byte block number to copy 0 to Ox3F for S50 0 to OxFF for S70 Target 1 byte copy the purse to this block source and target need in same sector Key 6 bytes the key of the card Module returns success 0x02 0x27 Checksum Module returns failure 0x02 0x D8 Checksum 5 2 21 ISO14443A card halt Function set the current operating ISO14443A card in halt state Host sends 0x02 0x28 Checksum Module returns success 0x02 0x28 Checksum Module returns failure 0x02 OxD7 Checksum 5 2 22 Download Mifare 1K 4K card key to module Function download the Mifare 1K 4K card key to module There are 32 key memory spaces in the module that can storage 32 different keys When using the downloaded key on Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 23 27 Mifare Module http www jinmuyu com the module this key wouldn t appear on the pin outs of the PCD So it could provide more security Host sends 0x09 Ox2D Ke
21. t cards Function 150144434 request cards cards include Mifare and other ISO144434 cards In the return results user can ascertain the length of serial number via the return data package length and also judge the card type by ATQA and judge whether the card supports ISO14443 A by SAK If automatic detecting card function was turned on then this command is read the result of automatic detecting card Host sends 0x03 0x20 Mode Checksum Mode 1 byte 0 WUPA request all 1 REQA Request not halted only other value RFU Module returns success 0x20 Data Checksum Data 4 7 or 10 bytes card serial number 2 bytes ATQA 1 byte SAK Module returns failure 0x02 OxDF Checksum 5 2 11 Mifare 1K 4K data block read Function read Mifare 1K 4K data block Host sends Ox0A 0x21 Key ID Block Key Checksum Key ID 1 byte Key identification BITO 0 Key A BITO 1 Key B BIT1 0 using the key in the command BIT1 1 using the downloaded by command Ox2D BIT6 BIT5 BIT4 BIT3 BIT2 if using the downloaded then name the key number here IMPORTANT please read Chapter 5 3 about Key identification Block 1 byte Block number to read 0 to Ox3F for S50 0 to OxFF for S70 Key 6 bytes the key of the card Module returns success Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 18 27 Mifare Module htt
22. to get the card key Key Identification BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT BITO 0 BITO 0 KEY A authenticate Key A of the card 1 KEY B authenticate Key B of the card BIT1 0 Using the following Key in command 1 Using the downloaded Key by command 0x2D BIT6 BITS BIT4 BIT3 BIT2 Index of the Key already downloaded 0 to 31 If BIT1 is O then these 5 bits BIT6 to BIT2 are unused If BIT1 is 1 then use the already downloaded key Users need to download key s by using command Ox2D first and then the 6 bytes key in the command are left unused but the 6 byte is necessary in the command sequence E g key Identification is 0x30 binary system is 00000000 here BITO 0 authenticate Key A of the card BIT1 0 using the key in command BIT6 BITS BIT4 BIT3 BIT2 00000 because not use the already downloaded key the index key 1s unused in this command E g key Identification is 0x33 binary system is 00110011 here BITO 1 authenticate Key B of the card BIT1 1 using the downloaded Key in the module BIT6 BITS BIT4 BIT3 BIT2 01100 then use the already downloaded key 01100 and hexadecimal is OxOC decimal is 12 5 4 About automatic detecting card The automatic detecting card function supports Mifare cards It is default ON User could set the automatic detecting card on by send command Ox11 This setting will lose on next power up Automatic detecting card supports fu
23. ule will wake up the module and then the RF output ON and automatic detecting card restore default settings The module will enter into idle mode after the answer procedure is finished In IIC mode host need to read the answer and then the module will goes into idle mode Host sends 0x03 Ox12 Random data Checksum Random data 1 byte random data for example 0x55 Module returns success 0x02 Ox12 Checksum Module returns failure 0x02 OxED Checksum 5 2 4 EEPROM read Function read data in EEPROM of the module Host sends 0x05 Ox15 Address Bytes Checksum Address 2 bytes read start address address from 0x0000 to OxO1FF MSB first Bytes 1 byte number of bytes to read max 64 bytes Module returns success Ox15 Data Checksum Remark the byte length is means the byte length depends on the card feedback information The same to below Data data read Module returns failure 0x02 OxEA Checksum Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 15 27 Mifare Module http www jinmuyu com 5 2 5 EEPROM write Function write data into EEPROM of the module Host sends 0x16 Address Bytes Data Checksum Address 2 bytes read start address address from 0x0000 to 0x01FF MSB first Bytes 1 byte number of bytes to read max 64
24. um Address 1 byte Lsb is 0 address must be the even number Module returns success 0x02 0x19 Checksum Module returns failure 0x02 OxE6 Checksum 5 2 8 Set multi card operation Function set multi card operation If users need select on card from multi card then need to use the multi card operation If users set the automatic detecting card the multi card operation will be prohibited If there is more than one card in the RF effective field then the operation will fail Settings will save in the module it will be not lost after power OFF Multi card operation default enables Host sends 0x03 OxlA Multi card enable Checksum Multi card enable 1 byte 0 disable multi card 1 enable multi card other values RFU Module returns success 0x02 OxlA Checksum Module returns failure 0x02 OxES Checksum 5 2 9 Set automatic detecting card interval time Function set interval time between two automatic detecting card Host sends 0x03 Ox1C Interval Time Checksum Interval Time 1 byte 0x00 to OxFF unit is 10mS 0x01 means 10mS Module returns success 0x02 Ox1C Checksum Module returns failure Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 17 27 Mifare Module http www jinmuyu com 0x02 OxE3 Checksum 5 2 10 180144434 reques
25. y Index Key Checksum Key Index 1 byte store the Key Index in the module Key 6 bytes the key of the card to store in module Module returns success 0x02 Ox2D Checksum Module returns failure 0x02 OxD2 Checksum 5 2 23 Ultra Light card read Function read the data from Ultra Light card A read command will read 4 blocks data from the card If read start block is the last block then these 4 blocks data are the 15th Oth 1st and 2nd block Host sends 0x05 Ox41 Read start block Checksum Read start block 1 byte start block number to read Module returns success 0x12 0x41 Data Checksum Data 16 bytes card data of 4 blocks a read operation read 4 blocks from the start block Module returns failure 0x02 OxBE Checksum 5 2 24 Ultra Light card write Function write data to Ultra Light card Host sends 0x05 Ox42 Block Data Checksum Block 1 byte block number to write Data 4 bytes data to write Module returns success Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 24 27 Mifare Module http www jinmuyu com 0x12 0x42 Checksum Module returns failure 0x02 OxBD Checksum 5 3 About KEY Identification There is a byte of KEY identification in command of Mifare 1K 4K read write This byte will identify the way
26. yright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 19 27 Mifare Module http www jinmuyu com Blocks 1byte number of block to read Key 6 bytes the key of the card Module returns success Ox2A Data Checksum Data blocks 16 bytes card data Module returns failure 0x02 OxD5 Checksum 5 2 14 Mifare 1K 4K data block write Function write the data to a block of Mifare 1K 4K Host sends Ox1A 0x22 KeyID Block Key Data Checksum Key ID 1 byte Key identification Block 1 byte Block number to write 0 to Ox3F for S50 0 to OxFF for S70 Key 6 bytes the key of the card Data 16 bytes data to write Module returns success 0x02 0x22 Checksum Module returns failure 0x02 OxDD Checksum 5 2 15 Mifare 1K 4K multi blocks write Function write multi data blocks The function is supported only in the same sector If cross sector it will fail while writing the first block and prompt the error in the returned result Host sends OxOA Ox2B Key ID Start Block Blocks Key Data Checksum Key ID 1 byte key identification Start Block 1 byte the start block to write Blocks 1 byte number of block to write Copyright 2003 2011 Jinmuyu Electronics Co LTD All rights reserved 20 27 Mifare Module http www jinmuyu com Key 6
Download Pdf Manuals
Related Search
Related Contents
User Manual - B&H Photo Video Digital Cameras, Photography (画像取り込み・出力装置)の購入(本院) Operating Instructions Air Conditioner Samsung 2043WM Lietotāja rokasgrāmata Caractéristiques et conseils d`utilisation Soudal joint pour Parquets 据付工事説明書 Machine vision system for identifying and assessing features of an MH-x200 Pro Spot moving head user manual 家電製品 Euro-Pro EP95B User's Manual Copyright © All rights reserved.
Failed to retrieve file