UIC681 Contactless Smart Card Reader Module -RS232 Interface- Programmer’s Manual Document #: PM063-U Revision 4 Oct.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 NOTICE The issuer of this manual has made every effort to provide accurate information contained in this manual. The issuer shall not be held liable for any technical and editorial omissions or errors made herein; nor for incidental consequential damages resulting from the furnishing, performance or use of this material. This document contains proprietary information protected by copyright. All rights are reserved.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 PREFACE This manual provides detailed information relating to the overall operational, electrical, mechanical, environmental and functional aspects of the UIC681. This document should be read and understood prior to initial operation of the product. For ease of installation and programming use, we have addressed everything from its attractive features to its various configurations.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 Table of Contents Section1 : General Description................................................................. 1-1 1.1 Features............................................................................................................. 1-1 1.2 Application ........................................................................................................ 1-1 1.3 Part Number Description ...................................................................
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 72 (3732H) or 92 (3932H) – Reader Model Number Report................................................ 4-2 73 (3733H) or 93 (3933H) – Reader PCB Number Report .................................................. 4-2 77 (3737H) or 97 (3937H) – Reader Configuration Data Report ......................................... 4-3 78 (3738H) or 98 (3938H) – Reader Customer Configuration Data Report.........................
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 z (7AH) – I/O to contactless card for block data exchange ................................................ 4-15 4.4 Responses to the Host....................................................................................4-16 Section5 : Application Example................................................................
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 Section1: General Description This section presents general information about the basic characters of the UIC681. 1.1 Features The UIC681 provides the following features: 1 Small footprint PCB size: 50 L* 40 W (mm) without antenna board 2 Support ISO 14443 type A & B standard Support American Express® ExpressPay, MasterCard® PayPassTM, Visa® MSD 3 applications.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 1.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 Section2: Configurations This section shows the dimensions and accessories of the UIC681. 2.1 Dimensions of UIC681 PCBA Figure 2-1 Dimensions of UIC681 2.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 2.3 Accessories of UIC681 The following accessories should be supplied along with UIC681. Make sure all the following accessories are contained in your package. 1. Interface cable - DB9 male connector 1.5M (or USB type A plug, optional) 2. Programmer’s manual or Simple manual 3.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 Section3: Technical Specifications 3.1 Functional Specifications • • • • • • • • • • • • • • • • • Contactless communication at 13.56MHz Proximity operation distance of up to 100mm LED indication or 2 x 16 LCD display (support PayPass application) Audio buzzer USB 1.1 compliant interface to support USB HID (optional) Support RS232 data output baud rate up to 115.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 3.3 Electrical Specifications • Power Required 5VDC • Power Consumption 100mA in idle mode; 250mA in operating mode • Communication Standard RS232 signal level Compatible with USB 1.1 specification (optional) TTL 5V signal level (optional) • Communication Signal (RS232) Logic 1 = -3 volts to –15 volts or TTL level 5 volts Logic 0 = +3 volts to +15 volts or TTL level 0 volt 3.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 3.5 Pin Assignment Table 3-1. Interface J3 Pin Assignment DB9 5 Signal GND 2 RxD 3 TxD Direction Å Serial data to host Æ Serial data from host PCB-J1 1 2 3 4 Serial Pass-thru or USB data Serial Pass-thru or USB data Shield 5 6 7 Signal GND TXD1 RXD1 VCC TXD2 (or USB D-) RxD2 (or USB D+) Shield Table 3-2.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 3.6 Communication • RS232 Interface Data Output Synchronization The interface receives and transmits serial asynchronous data at voltage levels compatible with the RS232 specification. Baud Rate 9600 BPS default (optional: 1200/2400/4800/9600/19200/38400/56000/115.2K BPS) • RS232 Interface Pass Through Baud Rate 9600 BPS default (optional: 1200/2400/4800/9600/19200/38400 BPS) • USB Interface Compatible with USB specification 1.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 where STX=02Hex and ETX=03Hex. Table 3-6. Example for Protocol 1 Host Command Reader Response 02h 50h 03h 51h 02h 5Eh 03h 5Fh Comment Ready to read Reader ACK Protocol 2 In Protocol 2, all messages are preceded by the ASCII character , followed by a one byte reader address, two bytes character count and terminated with a one byte . The is an XOR of the characters (8 bits) in the entire message, including .
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 Card output format (Self-ARM mode) Protocol Preamble Envelope Tk1 prefix Tk1 Data Tk1 suffix code Separator Tk2 prefix Tk2 Data Tk2 suffix Protocol Separator Tk3 prefix Tk3 Data Tk3 suffix Envelope Postamble code The preamble/postamble is only available in the card data output format under Self-ARM mode. Read data for command (Host-Polled mode) The reader replies the host command such as “Transmit Track Data” so called “Host-Polled”.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 Section4: Commands and Responses 4.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 4.2 Reader Command Description • % (25H) – Retransmit COMMENT Retransmits the last message sent by the reader. NOTE • Command is turned off in self-arm mode. 70 (3730H) or 90 (3930H) – Serial Number Report COMMENT Transmit serial number information. The serial number will be stored in the EEPROM and stored as an eight-digit ASCII character array.
UIC681 Programmer’s Manual • UDN PM063-U Rev. 4 77 (3737H) or 97 (3937H) – Reader Configuration Data Report COMMENT Transmit the reader configuration data. The data from the reader configuration area will be transmitted to the host as hex values with the command “77” [offset] [num]. The reader will return any or all the bytes from the reader configuration. The offset is an optional byte and the available value is from 0x00 to 0x3F.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 byte and the available value is from 0x00 to 0x7F. The num is an optional byte specifying the number of configuration bytes to be returned to the host. If the offset and length bytes are omitted then the current configuration starting at offset 0 is transmitted.
UIC681 Programmer’s Manual • • • L (4CH) – LED ON l (6CH) – LED OFF ( (28H) – LED Flash COMMENT 1.Turn first/second LED ON/OFF/Flash, as specified. 2.Transmits an acknowledgement "^" (5EH). NOTE • UDN PM063-U Rev. 4 1.These commands are disabled in the self-arm mode. 2.These commands only use in LED model. # (23H) – Configuration Request COMMENT Return standard one byte or extended 16-byte string with configuration. NOTE Using the configuration setting command to select standard or extended format.
UIC681 Programmer’s Manual • UDN PM063-U Rev. 4 (12H) – RS232 pass through enable COMMENT Enable RS232 data Pass Through (PT) function temporarily. FORMAT The command characters are followed by an ASCII ‘P’ to enable the RS232 pass through function. It is only valid in RS232 model. NOTE Once the pass through mode is enabled, UIC681 passes all data between COM1 and COM2 and do nothing.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 • p (70H) – Arm to Read (Used for Manufacturing Test Only) COMMENT 1.Clear read data buffers. 2.Transmit command acknowledgement (“^” 5EH). 3.Wait for card read. 4.If the card media is detected a "(" (28H) byte is sent, when media detect goes inactive a “)” (29H) byte is sent. This is similar to the 'P' command but send ‘(‘ at start of magnetic stripe card data and ‘)’ at end. • (1BH) – Abort Arm to Read COMMENT 1.Clear read data buffers. 2.
UIC681 Programmer’s Manual UDN PM063-U Rev.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 4.3 Contactless Card Operation Command Description • G (47H) – ISO14443 type protocol select COMMENT Select ISO 14443 type A or B which manual command operated. G[Type, 1 byte] [Type] 0 (30h, ASCII Hex) - ISO14443 A 4 (30h, ASCII Hex) - ISO14443 B The default contactless smart card type is type A after power up. RESPONSE ‘^’ – Acknowledgement ‘!’ – Bad parameter • O (4FH) – Antenna power ON COMMENT Apply power on the antenna.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 The request command code is ISO14443 type A. It can be either 26 (REQA) or 52 (WUPA) NOTE If the [Req command] field does not appear in the request command, reader will set the request mode to WUPA automatically.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 RESPONSE If the command executed successfully, the reader returns ‘^’ + SAK( 1 byte) or ‘^’ + MBLI/CID(1 byte) ‘*’ – No card response or No power on the antenna • g (67H) – Mifare classical card authentication (Support Mifare classical card only) COMMENT Mifare classical card authentication. g[Block number, 3 bytes][Key number, 1 byte][Key type] Authenticate the card with the key stored in EEPROM.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 [Block number] There are two types of block format 000 to 255 (30h30h30h to 32h35h35h, ASCII Hex) or B<00><00> to B<00> (42h00h00h to 42h00hFFh, ASCII Hex) RESPONSE block data (16 bytes, Binary Hex) if command executed successfully ‘*’ – No card response or No power on the antenna • i (69H) – Mifare classical card write block (Support Mifare classical card only) COMMENT Mifare classical card write command.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 [Block number] There are two types of block number format 000 to 255 (30h30h30h to 32h35h35h, ASCII Hex) or B<00><00> to B<00> (42h00h00h to 42h00hFFh, ASCII Hex) [Operation mode] 0 (30h, ASCII Hex) – Decrement 1 (31h, ASCII Hex) – Increment 2 (32h, ASCII Hex) – Restore 3 (33h, ASCII Hex) – Decrement and transfer to the different block. 4 (34h, ASCII Hex) – Create Mifare Value in the block.
UIC681 Programmer’s Manual • UDN PM063-U Rev. 4 J (4AH) – Activate PICC cpu card COMMENT Activate PICC cpu card command. The Antenna POWER ON command has to be sent first. RESPONSE ATS (type A) or PUPI (type B) if command executed successfully ‘*’ – No card response or No power on the antenna • j (6AH) – Load Mifare key (Support Mifare classical card only) COMMENT Save up to 5 key sets for Mifare classical card application NOTE For security reason, there is no way to retrieve the key back.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 If unsuccessful, reader transmits '*'. APDU Command Structure CLA INS P1 P2 P3 Lc or Le Data (If Lc present) APDU Response Structure Data (optional) • SW1 SW2 z (7AH) – I/O to contactless card for block data exchange COMMENT The command is used to pass a block data to a card. z[CRC mode, 1 bytes][Wait time, 4 bytes][Block data, 384 bytes max.] [CRC mode] 0 (30h, ASCII Hex) – Block data contain 2 bytes CRC and enable CRC transmission.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 4.4 Responses to the Host ^ (5EH) * (2AH) + (2BH) ? (3FH) ! (21H) : (3AH) ~ (7Eh) Acknowledge. Acknowledges correct completion of most recent command. Command was received correctly. But could not be completed. No Magnetic Stripe Card Data. Command was received correctly. Communication Error. Command was not received correctly. Invalid Command or bad parameter. Power On report. Unavailable. Hardware not available to complete this request.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 Section5: Application Example The default setting of UIC681 reader, Self-ARM mode, is mainly to simplify the process for the host that doesn’t need to communicate to each other. In this situation, the UIC681 acts like a general magnetic stripe card reader whenever it senses the card, it will try to decode the card data automatically and send the decoded data to the host if the process is successful. Otherwise, no information is sent out.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 Host Polled Application Example A. UIC681 setting changed In this example, it assumes UIC681 is in factory default and the user would like to change it to protocol USI2 and Self-ARM disable. Initial State 1. Send the configuration command to set UIC681 to protocol 2. 2. Send the configuration command to set UIC681 to Self-ARM disable. Done This process should be done only once to set the UIC681 to the proper state.
UIC681 Programmer’s Manual UDN PM063-U Rev. 4 B. Operation Example In this example, it assumes UIC681 is in protocol USI2 and Self-ARM disable.