NFC Reader Design: How to build your own reader



Similar documents
NFC Reader Design: Antenna design considerations

Using RFID Techniques for a Universal Identification Device

AN Software Design Guide for POS Development Kit OM5597/RD2663. Rev August Application note COMPANY PUBLIC

Secure My-d TM and Mifare TM RFID reader system by using a security access module Erich Englbrecht (info@eonline.de) V0.1draft

Training. NFC in Android. Public. MobileKnowledge October 2015

Technical Article. NFiC: a new, economical way to make a device NFC-compliant. Prashant Dekate

MFRD52x. Mifare Contactless Smart Card Reader Reference Design. Document information

Security & Chip Card ICs SLE 44R35S / Mifare

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

ACR880 GPRS Portable Smart Card Terminal

NFC. Technical Overview. Release r05

Lab Experiment 1: The LPC 2148 Education Board

E-Blocks Easy RFID Bundle

Gemalto Mifare 1K Datasheet

Wireless Microcontrollers for Environment Management, Asset Tracking and Consumer. October 2009

ZigBee Technology Overview

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

Training MIFARE SDK. Public. MobileKnowledge June 2015

Microtronics technologies Mobile:

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Using ISO Compliant RFID Tags in an Inventory Control System

Intelligent Fleet Management System Using Active RFID

a leap ahead in analog

NFC Test Challenges for Mobile Device Developers Presented by: Miguel Angel Guijarro

Design And Implementation Of Bank Locker Security System Based On Fingerprint Sensing Circuit And RFID Reader

An introduction to nxpusblib. March 2012

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

Using Xbee in Serial Communication

Quick Installation. A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding. Quick Installation

Measurement and Analysis Introduction of ISO7816 (Smart Card)

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

NFC Near Field Communication

Display Message on Notice Board using GSM

Fondamenti su strumenti di sviluppo per microcontrollori PIC

TT-RFID platform - Introduction

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

USB OTG and Embedded Host Microchip Technology Incorporated. All Rights Reserved. Slide 1

RFID Penetration Tests when the truth is stranger than fiction

ACR120 Technical Specifications version 2.9 November 2005

The Research and Application of College Student Attendance System based on RFID Technology

FLYPORT Wi-Fi G

Complete Integrated Development Platform Copyright Atmel Corporation

Serial port interface for microcontroller embedded into integrated power meter

Contactless Smart Cards vs. EPC Gen 2 RFID Tags: Frequently Asked Questions. July, Developed by: Smart Card Alliance Identity Council

How To Understand The Power Of An Freddi Tag (Rfid) System

Radiocrafts Embedded Wireless Solutions

Training. MIFARE4Mobile. Public. MobileKnowledge April 2015

Exercise 1: Set up the Environment

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

HMI EMBEDDED SYSTEM DESIGN AS A FUNCTION OF TECU

8051 MICROCONTROLLER COURSE

STM32 F-2 series High-performance Cortex-M3 MCUs

Near Field Communication (NFC) controller. The PN533 supports four main operating modes:

Chapter 13. PIC Family Microcontroller

STM32L. Ultra-low-power Cortex -M3 devices

Field Service Application

MIFARE ISO/IEC PICC

Workshop: NEAR FIELD COMMUNICATION TECHNOLOGY

Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade!

ENERGY HARVESTED ELECTRONIC SHELF LABEL

IRT84. Irt84. Datasheet. EMV L1 compliant terminal with ISO14443A/B. 1

7a. System-on-chip design and prototyping platforms

Lesson 10:DESIGN PROCESS EXAMPLES Automatic Chocolate vending machine, smart card and digital camera

Chip Card & Security ICs Mifare NRG SLE 66R35

Serial Communications

Tutorial for MPLAB Starter Kit for PIC18F

Adding WiFi to Your Embedded System. WPG Americas & Gainspan Titus Wandinger (WPG) & Su Li (Gainspan) April 23, 2013

ontroller LSI with Built-in High- Performance Graphic Functions for Automotive Applications

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

PN532 NFC RFID Module User Guide

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

ARM Cortex -A8 SBC with MIPI CSI Camera and Spartan -6 FPGA SBC1654

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

