FEITIAN R502 User manual

R502 Card Reader
USER’S MANUAL
Made by: Feitian Technologies
Mar, 2016

Revision Sheet
Date
Revision
Description
Feb, 2013
V1.0
Release the first version
May, 2013
V1.1
Add description when insert card, the USB port
need provided at least 120mA current
October 17, 2016
V1.2
Publish new R502(R502B), update user manual
Dec, 2016
V1.3
Using new template
Dec, 2017
V1.4
Update contents and integrated all tools in one
manual

Software Developer’s Agreement
All Products of Feitian Technologies Co., Ltd. (Feitian) including, but not limited to, evaluation copies,
diskettes, CD-ROMs, hardware and documentation, and all future orders, are subject to the terms of this
Agreement. If you do not agree with the terms herein, please return the evaluation package to us,
postage and insurance prepaid, within seven days of their receipt, and we will reimburse you the cost of
the Product, less freight and reasonable handling charges.
1. Allowable Use –You may merge and link the Software with other programs for the sole purpose of
protecting those programs in accordance with the usage described in the Developer’s Guide. You
may make archival copies of the Software.
2. Prohibited Use –The Software or hardware or any other part of the Product may not be copied,
reengineered, disassembled, decompiled, revised, enhanced or otherwise modified, except as
specifically allowed in item 1. You may not reverse engineer the Software or any part of the product
or attempt to discover the Software’s source code. You may not use the magnetic or optical media
included with the Product for the purposes of transferring or storing data that was not either an original
part of the Product, or a Feitian provided enhancement or upgrade to the Product.
3. Warranty –Feitian warrants that the hardware and Software storage media are substantially free from
significant defects of workmanship or materials for a time period of twelve (12) months from the date
of delivery of the Product to you.
4. Breach of Warranty –In the event of breach of this warranty, Feitian’s sole obligation is to replace or
repair, at the discretion of Feitian, any Product free of charge. Any replaced Product becomes the
property of Feitian.
Warranty claims must be made in writing to Feitian during the warranty period and within fourteen (14)
days after the observation of the defect. All warranty claims must be accompanied by evidence of the
defect that is deemed satisfactory by Feitian. Any Products that you return to Feitian, or a Feitian
authorized distributor, must be sent with freight and insurance prepaid.
EXCEPT AS STATED ABOVE, THERE IS NO OTHER WARRANTY OR REPRESENTATION OF
THE PRODUCT, EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
5. Limitation of Feitian’s Liability –Feitian’s entire liability to you or any other party for any cause
whatsoever, whether in contract or in tort, including negligence, shall not exceed the price you paid
for the unit of the Product that caused the damages or are the subject of, or indirectly related to the
cause of action. In no event shall Feitian be liable for any damages caused by your failure to meet
your obligations, nor for any loss of data, profit or savings, or any other consequential and incidental
damages, even if Feitian has been advised of the possibility of damages, or for any claim by you based
on any third-party claim.

6. Termination –This Agreement shall terminate if you fail to comply with the terms herein. Items 2,
3, 4 and 5 shall survive any termination of this Agreement.

USER'S MANUAL
TABLE OF CONTENTS Page #
GENERAL INFORMATION......................................................................................................1-1
1.1 Product Introduction..............................................................................................................1-1
1.2 Acronyms and Abbreviations................................................................................................1-1
1.3 Keywords and Features..........................................................................................................1-1
1.4 Applications.............................................................................................................................1-2
1.5 Security feature.......................................................................................................................1-2
1.6 Extension and maintenance...................................................................................................1-2
1.7 Reliability ................................................................................................................................1-2
SPECIFICATION........................................................................................................................2-1
2.1 Technical Parameter Table....................................................................................................2-3
2.2 Key Application......................................................................................................................2-5
2.2 Product photo..........................................................................................................................2-6
HARDWARE CONFIGURATION.............................................................................................3-1
3.1 Operating Environment.........................................................................................................3-1
3.2 Hardware Operating Environment ......................................................................................3-1
3.3 Software Environment...........................................................................................................3-1
3.4 Hardware Configuration .......................................................................................................3-1
R502 CARD READER FIRMWARE UPDATE TOOL.............................................................4-1
4.1 Introduction of Update tool...................................................................................................4-1
4.2 The operation of Update tool...................................................................................................4-1
4.3 Errors and solutions.................................................................................................................4-3
R502 CARD READER UID TOOL.............................................................................................5-4
5.1 Introduction of UID Tool.........................................................................................................5-4
5.2 The operation of UID tool........................................................................................................5-5
R502 CARD READER DEMO TOOL........................................................................................6-6
6.1 Introduction of Demo Tool ......................................................................................................6-6
6.2 Select Device...................................................................................................................................6-7
6.3 Connect...........................................................................................................................................6-7
6.4 Beep Option....................................................................................................................................6-7
6.5 Basic Operation of MIFARE........................................................................................................6-8
6.6 Output Field...................................................................................................................................6-8

