
NXP Semiconductors
UM11038
OM27642 Smart Lock KIT
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in the section 'Legal information'.
© NXP B.V. 2018.
All rights reserved.
For more information, please visit: http://www.nxp.com
Date of release: 11 October 2018 407611
Document identifier: UM11038
20. Contents
1.
Introduction ......................................................... 3
2.
Smart Lock KIT Package Content ...................... 4
3.
Smart Lock Module Hardware ............................ 5
3.1
Smart lock system block diagram ....................... 6
4.
Schematics .......................................................... 7
4.1
Base board schematics continued ..................... 8
4.2
Core Module schematics .................................... 9
4.3
Antenna matching ............................................ 10
5.
Base board connectors .................................... 11
6.
Getting started ................................................... 11
6.1
Setting up the hardware module ...................... 11
6.1.1
Smart Lock power connection .......................... 11
7.
Smart Lock operation ....................................... 12
7.1
Operating the Smart Lock using the
demonstration cards ......................................... 12
7.2
Operating the Smart Lock using the mobile
Smart Lock App ................................................ 13
8.
Firmware design description ............................ 15
8.1
Power saving .................................................... 15
8.2
Interaction between PN and QN when token is
delivered over RFID ......................................... 15
8.3
Interaction between PN and QN when token is
delivered over Bluetooth Low Energy ............... 15
9.
Communication protocol between QN and PN
............................................................................ 16
10.
Handshake between the QN and PN ................ 17
10.1.1
NFC Transaction .............................................. 17
10.1.2
Bluetooth Low Energy Transaction .................. 18
10.2
Data exchange ................................................. 19
11.
Structure of the QN Firmware .......................... 20
11.1
src\app\pn\app_pn_task.c ................................ 20
11.2
src\driver\pn_nfc.c ............................................ 21
11.3
Interaction with Bluetooth Low Energy Stack ... 22
11.4
Bluetooth Low Energy Service definition .......... 22
11.5
Smart Lock\Smart Lock .c ................................ 23
11.6
Power-On-Handshake ...................................... 23
11.7
Data exchange ................................................. 23
11.7.1.1
Send data ......................................................... 23
11.7.1.2
Receive data .................................................... 23
12.
Structure of the PN Firmware ........................... 24
12.1
Token retrieval .................................................. 24
12.2
Task CLIF ......................................................... 24
4.
Task CLIF NxpRdLib component stack for
activation: ......................................................... 24
5.
Task CLIF NxpRdLib component stack for
communication: ................................................ 25
12.3
Task HIF ........................................................... 25
12.3.1
Task HIF NxpRdLib component stack: ............. 25
12.3.2
phbalReg_Smart Lock _DataParams_t ............ 25
12.3.3
phhalHw_Smart Lock _DataParams_t ............. 25
12.3.4
phpalMifare_Smart Lock _DataParams_t ......... 25
12.4
Configuration options for PN firmware .............. 26
13.
Firmware flashing .............................................. 26
13.1
Requirements ................................................... 26
13.2
LPC-Link2 connection ...................................... 26
13.3
Flash new firmware on PN ............................... 27
13.4
Flash new firmware on QN ............................... 28
13.4.1
Flash with LPC Link 2 ....................................... 28
13.4.2
Flash with serial ................................................ 31
14.
Hospitality Access Token ................................. 32
14.1
Overview .......................................................... 32
14.2
MIFARE DESFire card configuration ................ 32
14.2.1
Application configuration: ................................. 32
14.2.2
Application Key settings: .................................. 32
14.2.3
Symmetric key diversification details see
application note AN10922 ................................ 32
14.2.3.1
Input for diversified Key .................................... 32
14.2.4
Standard Data File settings .............................. 33
14.3
Standard Data file content ................................ 33
14.3.1
Token format .................................................... 33
14.3.2
Token verification process ................................ 33