Wireless Fingerprint Attendance Management System

Atmel Norway XMEGA Introduction

Ways to Use USB in Embedded Systems

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

International Journal of Engineering Research & Management Technology

3.2 inch QVGA TFT Color LCD User s Guide Version 1 & 2

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

Von der Hardware zur Software in FPGAs mit Embedded Prozessoren. Alexander Hahn Senior Field Application Engineer Lattice Semiconductor

RF-Enabled Applications and Technology: Comparing and Contrasting RFID and RF-Enabled Smart Cards

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

DESIGN AND IMPLEMENTATION OF ONLINE PATIENT MONITORING SYSTEM

How To Use Nuc123 (Nuc123) For A Week

Part Number Description Packages available

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

A-307. Mobile Data Terminal. Android OS Platform Datasheet

ANYTIME ANYPLACE-REMOTE MONITORING OF STUDENTS ATTENDANCE BASED ON RFID AND GSM NETWORK

Figure 1.Block diagram of inventory management system using Proximity sensors.

User Manual. AS-Interface Programmer

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

AN4494 Application note

128KB RAM. 2.4 GHz TX/RX. Radio. 2.4 GHz ADC. Crypto accelerator. Sensor Interface

RFID BASED VEHICLE TRACKING SYSTEM

Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada

ET-BASE AVR ATmega64/128

RF & WIRELESS. 1) ams overview. 2) RFID UHF Gen 2 Readers. 3) 2.4GHz TxRx + LF Rx = Active Tag. 4) NFC Reader and Tags BNI RSO. 23 Apr 2013.

Transcription:

NFC Reader Design: How to build your own reader Public MobileKnowledge February 2015

Agenda Introduction to RFID and NFC Contactless reader design: Initial considerations and architecture Illustrative contactless reader schematics: RFID Elektor schematic CLRC663 Point of Sales schematic NXP portfolio NFC Reader IC overview LPC microcontrollers overview Today s session NFC Reader Antenna design Antenna principles Antenna design steps Environmental influences Testing & antenna qualification Next session 2

Introduction to RFID and NFC RFID applications, NFC operation and communication modes 3

Introduction to RFID RFID is an abbreviation, consisting of two distinct concepts: Radio Frequency (RF) and Identification (ID) RFID technology is used to identify objects, operations or people by means of wireless transmission of data (and energy) RFID systems may be sorted by operating frequency, operating range, data rates, energy usage and security. LF (~120 turns) HF (~8 turns) UHF (~1 turn for the loop) Frequency/ Technology Operating distance Main applications Tag chip family LF (125 134 KHz) Up to 1 m Animal ID, industrial, track & trace HITAG HF vicinity (13.56 MHz) Up to 1 m Libraries, Ski ticketing, item level ID ICODE HF proximity /NFC (13.56 MHz) Up to 10 cm Public transport, egov, Banking, access, NFC phones MIFARE, NTAG UHF (860 960 MHz) Up to 10 m Logistics, inventory management UCODE 4

NFC Technology Modes of operation NFC device Card emulation Payments, Transit, Access, Identity,... Like ISO/IEC14443 PICC Like ISO/IEC14443 PCD Read/write Product Authentication, Smart Advertising, Pairing,... Contactless readers NFC tags Active P2P Both devices generate RF field Passive P2P Extended ISO/IEC14443 PCD/PICC Peer-to-peer Automotive, Social media, data exchange, games... Other NFC devices 5

NFC communication modes Reader/Card communication mode 1. Power The RF field oscillates at 13,56MHz. The card is powered through the electromagnetic coupling Host NFC Device (Reader) 2. The Reader sends commands The Reader modulates its RF field to send commands Card C 3. Answering to the Reader By modifying its consumption, the chip modifies the RF field, which the Reader detects (Load Modulation) 6

NFC communication modes P2P passive communication mode 1. The Initiator generates an RF field This field is used to exchange the data. Both Initiator and Target are powered internally Host NFC Device INITIATOR 2. The Initiator sends commands The Initiator modulates its RF field to send commands NFC Device TARGET Host Powered to generate RF field 3. The Target responds The target uses backward modulation to transmit the response (Load Modulation) Powered for digital processing 7

