UIC682 Contactless Smart Card Reader Module -RS232/TTL Interface- Programmer’s Manual Revision 1 July.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 This manual provides detailed information relating to the overall operational, electrical, mechanical, environmental and functional aspects of the UIC682. 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 Table of Contents Section1 : General Description................................................................. 1-1 1.1 Features............................................................................................................. 1-1 1.2 Application ........................................................................................................ 1-1 1.3 Part Number Description ...................................................................
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 73 (3733H) or 93 (3933H) – Reader PCB Number Report .................................................. 4-2 77 (3737H) or 97 (3937H) – Reader Configuration Data Report ......................................... 4-2 78 (3738H) or 98 (3938H) – Reader Customer Configuration Data Report......................... 4-3 79 (3739H) or 99 (3939H) – Reader Manufacturing Configuration Data Report ................. 4-3 9 (39H) – Version Report.................................
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 4.4 Responses to the Host....................................................................................4-16 Section5 : Application Example................................................................
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 Section1: General Description This section presents general information about the basic characters of the UIC682. 1.1 Features The UIC682 provides the following features: 1 Small footprint PCB size: 87 L* 20 W (mm) without antenna board 2 Support ISO 14443 type A & B standard Support American Express® ExpressPay, MasterCard® PayPassTM, Visa® MSD 3 applications.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 1.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 Section2: Configurations This section shows the dimensions and accessories of the UIC682. 2.1 Dimensions of UIC682 PCBA Figure 2-1 Dimensions of UIC682 2.2 Dimensions of Remote Antenna PCBA Figure 2-2 Dimensions of Remote Antenna PCBA 2.3 Accessories of UIC682 The following accessories should be supplied along with UIC682. Make sure all the following accessories are contained in your package. 1. Interface cable - DB9 male connector 1.5M 2.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 Section3: Technical Specifications 3.1 Functional Specifications • • • • • • • • • • • • • • • Contactless communication at 13.56MHz Proximity operation distance of up to 100mm LED indication (support PayPass application) Audio buzzer Support RS232 data output baud rate up to 115.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 3.3 Electrical Specifications • Power Required 5VDC • Power Consumption 350mA in operating mode • Communication Standard RS232 signal level 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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 5 6 7 Serial Pass-thru Serial Pass-thru Shield Signal GND TXD1 RXD1 VCC TXD2 RxD2 Shield Table 3-2.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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) • F2F TTL Interface (Optional) Each track has the clock and data.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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 . Format: <00Hex> Table 3-7.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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”. The requested message is encapsulated in the protocol envelope.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 Section4: Commands and Responses 4.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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. The num is an optional byte specifying the number of configuration bytes to be returned.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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. Example: BE 4C 03 03 00 00 00 61 30 35 30 35 30 36 82 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3A 36 38 30 2D 52 48 00 • 9 (39H) – Version Report COMMENT Transmit version information.
UIC682 Programmer’s Manual • • 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 PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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, UIC682 passes all data between COM1 and COM2 and do nothing. Power cycling (if the default of PT is disable) or send the string “PasS” brings UIC682 back to normal operation.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.Abort Arm to Read Command. 3.Transmit command acknowledge (“^” 5EH).
UIC682 Programmer’s Manual UDN PM070-U Rev.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 (WUPA) NOTE If the [Req command] field does not appear in the request command, reader will set the request mode to WUPA automatically. b[AFI, 1 byte][Parameter, 1 byte] - If reader is set to ISO14443 type B [AFI](optional) - Binary hex (00h to FFh), please refer to ISO 14443-3 for the detailed information [Parameter](optional) - Binary hex (00h to FFh), please refer to 14443 for the detailed information.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 ‘^’ + 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. or g[Block number, 3 bytes] ][Key type] [Key, 12 bytes] Authenticate the card with the key in [key field].
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 Section5: Application Example The default setting of UIC682 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 UIC682 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.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 Host Polled Application Example A. UIC682 setting changed In this example, it assumes UIC682 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 UIC682 to protocol 2. 2. Send the configuration command to set UIC682 to Self-ARM disable. Done This process should be done only once to set the UIC682 to the proper state.
UIC682 Programmer’s Manual UDN PM070-U Rev. 1 B. Operation Example In this example, it assumes UIC682 is in protocol USI2 and Self-ARM disable.