DRIVER .......................................................................................................................................7-9
OEM ITEMS..............................................................................................................................8-10
FAQ..............................................................................................................................................9-1
Appendix Abbreviation ..............................................................................................................10-2

1.0 GENERAL INFORMATION

GENERAL INFORMATION
1.1 Product Introduction
R502 is a dual-interface smart card reader developed by Feitian Technologies. It is based on CCID driver.
It supports not only contact cards compliant with ISO 7816 but also contactless cards compliant with ISO
14443 and contactless cards following Mifare standard. It also provides SIM card slots for many kinds of
smart card applications. Moreover R502 comes with the SAM slot suitable for GSM 11.11 cards.
R502 is a terminal interface device for smart card applications and system integrations. With support for
smart cards using different interfaces, R502 can be widely used in industries or applications requiring
electronic payment and authentication, especially suitable for the high security fields. It is an optimal
solution for authentication, e-commerce, financial organizations, access control etc.
1.2 Acronyms and Abbreviations
USB –Universal Serial Bus
CCID –(Chip Card Interface Device) Integrated Circuit(s) Card Interface Devices Specification
PCSC –(Short for "Personal Computer/Smart Card") is a specification for smart-card integration
into computing environments.
1.3 Keywords and Features
Keywords: Smart Card Reader, CCID, USB, ISO 7816, ISO 14443, Type A, Type B, Felica(need OEM),
Mifare, NFC, T0, T1, Full speed USB device, R502
Features:
1. Support USB 2.0 interface
2. Power supply by USB, the usb interface must be provided 120mA current when insert card
3. The maximum current less than 100mA (no smartcard insert)
4. Accordance with CCID standard to do develop
5. Contact card:
a) Support 1x full size card
b) Support T0 and T1, in accordance with ISO 7816
c) The card clock frequency 4MHz - 12MHz
d) Support Class A, B, C, AB, BC, ABC
e) Smart card communication speed: 10753bps –625kbps(when card supported)
f) Card slot: ISO/IEC standard using 8 contacts, 300,000 plug time
g) Support 2x GSM11.11 standard SIM card

6. Contactless card:
a) Build-in antenna
b) Accordance with ISO/IEC 14443 (A and B) standard
c) Support Mifare S50/S70/Ultralight C cards
d) Operating distance (0-30mm), Mifare card(0-45mm), it depends on cards
e) Card clock Frequency: 13.56MHz
f) Smart card communication speed: By default(106kbps,212kbps,424kbps) and 848kbps is
optional, need OEM
7. Open UID(User ID) function
8. Support upgrade firmware (encrypted)
9. OS:
a) Windows 2000/XP/2003/Vista/2008/7/8
b) Linux Kernel 2.6+ (FC14 X64,ubuntu9.10,ubuntu10.04,ubuntu11.10,openSUSE11.3
X64)
c) Mac OS X
d) Android(OTG)
1.4 Applications
R502 is high speed smartcard reader product, it can using financial systems, e-commerce, e-government,
e-banking, digital signatures, authentication, network access control, online games, recharge payment,
ticketing system, parking and access control, public transportation system.
1.5 Security feature
1)firmware cannot be read out. Anti-reverse analysis
2)Short circuit protection and overcurrent protection
3)Do not contain any users’ sensitive data in product, such as password.
4)PCB board has a 5mm distance with reader shell.
1.6 Extension and maintenance
1)Product can be extended and disassembled.
2)Firmware can be extended, customized and updated.
1.7 Reliability
1)300,000 times plug/unplug. The period of hardware usable is at least 5 years.
2)Frequently read/write 200 times will not lead the system down or error.
3)Continuously using 48 hours will not lead error occurrence rate exceed 3‰