NFC communication modes P2P active communication mode 1. The Initiator sends commands The Initiator generates an RF field, sends commands by modulating its field and then cuts the field Host NFC Device NFC Device Host Powered to generate RF field INITIATOR 2. The Target responds Once the Initiator cuts its RF field, the target generates its own field and uses it to transmit responses. TARGET Powered to generate RF field 8

Contactless reader design Initial considerations & architecture 9

Basic contactless reader architecture e.g. LCD I/O I 2 C Embedded reader module Firmware Backend System Host / µc Reader IC Contactless object Generic embedded µcontroller Ex: CLRC663, PN512, Analog matching network 13MHz loop Antenna RFID card, NFC Tag, NFC phone, or any other NFC object 10

Steps to design a contactless reader 1 2 3 Selection of contactless reader IC Which transponder do we need to communicate with? Selection of Host The brain and heart of our contactless reader Selection of security architecture SAM or Host for key storage 4 5 Antenna design GO! Next session 11

Basic contactless reader architecture e.g. LCD I/O I 2 C Embedded reader module Firmware Backend System Host / µc Reader IC Contactless object Generic embedded µcontroller Ex: CLRC663, PN512, Analog matching network 13MHz loop Antenna RFID card, NFC Tag, NFC phone, or any other NFC object 12

Contactless reader design Step 1: Selection of contactless reader IC Support of various RF standards Dedicated use case & application may support only ISO/IEC 14443-A Open application needs to support various RF standards such as ISO/IEC14443 A&B, ISO/IEC 15693 Application specific requirements EMVCo -> payments NFC Forum -> Full NFC support on P2P and R&W Power consumption Handheld contactless reader will require low energy consumption Security handling Some applications will require SAM support (integrated/external) Selection of the host interface SPI, I 2 C, RS232, UART.. Specific features Specific data rates, timing and reading distance 13

Reader IC module e.g. CLRC663 reader IC Analog frontend The analog interface handles the modulation and demodulation of the antenna signals for the contactless interface. Analog test signals (pin AUX1 and AUX2) For optimizing / debugging hardware in terms of performance and noise (AN11019) Clock signal (pin XTAL1 and XTAL2) Act as time basis for generation of the carrier sent out as well as for the coder and decoder synchronous system. Clock jitter must be as small as possible. IntegerN PLL clock line It can serve as a clock source to a MCU, which avoids the need for a second crystal oscillator in the reader system. (pin CLKOUT) 14

Reader IC module e.g. CLRC663 reader IC Power management Supply concept Three supply pins VDD, PVDD and TVDD. Can be supplied in range from 3.3V to 5V. Pin TVDD can be supplied by 3.3V or 5V (for higher field strength) Pin PVDD and VDD should be supplied at 3.3V to operate with a 3.3 V supplied MCU. Independent of the voltage, it is recommended to buffer these supplies with blocking capacitors (VDD and PVDD min 100 nf; TVDD min 100 nf parallel to 1 uf) Power-down (8nA-40nA), standby mode (3-6μA) and modem off (0.45 0.5 ma) energy saving options Low Power Card Detection (LPCD): Energy saving mode in which the reader IC is not fully powered permanently 15

Reader IC module e.g. CLRC663 reader IC Interrupt controller Handles the enabling / disabling of interrupt requests. All of the interrupts can be configured by firmware. Indicates certain events by setting bit IRQ in the appropriate register and if activated, by pin IRQ. The signal on pin IRQ may be used to interrupt the host. Allows the implementation of efficient host software. Timer module The external host may use these timers to manage timing relevant tasks such as time-out counter, watch-dog counter or periodical triggers. 16

Reader IC module e.g. CLRC663 reader IC Boundary scan interface Interface according to IEEE 1149,1 Implements a four line interface between the chip and the environment ( Test Clock, Test Mode Select, Test Data Input and Test Data Output). Allows testing interconnections without using physical test probes. It uses its own description language ( BSDL = Boundary Scan Description Language) 17

