Home
        SM132-USB Datasheet
         Contents
1.   0x46    F      Read Failed during verification                Table 36   Response to Decrement Value Block Command    Example Command   FF 00 06 8E 08 E8 03 00 00 87  Decrement Value Block 8 by 1000  0x000003E8     Example Responses   FF 00 06 8E 08 28 23 00 00 E7  Decrement value block successful  New Value is 9000  0x00002328     FF 00 02 8E 46 47  Decrement failure    SonMicro Electronics Revision A 7    May  2007    SM 132USB   Datasheet       4 14 SETANTENNA POWER    This command tums ON or OFF the RF field  RF field can be switched off when it is not  required  This helps to reduce the active cument consumption  The RF field can be    switched ON whenevera read orwrite operation is required                       Command   Command   0x90  1 Byte   Byte to instruct the reader whetherto switch ON or OFF  the RF field  RFSWICH   0x00  Switch Off RF Field  Non Zero   Switch On RF Field  Table 37   Set Antenna Power Command  Response        Data Length   0x02       Command  Response   0x90          1 Byte   RF field status after execution of the command    Status 0 00 RF Field switched Off    0x01 RF Field switched On             Example Command     FF 00 02 90 00 92  Switch Off RF field    FF 00 02 90 01 93  Switch On RF field    Example Responses   FF 00 02 90 00 92  RF field Switched Off    FF 00 02 90 01 93  RF field Switched On    SonMicro Electronics    Table 38   Response to Set Antenna Power Command    Revision A 7 May  2007    SM 132USB   Datasheet 22       4 15 RE
2.   0x46    F      Read Failed during verification  Table 33   Response to Increment Value Block Comma nd  Example Command   FF 00 06 8D 08 E8 03 00 00 86    Increment Value Block 8 by 1000  0x000003E8    Example Responses    FF 00 06 8D 08 F8 2A 00 00 BD   Increment value block successful  New Value is 11000  0x00002A F8     FF 00 02 8D 46 D5  Increment failure    SonMicro Electronics Revision A 7    May  2007    SM 132USB   Datasheet    20       4 13 DEC REMENT VALUE BLOCK    This command decrements a value block with the specified amount  Before executing  this command  the block should be authenticated  Also  the block should have  permission for decrement  If either of these conditions is not true  this command will fail   The 4 byte increment value should be sent LSB first  If the decrement was successful  the    4 byte value after decrement is sent back as response  LSB first                          Command   Command   Ox8E  Block Number   1 Byte   Block number to be decremented  Decrement Value   4 Bytes  Decrement value    LSB first    Table 34   Decrement Value Block Command  Response   Success        Data Length   0x06       Command  Response   Ox8E       Block Number   1 Byte   Block numberthat hasbeen decremented             Data   4 Bytes  Value afterthe decrement    LSB first            Table 35   Response to Decrement Value Block Command  Fail        Data Length   0x01  Command  Response   Ox8E       1 Byte   ErorCode    Eroncode Ox4E    N      No Tag present  
3.  AND SERVICE INFORMATION    To obtain information about SONMicro Electronics products and technical support   reference the following information     SONMICRO    SO NMicro ELECTRONICS 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 sonmicro com sales php  Sup port http   www sonmicro com ask php  Documents  amp  Software http    www sonmicro com  1356 d 1356 php  User Forums http     www sonmic ro com forums    SonMicro Electronics Revision A 7 May  2007    
4.  FF 00 09 8C 06 AA 01 02 03 04 05 06 5A  Write key  01 02 03 04 05 06  as TypeA to sector 6 of the intemal eeprom of the module     FF 00 09 8C 06 BB 01 02 03 04 05 06 6B  Write key  01 02 03 04 05 06  as TypeB to sector 6 of the intemal eeprom of the module     Example Responses   FF 00 02 8C 4C DA  Write Key successful    FF 00 02 8C 4EDA  Write Key failed    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet    19       4 12 INCREMENT VALUE BLOCK    This command increments a value block with the specified amount  Before executing this  command  the block should be authenticated  Also  the block should have permission for  increment  If either of these conditions is not true  this command will fail  The 4 byte  increment value should be sent LSB first  If the increment was successful  the 4 byte value    after increment is sent back as response  LSB first                          Command   Command   0x8D  Block Number   1 Byte   Block number to be incremented  Increment Value   4 Bytes  Increment value    LSB first    Table 31   Increment Value Block Command  Response   Success        Data Length   0x06       Command  Response   0x8D       Block Number   1 Byte   Block numberthat has been incremented             Data   4 Bytes  Value afterthe increment    LSB first            Table 32   Response to Increment Value Block Command                      Fail   Data Length   0x01  Command Response   0x8D  1 Byte   ErorCode  Eroncode Ox4E    N      No Tag present
5.  block  Value is a 4byte signed integer  Before executing this  command  the block should be authenticated  If the block is not authenticated  this  command will fail  Also  this command will fail if the block is not in valid Value format                       Command   Command   0x87  Block Number   1 Byte   Block Numberto be read  Table 17   Read Value Block Command  Response   Success        Data Length   0x06       Command Response   0x87       Block Number   1 Byte   Value Block numberthat hasbeen read             Data   4 Bytes  Value read from the value block  LSB first          Table 18   Response to Read Value Block Command    Fail        Data Length   0x02       Command Response   0x87       1 Byte   ErorCode                       Ox4E    N      No Tag present  0x49    l      Invalid Value Block  0x46    F      Read Failed                Table 19  Response to Read Value Block Command    Example Command   FF 00 02 87 08 91  Read Value from Block 0x08    Example Responses   FF 00 06 87 08 10 27 00 00 CC  Read Value issuccessful  The value read is 10000   0x00002710     FF 00 02 87 46 CF  Read Failed    FF 00 02 87 49 D2  Invalid Value Block    SonMicro Electronics Revision A 7    May  2007    SM 132USB   Datasheet 15       4 8 WRITE BLOCK    This command writes 16 bytesto the specified block  Before executing this command  the  particular block should be authenticated  If not authenticated  this command will fa il                          Command   Command   0x89  Blo
6.  operations    MEMORY OPERATIONS  Read  Write  Increment Value    Decrement Value    Figure 1  Flow diagram to perform operationson Mifare amp  tag    The following sequence of operationshasto be performed to accessany block in the  tag     1  The tag should be selected with the serial number    2   The relevant Sector should be authenticated with the relevant key  For example  if  a blockhasto be read and if the access condition of the block is KeyB  then the sector  should be authenticated using KeyB   3  Afterthe authentication  the required operation may be performed on the block of  the authenticated sector  The operation will be allowed only if the accessconditions  forthe block allow this  Forexample  if a block hasRead condition using KeyB and  write condition using KeyA Bthen authenticating using KeyA will only allow a write  operation  If a read isattempted the tag will halt and will not grant any furtheraccess   Foraccessing the tag further  it hasto be again selected and authenticated  Also  only  the sectorthat hasbeen authenticated may be accessed  For example  if Sector 1 has  been authenticated to access Block6 and if Block 9 isaccessed  the tag will halt     SonMicro Electronics Revision A 7 May  2007       SM 132USB   Datasheet       3  COMMUNICATION PROTOCOLS    SM 132 USB is connected to the PC thru USB but the protocol implemented by  UART  Serial  The USB to Serial conversion will be done by the module hardware    The following table liststhe commands su
7. 0 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF 1D  Write successful    FF 00 02 89 58 E3  Unable to read after write     FF 00 02 89 55 EO  Read after write failed    SonMicro Electronics Revision A 7 May  2007       SM 132USB   Datasheet       4 9 WRITE VALUE BLOCK    This command formats and then writes a value block  Value is a 4 byte signed integer   Only the 4 byte value and block number need to be sent to the module  The module  formats the value block and then writes  After writing  the Value block is read back to  verify if the write was successful  Before executing this command  the block should be    authenticated  If the block is not authenticated  this command will fail                                                  Command   Command   0x8A  Block Number   1 Byte   Block Number to be written  Data   4 Bytes  4 byte long int value  LSB first  Table 23   Write Value Block Command  Response   Success   Data Length   0x06  Command  Response   0x8A  Block Number   1 Byte   Block number to which value has been written  Data   4 Bytes  Value that hasbeen read back afterthe write  LSB first   Table 24   Response to Write Value Block Command  Fail   Data Length   0x02  Command  Response   0x8A  1 Byte   ErorCode  Ox4E    N      No Tag present  EmorCode   0x49    F   Invalid Value Block  The block was not in the  proper value format when read back  This could  be because there wasan emorin writing  0x46  F   Read Failed during verification             Table 25   Response 
8. AD INPUT PORT    This command can not be used with SM 132 USB Modules because there is no input         connection in hardware     Command              Command   0x91          Table 39   Read Input Port Command    Response        Data Length   0x02    Command Response   0x91  1 Byte   Status of input pins          BitO   Status of INPUTI  1  On  0   Off  Bitl   Status of INPUT2  1   On  0   Off             Status   nn       0 0 INPUT2 LOW  INPUTI LOW  0 1 INPUT2 LO W  INPUTI HIGH  1    INPUT2 HIGH  INPUTI LOW  1 d INPUT2 HIGH  INPUTI HIGH       Table 40   Response to Read Input Port    Example Command   FF 00 01 91 92  Read Input pins    Example Responses   FF 00 02 91 00 93  INPUT2 LOW  INPUT1 LOW    FF 00 02 91 01 94  INPUT2 LOW  INPUT1 HIGH    FF 00 02 91 02 95  INPUT2 HIGH  INPUTI LOW    FF 00 02 91 03 96  INPUT2 HIGH  INPUT1 HIGH    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 23       4 16 WRITE TO OUTPUT PORT  This command can not be used with SM132 USB Modules because there is no output pin  connection in hardware                       Command   Command   0x92  1 Byte   Byte that indicates how the outputs have to be set         OUTPUT  1  On  0  Off         OUTPUT2  1  On  0   Off  Status  Bitl     0 0 OUTPUT2 LOW  OUTPUT1 LOW  0 1 OUTPUT2 LOW  OUTPUT1 HIGH  1 0 OUTPUT2 HIGH  OUTPUT1 LOW  1 1 OUTPUT2 HIGH  OUTPUT1 HIGH  Table 41   Write to Output Port Command  Response        Data Length   0x02    Command Response   0x92  1 Byte   Status of out
9. COMMANDS  amp  RESPONSES    In this chapter detailed information and UARTframe examples are given forcommand  and responses                       This command generates software reset on the module   Command   Command   0x80  Data   None  Table 4   Reset Command  Response     The module responds with a version string to the reset command  The response isthe  same asthe one found in the Read Firmware Version Command    Example Command   FF 00 01 80 81  Reset SM 132 USB module    Example Response   FF 00 04 81 30 2E 31 14   Version isO 1    4 2 READ HRMWARE VERSION    This command readsthe firmware version of the module    Command        Command   0x81    Table 5   Read Firmware Version Command  Response   The module responds with a version string to this command     Example Command   FF 00 01 81 82    Example Response   FF 00 04 81 30 2E 31 14   Version is 0 1    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 10       4 3 SELECTTAG    This command Selects a Tag if it is present in the field  On receiving the command  the  module executes an Anti collision and Select command sequences  If a tag was present   then it selectsthe tag and sendsthe serial number of the tag asresponse  If a tag wasnot  present  it sendsan enorcode back     Command        Command   0x83  Data   None                Table 6   Select Command  Response        tag was selected  the response data length is 6 or 9 bytes  The first byte isthe  command byte  0x83  and the next isthe Tag T
10. ND SERVICE INFORMATION 28    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 4       1  INTRODUCTION    SM 132 USB isa compact 13 56MHz RFID Read   Write USB module integrated with PCB  antenna and designed for ISO 14443A standard and supports Mifare   Classic 1K  Mifare    Classic 4K and Mifare   Ultralight transponders     SM 132 USB comes with the same firmware of SM130 Serial I2C Mifare modules  USB to  Serial protocol conversion isdone by the module   s hardware thus usercan access the  module thru USB bus with the serial protocol     The serial protocol is explained in thisdocument  SonMicro also released Software  Development Kit  SDK  including ActiveX Control for users who do not want to deal with  the protocol used  With the provided ActiveX Library  usercan create PC based Mifare  applications very quickly and there isno hardware orelectronics knowledge is required   ActiveX Library comes free and with unlimited user license with  Deluxe  versions of the  Development Evaluation Kits  For details about SDK  please referto SDK User Manual    document found at http   www sonmicro com    Mifare   Classic isa secure memory  1Kbyte  4KByte  chip card often called contactless  smart card  The reason it is called smartcard isbecause it hasincrement and decrement  functions designed for especially payment systems  Mifare   Classic family of tagsis being  used in RFID applications where very high security and fast data collection systems are  required  T
11. SM132 USB  13 56 MHz RFID Mifare   Read   Write  USB Module      li N    N MICRO             DATA SHEET      Complete Read Write module including antenna      Supports ISO 14443A  Mifare   Classic       Mifare Classic 4K   Mifare   Ultralight       USB Interface     USB Powered   No Extemal Power required      Fast data transfer  Contactless communication up to 106 KHz    Secure   Encrypted contactless communication      Upgradeable       dealfore money   secure accesand fast data collection applications       SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet       1     11    2  MIFARE   BRIEF TECHNICAL INFORMATION    3  COMMUNICATION PROTOCOLS    INTRODUCTION    EVALUATION KIT  SM1320 USB    3 1 UART   4  COMMANDS  amp  RESPONSES  4 1 RESET   4 2 READ HRMWARE VERSION  43 SELECT TAG   4 4 SEEK FOR TAG   45 AUTHENTICATE   4 6 READ BLOCK   4 7 READ VALUE BLOCK   48 WRITE BLOCK   49 WRITE VALUE BLOCK   4 10 WRITE 4 BYTE BLOCK   4 11 WRITE MASTER KEY    4 12 INC REMENT VALUE BLOCK    4 13 DEC REMENT VALUE BLOCK    4 14 SETANTENNA POWER    4 15 READ INPUT PORT    4 16 WRITE TO OUTPUT PORT    4 17 HALTTAG    4 18 SETBAUD RATE    4 19 SLEEP    5  ELECTRICAL  amp  PERFORMANCE SPECIHCATIONS    5 1 DC CHARACTERISTICS    SonMicro Electronics    10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25    26    27    27       SM 132USB   Datasheet 3       5 2 OPERATING TEMPERATURE 27  5 3 ABSOLUTE MAXIMUM RATINGS 27  5 4 PERFORMANCE SPEC IHCATIO NS 27  6  SALES A
12. a is successfully verified  then  the same data that was written is sent back in the response packet     Example Command   FF 00 06 8B 04 AA BB CC DD A3  Write 4 bytes data  AA BBCC DD  to page 4    Example Responses   FF 00 06 8B 04 AA BB CC DD       Write successful    FF 00 02 8B 46 D3  Write failed    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 18       4 11 WRITE MASTER KEY   This command writes the Key to the intemal EEPROM of the module  There are 16 key  sectors in the module  Each sectorcan hold a TypeA and a TypeB key  The sectors are  numbered from Oto 15  The keys cannot be read back aftera write  To check if the key  write was successful  execute an authenticate command using the key from EEPROM     Command        Command   0x8C    intemal EEPROM   1 Byte   Key sector number where the keys hasto be stored   Sector Number This can be 0x00 to OxOF   Total of 16 sectors   1 Byte   Key Type to e stored I the specified sector       Key          OxAA   Key is stored as TypeA  OxBB   Key is stored as TypeB    Key   6 Bytes   Six byte Key   MSB first                     Table 29   Write Master Key Command    Response   The following single byte response isreceived from the module        Data Length   0x02       Command  Response   0  8    1 Byte   Status  Eror Code       Satis  _Broncede 0x4C  L    Write Master key successful    Ox4E    N      Write Master key fail                Table 30  Response to Write Master Key Command    Example Command  
13. ck Number   1 Byte   Block Numberto be written  Data   16 Bytes  16 bytesof data to be written to the block   Table 20   Write Block Comma nd  Response   Success        Data Length   0x12       Command  Response   0x89    Block Number   1 Byte   Value Block number that has been written    16 Bytes  16 bytes of data that have been read backafterthe  write       Data                Table 21   Response to Write Block Command    Fail        Data Length   0x01       Command Response   0x89  1 Byte   ErorCode       0x55  U    Read after write failed      0x58  X    Unable to Read after write      Ox4E    N      No Tag present   0x46  F   Write Failed    Eror Code                Table 22   Response to Write Block Command     After a block is written  itis read back and verified if the write was successful  If the data read back does not  match the data written  the eror will be  U   For example  while writing to sector trailer to update Key A  the  value read back will not match the value written  Key A reads always 00 00 00 00 00 00  If the block that was  written is read protected  then read will fail and the erorcode will be  X   If the write is successful and the data  is successfully verified  then the same data that was written is sent back in the response packet     Example Command   FF 00 12 89      00 01 02 03 04 05 06 07 08 09      OB OC OD OE OF 1D  Write 16 bytes data   00 01 02 03 04 05 06 07 08 09 0A OB OC OD OE OF  to block 10    Example Responses     FF 00 12 89 OA 0
14. data comuption  This is calculated by  adding allthe bytes in the packet except the Header byte            Following isthe UART frame forthe response packets sent by 5  130 module in response  to the commands        Header Reserved Length Command Response CSUM  1 Byte 1 Byte 1 Byte 1 Byte N Bytes 1 Byte                               Table 3   UARTframe send by SM130 module    P    Header  This isa single byte that indicates      beginning of a frame  This byte will be  always OxFF   Reserved  This byte is reserved for future use and not implemented currently  It is 0  00  Length  This byte is used to indicate the length of the payload data    Command  This isthe command for which the response is being sent back  The host  can use this byte to verify that the received response is forthe command it sent   Response  This contains the result data if an operation was successful or the error  code if the operation was not successful  The status of the operation can be found by  the length of the data bytes  Forexample  if the data length is 16 when a read  command is executed it meansthat the operation was successful  If the data length  is 1  then it meansthat the read was not successful and the nature of the                be  found out by analyzing the Error code sent  which isthe single data byte   6  CSUM  This isthe checksum byte  This isthe sum of al bytesexcept the Headerbyte    PWN          SonMicro Electronics Revision A 7 May  2007       SM 132USB   Datasheet 9       4  
15. his family of tags has contactless communication speed up to 106 KHz and  uses very strong encryption techniques  It isimpossible to copy ormodify the content of  the Mifare   Classic family of tags without the correct key s  when it is protected  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    stic kers  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     1 1 EVALUATION KIT  SM1320 USB   SM 1320 is a professional evaluation kit for SM 132 USB modules  SM 1320 evaluation kit can  be used to develop yourapplication quickly orit can simply demonstrate main features   of the SM 132 USB module  SM 1320 can be also used as stand alone Mifare Programmer    Reader     Designers can develop or evaluate their own specific application with the kit  It isidealfor  any Mifare application such as Customer Loyalty  e purse applications that needsto be  connected to the PC with USB     SM 1320 Evaluation Kit comes with original SMRFID Mifa re amp  Software  USB Driver and SDK  tools    SMRFID Mifare   Software makes easy to start with SM 1320 evaluation ki
16. in its intemal EEPROM and aftera delay  of 500ms transmit the response using the new baud rate     Command        Command   0x94  1 Byte   Determines the new baud rate       0x00   9600bps  0  01   19200bps  0x02   38400bps  0x03   57600bps  0x04   115200bps    Baud Rate                Table 45   Set Baud Rate Command    Response        Data Length   0x02    Command  Response   0x94  1 Byte   Status   Eror Code       States Proc ode 0x4C  L    Change of Baud rate successful    Ox4E    N      Change of Baud rate failed                Table 46   Response to Set Baud Rate Command    Example Command   FF 00 02 94 02 98  Set new baud rate to 38400bps    FF 00 02 94 03 99  Set new baud rate to 57600bps    Example Responses   FF 00 02 94 4C E2  Baud rate changed successfully    FF 00 02 94 4E E4  Baud rate change operation failed    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet       4 19 SLEEP    This command should not be used with SM 132 USB modules otherwise SM 132 USB module    should be reset ed by hand to operate it again     This command puts SM132 USB in sleep mode to reduce power consumption     module switches off the RF field and entersa low power sleep mode  Only a hardware    reset can bring the module out of the sleep state                             Command    Command   0x96  Data   None  Table 47   Seep Command  Response    Data Length   0x02  Command  Response   0x96  EmorCode   0x00                Example Command   FF 00 01 96 97  Seep Comm
17. nad    Example Responses     FF 00 02 96 00 98  Seep OK    SonMicro Electronic s    Table 48   Response to Sleep Command    Revision A 7    May  2007    SM 132USB   Datasheet 27       5  ELECTRICAL  amp  PERFORMANCE SPECIHCATIONS    5 1 DC CHARACTERISTICS                                           Symbol Description Min Typ Ma Units Notes  x  VCC Supply Voltage 4 75 5 00 5 5 V  RFVCC RF Supply Voltage 45 5 5 5 V  lo Supply Current   180mA   Continuous Read Mode  Is Sleep Curent   30uA   Sleep Mode       Table 49   DC Chacteristics             5 2 OPERATING TEMPERATURE  Symbol Description Min Typ Max   Units Notes  TA Ambient Temperature  40   85       T Junction Temperature  40   100 aC                            Table 50   Operating Temperature    5 3 ABSOLUTE MAXIMUM RATINGS                      Symbol Description Min Typ Max   Units Notes  TSIG Storage Temperature  55   100      Higher storage temperatures will reduce data  retention time   TA Ambient Temperature  40   85 eC   VCC Supply Voltage  0 5   5 5 V   IMIO Maximum Current into  25   50 mA  any Port Pin   ESD Electro Ststic Discharge 2000     V Human Body Model ESD  Voltage                               Table 51  Absolute Maximum Ratings    5 4 PERFORMANCE SPECIHC ATIONS             Parameter Min Typ Max Units Notes  Read Distance   5 7 cm  Write Distance   5 7 cm                            Table 52   Performance Specifications    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 28       6  SALES
18. ne  Table 9   Seek ForTag Command  Response     When this command is executed and immediate response arrivesasin Table 16 to show  that Seek For Tag command isin progressorfailed        Data Length   0x02       Command Response   0x82    0x4C  L    Command in progress   0x55  U    Command in progress but RF Field is OFF       Enor Code                Table 10  Response to Seek For Tag Command    Assoon asa tag enters into the RF field it is selected and the response data length is6 or  9 bytesaccording to tag type  The first byte isthe command byte  0x82  the second isthe  Tag Type and the next 4 bytes  7 bytesare the tag serial number MSB first  The serial  number is 4 bytes for Mifare      and 4K tagsand 7 bytes for Mifare Ultralight ta gs        Data Length   0x06 or 0x09       Command  Response   0x82       1 Byte   0x01   Mifare Ultralight  Tag            0x02   Mifare Standard 1K  0x03   Mifare Classic 4K  OxFF   Unknown Tag type    Serial Number   4 Byte   7 Byte Serial Number  15 byte is the MSB                   Table 11  Response to Seek For Tag Command  Example Command   FF 00 01 82 83  Seek for Tag  Example Response   Response 1  FF 00 02 82 4C DO  Command isbeing executed    Module waits here fora tag to enterinto the RF Field     Response 2  FF 00 06 82 02 D4 5A 8D 55 9A  Mifare O 1K tag selected  Serial Number 558D5AD4    SonMicro Electronics Revision A 7 May  2007       SM132USB   Datasheet 12       4 5 AUTHENTICATE    Thiscommand authenticatesthe specified bl
19. ock with the specified Key type and Key  sequence     Command        Command   0x85    Block Number   1 Byte   Block number to be authenticated    1 Byte   Option byte that instructs the module which type of key to be  used for authentication                    Authenticate with Key type     OxBB  Authenticate with Key type B  Key Type   OxFF  Authenticate with Key type A and transport key FF FF FF FF FF FF    0x10 to Ox1F  Authenticate with Key type A using the key stored in the  SM 130 module s E2PROM  0 to 15    0x20 to Ox2F  Authentic ate with Key type B using the key stored in the  SM 130 module s E2PROM  0 to 15     Key   6 Bytes  Key to be used forauthentication                 Table 12   Authenticate Command    Response        Data Length   0x06       Command Response   0x85  1 Byte   Status                         Ox4C    L      Login Successful   Ox4E  N    No Tag present or Login Failed  0x55   U      Login Failed   0x45  E    Invalid key format in EZPROM    Status   Enor Code             Table 13   Response to Authenticate Command    Example Command   FF 00 03 85 01 FF 88  Authenticate Block 0x01 with transport key FF FF FF FF FF FF    FF 00 09 85 05 AA 1123 43 FC 97 CD 14  Authenticate Block 0x05 with key type A  and Key 11 23 43 FC 97 CD    FF 00 03 85 02 11 9B  Authenticate Block 0x02 with Key type A from the SM 132 USB s intemal EEPROM sector  number 0x01    FF 00 03 85 0223 AD  Authentic ate Block 0x02 with key type B from the SM132 USB s intemal EEPROM secto
20. odule can take place at 9600bps   19200bps  38400bps  57600bps or 115200bps N  8  1  Module communicates at  19200b psN 8 1 asdefault  Once the baud rate is changed using the Change baud  rate command  successful communication will only occur with the new baud rate     The host first sendsthe command and the module executesthe operation and replies  with a response to the command  The host can analyze the reply to check if the  operation was successful or if any eroroccurred during the operation     Following isthe UARTfra me forthe commandssent by the host        Header Reserved Length Command Data CSUM  1 Byte 1 Byte 1 Byte 1 Byte N Bytes 1 Byte                               Table 2   UARTframe send by Host    1  Header Thisisa single byte that indicates the beginning of a frame  This byte should  be always OxFF   2  Reserved  This byte is reserved for future use and not implemented curently  It hasto  be always 0x00   3  Length  This byte isused to indicate the length ofthe payload data  Thisincludesthe   Command and the Data bytes   Command  This byte is used to instruct the module on what operation to perform   Data  These are parameters necessary forthe module to execute the command  For   example  fora Read command  the data will be the block numberto be read  Fora   Write command  this will be the block numberand 16 bytesof data    6  CSUM  Thisisthe checksum byte  This byte is used on the host as well asthe module to  check the validity of the packet and to trap any 
21. pported by SM 132 USB module and the  corresponding code  Note that forusers who are using ActiveX library can skip this  section and investigate SDK UserManual document forthe software commands                                                                                   Code Command Description  0x80 Reset Resets the Module  0x81 Firmware Reads the Firmware Revision of the Module  0x82 Seek for Tag Continuously checks for presence of a tag  0x83 Select Tag Selectsa Tag  0x84 NA Not Implemented  0x85 Authenticate Authenticatesthe selected Block  0x86 Read Block Reads from the specified Block  0x87 Read Value Readsfrom a Value Block  0x88 NA Not Implemented  0x89 Write Block Writes the data to the specified block  Ox8A Write Value Formats and Writesa Value block  0x8B Write 4 Byte Block Writes 4 byte data to Mifare Ultra light block  Ox8C Write Key Writes the Key to the EEPROM of the MFRC530  Ox8D Increment Incrementsa value block  Ox8E Decrement Decrementsa value block  Ox8F NA Not Implemented  0x90 Antenna Power Switches ON or OFF the RF field  0x91 Read port Readsfrom the Input port  0x92 Write Port Writes to the Output port  0x93 Halt Halts the PICC  0x94 Set Baud Rate Sets the new baud rate  0x95 NA Not Implemented  0x96 Sleep This command puts SM 130 in sleep mode          Table 1  Serial Commands to control SM 132 USB module     SonMicro Electronics    Revision A 7    May  2007    SM 132USB   Datasheet 8       3 1 UART   The communication between the host and the m
22. put pins afterthe command execution          Status   Sito  Status of OUTPUTI  1  On  0   Off         Status of OUTPUT2  1   On  0   Off                Table 42   Response to Write to Output Port Command    Example Command   FF 00 02 92 00 94  Switch Off both outputs    FF 00 02 92 01 95  Switch On Outputl    FF 00 02 92 03 97  Switch On both outputs    Example Responses   FF 00 02 92 00 94  Both outputs switched Off    FF 00 02 92 01 95  OUTPUTI switched On    FF 00 02 92 03 97  Both outputs switched On    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 24       4 17 HALTTAG    This command executes a Mifare Halt command on the selected tag     Command        Command   0x93  Data   None                   Table 43   Select Command  Response        Data Length   0x02    Command  Response   0x93    Ox4C  L    PICC tag  is halted  0x55   U      PICC can not be halted due to RF Field is OFF          Eror Code                Table 44   Response to Select Command    Example Command   FF 00 01 93 94  Halt Tag    Example Response   FF 00 02 93 55 EA  PICC halted    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 25       4 18 SET BAUD RATE    This Command sets the UART baud rate of the module  Once it is set module will be able  to communicate with new baud rate even after POR  SM132 USB module operates at a  default baud rate of 19200bps when shipped from the factory  As soon as this command  is received  the module stores the new baud rate 
23. r  number 0x03    Example Response   FF 00 02 85 4C D3  Login Successful    FF 00 02 85 4E D5  No Tag present or Login Failed    SonMicro Electronics Revision A 7 May  2007       SM 132USB   Datasheet 13       4 6 READ BLOCK    This command reads 16 bytes from the specified block  Before executing this command   the particular block should be authenticated  If not authenticated  this command will  fail                       Command   Command   0x86  Block Number   1 Byte   Block Numberto be read  Table 14  Read Block Command  Response   Success        Data Length   0x12       Command  Response   0x86    Block Number   1 Byte   Block numberthat has been read    16 Bytes   16 bytes of data that have been read from the  specified block       Data                Table 15   Response to Read Block Command                         Fail   Data Length   0x02  Command Response   0x86  1 Byte   ErorCode  Broncede Ox4E    N      No Tag present  0x46  F   Read Failed  Table 16   Response to Read Block Command  Example Command     FF 00 02 86 06 8E  Read 16 bytes from Block 0x06    Example Responses   FF 00 12 86 06 00 01 02 03 04 05 06 07 08 09      OB OC OD OE OF 16  Read successful    FF 00 02 86 46 CE  Read Failed    Note  When reading a Mifare ULtag  the first 4 bytesare from the block number specified   The next 12 bytes are from the consecutive blocks     SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet    14       4 7 READ VALUE BLOCK    This command readsa value
24. t  Software  provides Mifare   Programmer  Writer   Mifare Reader   features as well as setting  configuration parameters of SM132USB modules     SDK includes ActiveX Component  example Visual Basic project and SDK user Manual  document     Fora very quick and painless start we recommend you to buy a low cost SM1013  Evaluation kit     SonMicro Electronics Revision A 7 May  2007       SM 132USB   Datasheet 5       For latest Documentation  amp  Software   http   www sonmicro com 1356 d1356 php    For Online Store   http   www sonmicro com shop shop3 php    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 6       2  MIFARE   BRIEF TEC HNIC AL INFORMATION    For Mifare   tag memory organization and communication principles please refer to  SM 130 User Manual document  For deeper details refer to m001051 pdf document   Standard Card IC MF1IC S50  of Philips Semiconductor  Mentioned document gives  functional specification of the IC used in Mifare   1K tags  Same communication  principles are valid for Mifare   4K  MF1 IC S70  tags  Documents can be downloaded  at http    www sonmicro com 1356 d1356 php       Communication principles are greatly simplified by SM130 module asfollows     Select is required again if tag had left  the RF field orhalted         Authentication required if sectoror  accesscondition is changing    AUTHENTICATE    No need to authenticate again if  sector is not changing provided that  the block  has same acces  conditions with previous
25. to Write Value Block Command    Example Command     FF 00 06 8A 08 10 27 00 00 CF  Write value 10000 0x00002710  to block 8    Example Responses     FF 00 06 8A 08 10 27 00 00 CF    Write Value successful    FF 00 02 8A 4E DA  No Tag present    SonMicro Electronics    Revision A 7 May  2007             SM 132USB   Datasheet 17       4 10 WRITE 4 BYTE BLOCK    This command writes 4 bytes to the specified Mifare block  This command has been  provided to write to Mifare Ultralight ta gs                          Command   Command   0x8B  Block Number   1 Byte   Block Numberto be written  Data   4 Bytes  4 bytes of data to be written to the block   Table 26   Write 4 Byte Block Command  Response   Success        Data Length   0x06       Command  Response   0  8      Block Number   1 Byte   Value Block number that has been written    4 Bytes  4 bytes of data that have been read back after the  write       Data                Table 27   Response to Write 4 Byte Block Command    Fail        Data Length   0x01       Command  Response   0x8B  1 Byte   ErorCode       0x55         Read after write failed      0x58  X    Unable to Read after write      Ox4E    N      No Tag present   0x46    F      Write Failed    Eror Code                Table 28   Response to Write 4 Byte Block Command    After a block is written  it is read back and verified if the write was successful  If the data read back does not  match the data written  the error will be  U   If the write is successful and the dat
26. ype and the next 4 bytes  7 bytesare the  tag serial number MSB first  The serial numberis 4 bytesfor Mifare 1K and 4Ktagsand 7  bytes for Mifare Ultra light tags        Data Length   0x06 or 0x09       Command  Response   0x83       1 Byte   0x01   Mifare Ultralight  Tag            002   Mifare Standard 1K  0x03   Mifare Classic 4K  OxFF   Unknown Tag type    Serial Number   4 Byte   7 Byte Serial Number  15 byte is the MSB                   Table 7   Response to Select Command    If no tag was present  the data length isset to 1 and the                  retumed is           If RF Field is OFF  the data length is set to 1 and the Enorcode retumed is  U        Data Length   0x02       Command Response   0x83    Ox4E            No Tag present   0x55  U    Accessfailed due to RF Field is OFF       Enor Code                Table 8   Response to Select Command    Example Command   FF 00 01 83 84  Select Tag    Example Response   FF 00 06 83 01 39 OD 4C D2 EE  Mifare O 1K tag selected  Serial Number 390D4C D2    FF 00 02 83 4E D3  No Tag present    SonMicro Electronics Revision A 7 May  2007    SM 132USB   Datasheet 11       4 4 SEEK FOR TAG    This command seeksand selectsa Tag assoon asthe tag presentsin the field  On  receiving the command  the module executesan Anti collision and Select command  sequences  Assoon asthe tag entersinto the RF field  then module selectsthe tag and  sendsthe serial number of the tag asresponse                    Command   Command   0x82  Data   No
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Manual do Usuário Climatizador de Ar  Le bulletin du Sycodec  E-811 E-811 E-811  GolfSense User Guide 1-29-2013  SU P E R SA T  着信お知らせメールの機能 着信  NRL  テルモ血管造影キットA(ソリューショントレーN)【2009年10月改訂】  User manual - KJB Security Products  POSICIONADORES PAN & TILT    Copyright © All rights reserved. 
   Failed to retrieve file