Home

SM130 USER MANUAL

image

Contents

1. 15 3 F3 AUTHENTICA TION PEE 16 SNR Eaa vise dade a e ES 17 DB LS M 18 3 1 6 READ VA LUE RNN rrr rrr 18 3 1 7 WRITE VALUE ak k n nav h uv ka M j la la nad a K n riri a Rn a wU fira RO G 19 3 18 INC REMEN amus 19 3 1 9 DEG REMENT VALUE inerte t RAMA b Hac na K MA k na ka p u xa a aa tea Zar n V nA aeei R e ES 19 3 2 HARDWARE COMMANDS O PERA TIO 5 20 3 2 1 E2PRO M KEY wik tnter w KAKA ie H ka RA kap nn dada wa k da AA Re DA E a H MER AR R TA 20 3 2 2 RE FIELD ON ETT 20 3 2 3 RF FELD nni n ka Arka i akil ran yayi na ka D nak v Van N 2ya d zana vaya Gabe an Vin FR Za ayd anada a Vaya n 20 SA READ PO KIRIN Dr aE Aaa 20 3 2 5 WRITE PO RL br k kan a zel k dka Ki za A a e je Ga dana Ha a iro Wa g k ka wi ela rd una cria lana 20 Lodge H RT 20 3 2 7 READ FIRMWARE VERSIO N axe e Reo E 20 32 9 SLEEP RR 20 3 2 9 SET BAUD RATE aniar her er tenen b bask y tek Ern aee Igni el EE reed 20 LN NA prec 21 4 1 1 Open File Mifa re amp Format nennen nennen nnn nnne nnn nnn n
2. 0 1 0 Key Never Never Never Read Write Block 1 0 0 Key A B Key B Never Never Read Write Block 1 1 0 Key A B Key B Key B Key A B Value Block 0 0 1 Key A B Never Never Key A B Value Block 0 1 1 Key B Key B Never Never Read Write Block 1 0 1 Key B Never Never Never Read Write Block 1 1 1 Never Never Never Never Read Write Block Table 5 Access Conditions for Sector Trailer Block SM RFID Mifare Software can assist you to define keys and accessconditionsforeach sector with proper formats Mifare Ultralight does not have Sectortrailer block and doesnot have special access conditions forthe pages SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 14 3 SMRAD MIFARE SOFTWARE MANUAL SM RFID Mifare Software is designed to control the module easily and to demonstrate the SM130 capabilities quickly by verifying all operations with the SM1013 Evaluation Kit Latest version of the software can be downloaded at http www sonmicro com design1356 downloads php SM RFID Mifare Software requiresa windows OS platform SM 1013 Evaluation Kit and a serial port connection By connecting the SM1013 kit to the COM port of the PC and running the software operations like Select Tag Authenticate Read Write Read Value Write Value Increment Value Decrement Value Read Input Ports Set Output Ports Switching On Off RF field Set Baud Rate Write E2PROM Keysetc can
3. Data 8lock WI R N DV RV ILICE ILILITILILBLLITL LIII 2 Figure 11 Write Value Should be double clicked 3 1 8 INCREMENT VALUE This command incrementsa value block of Mifare 1K 4K with a provided value First tag should be selected and the block should be authenticated For increment value to be successful the block should have write permission and also should be in the valid value block format Increment amount of value isa 4 Byte signed integerand the range is 2147483648 to 2147483647 Forthe Mifare 1K 4K Increment Value operation can be done with IV buttons in the grid Should be double clicked Increment amount of value should be typed in hex format to the boxnearthe IV button Mifare Ultralight does not support Increment Value operation 1 0 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ata Block R Dv wy RV 1 00 00 00 00 00 00 00 O0 00 00 00 00 00 00 Data Block Wi R Dv WV RV 6 2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 JData Block Wi R Dv WV RV TA IL LILCILBLLITI IIIBILIBTI Figure 12 Increment Value Should be double clicked 3 1 9 DEC REMENT VALUE This command decrements a value block of Mifare amp 1K 4K with a provided value First tag should be selected and the block should be authenticated Fordecrement value to be successful the block should have write permission and also should be in the valid value block format Decrement amount of value isa 4 Byte
4. Memory Organization Byte within Page Page 0 1112 3 Description 0 Serial Number 1 Serial Number 2 Lock Configuration 3 OTP One Time Programmable Area 4 Data Block 5 Data Block 6 Data Block 7 Data Block 8 Data Block 9 Data Block 10 Data Block 11 Data Block 12 Data Block 13 Data Block 14 Data Block 15 Data Block Table 3 Mifare Ultralight Memory Organization SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 10 2 2 MIFARE BLOCKS DESCRIPTION Mifare 1K 4K blocks can be separated into four categories Manufacturer Block Data Blocks Value Blocks and Sector Trailer Blocks Mifare Ultralight slightly differs from Mifare 1K 4K Mifare Ultralight has pagesand those pagescan be categorized as Manufacturer Block Lock Configuration Block OTP Block and Data Blocks 2 2 1 MANUFACTURER BLOCK For Mifare 1K and Mifare 4K Block 0 of the Sector 0 holds the unique 4 byte serial number of the tag This read only block can be accessible without need of any authentication For Mifare Ultralight Page 0and Pagel holdsthe unique 7 byte serial number of the tag These pagesare read only and can not be modified 2 2 2 DATA BLOCKS For Mifare amp 1K and Mifare 4K Sector 0 to Sector 31 all sectors contain 4 blocks The first 3 block Bloc kO Bloc k1 and Bloc k2 is for general purpose data storage and the last block Block 3 Se
5. Never Key B Key A B Never Never Key B 1 1 0 Never Never Key A B Never Never Never 0 0 1 Never Key A Key A Key A Key A Key A Key Bmay be read 0 1 1 Never Key B KeyA B Never Key B Never 1 0 1 Never Never KeyA B KeyB Never Never 1 1 1 Never Never KeyA B Never Never Never Table 4 Access Conditions for Sector Trailer Block For Mifare 1K 4K tags coming from the factory 0 0 1 column is used foraccess conditions where it defines KeyA asan absolute key forall read write access operations Mifare Ultralight does not have Sectortrailer block and does not have special access conditionsforthe pages SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 2 4 ACCESS CONDITIONS FOR DATA BLOCKS Following table Table 5 liststhe access condition forthe data blocksin the sector Accesscondition may be set for Read Write Increment Decrement Transfer and Restore operations 13 Note that if any of the access condition uses KeyB for Authentic ation Key or Key B then the access condition for the sectortrailer should not have Key B readable Grey colored rowsin Table 4 If in case the card will refuse operations with this key Access Bits Access Condition for Data Bloc ks Application Decrement C1 C2 C3 Read Write Increment Transfer Restore 0 0 0 Key A B Key A B Key A B Key A B Transport Configuration
6. clicked If Auto is checked then before any read write value operation tag will be halted and selected and authenticated according to the last settingsand read command will be executed If Get data blocksto grid is selected then the read value will be transferred to the grid For the Mifare Ultralight Read buttons Should be double clicked in the grid canbe used to read from the specific page Mifare Ultralight does not need authentication process but the select operation is still essential Byte Number Page oo 01 02 03 Description 0 Serial Read 1 Serial Read 2 00 00 Set Lock Read Write 3 oo 00 00 00 Read Write 4 o0 Data Block Read Write 5 oo 00 00 00 Data Block Read Write Figure 7 Read from Grid Should be double clicked SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 18 3 1 5 WRITE This command writesa 16 byte block to the Mifare tag To write to a particular block in the Mifare 1K 4K tag first the tag should be selected and the block should be authenticated The write will be successful only if the block has permission to write and if the authentication is done with the proper key and key type If the block is write protected then the write will fail and the tag will halt Forthe Mifare 1K 4K Write operation can be done with W buttonsin the grid Should be double clicked The 16 bytesforthe relevant block in the grid will be written to
7. the tag isincremented or decremented with the provided value Mifare Ultralight does not have value blocks SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 11 2 2 4 SEC TOR TRAILER BLOCK In Mifare 1K tags the 4th block Block 3 in each sector In Mifare 4K tags from Sector 0 to Sector 31 the 4th block Block 3 in each sector In Mifare 4K tags from Sector 32 to Sector 39 the 16th Block 15 in each sector iscalled the Sector Trailer Mifare Ultralight doesnot have Sector Trailer Block The sector trailerhasaccessconditions and the secret keys KeyA and KeyB KeyA alwaysretum 0 when read KeyB either retums a 0 when read if used for authentication orcan be used asgeneral purpose storage if not used Access bits should present in the sector trailer in proper format This format is explained in Standard Card IC MF1 IC 550 570 document If Sector trailer is written with improper formatthen that sector won t be accessible again and no read and write operation on that sector will be possible SMRFID Mifa re amp Software will prepare this format automatically and wam the user if necessary However care must be taken to make sure the properformat isused when writing to sectortrailerthru extemal device It is also important user should note down the passwords keys used forthe sectors otherwise it is impossible to reset the tag oraccessit again without knowing the correct key s Forthe Mifare tags comin
8. the user if any page islocked before writing to prevent an accidental write Moreovera window is designed to set lock configuration easily This window can be opened by double clicking on Set Lock button Tag Mifare UL Byte Number Page oo 01 02 03 Description 0 Serial Read 1 Serial Read 2 ood SetLock P Read Write 3 oo 00 00 00 oTP Read Write Figure 16 Set Lock Should be double clicked When Set Lock button is double clicked a configuration window will be opened In this window lock page data can be generated according to selected options Set bytes for lock configuration Check to lock particular block permanently LI Clear 11 12 13 14 15 Froze config for OTP Froze config for PS P4 Froze config for P15 P10 Generate Lock Config Bytes Figure 17 Lock Configuration Window SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 24 5 SALES AND SERVICE INFORMATION To obtain information about SONMicro Electronics products and technical support reference the following information ONMicrRo SONMicro ELEC TRONIC S LTD Cankaya M Soguksu C Aslihan Ishani 2 15 Mersin 33070 TURKIYE Phone 490 324 237 21 28 Facsimile 90 324 237 21 86 Email info gsonmicro com Web Site http www sonmicro com Sales http www so
9. Mifare format mfr files mfr files can only be created by Save File operation and contains Mifare data in hex format including Sector Trailer data Opened file is transferred to the grid and the Mifare type is automatically selected Operations on the grid will not be saved until the Save As is executed 4 1 2 Save As Mifare amp Format This function sa ves all data in the grid including Sector Trailer blocks with a special format mfr 4 1 3 Import This function import data from a text file Only data blocks are updated and Sector Trailer blocks will remain asis Text file is transferred to the grid from the beginning to the end of the Mifare tag capacity 4 1 4 Export This function exports data in the grid to a text file Only data blocks are transferred to text file and Sector Trailer blocks information does not exported 4 2 Tools Menu Under this menu useful tools can be found Mifare tag can be read orwritten at one time with one click and data can be viewed in text format 4 2 1 Read All Blocks This function read all the content of the Mifare tag 4 2 2 Write All Blocks This function writes all grid content to Mifare tag 4 2 3 Show Data as Text This function transfer data blocksin the grid as ASCII to the text area It is useful to read the tag content if it is programmed with ASCII characters SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 22 4 3 Sp
10. SM130 SM 1013 EVALUATION KIT MIFARE BRIEF TEC HNICAL INFORMATION SM RFID MIFARE v1 0 SOFTWARE zz 2 N MI CR USER MANUAL SONMicro Electronics Revision A 2 June 2006 SM 130 User Manual 2 2 1 MIFARE BRIEF TECHNICAL INFORMATION erre nnn rna nnn rn nana 6 2 1 1 MIFARE MEMORY ORGANIZATION eene nennen nnn enne nennen ens 6 2 2 MIFARE BLOC KS DESC RIPTION 10 2 2 1 MANUFACTURER nennen enne ia Ra AV A reda dk 10 2 2 2 DATA BLOC 1 etii nente s da danl rabe sot S Kab nayar Ee a ba a Hac ke d We kana n Ee E aa keda 10 2 2 3 VALUE BLO CRS A DEV DD ue des e e Ena 10 2 2 4 SEC TOR TRAILER BLOC K riti ya k y Lak a an Li aa Nak la WAYA Ra kk na Wu RA Zan wU SEYA noo 11 2 2 9 LOCK CONFIGURATION PAG E rnnt rre Wan ahan da avan kaya d a bee 11 PALIN MCI 11 2 3 ACCESS CONDITIONS FOR nnne nnne WAAR N WAA WAAR 12 2 4 ACCESS CONDITIONS FOR DATA BLOC KS 13 3 1 MIFARE TAG COMMANDS nnn nnn nnn anna iin ean 15 3 1 A SEBEG T TAG nada NN San ninan daa k dene RETO dx te es a r HR Fee Da e ok Tena 15 LMNPA
11. be performed Program hasalso TX RX activity window that display the data being sent and received overthe serial port Same template of Mifare amp Memory organization is placed into the grid to ease the accessing all blocks of the Mifare tags visually Software doesnot only aim a demonstration environment but also designed for general usage as Mifare Reader and Programmer Mifare data can be exported to text files orimported from text files aswell ascan be stored ashex files SMRFID MIFARE V1 0 COME i 192006 J Seek ter tag Select Tag Mize iF Grd as ASCH 30 FF FP FF FF PI 09 00 00 00 7 FF FF FF FF FF 09 00 00 00 00 00 00 00 09 00 00 00 1210 00 00 00 00 14 2400 00 00 00 00 00 00 20 00 00 20 04 00 00 00 GO 0 602 0 OF 00 0 00 GO O 3 FF FF FF FF FFF 1 0 FF FF rr FF rr PF rr 0 Byte Number within e block 12 13 14 15 Description 00 0 Det t0 69 FF FF FF FF FF FF 9 00 00 00 00 Det 00 00 GO 00 00 00 00 0 Det 80 69 FF FF FF FF OFF FF 2 020 09 00 00 00 GO 09 00 00 00 00 09 00 0 00 00 20 0 j PP FF FF PE 00 00 CO 02 00 00 00 00 jDeta Block 00 00 00 Date gt x z zz zz z zz SONMicro Electronics Figure 2 SMRFID Mifare Software Snapshot Revision A 1 eS Authentication Source Miwe Delaut Type A FF C Provided
12. ctor Trailer isforaccessconditions and keys Sector 0 hasan exception that it has only 2 blocks Bloc k1 and Block2 for general purpose data storage The first block Block 0 of the SectorO isallocated for manufacturer block and it holds the unique serial number information For Mifare 4K Sector 32 to Sector 39 all sectors contain 16 blocks The first 15 block Bloc kO Block1 Bloc k14 is for general purpose data storage 16th block Block 15 Sector Trailer isa special block like Block 3 in Mifare 1K that holds access conditions and keys forthat particular sector The data blockscan be configured by the accessbits present in Sector Trailerblock as read write blocks for general purpose data storage or va lue blocksfor electronic purse application where valuesare stored in a specific format and increment and decrement operations can be performed on these values 2 2 3 VALUE BLOCKS Value blocks are used for electronic purse applications and are stored in a particular format which is defined in Standard Card IC MFLIC S50 S70 document This format is useful in error detection and backup management SM 130 module prepares this format automatically and then takes necessary action on the value block of the Mifare 1K 4K tag The Value isa 4byte signed integer There are two types of operation possible on the value block increment and decrement When these commandsare executed witha 4 byte increment or decrement value the value stored in
13. ecial Windows There are special windows designed to set keys for Mifare 1K 4K and lock configuration of Mifare Ultralight easily and without taking risk to accidentally make the tag or blocks pages useless 4 3 1 Set Keys Sector Trailer block of Mifare 1K 4K requiresa special care If it is written in a wrong format or if any of the blocks will not be accessible then there will be a waming message to prevent accidental writings Moreoverbecause ofthe complexity of the Sector Trailer block a window is designed to set configuration easily This window can be opened by double clicking on Set Keys button in the grid L 1 4 0 jbo 00 00 00 00 00 00 00 00 00 00 00 00 Data Block w R 5 1 oo 00 00 00 00 00 00 00 00 00 Data Block W R 6 2 oo 00 00 00 00 00 00 00 00 00 00 Data Block W 7 3 FF FF FF FF FF FF FF 07 80 69 FF FF FF FF FF FF Get Keys w R Figure 14 Set Keys Should be double clicked When Set Keys isdouble clicked the Access Conditions for sector blocks window will be opened In this window accessconditionsand keys can be set and applied to the specific sectororall sectors Descriptions about the selected option can be found underthe grid Note that for sectors including 4 block Mifare amp 1K and Mifare amp 4K Sector to Sector31 data blocksare identified one by one However forthe sectors having 16 bl
14. ess Bits Key B Sector Trailer 1 Data Block Data Block Data Block Key A Access Bits Key B Sector Trailer 14 0 Data Block 1 Data Block 2 Data Block 3 Key A Access Bits Key B Sector Tra iler 14 15 0 Data Block 1 Data Block 2 Data Block 3 Key A Access Bits Key B Sector Trailer 15 Table 1 Mifare 1K Memory Organization SONMicro Electronics Revision A 1 May 2006 SM130 User Manual 8 Mifare amp 4K Memory Organization Byte Number within Block Sector Block O 1 2 3 4 5 6 7 8 9 Description 0 0 1 Data Block 2 Data Block 3 Key A Access Bits Key B Sector Trailer 0 1 0 Data Block 1 Data Block 2 Data Block 3 Key A Access Bits Key B Sector Trailer 1 Data Block Data Block Data Block 3 Key A Access Bits Key B Sector Tra iler 30 31 0 Data Block 1 Data Block 2 Data Block 3 Key A Access Bits Key B Sector Trailer 31 32 0 Data Block 1 Data Block 15 Key A Access Bits Key B Sector Trailer 32 33 0 Data Block 1 Data Block 15 Key A Access Bits Key B Sector Trailer 33 15 KeyA Access Bits Key B Sector Trailer 38 39 0 Data Block al Data Block 15 KeyA Access Bits Key B Sector Trailer 39 Table 2 Mifare 4K Memory Organization SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 9 Mifare Ultralight
15. g from the factory KeyA is used to accessto all blocks with 6 byte hexadecimal key FF FF FF FF FF FF 2 2 5 LOCK CONHGURATION PAGE Mifare Ultralight tags have a special page Page 2 that sets the read only configuration of the pages This page can simply lock the pagesso they can be modified again Once a blockislocked then it will neverbe possible to modify that block and configuration will remain permanent In other words if any bit in the lock configuration page issetto 1 then it will never be possible to write 0 to that bit again Making a bit 1 in the lock configuration page isan ireversibly permanent operation Care must be taken when programming this page SMRFID Mifare software will check the bitsand wam the user if necessary Mifare 1K 4K does not have lock configuration page and more complicated configuration can be set in Sector Trailer block forthese tags For furthermore details on this page please investigate Mifare Ultralight Contactless Single trip Ticket IC MFO IC U1 document 2 2 6 OTP PAGE Mifare Ultralight tags have a special page Page 3 called OTP One Time Programmable area If any bit in this page is set to 1 then it will never be possible to write 0 to this bit Making a bit 1 in this page isan irreversibly permanent operation Mifare 1K 4K doesnot have any OTP page For furthermore details on this page please investigate Mifare Ultralight Contactless Si
16. key below EZ2PROM intemal Source Key Ir IF FI Key Type e Block Miwe Block 63 Aufhenbc ale f Auto Hab Select Aut 7 Gel dala blocks to gid Mise Block 63 Read Block Updates No available updates fv Connect sonmicio com May 2006 SM 130 User Manual 15 3 1 MIFARE TAG COMMANDS OPERATIONS Before performing any read write increment value decrement value read value write value operation on a Mifare Tag tag should be selected and then authenticated If the same block or another block in the same sector had authenticated previously then there isno need to authenticate the block that in the same sector 3 1 1 SELECTTAG Before performing any read write value operations on a Mifare Tag tag should be selected first For Mifare amp 1K and Mifare 4K tags authentication process should follow the select operation Select operation can be done in two ways If Seek for Tag is not selected then Select operation will retum the result immediately If there isa tag in the field the details of the tag are displayed with the serial number If Seek for Tag isselected then Select operation will retum the result whenevera tag enters into the RF field Once a tag isselected and still in the RF field performing sequential selecttag operation will result in failure Seek for tag Select Halt Figure 3 Select and Halt buttons 3 1 2 HALT Halt operation is used t
17. nal Evaluation board comes with on board 5V regulator RS232 and I2C interface 2 switches for general purpose inputsand 2 general purpose outputs The accompanying software SMRFID Mifare can be used to study the operation of the module easily and quickly and to set configuration parameters of the SM130 module Read and write rangesup to 9cm can be achieved with the provided antenna SM 1013 evaluation kit Communicates with PC by RS232 DB9 jack serial port USB to Serial adapter worksfine at different baud ratesfrom 9600bpsto 115200bps 19200bps default SM130 module can also communicate with extemal peripheral on I2C bus I2C pinsare provided with pull up resistors on the evaluation board RS232 Serial Port OUTPUT ERROR INPUT INPUT2 PCB Antenna OUTPUT OK 9V 12V DC Power Connector Figure 1 SM 1013 Evaluation Kit Top View SONMicro Electronic s Revision A 1 May 2006 SM 130 User Manual 5 2 MIFARE OVERVIEW SM 130 Mifare Read Write module supports Mifare Classic 4K Mifare Classic 1K and Mifare Ultralight Mifare Classic isa secure memory 1Kbyte 4KByte chip card often called contactless smart card that is most widely used and selected most successful contactless smart card technology The reason it iscalled smartcard is because it hasincrement and decrement functions designed for especially payment systems Mifare Classic family of tagsis being used in RFID applications where ver
18. ngle trip Ticket IC MFO IC U1 document SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 12 2 3 ACCESS CONDITIONS FOR SECTOR TRAILER The accesscondition of each block is configured by 3 bits which is stored with proper format in the sector trailer block For detail of this format see Standard Card IC MF1 550 570 document SMRFID Mifare Software will automatically prepare the proper format according to selected conditions The following table Table 4 lists the various access conditions for the sector trailer itself There are access conditions for Read Write for KeyA KeyB and the Access bits In the conditions which are marked asgrey colorin the table KeyB also may be read If KeyB may be read with KeyA then read attempt to data block with KeyB will fail because KeyB is readable Note that KeyA can never be read under any condition It can only be written re programmed provided that with correct key value Also while setting the access conditions if a condition where the Write is disabled Never isselected forthe access bits then the accessconditions can never be modified after that This is also valid for Keys Access Conditions for Sector Trailer Access Bits Description KeyA Access Bits Key B C1 C2 C3 Read Write Read Write Read Write 0 0 0 Never KeyA Key A Never KeyA KeyA KeyBmay be read 0 1 0 Never Never Key A Never KeyA Never Key Bmay be read 1 0 0
19. nmicro com sales php Sup port http www sonmicro com ask php Documents amp Software http www sonmic ro com 1356 d 1356 php User Forums http www sonmic ro com forums SONMicro Electronic s Revision A 1 May 2006
20. nn nnn KA KARAR A A 21 4 1 2 Save As Mifare Format 21 LAPSI MPO 21 a 21 4 2 Tools M NU sx x5 x4 ayak na raala ua xua aa a a Had Ru oa M d w ra UR B NNUS du RN a RA RA BA ku ka n E 21 2 2 1 Re ol AI BIOc KS 21 4 2 2 Write All BIO Ks kiya a n da eer e Maren te ata N a C a Ce a 21 4 2 3 SHOW Da ta AS E kail a kal l k a kl Ea dak keka keka a Ree k ka A ga HW nea 21 SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 3 4 3 Special Win O 22 D CMM c 22 MEL 23 5 SALES AND SERVICE INFORMATION rrr 24 SONMicro Electronic s Revision A 1 May 2006 SM 130 User Manual 4 1 INTRODUCTION SM 1013 isa professional evaluation kit for SM 130 modules SM 1013 evaluation kit can be used to develop Mifare applications quickly orit can simply demonstrate main features ofthe SM130 module SM1013 can be also used as Mifare Programmer Reader SM 1013 kit comes with 1x Evaluation Board 1x SM 130 Read Write module 1x PCB antenna 1x SMRFID Mifare Software Downloadable via intemet 1x RS232 Serial Cable Optional 1x 9V DC Adapter Optio
21. nsferred to the grid if Get data blocksto grid is checked Mifare Ultralight does not support Read Value operation 1 4 0 Joo 04 00 00 00 O0 00 00 s t oo 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Data Beck WR OV WV fR o 00 00 00 00 00 00 00 Data Bock WI R N Ov wy 6 2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Data Block W R DV wv Se Sa eee Figure 10 Read Value Should be double clicked SONMicro Electronic s Revision A 1 May 2006 SM 130 User Manual 19 3 1 7 WRITE VALUE This command sends value information to SM130 module SM130 module prepare valid format forthe value block and then writesto the Mifare 1K 4K tag First tag should be selected and the block should be authenticated For write value to be successful the block should have write permission and also should be written in the valid value block format SM130 handles it Value isa 4 Byte signed integer and the range is 2147483648 to 2147483647 For the Mifare 1K 4K Read Value operation can be done with WV buttons in the grid Should be double clicked Value to be written should be typed in hex format to the box nearthe WV button Mifare Ultralight does not support Write Value operation 1 0 04 00 00 00 00 00 00 00 00 00 00 00 00 Data Beck WR RV 1 00 00 00 00 00 00 00 00 00 00 00 00 00 W R DV RV 6 2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
22. o halt the Mifare tag so that tag retumsto idle state and operations sequence can start from the beginning by selecting the card first SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 16 3 1 3 AUTHENTICATION For Mifare 1K and Mifare 4K authentication hasto be performed aftera select operation Mifare Ultralight does not use authentication process SM130 module can perfom authentication using default keys using the provided keys orusing a key stored in itsintemal EEPROM memory Authentication Source Mifare Default Type FF Provided key below C E2PROM Internal Source Key Fr jr Fr Tre Key Tupe Type amp TypeB E2prom Block Mifare Block 1 Authenticate Figure 4 Authentication If Mifare Default is selected as authentication source then hexadecimal 6 bytes of FF FF FF FF FF FF will be used as KeyA Type A Mifare tags uses KeyA FF FF FF FF FF FF key asdefault to authenticate when coming from the factory If Provided key below isselected asauthentication source then 6 bytes key should be entered into small boxesand Type of the key should be selected KeyA or KeyB If E2PROM Intemal Source is selected then the type of the Key and the E2prom block where keysare stored should be selected It isexpected that user had stored keys in the selected block of E2prom of SM 130 previously at Other Commands Write E2prom Key window Once the authenticati
23. oc ks Mifa re amp 4K Sector32 to Sector39 data blocks will be identified five by one that is Bloc k0 1 2 3 4 Bloc k5 6 7 8 9 Bloc k10 11 12 13 14 Block15 Sector Trailer Seco ow Block 0 Data Block Block 1 Data Block Block 2 Data Block Block 3 Sector Trader E Er m dd Never Never Key B Never Never Never Never Description for Block 0 of the selected Sector WARNING Blocks can be locked and never be accessible Balore programming the block irrvestigabe the folioemng descaptions carebuliy sccording to the selected acion Il any of access condbon uses Key B for authentication Key c Key B then the condition for the sector trades should never have Key readable access with Key vel be faded 11 grap coloeed rows in Block 3 it used Block data can be saad with Key A c Rey BT passwords Block data can be modded welten with Rey A Key passwords Block data can be incremented with Key A Rey passwords Block data can be decremented wath Key ot Key BY Figure 15 Access Conditions Window SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 23 4 3 2 Set Lock Lock page of Mifare Ultralight requiresa special care If a page is locked then that page will be a read only page permanently and it will never be possible to write that page again SMRFID Mifare software will wam
24. on source and the keys are determined the Mifare 1K 4K block number that isto be authenticated should be selected Authentication is done in block basis but if the other blocks in the same sector have the same accessconditions then there isno need to authenticate the other block in the same sector before performing general read write operationson it SONMicro Electronic s Revision A 1 May 2006 SM 130 User Manual 17 3 1 4 READ This command readsa 16 byte block from the Mifare tag To read from a particular block in the Mifare 1K 4K tag first the tag should be selected and the block should be authenticated The read will be successful only if the block has permission to read and if the authentication is done with the proper key and key type If the block is read protected then the read will fail and the tag will halt Forthe Mifare 1K 4K Read operation can be done with Read Block Button orthe R buttons in the grid Should be double clicked IV Auto Halt Select Auth IV Get data blocks to grid Mifare Block 1 Read Block Figure 5 Read with Button 1 4 0 loo 00 00 00 00 00 00 00 00 00 Data Block 5 1 00 00 00 00 00 00 00 00 00 00 00 00 00 Data Block 6 2 oo 00 00 00 00 00 00 00 00 00 Data Block 7 3 FF FF FF FF FF FF FF 07 80 69 FF FF FF FF FF FF Set Keys a DDD Figure 6 Read from Grid Should be double
25. rmed 3 2 3 RF RELD OFF This commands switches off the RF Field of the SM 130 module This can be used to save power when the module in not reading or writing 3 2 4 READ PORT This command is used to read from the 2 general purpose inputs INPUTI and INPUT2 Inputs are connected to a push button in SM 1013 kit 3 2 5 WRITE PORT This command is used to write to the 2 general purpose outputs OUTPUTI and OUTPUT2 0 UTPUT pins are included in SM 1013 kit nearthe antenna jumpers 3 2 6 RESET This command resets the SM 130 module 3 2 7 READ HRMWARE VERSION This command is used to request fimware version number of the SM130 module 3 2 8 SLEEP This command puts SM 130 module into sleep mode A hardware reset is essential to wake up the SM130 module 3 2 9 SET BAUD RATE This command set UART baud rate of SM 130 module When baud rate is changed module will communicate with new baud rate even after reset until it is changed again by this command SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 21 4 SOFTWARE FEATURES SM RFID Mifare software has some features that ease some operations and also makes the software proper for general usage 4 1 File Menu Mifare data can be stored in filesas hex or text format for later access Following features can be accessed under File menu in SMRFID Mifare software 4 1 1 Open File Mifare Format This function opens files that is arranged in special
26. s 16 bytes Every Block 3 of the sectors Sector Trailer isa special block that holds accessconditions and keys for that particular sector Mifare 4K has 40 sectors 0 39 From Sector 0 to 31 memory organization is similar to Mifare 1K Each sector has 4 blocks and each block has 16 bytes Every Block 3 of the sectors Sector Trailer is a special block that holdsaccessconditions and keys for that particular sector From Sector 31 to 39 each sectorhas16 blocksand each block has 16 bytes Every Block 15 of the sector Sector Trailer isa special block that holds accessconditions and keys for that particular sector Mifare Ultralight consist of 16 pages each page has4 bytes PageO and Pagel hold unique Serial Number Read Only Page2 holds lock configuration of pages Page3 isa special One Time Programmable lock Once any bit of Page2 Lock and Page3 OTP is set to 1 it will never be possible to program that bit as 0 SONMicro Electronic s Revision A 1 May 2006 SM 130 User Manual 7 Mifare amp 1K Memory Organization Byte Number within Block Sector O 1 2 3 4 5 6 7 8 9 Description 0 0 Bree 1 Data Block 2 Data Block 3 Key A Access Bits Key B Sector Trailer 0 1 0 Data Block 1 Data Block 2 Data Block 3 Key A Acc
27. signed integerand the range is 2147483648 to 2147483647 Forthe Mifare 1K 4K Decrement Value operation can be done with DV buttons in the grid Should be double clicked Decrement amount of value should be typed in hex format to the boxnearleft hand side of the IV button Mifare Ultralight does not support Decrement Value operation 1 4 0 04 00 00 00 00 00 00 00 00 00 00 00 00 00 Data Bock Ww R N fov WV RV 5 1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 W R RV 6 2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Data 8lock WI R ee Figure 13 Decrement Value Should be double clicked SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 20 3 2 HARDWARE COMMANDS OPERATIONS Apart from the regular Mifare tag operations the module also hassome hardware commandsthat affect the SM130 module Hardware commandscan be accessible in SMRFID toolbar Hardware Commands gt 3 2 1 E2PROM KEY There are 16 sectors the SM 130 E2prom memory to store keys Each sector can hold one TypeA KeyA and one TypeB KeyB keys By this way keysforauthentication can be selected from the E2prom memory of SM130 and keys are also prevented to being visible on I2C or UARTcommunication channel 3 2 2 RF HELD ON This commands switc hes on the RF Field of the SM130 module This can be used to switch On the RF field only when a read or write operation is perfo
28. the tag L 1 4 0 oo 00 00 00 00 00 00 00 00 00 00 00 00 Data Block 5 1 00 00 00 00 00 00 00 00 00 00 00 00 00 Data Block 6 2 00 00 00 00 00 00 00 00 00 00 00 00 00 Data Block 7 3 Fr FF FF FF FF FF FF 07 80 69 FF FF FF FF FF FF Set Keys a dD DD Figure 8 Write to Mifare 1K 4K Should be double clicked A special care should be taken before writing to Sector Trailer block otherwise sector can be ireversibly inaccessible If Auto is checked then before any read write increment decrement operation tag will be halted and selected and authenticated according to the last settings and write command will be executed Forthe Mifare Ultralight Read buttons Should be double clicked in the grid can be used to make a read 2 00 o0 Set Lock Read Write 3 oo 00 00 00 lore Read Write 4 oo 00 00 00 Data Block Read Write Figure 9 Write to Mifare Ultralight Should be double clicked 3 1 6 READ VALUE This command readsfrom a value block of Mifare 1K 4K tag First tag should be selected and the block should be authenticated Forread value to be successful the block should have read permission and also should be in the valid value block format If the block is not in the valid value block format then the tag won t halt Forthe Mifare 1K 4K Read Value operation can be done with RV buttons in the grid Should be double clicked The read value will be tra
29. tion and detailed communication principles please referto following documents of Philips Semiconductor Mentioned document gives detailed functional specification of the IC used in Mifare tags Document can be downloaded at Mifare 1K Standard Card IC MF1IC S50 http www semic onductors philips com acrobat other identific ation m001051 p df http www sonmic ro c o m 1356 d 1356 php Mifare 4K Standard Card IC MF1IC S70 http www semiconductors philips c om acrobat other identific ation m043531 p df http www sonmic ro c om 1356 d 1356 php Mifare Ultralight Contactless Single trip Ticket IC MFO IC U1 http www semiconductors philips com acrobat other id entific a tion m028630 p df http www sonmicro com 1356 d1356 php 2 1 1 MIFARE MEMORY ORGANIZATION Mifare 1K and Mifare 4K have similarities with memory organization but the Mifare Ultralight is slightly diffe rent Mifare 1K and Mifare 4K are arranged of sectorsand sectors consist of blocks and blocks consist of 16 bytes Block 0 of the Sector 0 keeps unique serial number for both Mifare 1K and Mifare 4K tags Sector Trailer block holdsaccessconditions and keys forthat particularsector for Mifare 1K and Mifare 4K tags The main difference between the Mifare 1K and Mifare 4K is the total sector numberand the position of the Sector Trailer block after block 128 Mifare 1K has 16 sectors each sector has 4 blocks and each block ha
30. y high security and fast data collection systems are required This family of tags has fast contactless communication speed 106 Kbit s and uses very strong encryption techniques It is impossible to copy or modify the content of the Mifare Classic family of tags without the correct key s when it is protected This high secunty isapproved and tested by VISA and TNO Asa result Mifare become ideal for e money applications secure access data storage and fast data collection systems Not only limited with these applications but printed antenna technology makes possible to find very thin and low cost Mifare tags e g labels stickers so that extending the field of RFID applications Mifare Ultralight differs from Mifare Classic family It has 512 bits memory and the contactless communication is not encrypted Howeverit hasanti cloning support by unique 7 byte serial numberof each device Mifare isthe perfect solution forthe applications like loyalty and vending cards road tolling city cardsaccesscontrol gaming and much more listed below Public Transport Road Toll Airline Ticketing City Cards Banking Loyalty Health AccessControl Payphone Identity Govemment Gaming ntemet POS SkiTicketing Vending Smart Meters NG water SONMicro Electronics Revision A 1 May 2006 SM 130 User Manual 6 2 1 MIFARE BRIEF TEC HNIC AL INFORMATION For Mifare tag memory organiza

Download Pdf Manuals

image

Related Search

Related Contents

Information professionnelle Cerus  ID360Di1R F - RS Sicherheit  取扱説明書の表示  Samsung ST95 User Manual  Généralités  Gefen EXT-HDMI-844 User's Manual  Giant Coffeemaker GP7150A User's Manual  カドマルン取扱説明書  SPITFIRE  

Copyright © All rights reserved.
Failed to retrieve file