Reader IC module e.g. CLRC663 reader IC Host interface selection Support direct interfacing of various hosts (SPI, I 2 C, UART) interface type. Host interface type is selected by means of the logic levels on the control pins after Reset Phase (pin IFSEL0, IFSEL1) NXP reader ICs implement a dedicated I 2 C interface to integrate MIFARE SAM (SAM X- interface, will be explained later). 18

Reader IC module e.g. CLRC663 reader IC Register bank The register bank contains the settings for the analog and digital functionality. Recommended protocol settings (AN11022) Integrated EEPROM Register settings of the device can be preconfigured in the EEPROM. Load protocol: A single host command allows loading the register settings for another contactless protocol. FIFO Buffer that handles 512 byte send and receive 19

Basic contactless reader architecture e.g. LCD I/O I 2 C Embedded reader module Firmware Backend System Host / µc Reader IC Contactless object Generic embedded µcontroller Ex: CLRC663, PN512, Analog matching network 13MHz loop Antenna RFID card, NFC Tag, NFC phone, or any other NFC object 20

Contactless reader design Step 2: Selection of Host External interfaces Serial, USB, Ethernet RF connectivity (BL, Wifi, Zigbee, ) SW architecture How heavy or light are the processing power requirements (MCU clock) Host architecture Impact on development environment and source code libraries Memory requirements Flash, RAM, ROM Power requirements Specific requirements Secure EEPROM to store keys? Crypto accelerators? Manufacturer support 21

Contactless reader design Step 3: Selection of security architecture (Host) Microcontrollers are not designed and developed to securely store and maintain cryptographic keys since they don t offer reliable protection and security mechanisms Embedded reader module Auth Cmd Backend System Host / µc Rnd Challenge Reader IC Response + Challenge MIFARE card Crypto keys Response 22

Contactless reader design Step 3: Selection of security architecture (SAM S-interface) SAM device carries HW based cryptography that allows one to perform complex cryptographic operations efficiently and to securely store and protect keys Success! Embedded reader module SAM Backend System Host/ µc Auth Cmd Reader IC Rnd Challenge MIFARE card Response + Challenge Response 23

Contactless reader design Step 3: Selection of security architecture (SAM X-interface) SAM device carries HW based cryptography that allows one to perform complex cryptographic operations efficiently and to securely store and protect keys Embedded reader module Auth Cmd Backend System Host / µc SAM Rnd Challenge Reader IC Response + Challenge MIFARE card Response Success! T=1 I 2 C 24

Contactless reader e.g. RFID Elektor reader schematic 25

Elektor RFID reader Elektor RFID reader is compatible with MIFARE and ISO/IEC 14443-A international standard. It was designed to make the device as universal as possible. Features: Compatible with MIFARE and ISO/IEC14443-A cards USB interface for PC connection MFRC522 reader IC (NXP) P89LPC936 microcontroller (NXP 8051-based MCU) I 2 C and SPI interfaces Available 8-bit I/O output Programming tools available 26

Elektor RFID Reader Schematic Voltage regulator P89LPC936 microcontroller MFRC522 reader IC Power supply by mini USB connector RS-232 to USB converter LCD display 27

Elektor RFID Reader Schematic Serial interface I 2 C interface Interrupt controller Antenna matching network LCD interface Clock Source 28

Contactless reader e.g. CLRC663 POS schematic 29

Point of sales Based on CLRC663 reader IC OM5597/RD2663 is a development kit of a cost effective EMV compliant Point of Sales Terminal based on NXP components. It provides an EMV Level 1 compliant software stack for contactless as well as contact payment based on CLRC663 and TDA8026. The user interface is composed of an LCD screen and a keyboard. http://www.nxp.com/demoboard/om5597.html 30

Point of sales Schematic: CLRC663 reader IC module Power Mgmt Antenna matching network and Rx circuit Host interfaces IRQ pin Clock Source 31

Point of sales Schematic: LPC1768 microcontroller SPI interface to CLRC663 I 2 C interface to TDA8026 Keypad connection JTAG /SWD interface 32

Point of sales Schematic: TDA8026 and SAM The TDA8026 can handle up to 5 SAM modules and is connected via I 2 C to the LPC1768 I 2 C interface to LPC1768 SAM slot #1 33