2.0 SPECIFICATION

SPECIFICATION
General Parameters:
Contact card support:
ISO-7816 Class A, B, C ( 5V, 3V,1.8V) Standard
Smart Card Clock Frequency: 4MHz-12MHz
Smart Card Interface Speed: 10753~625kbps(when supported by card)
Support ISO 7816 standard, T0, T1, CLASSB, CLASSC, CLASSBC
ISO 7816-3 ID-1 (full-size) and GSM 11.11
Contactless support:
Build-in antenna
Smart Card Clock Frequency: 13.56MHz
Smart Card Interface Speed : 106kbps,212kbps,424kbps, 848kbps(optional)
Support ISO 14443 Type A and Type B, Mifare© Protocol, Felica® protocol(Need do
OEM)
Communication interface:
Communication for PC: USB 1.1/2.0/3.0 full speed(12Mbps)
Power supply mode:
USB DC 5V
Physical Security
Short circuit and thermal protection/over-voltage protection
High security level chipset
Electrostatic prevention
Firmware security
Firmware encryption mechanism
Firmware upgradability in encryption
Firmware cannot be read out. Anti-reverse analysis
Open UID (User ID control) Function

Support firmware upgrade in encryption
The unique device ID
Based on CCID standard, PC/SC compatible reader
Driverless – Plug in and Play
Support Android device, need OTG cable
Card slot apply landing contact technology
Warranty
Meantime Between Failure(MTBF):500,000 hours
Two year manufacturer’s warranty

2.1 Technical Parameter Table
Technical Specification
Basic
Parameter
Product Name
R502(B version)
Casing Number
C9(dual interface)
C10(Contactless only)
Host Interface
USB 2.0 CCID
Transmission
Speed
12Mbps(USB 2.0 Full Speed)
Power to Smart
Card
60mA
Reader Current
USB connection without any card: 170mA
USB connection with contact card: 200mA
USB connection with contactless + contact card: 230mA
Contact
Supported Card Types: 1.8V, 3V and 5V
N/A
Smart Card Clock Frequency: 4MHz-
12MHz
N/A
Smart Card Interface Speed:
10753~625kbps(when supported by
card)
N/A
ISO/IEC7816, T=0 and T=1 protocol,
Class A, B, C cards
N/A
ISO 7816-3 ID-1 (full-size) and GSM
11.11
N/A
Contactless
Build-in antenna
Smart Card Clock Frequency: 13.56MHz
Smart Card Interface Speed : 106kbps,212kbps,424kbps, 848kbps(optional)
Support ISO 14443 Type A and Type B, Mifare© Protocol, Felica®
protocol(Need do OEM)
Custom Items
OEM logo, packaging, color and firmware
Support OS
Win2000+/Linux/Mac OS X/UNIX/Android(OTG)
Certificate
CE/FCC/RoHS/EMV Level 1/LTIC/BSMI/UL(unfinished)/RED(unfinished)
Physical
Parameter
Material
ABS+PC
Weight
128g
80g
Status
Indicator
Blue and Red
Connector
Cable
1.5m
Contact
principle
Landing contact technology
N/A
Durability
300,000 insertions
N/A
Color
Black

