nfc for consumables and accessories
play

NFC FOR CONSUMABLES AND ACCESSORIES WEBINAR SERIES: HOW TO DEVELOP - PowerPoint PPT Presentation

NFC FOR CONSUMABLES AND ACCESSORIES WEBINAR SERIES: HOW TO DEVELOP NFC APPLICATIONS JORDI JOFRE NFC READERS NFC EVERYWHERE 22/02/2018 PUBLIC Agenda NFC for product authentication & identification NFC portfolio for product


  1. NFC FOR CONSUMABLES AND ACCESSORIES WEBINAR SERIES: HOW TO DEVELOP NFC APPLICATIONS JORDI JOFRE NFC READERS NFC EVERYWHERE 22/02/2018 PUBLIC

  2. Agenda • NFC for product authentication & identification • NFC portfolio for product authentication & identification • NFC Nutshell Kit • Consumable authentication sample application logic 3

  3. NFC for product authentication & identification 4

  4. NFC for product authentication & identification NFC Benefits • Adjust settings of the main unit based on the accessory attached • Ensure authenticity of the consumable / fight counterfeits • Improve accuracy by storing calibration data on the tag • Identify users and immediately Create more Automatically provide personalized settings Combat counterfeits Order branded interactive and choose the right by authenticating replacements/ • Send notifications when accessories accessories personal experiences consumables with a tool every time are nearing replacement single tap 5

  5. How NFC works in product authentication & identification Use case Main unit or Accessory or ▪ Validate the originality of the consumable / accessory base unit removable part ▪ Optionally, configure the device with related settings NFC reader NFC tag Goals ▪ Ensure originality including recurring revenues on consumables Data read by NFC Reader ▪ Enhance consumer experience and convenience NFC Tag in the removable part, e.g. inside the base unit, e.g. fridge, brush head, water or air filter, … ▪ Ensure product safety blender, then sent to MCU 6

  6. NFC success stories High-end blender NFC reader: in the base unit NFC tag: in the jug/container Application: Check lid is closed before starting configuration: settings Face brush NFC reader: in the handle NFC tag: in the brush heads Application: Automatically configure the brush speed & spinning parameters Water filter for fridges NFC reader: in the fridge base NFC tag: in the water filter Application: Check that the right & genuine water filter is in place 7

  7. How to implement the use case ACCESSORIES BASE UNIT NTAG210 μ SPI or I 2 C Kinetis or NTAG21x MFRC630 LPC MCU NTAG213 TT NTAG413 DNA OR SPI or I 2 C Kinetis or ICODE SLX 2 SLRC610 LPC MCU ICODE DNA Great NFC performance, low power consumption Tags provide a great way to identify and readers. Highly flexible frontend for all solutions. authenticate consumables & accessories. 8

  8. Solution selection guidelines What do you need to achieve? • Brand protection (only original supplies work), automation, safety / security issues, etc. Which are your security needs? • Identification, authentication, signature, integrity check, encrypted communication, etc. What reading distance do you need? • A few cm, a few tenths of cm, etc. Do you have space constraints in the product? • Directly impacts the antenna size. 9

  9. NXP portfolio for product authentication & identification 10

  10. NFC security features in NXP portfolio UID + Originality Tag authentication: UID based signature Advance cryptography Online tracking, no Proves NXP/OEM operations, e.g., SUN, cryptography applied product genuineness 3-pass AES AUTH 11

  11. Originality Signature generation during IC production NXP key pair Unique ID per IC 1 Public key is signed by NXP Private key UID Signature is stored 2 inside the IC 12

  12. Originality Signature verification UID and signature READ UID 1 are retrieved READ_SIG NXP key pair Public key Signature is verified 2 Private key with the IC UID UID Fake OK? Original device 13

  13. OEM Customizable originality signature (*) OEM (*) Only some NTAG OEM key pair Unique ID per IC family members support this feature 1 Public key is signed by OEM Private key UID Signature is stored and 2 locked inside the IC OEM WRITE_SIG OEM LOCK_SIG 14

  14. Secure Unique NFC Message (SUN) • Unique NDEF message generated each tap • Incremental NFC counter each tap available • Direct connection to web-service with no app required • AES based dynamic CMAC as part of the NDEF data NDEF content http://... UID Tap CMAC counter 15

  15. AES 3-pass mutual authentication Tag and reader authentication Advanced Encryption Standard is a 3 AES 128-bit application keys available specification for symmetric encryption Used key is known to both receiver and sender ISO/IEC 29167 defines procedures for tag authentication TAG is in the using AES-128 consumable 128 bit AES key Reader in the device 17

  16. AES 3-pass mutual authentication  Reader sends authentication command with key number to use  T ag generates random challenge, encrypts it and sends the response 1 Authenticate (Kn)  Reader decrypts the challenge, combines it 2 with a new challenge, encrypts the result E(Kn, RndB) NFC and sends the response Reader 3 E(Kn, RndA||RndB’) 5  Tag decrypts the message, and sends the 4 E(Kn, RndA’) reader’s challenge encrypted  If all challenges have been successful, both ends are now authenticated and have a shared secret 18

  17. Tag Comparison NTAG210 μ NTAG21x NTAG413 DNA ICODE DNA Type Type 2 Type 2 Type 4 Type 5 Operating distance 10 cm 10 cm 10 cm 1.2 m up to 32 Bytes 32 Bytes 56 Bytes 32 Bytes Originality signature (NXP signature) customizable (NXP signature) customizable 3-pass AES Auth SUN Memory 144-888 Bytes 64 Bytes 128 Bytes 256 Bytes 19

  18. NFC frontends MFRC630 plus SLRC610 plus Multiprotocol: ISO/IEC 15693, ISO/IEC 18000-3 RF standard compliance: ISO 14443A Supporting vicinity products ICODE Recommended solution for NTAG and MIFARE Host interfaces: SPI I²C, UART Host interfaces: SPI I²C, UART Separate I²C bus for a SAM Separate I²C bus for a SAM Application MCU SLRC610 Application MCU MFRC630 icode < 10 cm < 1.2 m 20

  19. NFC Nutshell Kit 21

  20. NFC Nutshell Kit introduction Need to add NFC into your products ? The NFC Nutshell Kit modules are specifically designed for: • NFC technology integration / retrofitting into existing or new product designs • Building up of NFC enabled demonstrators • NFC technology evaluation • Application testing and development Developed by GMMC, the kit contains several modules covering most of NXP portfolio for NFC solutions. GMMC is an approved engineering consultant of NXP for NFC ( https://nxp.surl.ms/NFC_AEC ) 22

  21. Benefits & features • Nano sized modules for space constrained environments • Flexible configuration to adapt to different conditions • Support of most popular NXP NFC reader/writer ICs − CLRC663plus family, PN5180, PN7150, PN7462 family • Compatibility with existing NXP NFC and MCU development tools − NFC Cockpit, RFIDDiscover, MCU Expresso, LPC Link2 23

  22. Modules Antennas: RF-Frontends: Host interfaces: Microcontrollers: − 20x10 mm − CLRC663 plus family, − USB Plug − LPC11u68 (JBD48) including SLRC610, − 20x20 mm MFRC630 MFRC631 − Programmable converter − LPC1769 − 40x40 mm USB to UART, I2C, SPI − PN5180 − 72x48 mm − Signal Debug Extender RF-Frontend with integrated MCU: − Twisted wire connection between antenna and − PN7462 (Q2 2018) RF modules − PN7150 (Q2 2018) 24

  23. Modes of operation for USB protocol converter MCU stays in programming mode, only for MCU flashing No MCU is used. The computer talks with the frontend via UART The computer can talk with the MCU over the specified protocol 26

  24. Supported NXP development tools RFIDDiscover NFC Cockpit NFC Reader library More information on NFC-Cockpit More information on RFIDDiscover More information on NFC Reader library 27

  25. Consumable authentication Sample application logic 28

  26. Running the NFC reader library in the Nutshell Kit 1. Prepare the 2. Configure USB 3. Development 4. Build project 5. Flash the MCU hardware converter in MCUXpresso image 29

  27. 1. Prepare the hardware Host interface: NFC frontend: Antenna: MCU: USB protocol CLRC663 plus 40x40mm LPC1769 converter 30

  28. 2. Configure USB converter Host interface: USB protocol converter 31

  29. 3. Development: NFC Reader Library NFC Reader Library Software examples Example 1: BasicDiscoveryLoop Example 2: AdvancedDiscoveryLoop Example 3: NFCForum Example 4: MIFARE Classic Example 5: ISO15693 Example 6: EMVCo Loopback Example 7: EMVCo Polling Example 8: HCE T4T Example 9: NTAG I2C Example 10: SimplifiedAPI_EMVCo Example 11: SimplifiedAPI_ISO The NFC Reader Library is everything you need to create your own software stack and application for a contactless reader 32

  30. 3. Development: Originality signature verification NfcrdlibEx1_BasicDiscoveryLoop Configure Discovery Initialize library Detect tag and get loop and start it its type and UID phNfcLib() phacDiscLoop_Run() READ_SIG Verify Signature with UID command phalMful_SW_ReadSign() ecdsa_verify() phalICode_ReadSignature() 33

  31. 3. Development: Signature verification • Reader library does not include asymmetric crypto • Easy-ecc: a simple and secure ECDH and ECDSA library written in C • Easy integration and use https://github.com/esxgx/easy-ecc More information can be found in AN11350 NTAG Originality Signature Validation (1.2) document 34

Recommend


More recommend