NXP Portfolio NFC Readers 34

NFC Readers IC portfolio Overview NFC Tag ISO 18092 Target ISO 18092 Initiator Reader/ Writer RF Power Embedded FW PN512 Type 2, 3 & 4 Active & Passive Active & Passive ISO14443 Felica Medium CLRC663 Passive ISO14443 Felica ISO15693 High SLRC610 ISO15693 High PR601 Passive ISO14443 Felica ISO15693 HITAG High PN7120 Type 2, 3 & 4 Active & Passive Active & Passive ISO14443 Felica ISO15693 High Yes Card emulation Peer-to-Peer Read & Write 35

NFC Readers IC portfolio Hardware support: Evaluation boards Product Board Photo Description More info PN512 PNEV512B A two-board combination that stacks a PN512 board on an LPC-Link prototyping board, for use with NXP s LPC microcontrollers. NFC Forum-compliant reader IC. www.nxp.com/demoboard/pnev512b.html PN512 PNEV512R An expansion board, designed for use with Raspberry Pi, which is a card-sized ARM-based, computer-running Linux. www.nxp.com/demoboard/pnev512r.html CLRC663 CLEV663 Evaluation board for multi-protocol CLRC663. Testing reader IC functionalities. www.nxp.com/demoboard/clev663.html CLRC663 CLEV663B A two-board combination, with a CLRC663 board stacked on an LPC-Link prototyping board for use with NXP s LPC microcontrollers www.nxp.com/demoboard/clev663b.html PR601 PREV601M Microboard with PR601 and 13,56MHz antenna. Powered by a single battery, and supported by the NFC Reader Library www.nxp.com/demoboard/prev601m.html PN7120 In development - NFC Forum-compliant development board with Raspberry Pi interface Available in 2015 36

NFC Readers IC portfolio SW support: NFC Reader Library The NFC Reader Library is a modular software library written in C language Components can be added / subtracted without disturbing the rest of the stack. Provides an API which makes it easy to create a software stack and applications for an NFC IC. Implement all the lower-layer functions SPI, I 2 C Implement the drivers for NFC ICs Implement the contactless protocol Implement APIs to operate with MIFARE and NFC Forum tags. All components needed for communication in P2P The application and protocol layers operate independently of the microcontroller These layers are not bound to or dependent on any specific hardware. 37

NXP Portfolio LPC microcontrollers 38

LPC microcontrollers portfolio Overview Entry-level LPC microcontrollers High performance LPC microcontrollers 39

LPC microcontrollers portfolio Developer ecosystem SW development tools LPCXpresso IDE and mbed IDE. Popular tool chains from IAR, Keil and other vendors provide support for LPC products. Debug and trace probes ARM MCUs provide either JTAG and / or SWD ports. Evaluation and development boards LPCXpresso boards, mbed boards, Full-featured develop. Boards (Embedded Artists, Keil, IAR and NGX) RTOS, middleware and drivers Free chip and board-level drivers, middleware such as TCP/IP stacks, graphic libraries, USB drivers, etc. 40

Further information NFC Reader Design: How to build your own reader NFC Everywhere www.nxp.com/nfc NFC controller and frontend solutions http://www.nxp.com/products/identification_and_security/nfc_and_reader_ics/ RFID: MIFARE and Contactless Cards in Application www.amazon.com/rfid-mifare-contactless-cards-application/dp/1907920145 LPC microcontrollers http://www.nxp.com/products/microcontrollers LPC Zone www.nxp.com/lpczone LPCXpresso www.nxp.com/lpcxpresso LPCWare www.lpcware.com s & webinars: http://www.nxp.com/products/related/customer-training.html 41

MobileKnowledge Thank you for your attention www.themobileknowledge.com We are a global competence team of hardware and software technical experts in all areas related to contactless technologies and applications. Our services include: Application and system Design Engineering support Project Management Technological Consulting Advanced Technical services We address all the exploding identification technologies that include NFC, secure micro-controllers for smart cards and mobile applications, reader ICs, smart tags and labels, MIFARE family and authentication devices. For more information Eric Leroux eric.leroux@themobileknowledge.com +34 629 54 45 52 42