Home

OMT-680B User`s Manual - e

image

Contents

1. Host sends 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 10 17 1SO14443 with SAM Module OMT 680B user s manual Value 4 bytes increment value LSB first Module return success 0x02 Checksum Module return failure 0x02 Checksum 4 2 11 Purse decrements Host sends 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 return success 0x02 Checksum Module return failure 0x02 Checksum 4 2 12 Purse copy Host sends Key ID 1 byte Key identification Source 1 byte block number to copy 0 to 0x3F for S50 0 to OxFF for S70 Target 1 byte copy the purse to this block source and target need in sector Key 6 bytes the key of the card Module return success 0x02 Checksum Module return failure 0x02 Checksum 11 17 1SO14443 with SAM Module OMT 680B user s manual 4 2 13 Mifare card halt Host sends 0x02 Checksum Module return success 0x02 Checksum Module return failure 0x02 Checksum 4 2 14 Download card key to module Host sends Key Index 1 byte Key Index of store in the module Key 6 bytes the key of the card to store in module Module return success moz Module return failure no 4 2 15 EEPRO
2. 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 0x1F If BIT1 is 0 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 0x2D first and then the 6 bytes key in the command are left unused 4 4 Example of commands 4 4 1 How to use For example Read block 1 0A210001AABBCCDDEEFF2A OA package length from OA to FF are total 0x0A bytes 21 instruction of read 16 17 00 Authenticate KEY A using the key in package The key is A ABBCCDDEEFF 01 block number to read AABBCCDDEEFF key of the sector of the card 2A 0A 21 00 01 AA BB CC DD EE FF 2A in sample program the function will calculate it see chapter 4 5 4 4 2 UART commands Read block 1 0A210001FFFFFFFFFFFF2A Read block 255 S70 0A2100FFFFFFFFFFFFFFD4 Write block 1 14220001 FFFFFFFFFFFF 1234567890ABCDEF 1234567890ABCDEF39 Request card WUPA 03200023 Halt card 021210 4 4 3 IIC commands Read block 1 0A210001FFFFFFFFFFFF2A Read block 255 S70 0A2100FFFFFFFFFFFFFFD4 Write block 1 1A220001 FFFFFFFFFFFF 1 234567890ABCDEF 1234567890ABCDEF39 Request card WUPA 03200023 Halt card 021210 17 17
3. then don t acknowledge IIC bus until ends with the card communication DATA OUTPUT BY TRANSMITTER DATA OUTPUT SY RECEIVER SOL FROM MASTER clock pulse for scknow agement mace Acknowledge on the FC bus 3 2 2 6 Device addressing The modules require an 8 bit device address word 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 OxA0 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 LSA pina slave sddress Mac eos The first byte after the START procedure 4 17 1SO14443 with SAM Module OMT 680B user s manual 3 2 2 7 Write Operations The host device sends a command to module via write operation 8 w T H s A 1 T A DEVICE T T ADDRESS E Len Command Code Data 0 DATA T F SDA LINE M LAA A A A A 8 s c c C C C B BWK K K K K 3 2 2 8 Read Operations The host device using read operation to gets the result S T A 5 A E T A DEVICE A O T ADDRESS P SDA LINE T M LAA A A A 3 S sic Len Command Code Status c Data 0 8 Data n N B BWK K K K K A c K 3 2 3 Data transaction The module is a slave device of the IIC bus then the host need to write the command package t
4. 10mS If Time is 0Ox0A then the beep time is 100mS Checksum Module return success 0x02 Checksum TAT 1SO14443 with SAM Module OMT 680B user s manual Module return failure 0x02 Checksum 4 2 4 Request cards Host sends 0x03 Mode Mode 1 byte 0 WUPA request all all other values REQA Request not halted only Checksum Module return success Data 4 7 or 10 bytes card serial number 2 bytes ATQA 1 byte SAK Checksum Module return failure 0x02 Checksum 4 2 5 Data block read Host sends Key ID 1 byte Key identification BITO 0 Key A BITO 1 Key B BIT1 0 using the key follow BIT1 1 using the downloaded by command 0x2D IMPORTANT please read Chapter 4 3 about Key identification Block 1 byte Block number to read 0 to 0x3F for S50 0 to OxFF for S70 Key 6 bytes the key of the card Module return success 0x12 Data Data 16 bytes card data Checksum Module return failure 0x02 Checksum 4 2 6 Sector 4 blocks Read 8 17 1SO14443 with SAM Module OMT 680B user s manual Host sends p eon ee e Key ID 1 byte Key identification Sector 1 byte Sector number to read 0 to OxOF for S50 0 to 0x3F for S70 Key 6 bytes the key of the card Module return success Data 64 bytes card data Module return failure 0x02 Checksum Remark for S50 and sector number less than 32 of S70 this command is called read sector it will read the sector trailer For sector
5. 1SO14443 with SAM Module OMT 680B user s manual OMT 680B User s Manual 1 Features Supported card types Auto detecting card EEPROM Power Supply Interface level Max Power Consumption Operate Distance Dimension Weight ISP Operating temperature Storage temperature Wire connections 2 Dimensions and Pins 2 1 Photo Revision 2 10 Mifare 1K 4K UltraLight ISO14443 4 TYPE A amp B ISO7816 Supported default OFF 512 bytes DC 4 5V to 5 5V 3 3V TTL level 5V tolerance or RS232 level 150mA up to 70mm depending on tag 50 70 mm About 100g Supported 25 to 85 C 40 to 125 C wire fix by screwdriver 1 17 1SO14443 with SAM Module OMT 680B user s manual 2 2 Pin Configurations and Pinouts re e o e SUS EENEN Card in out indicate 0 card in 1 card out TXD SDA Input Output UARTTXD IC SDA EE RXD SCL UART RXD IIC SCL 2 3 Models e OMT 680BI IIC interface e OMT 680BST UART interface TTL level e OMT 680BSR RS232 UART interface RS232 level 3 Protocols 3 1 UART protocol 3 1 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 19200 bps Data 8 bits Stop 1 bit Parity None Flow control None 3 1 2 Package format Length 1 byte number of bytes from Command length to the last byte of Data Command 1 byte command Data d
6. 32 to 39 of S70 this command is called read 4 blocks Because the sectors are include 16 blocks 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 require The Sector in package is read start block number shift right 2 bits 4 2 7 Data block Write Host sends 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 return success 0x02 Checksum Module return failure 0x02 Checksum 4 2 8 Initializing a purse block Host sends 9 17 1SO14443 with SAM Module OMT 680B user s manual 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 return success 0x02 Checksum Module return failure 0x02 Checksum 4 2 9 Purse read Host sends Key ID 1 byte Key identification Block 1 byte block number of the value to read 0 to 0x3F for S50 0 to OxFF for S70 Key 6 bytes the key of the card Module return success Data 4 bytes value data LSB first Module return failure 0x02 Checksum Remark module will read the data in block and check if it is a purse format If yes return 4 bytes value data if no return failure 4 2 10 Purse increments
7. M read Host sends Address 2 bytes read start address Bytes 1 byte number of bytes to read max 16 bytes Module return success Data data read Module return failu 12 17 1SO14443 with SAM Module OMT 680B user s manual 4 2 16 EEPROM write Host sends ed e a e Address 2 bytes read start address Bytes 1 byte number of bytes to read max 16 bytes Data Bytes data to write Module return success 0x02 Data Module return failure 0x02 Checksum 4 2 17 ISO14443 4 card reset Checksum Host sends 0x02 Checksum Module return success Info card reset information length determined by card Checksum Module return failure 0x02 Checksum 66 39 Remark length is mean depending on the actual card response Remark this command must be used after detect card see chapter 4 2 3 4 2 18 Send APDU to card APDU APDU to send Host sends Checksum Module return success Response card response Checksum 13 17 1SO14443 with SAM Module OMT 680B user s manual Module return failure 0x02 Checksum 4 2 19 UltraLight card read Host sends 0x05 Block Block byte read start block number Module return success 0x12 Data Data 16 bytes card data of 4 blocks Module return failure 0x02 Checksum 4 2 20 UltraLight card write Checksum Checksum Host sends Block 1 byte write block number Data 4 bytes data to write Module return suc
8. ata length depending on the command type it may be empty Checksum Exclusive OR XOR result from Command length byte to the last byte of data 2 17 1SO14443 with SAM Module OMT 680B user s manual 3 1 3 Data return format of UART Success Failure Remark Command is invert command if the command is 0x12 Command is OxED 3 2 IIC protocol 3 2 1 IIC address of module is 0xA0 3 2 2 IIC Device Operation 3 2 2 1 Clock and data transactions 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 Data transfer on the I C bus 3 2 2 2 Start condition A high to low transition of SDA with SCL high is a start condition which must precede any other command 3 2 2 3 Stop condition A low to high transition of SDA with SCL high is a stop condition 3 17 1SO14443 with SAM Module OMT 680B user s manual paet l i Sl So x Puce y So Ss p START condition STOP canditian lt wncea2 START and STOP conditions 3 2 2 4 Acknowledge 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 3 2 2 5 Bus state When the module has received command
9. cess 0x12 Checksum Module return failure 0x02 Checksum 4 2 21 Set card operate model Host sends 0x03 Model Model byte 0 ISO14443 type A 1 ISO14443 type B Checksum Module return success O12 14 17 1SO14443 with SAM Module OMT 680B user s manual Module return failure 0x02 Ox8F Checksum 4 2 22 ISO14443 4 TYPE B card reset Host sends 0x03 Model Model 1 byte 0 WUPB request all all other values ATQB request not halted card only Checksum Module return success 0x60 Info Checksum Info 12 bytes card reset information Module return failure 0x02 Ox9F Checksum 4 2 23 ISO014443 4 TYPE B card halt Host sends 0x03 0x62 PUPI Checksum PUPI 4 bytes PUPI of the card to halt Module return success 0x02 0x62 Checksum Module return failure 0x02 0x9D Checksum 4 2 24 Reset SAM Host sends 0x02 0x51 Checksum Module success return Info card reset information length determined by card Checksum Module failure return 15 17 1SO14443 with SAM Module OMT 680B user s manual 4 2 25 Send APDU to SAM APDU Checksum APDU APDU to send Host sends Module success return Response SAM response Module failure return 0x02 Checksum 4 3 About KEY Identification There is a byte of KEY identification in some commands This byte will identify the way to get the card key Key Identification Fa ea irene ra aD ae BITO 0 KEY A
10. o module After writing host need to poll the status of the module while it is working If the module answered to a read operation then the last command execution were finished then the host could read the result and or data from the module The read and write operation see chapter 3 2 2 7 and 3 2 2 8 3 2 4 Data format of package Length Checksum Length 1 byte number of bytes from length to the last byte of Data Command 1byte command Data data length depending on the command type maybe empty Checksum 1byte exclusive OR XOR result from Length byte to the last byte of data 3 2 5 Data return format of IIC protocol Success Failure 5 17 1SO14443 with SAM Module OMT 680B user s manual 4 Description of commands 4 1 Overview of commands 6 17 1SO14443 with SAM Module OMT 680B user s manual 4 2 List of commands 4 2 1 Module working mode set Host sends 0x03 Mode Mode 1 byte Checksum Antenna status BITO 0 OFF BIT0 1 ON Auto request BIT1 0 OFF BIT1 1 ON Module return success 0x02 0x11 Checksum Module return failure 0x02 OxEE Checksum Remark the module will NOT SAVE the settings All settings will be lost on next power up 4 2 2 LED set Host sends 0x03 0x13 State Checksum State 1 byte 0 OFF 1 ON Module return success 0x02 Checksum Module return failure 0x02 OxEC Checksum 4 2 3 Buzzer set Host sends 0x03 Time Time 1 byte unit is

Download Pdf Manuals

image

Related Search

Related Contents

  Manual de usuario - Planilla tipo F  サイドマウントナンバーブラケットKIT 08y〜 Softail/07y〜 Dyna用 (H5164)  Magnavox MWD200F Owner's Manual    Sitecom Wireless Network ADSL2+ Modem Router w/splitter 54g + USB dongle  Partenariats public-privé : mode d`emploi juridique et approche  主な故障状況と対処方法(取扱説明書より抜粋)pdf  Manual de instrucciones GLX 72D LS1    

Copyright © All rights reserved.
Failed to retrieve file