Advanced Card Systems ACR1281S Users Manual

ACR1281S
ACR1281S
Specification
V1.01
Advanced Card Systems Ltd. Page 1 of 56
ACR1281S
Rev
Number
V1.00 2010-08-19 Nathan Li/ Kit Au
V1.01 2010-12-15 Vincent Zhong/Jessy Wei Modify Peripherals Control command
Date Author Notes
Preliminary specification for ACR12
81S
Advanced Card Systems Ltd. Page 2 of 56
ACR1281S
INDEX
Index ....................................................................................................................................................3
Introduction..........................................................................................................................................5
features.................................................................................................................................................5
Terms ...................................................................................................................................................6
Quick Overview of the ACR1281S Reader.........................................................................................7
1. ACR1281S (with Contact Card Option)......................................................................................7
2. ACR1281S (without Contact Card Option).................................................................................7
3. ACR1281S ICC Interface............................................................................................................8
4. ACR1281S PICC Interface..........................................................................................................8
System description.............................................................................................................................10
1. The Reader Block Diagram .......................................................................................................10
2. Communication Flow Chart of ACR1281S...............................................................................11
Hardware Description........................................................................................................................12
3. USB Interface ............................................................................................................................12
4. LED Indicator ............................................................................................................................12
5. Buzzer........................................................................................................................................13
6. ICC Interface (Contact Smart Card)..........................................................................................13
7. PICC Interface (Contactless Smart Card)..................................................................................13
Serial Communication Protocol (CCID-liked FRAME Format).......................................................14
8. Bulk-OUT Command ................................................................................................................15
8.1 HOST_to_RDR_IccPowerOn..............................................................................................15
8.2 HOST_to_RDR_IccPowerOff.............................................................................................15
8.3 HOST_to_RDR_XfrBlock ..................................................................................................16
8.4 HOST_to_RDR_GetSlotStatus............................................................................................16
8.5 HOST_to_RDR_SetParameters...........................................................................................17
8.6 HOST_to_RDR_Escape ......................................................................................................17
9. Bulk-IN Response......................................................................................................................19
9.1 RDR_to_HOST_DataBlock ................................................................................................19
9.2 RDR_to_HOST_SlotStatus .................................................................................................20
9.3 RDR_to_HOST_Parameters................................................................................................20
9.4 RDR_to_HOST_Escape ......................................................................................................21
10. RDR_to_PC_NotifySlotChange Messages .............................................................................21
11. Error Handling.........................................................................................................................23
12. Protocol Flow Examples..........................................................................................................24
Peripherals Control ............................................................................................................................26
1. Set Serial Communication Mode...............................................................................................26
2. Get Firmware Version ...............................................................................................................26
3. Enter Firmware Upgrade Mode.................................................................................................27
4. LED Control ..............................................................................................................................27
5. Buzzer Control...........................................................................................................................28
6. Default LED and Buzzer State ..................................................................................................28
7. Automatic PICC Polling............................................................................................................29
8. PICC Polling for specific PICC Types ......................................................................................29
9. Auto PPS for the PICC Interface (Communication Speed Change) .........................................30
10. Antenna Field ON/OFF for the PICC Interface.......................................................................30
Advanced Card Systems Ltd. Page 3 of 56
ACR1281S
11. Exclusive Mode Configure......................................................................................................30
12. Request Command Test...........................................................................................................31
13. Continuous Wake Up Command Sending Test for the PICC Interface ..................................32
14. Read and Update the RC531 Register for the PICC Interface ................................................32
15. Go into Contactless EMV Terminal Loop...............................................................................32
16. Go into Contact EMV Terminal Loop.....................................................................................32
17. Read and Initial Card Insert Counter.......................................................................................32
18. Initial RC531 Setting For PICC...............................................................................................33
PICC Interface Description................................................................................................................34
1. ATR Generation ........................................................................................................................34
PICC APDU Commands for General Purposes.................................................................................36
1. Get Data.....................................................................................................................................36
PICC APDU Commands (T=CL Emulation) for MIFare 1K/4K MEMORY Cards ........................37
2.1 Load Authentication Keys .......................................................................................................37
2.2.1 Authentication for MIFARE 1K/4K.....................................................................................39
2.3 Read Binary Blocks .................................................................................................................42
2.4 Update Binary Blocks..............................................................................................................43
2.5 Value Block Related Commands.............................................................................................44
2.5.1 Value Block Operation .........................................................................................................44
2.5.2 Read Value Block.................................................................................................................45
2.5.3 Restore Value Block.............................................................................................................46
Basic Program Flow for Contactless Applications............................................................................47
1. How to access PCSC Compliant Tags (ISO14443-4)? .............................................................48
2. How to access DESFIRE Tags (ISO14443-4)?.........................................................................51
Basic Program Flow for Contact Applications.................................................................................53
1. How to access ACOS3 ICC Cards (ISO7816)?.........................................................................53
Annex A.............................................................................................................................................55
Technical Specification .....................................................................................................................56
Advanced Card Systems Ltd. Page 4 of 56
ACR1281S
INTRODUCTION
The ACR1281S is a dual-interface reader(IFD and PCD) that supports both contact and contactless (PICC) smart cards.
FEATURES
One standard ICC landing type card acceptor.
ISO 7816 Parts 1-4 Compliant for Contact Smart Card Interface.
Support contact memory cards.
ISO 14443 Parts 1-4 Compliant for Contactless Smart Card Interface.
A built-in antenna for PICC contactless access applications.
The ACR1281 supports the following Tag Types:
o MIFARE Classic. E.g. MIFARE 1K, 4K, MINI and Ultralight. o ISO14443-4 Type A and B.
T=CL emulation for MIFare 1K/4K PICCs. Multi-Blocks Transfer Mode is provided for efficient PICC access.
High Speed (424 kbps) Communication for PICCs. #Maximum 848 kbps.
Intelligent Support for Hybrid Cards and Combi Cards.
Energy saving modes for turning off the antenna field whenever the PICC is inactive, or no
PICC is found. It prevents the PICC from exposing to the field all the time.
User-Controllable Peripherals. E.g. LED, Buzzer.
CCID-liked Frame Format.
Serial Interface up to 500kbps.
Device Firmware Upgradeable through the USB Interface.
Advanced Card Systems Ltd. Page 5 of 56
ACR1281S
TERMS
IFD: Interface Device. A terminal, communication device, or machine to which the integrated circuit(s) card is electrically connected during operation.
PCD: Proximity Coupling Device. ISO 14443 Contactless Reader.
ICC: Integrated Circuit(s) Card. Refer to a plastic card containing an integrated circuit,
which is compatible with ISO 7816.
PICC: Proximity Integrated Circuit(s) Card. Contactless Cards operating without mechanical contact to the IFD, using magnetic coupling.
Combi-Card: A smart card that supports both ICC and PICC Interfaces. But only one interface can be operating at any one time.
Hybrid-Card: A smart card that consists of both ICC and PICC cards. Both ICC and PICC cards can be operating at the same time.
USB: Universal Serial Bus, a common device interface used in PC environment.
CCID: The specifications for USB devices that interface with ICC or act as interfaces with
ICC/PICC.
PCSC: Personal Computer Smart Card, a specification that can facilitate the interoperability necessary to allow ICC/PICC technology to be effectively utilized in the PC environment.
ISO 7816: A standard for contact smart cards (ICC).
T=0: Character-oriented asynchronous half duplex transmission protocol for ICCs (ISO
7816).
T=1: Block-oriented asynchronous half duplex transmission protocol for ICCs (ISO 7816).
ISO 14443: A standard for contactless smart cards (PICC)
T=CL: Block-oriented asynchronous half duplex transmission protocol for PICCs (ISO
14443).
APDU: Application Protocol Data Unit.
ATR: Answer-to-Reset. The transmission sent by an ICC to the reader (IFD) in response to
a RESET condition.
ATS: Answer-to-Select. The transmission sent by a PICC Type A to the reader (PCD) in response to a SELECT condition.
ATQB: Answer-to-Request. The transmission sent by a PICC Type B to the reader (PCD) in response to a REQUEST condition.
Card Insertion Event: Either an ICC or a PICC is just appeared to the reader.
Card Removal Event: Either an ICC or a PICC is removed from the reader.
NAK: Negative Acknowledge, only used to get the last response or slot change message
report in ACR1281S.
XOR : Exclusive OR
RDR: ACR1281S.
HOST: Host Controller.
HOST_to_RDR: Host Controller -> ACR1281S
RDR_to_HOST: ACR1281S -> Host Controlle
Advanced Card Systems Ltd. Page 6 of 56
ACR1281S
QUICK OVERVIEW OF THE ACR1281S READER
1. ACR1281S (with Contact Card Option)
2. ACR1281S (without Contact Card Option)
Advanced Card Systems Ltd. Page 7 of 56
ACR1281S
3. ACR1281S ICC Interface
4. ACR1281S PICC Interface
Advanced Card Systems Ltd. Page 8 of 56
ACR1281S
Recommended ICAO E-Passport Placement
ICAO E-Passport
In case the E-Passport is not accessible, try to place the E-Passport above the reader by 5~10mm.
5~10mm
Advanced Card Systems Ltd. Page 9 of 56
ACR1281S
SYSTEM DESCRIPTION
1. The Reader Block Diagram
LED & Buzzer
Built-In
Antenna
PICC
Contactless Card
RC531
NFC Interface
Contactless Interface Carrier = 13.56MHz
Chip
SPI
ISO7816 Interface
Host Controller
Contact Card
AT90SCR100H
ICC
Serial
USB
Firmware
Upgrade
PC
Operation
System
Advanced Card Systems Ltd. Page 10 of 56
ACR1281S
2. Communication Flow Chart of ACR1281S
Host
ACR1281S
ACR128U PCSC
ICC Interface
ISO 7816 Part1-4
ICC Interface
ACR128U PCSC
PICC Interface
Serial
Interface
(CCID
liked
Format)
PCSC Layer
T=CL &T=1
Emulation
ICC And
PICC
ICC
(Landing Type
Acceptor)
ISO 14443 Part1-4
PICC Interface
Physical
Interface
PICC
(Built-In Antenna )
Advanced Card Systems Ltd. Page 11 of 56
ACR1281S
HARDWARE DESCRIPTION
3. USB Interface
The ACR1281S is connected to a Host through the RS232 Serial Interface; the max speed is up to
500kbps.
Pin Signal Function 1 VCC 2 RXD 3 TXD 4 GND
+5V power supply for the reader. The signal from the reader to the host. The signal from the host to the reader. Reference voltage level for power supply
4. LED Indicator
The LEDs are used for showing the state of the contact and contactless interfaces.The Red LED is used for showing PICC status and Green LED for ICC.
Reader States Red LED
1. No PICC Found or PICC present but not activated.
PICC Indicator
A single pulse per
~ 5 seconds
Green LED
ICC Indicator
2. PICC is present and activated ON
3. PICC is operating Blinking
4. ICC is present and activated ON
5. ICC is absent or not activated OFF
6. ICC is operating Blinking
Advanced Card Systems Ltd. Page 12 of 56
ACR1281S
5. Buzzer
A monotone buzzer is used to show the “Card Insertion” and “Card Removal” events.
Events Buzzer
1. The reader powered up and initialization
Beep
success.
2. Card Insertion Event (ICC or PICC) Beep
3. Card Removal Event (ICC or PICC) Beep
6. ICC Interface (Contact Smart Card)
A landing type Smart Card Acceptor is used for providing reliable operations. The minimum life cycle of the acceptor is about 300K times of card insertion and removal.
7. PICC Interface (Contactless Smart Card)
A built-in antenna is used for communication between the PCD and PICC.
Advanced Card Systems Ltd. Page 13 of 56
ACR1281S
SERIAL COMMUNICATION PROTOCOL (CCID-LIKED FRAME FORMAT)
Communication setting: 9600 bps(Default), 19200 bps, 38400 bps, 57600 bps and 115200 bps,128000bps, 250000bps, 500000bps. Byte format: 8-N-1.
The communication protocol between the Host and ACR1281S is very similar to the CCID protocol.
Command Frame Format
STX
(0x02)
Bulk-OUT Header APDU Command
Or
Checksum ETX
(0x03)
Parameters
1 Byte 10 Bytes M Bytes
1 Byte 1 Byte
(If applicable)
NOTE: Checksum = XOR {Bulk-OUT Header, APDU Command or Parameters}
Status Frame Format
STX
(0x02)
Status Checksun ETX
(0x03)
1 Byte 1 Byte 1 Byte 1 Byte
NOTE: Checksum = Status
Response Frame Format
STX
(0x02)
Bulk-IN Header APDU Response
Or
Checksum ETX
(0x03)
abData
1 Byte 10 Bytes N Bytes
1 Byte 1 Byte
(If applicable)
NOTE: Checksum = XOR {Bulk-IN Header, APDU Response or abData}
Advanced Card Systems Ltd. Page 14 of 56
ACR1281S
8. Bulk-OUT Command
8.1 HOST_to_RDR_IccPowerOn
This command is used to activate the ICC and PICC . The ATR will be returned if available in
response “RDR_to_HOST_DataBlock” Format (See 2.1).
Command Frame Format
STX
(0x02)
(HOST_to_RDR_IccPowerOn)
1 Byte 10 Bytes 0 Byte 1 Byte 1 Byte
HOST_to_RDR_IccPowerOn Format Offset Field Size Value Description 0 bMessageType 1 62h 1 dwLength
<LSB .. MSB> 5 bSlot 1 00h,01h 00h forPICC interface, 01h for ICC 6 bSeq 1 00h-FFh Sequence number for command 7 bPowerSelect 1 00h, 01h,
8 abRFU 2 Reserved for Future Use
Note: The ICC interface must be activated before access contact cards while PICC interface is
optional. Example: Power on PICC slot Command: 02 62 00 00 00 00 00 00 00 00 00 62 03
ACK: 02 00 00 03 Response: 02 80 10 00 00 00 00 00 00 81 00 3B 8B 80 01 4A 43 4F 50 33 31 33 36 47 44 54 4C
2A 03
Bulk-OUT Header
4 00000000h Message-specific data length
02h, 03h
Parameters Checksum ETX
(0x03)
Voltage that is applied to the ICC 00h – Automatic Voltage Selection 01h – 5.0 volts 02h – 3.0 volts 03h – 1.8 volts
8.2 HOST_to_RDR_IccPowerOff
This command is used to deactivate the ICC. For PICC, it does nothing.
Command Frame Format
STX
(0x02)
(HOST_to_RDR_IccPowerOff)
Bulk-OUT Header
Parameters Checksum ETX
(0x03)
1 Byte 10 Bytes 0 Byte 1 Byte 1 Byte
HOST_to_RDR_IccPowerOff Format Offset Field Size Value Description 0 bMessageType 1 63h 1 dwLength
4 00000000h Message-specific data length
<LSB .. MSB> 5 bSlot 1 00h,01h 00h forPICC interface, 01h for ICC 6 bSeq 1 00-FFh Sequence number for command 7 abRFU 3 Reserved for Future Use
Advanced Card Systems Ltd. Page 15 of 56
ACR1281S
Example: Power off PICC slot Command: 02 63 00 00 00 00 00 00 00 00 00 63 03
ACK: 02 00 00 03
Response: 02 81 00 00 00 00 00 00 00 81 00 00 03
8.3 HOST_to_RDR_XfrBlock
This command is used to exchange APDUs between the Host and ACR1281S.
Command Frame Format
STX
(0x02)
Bulk-OUT Header
(HOST_to_RDR_XfrBlock)
APDU Commands Checksum ETX
(0x03)
1 Byte 10 Bytes M Bytes 1 Byte 1 Byte
HOST_to_RDR_XfrBlock Format Offset Field Size Value Description 0 bMessageType 1 6Fh 1 dwLength
4 M Message-specific data length
<LSB .. MSB> 5 bSlot 1 00h,01h 00h forPICC interface, 01h for ICC 6 bSeq 1 00-FFh Sequence number for command 7 bBWI 1 00-FFh Used to extend the Block Waiting
Timeout. 8 wLevelParameter 2 0000h 10 abData Byte
Data sent to the reader.
array Example: Read 256 bytes from PICC slot Command: 02 6F 05 00 00 00 00 00 00 00 00 80 B2 00 00 00 58 03
ACK: 02 00 00 03 Response: 02 80 02 01 00 00 00 00 00 81 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10
11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F 80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F 90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF 00 90 00 92 03
8.4 HOST_to_RDR_GetSlotStatus
This command is used to get the status of ICC, PICC slots. Command Frame Format
STX
(0x02)
Bulk-OUT Header
(HOST_to_RDR_XfrBlock)
Parameters Checksum ETX
(0x03)
1 Byte 10 Bytes 0 Byte 1 Byte 1 Byte
HOST_to_RDR_GetSlotStatus Format
Advanced Card Systems Ltd. Page 16 of 56
ACR1281S
Offset Field Size Value Description 0 bMessageType 1 65h 1 dwLength
4 00000000h Message-specific data length
<LSB .. MSB> 5 bSlot 1 00h,01h 00h forPICC interface, 01h for ICC 6 bSeq 1 00-FFh Sequence number for command 7 abRFU 3 Reserved for Future Use
8.5 HOST_to_RDR_SetParameters
This command is used to change the parameters for contact interface to implement PPS.
Command Frame Format
STX
(0x02)
Bulk-OUT Header
(HOST_to_RDR_XfrBlock)
Parameters Checksum ETX
(0x03)
1 Byte 10 Bytes 5 or 7 bytes 1 Byte 1 Byte
HOST_to_RDR_SetParameters Format Offset Field Size Value Description 0 bMessageType 1 61h 1 dwLength
<LSB .. MSB>
4 00000005h,
00000007h
Message-specific data length
5 bSlot 1 00h,01h 00h forPICC interface, 01h for ICC 6 bSeq 1 00-FFh 00h for protocol T=0, 01h for T=1. 7 bProtocolNum 1 00h,01h Used to extend the Block Waiting
Timeout. 8 abRFU 2 Reserved for Future Use 10 abProtocolDataStructure Byte
Protocol Data Structure
array
Remarks:
For protocol T = 0, dwLength = 00000005h; for protocol T = 1, dwLength = 00000007h. More
detail about the abProtocolDataStructure field, please refer to CCID specification.
8.6 HOST_to_RDR_Escape
This command is used to peripherals control such as LED & Buzzer control, Get firmware
Version, set the serial communication mode and so on.
Command Frame Format
STX
(0x02)
Bulk-OUT Header
(HOST_to_RDR_XfrBlock)
Commands Checksum ETX
(0x03)
1 Byte 10 Bytes M bytes 1 Byte 1 Byte
HOST_to_RDR_Escape Format Offset Field Size Value Description 0 bMessageType 1 6Bh 1 dwLength
4 M Message-specific data length
<LSB .. MSB>
Advanced Card Systems Ltd. Page 17 of 56
ACR1281S
5 bSlot 1 00h,01h 00h for PICC interface, 01h for ICC 6 bSeq 1 00-FFh 00h for protocol T=0, 01h for T=1. 7 abRFU 3 Reserved for Future Use 10 abData Byte
Data block sent to the reader.
array
Example for buzzer on 50ms : Command: 02 6B 06 00 00 00 01 00 00 00 00 E0 00 00 28 01 05 A0 03
ACK: 02 00 00 03
Response: 02 83 06 00 00 00 01 00 02 00 00 E1 00 00 00 01 05 63 03
Advanced Card Systems Ltd. Page 18 of 56
Loading...
+ 39 hidden pages