Dimension
100*65*10.5(mm)
120*80*25.6(mm)
Work
Environme
nt
Power supply
USB port 5V DC
Working
current
< 50mA without card plugged
Working
Temperature
0°C ~60 °C
Storage
Temperature
~20°C ~85°C
Humidity
≤90%(non-condensed)
Standard
Card Reader
Standard
ISO-7816 Class A, B, C ( 5V, 3V,1.8V) Standard
ISO 14443 Standard, Felica Standard, Mifare © Standard
EMV Level 1 Standard
PC/SC Standard
USB 2.0 Standard
CCID Standard
API Standard
PC/SC Lite/WINSCARD API
Features
Plug and Play
Readily Compliant
Suits Any Application
Open UID(user ID) function
300,000 times plug/unplug of card slot
Meantime Between Failure (MTBF) - 500,000 hours
Security
Physical
Security
Short circuit and thermal protection/over-voltage protection
High security level chipset
electrostatic prevention
Firmware
Security
Firmware encryption mechanism
Firmware upgradability in encryption
Firmware cannot be read out. Anti-reverse analysis
Warranty
Meantime
Between
Failure(MTBF)
500,000 hours
Warranty
Two year manufacturer’s warranty.

2.2 Key Application
R502 Card
Reader
E-
Governm
ent E-
Banking
E-
Shopping
E-
Commerc
e
E-
Payment
Online
Gaming
Network
Access
Control
Digital
Signature,
Identifica
tion

2.2 Product photo
R501 reader is a kind of high-speed dual interface smart card reader, which is used for PC environment or
relevant smart card environment. Product shell is using C9 by default, which is dual interface, if you want
contactless only, you can choose C10. Or if you have idea and want make your own casing, Feitian also
provide mold service for customer. To suit some other requirements, like ATM machine or other industry
which already had mold, we also offer hardware module for embedded.
C9, ID-1 Size contact card with contactless card support, plus 2xSIM:
C10 contactless only:

3.0 HARDWARE CONFIGURATION

HARDWARE CONFIGURATION
3.1 Operating Environment
R502 can be using in various operating environments, including hardware and software operating
environments, thus expanding the scope of use of reader R502 Card Reader.
3.2 Hardware Operating Environment
R502 Card Reader providing user with USB, it helps to make connection between PC, Android device
and other equipment more convenient. The card can be operate by local PC or Android device via R502
Card Reader.
Using it for android, customer will need to buy OTG cable (USB Type A Female to MicroUSB (OTG))
3.3 Software Environment
R502 Card Reader has rich software environment. It supports Android (Has not be tasted on all Android
versions or smartphones), Windows 2003Server, Windows XP (SP2, SP3), Windows 2008Server,
Windows Vista, Windows 7, Windows CE, Linux, Mac OS X 10.6 (X64)/Mac OS X 10.6 (X32)/Mac OS
X 10.5 (X32) (These systems need to install the driver first), etc.
If you are using Embedded Linux system, you will need cross-build CCID, libusb, pcsclite into your
target platform. Go to SDK and check Cross_build_Driver_To_Embedded_Linux.txt, any questions, you
$R502_SDK_Latest\Driver\Cross_build_Driver_To_Embedded_Linux.txt
3.4 Hardware Configuration
In order to help user to understand interaction between reader, device and card, the R502 Card Reader
hardware has various status of prompt information. Three LED status indicator lights is provided for the
user: red, blue, green, each of them representing work and charging indicator light, card detection
indicator light and data communication indicator. For details, please refer to the following table
We provided three indicators (Red/Blue/Green) to inform the status of reader. It included below status of
Reader (USB data transfer/contact card/contactless card working status)

2xSAM:
The SAM card does not support hot-plug, so you will need to insert SIM card first before do
operation.
1xIC:
Standard ID-1 size chip card
1xContactless:
Standard contactless antenna, support 13.56MHz contactless card
*The R502 does not support using contactless and contact at same time, since dual interface card (contact and
contactless) will had issue. The design is when insert contact card, then the contactless will block. So if
your request is to support both, please contact world.support@ftsafe.com to ask OEM firmware.
Name of indicator light
Color
Prompt state
USB work indicator
Red
Flashing
USB Enumeration process
Turn on
USB is established
Irregular flashing
USB exchange data
Contact card data
communication
indicator
Blue
Turn off
No card
Turn on
Card insert
Flashing
Exchange data between Card and reader
Contactless card data
communication
indicator
Green
Turn off
No card
Turn on
Card insert
Flashing
Exchange data between Card and reader
Note: When the program upgraded, the indicator light (except for the charge) is flashing.

4.0 R502 CARD READER RELATED TOOL
Table of contents
Other FEITIAN Card Reader manuals