Beruflich Dokumente
Kultur Dokumente
Index
Introduction to RFID Systems
Typical contactless Reader Architecture
NXP Reader Library
NXP Generic Reader Library.
NXP Export Controlled Reader Library.
NXP NFC Reader Library.
COMPANY CONFIDENTIAL
Application defines
the system
features
Firmware
Drives the communication
between the reader and the
transponder
Reader
Composed of several blocks
that facilitate the
communication with the
transponder
RFID TAG
(Transponder)
Holds the information and
usually is a passive device that
responds to the instructions
sent by the reader
COMPANY CONFIDENTIAL
MCU
FW
SAM
C
Reader IC
Generic
embedded
Controller
Ex: CLRC663,
PN512,
Contactless
object
NXP offers a broad portfolio of MCUs, reader ICs and SAM devices as
well as NFC tags.
COMPANY CONFIDENTIAL
NXP Export Controlled Reader Library: It provides full support for MIFARE Plus
and MIFARE DESFire cards and enables the usage of Secure Application Module
NXP NFC Reader Library: It allows contactless readers to communicate with other
NFC devices making use of the Peer to Peer mode according to LLCP and SNEP
protocols, which guarantees interoperability with other P2P implementations.
COMPANY CONFIDENTIAL
COMPANY CONFIDENTIAL
COMPANY CONFIDENTIAL
COMPANY CONFIDENTIAL 10
COMPANY CONFIDENTIAL 11
COMPANY CONFIDENTIAL 12
COMPANY CONFIDENTIAL 13
COMPANY CONFIDENTIAL 14
PAL
(Context)
HAL
(Context)
Library
Initialization
order
BAL
(Context)
COMPANY CONFIDENTIAL 15
AL
PAL
HAL
BAL
COMPANY CONFIDENTIAL 16
AL
PAL
HAL
BAL
COMPANY CONFIDENTIAL 17
AL
PAL
HAL
BAL
COMPANY CONFIDENTIAL 18
AL
PAL
HAL
BAL
[In]
[In]
[In]
[In]
[In]
[In]
[In]
[In]
COMPANY CONFIDENTIAL 19
AL
PAL
HAL
BAL
COMPANY CONFIDENTIAL 20
AL
PAL
HAL
BAL
[In]
[In]
[In]
COMPANY CONFIDENTIAL 21
AL
PAL
HAL
BAL
COMPANY CONFIDENTIAL 22
AL
PAL
Card commands
Implements the commands of contactless smartcards
HAL
BAL
[In]
[In]
[In]
[In]
[In]
[In]
[In]
COMPANY CONFIDENTIAL 23
COMPANY CONFIDENTIAL 24
phStatus_t phacDiscLoop_SetConfig(
void
*pDataParams,
uint16_t wConfig,
uint16_t wValue );
[In]
[In]
[In]
COMPANY CONFIDENTIAL 25
COMPANY CONFIDENTIAL 26
Checking whether one particular Tag Type has been detected can be
done by using the defined bitmasks.
MASK (TagsDetected, PHAC_DISCLOOP_TYPEA_DETECTED_TAG_TYPE2))
printf ("Type A T2 tag detected ");
COMPANY CONFIDENTIAL 27
This layer implements the NFC Forum standardized protocol stack for a
Peer to Peer communication with an NFC device.
Includes the correct management of the logical link between peers
(LLCP) and the implementations of a client/server based architecture
for the exchange of NDEF messages (SNEP)
Logical Link Control Protocol (LLCP): It is the link layer protocol that
specifies the procedural means for the transfer of upper layer information
units between two NFC devices.
Simple NDEF Exchange Protocol (SNEP): It is an application-level
protocol running on top of LLCP suitable for the exchange of application
data units. It is a request/response protocol based on a client/server
architecture.
COMPANY CONFIDENTIAL 28
COMPANY CONFIDENTIAL 29
Common Layer
The Common Layer implements a set of utilities independent of any
card and hardware.
Cryptographic keys management, CRC and parity calculation, log
generation and CID.
NXP Generic Reader Library
COMPANY CONFIDENTIAL 30
Key Store
The key store offers the key handling software module for storing
cryptographic keys used in the authentication and encryption
operations.
Only the NFC Reader Library Export Controlled version supports high
secure key storage capabilities (SAM).
Supports the following symmetric cryptography key types
PH_KEYSTORE_KEY_TYPE_AES128
PH_KEYSTORE_KEY_TYPE_DES
PH_KEYSTORE_KEY_TYPE_2K3DES
PH_KEYSTORE_KEY_TYPE_MIFARE
PH_KEYSTORE_KEY_TYPE_AES192
PH_KEYSTORE_KEY_TYPE_3K3DES
PH_KEYSTORE_KEY_TYPE_AES256
COMPANY CONFIDENTIAL 31
phpalI14443p3a_Sw_Init(&palI14443p3a, , &halReader);
phpalI14443p4a_Sw_Init(&palI14443p4a, , &halReader);
phpalI14443p4_Sw_Init(&palI14443p4, , &halReader);
phhalHw_Rc663_Init(&halReader, &balReader, );
phbalReg_Stub_Init(&balReader, );
COMPANY CONFIDENTIAL 32
Module
AL Tag Operation
T1T - Jewel/Topaz
MIFARE UL (EV1) All CMD
T2T CMD
T3T Felica
T4T DesFire
Tag Operation
MF Classic
DESFire (Partly)
Discovery Loop
SNEP
LLCP
ISO/IEC14443-3A & MIFARE
ISO/IEC14443-3B
ISO/IEC14443-4A & ISO/IEC14443-4
Felica Compliant protocol
IO/IEC18092 Active&Passive Initiator
IO/IEC18092 Active&Passive Target
Hal common
Callback
RC663
PN512/RC523
BAL common
SPI for LPC1769
I2C for LPC1769
Key Store Common
Key store RC663
Key Store SW
ISO/IEC 14443-4 CID Man
Tools (CRC, Parity)
Log Module
OSAL Utils
NFC Activity
P2P
Protocol
HAL
BAL
Common
12
18
2012
1274
21824
1328
17124
4390
4943
13864
3250
2316
4114
1172
4496
4479
846
390
15268
11524
358
414
246
719
492
914
170
1575
379
1696
36
20
228
10
96
516
3196
28
35
31
24
27
68
60
96
88
4
4
8
24
16
52
COMPANY CONFIDENTIAL 33
Memory footprint
MIFARE Ultralight Read/Write Project
In order to optimize the memory consumption, all modules that are not
necessary should be excluded
Project from scratch memory footprint is about 11728 bytes
CMSIS source code
MCU drivers
Component
Code (byte)
Application AL
1132
Protocol PAL
3250
Hardware HAL
PN512/RC523
11524
Platform BAL
LPC1769SPI
414
11728
28048
COMPANY CONFIDENTIAL 34
COMPANY CONFIDENTIAL 35
COMPANY CONFIDENTIAL 36
Description
Devboard
Devboard 12 NC
CLRC663
CLEV663B
PNEV512B
PN512
http://www.nxp.com/demoboard/PNEV512B.html
LPCXpresso
LPC1114
LPC1227
LPC1769
COMPANY CONFIDENTIAL 37
Wrapping up
NXP Reader Library software A powerful tool for your developers
Main advantages:
The software is written in C language.
Modular and Multi-layer approach, enabling flexibility and scalability.
The Library package includes a set of project examples.
COMPANY CONFIDENTIAL 38
Need More ?
NXP SW Libraries for NFC Readers
Additional reference material
Reader forum:
http://www.mifare.net/en/micommunity/forum/mifare-and-nfc-reader-ics
NXP Reader Library version 2.1 with Visual C++ project:
http://www.nxp.com/documents/software/200312.zip
NXP NFC Reader Library and PN512B / CLRC663B examples for LPC MCUs:
http://www.nxp.com/demoboard/PNEV512B.html#documentation
http://www.nxp.com/demoboard/CLEV663B.html#documentation
please note: an updated version of the library and examples will be available in May
Export controlled library (Docstore):
Doc Number: sw171734
COMPANY CONFIDENTIAL 39
MobileKnowledge
Thank you for your attention
www.themobileknowledge.com
WE LEVERAGE THE
MOBILE REVOLUTION
COMPANY CONFIDENTIAL