1## This file is used by NFC NXP NCI HAL(external/libnfc-nci/halimpl/pn547) 2## and NFC Service Java Native Interface Extensions (packages/apps/Nfc/nci/jni/extns/pn547) 3############################################################################### 4# Application options 5# Logging Levels 6# NXPLOG_DEFAULT_LOGLEVEL 0x01 7# ANDROID_LOG_DEBUG 0x04 8# ANDROID_LOG_INFO 0x03 9# ANDROID_LOG_WARN 0x02 10# ANDROID_LOG_ERROR 0x01 11# ANDROID_LOG_SILENT 0x00 12NXPLOG_EXTNS_LOGLEVEL=0x04 13NXPLOG_NCIHAL_LOGLEVEL=0x04 14NXPLOG_NCIX_LOGLEVEL=0x04 15NXPLOG_NCIR_LOGLEVEL=0x04 16NXPLOG_FWDNLD_LOGLEVEL=0x04 17NXPLOG_TML_LOGLEVEL=0x04 18NFC_DEBUG_ENABLED=1 19 20############################################################################### 21# Nfc Device Node name 22NXP_NFC_DEV_NODE="/dev/nxp-nci" 23 24############################################################################### 25# Extension for Mifare reader enable 26MIFARE_READER_ENABLE=0x01 27 28############################################################################### 29# Vzw Feature enable 30VZW_FEATURE_ENABLE=0x01 31 32############################################################################### 33# System clock source selection configuration 34#define CLK_SRC_XTAL 1 35#define CLK_SRC_PLL 2 36NXP_SYS_CLK_SRC_SEL=0x02 37 38############################################################################### 39# System clock frequency selection configuration 40#define CLK_FREQ_13MHZ 1 41#define CLK_FREQ_19_2MHZ 2 42#define CLK_FREQ_24MHZ 3 43#define CLK_FREQ_26MHZ 4 44#define CLK_FREQ_38_4MHZ 5 45#define CLK_FREQ_52MHZ 6 46#define CLK_FREQ_32MHZ 7 47#define CLK_FREQ_48MHZ 8 48NXP_SYS_CLK_FREQ_SEL=0x02 49 50############################################################################### 51# The timeout value to be used for clock request acknowledgment 52# min value = 0x01 to max = 0x06 53NXP_SYS_CLOCK_TO_CFG=0x06 54 55############################################################################### 56# NXP proprietary settings 57NXP_ACT_PROP_EXTN={2F, 02, 00} 58 59############################################################################### 60# NXP TVDD configurations settings 61# Allow NFCC to configure External TVDD, two configurations (1 and 2) supported, 62# out of them only one can be configured at a time. 63NXP_EXT_TVDD_CFG=0x02 64 65############################################################################### 66#config1:SLALM, 3.3V for both RM and CM 67NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 01, 00, D0, 0C} 68 69############################################################################### 70#config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM, 71#monitoring 5V from DCDC, 3.3V for both RM and CM, DCDCWaitTime=4.2ms 72NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, B2, 00, B2, 1E, 1F, 00, D0, 0C} 73############################################################################### 74# Set configuration optimization decision setting 75# Enable = 0x01 76# Disable = 0x00 77NXP_SET_CONFIG_ALWAYS=0x01 78 79############################################################################### 80# Core configuration rf field filter settings to enable set to 01 to disable set 81# to 00 last bit 82NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 00 } 83 84############################################################################### 85# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set 86# to 0x00 87NXP_I2C_FRAGMENTATION_ENABLED=0x00 88 89############################################################################### 90# Mifare Classic Key settings 91#NXP_CORE_MFCKEY_SETTING={20, 02, 25,04, A0, 51, 06, A0, A1, A2, A3, A4, A5, 92# A0, 52, 06, D3, F7, D3, F7, D3, F7, 93# A0, 53, 06, FF, FF, FF, FF, FF, FF, 94# A0, 54, 06, 00, 00, 00, 00, 00, 00} 95 96############################################################################### 97#Enable SWP full power mode when phone is power off 98NXP_SWP_FULL_PWR_ON=0x00 99 100############################################################################### 101#### Select the CHIP #### 102#PN547C2 0x01 103#PN65T 0x02 104#PN548AD 0x03 105#PN66T 0x04 106#PN551 0x05 107#PN67T 0x06 108#PN553 0x07 109#PN80T 0x08 110#PN557 0x09 111#PN81T 0x0A 112NXP_NFC_CHIP=0x09 113 114############################################################################### 115# CE when Screen state is locked 116# This setting is for DEFAULT_ROUTE, 117# DEFAULT_DESFIRE_ROUTE and DEFAULT_MIFARE_CLT_ROUTE 118# Disable 0x00 119# Enable 0x01 120NXP_CE_ROUTE_STRICT_DISABLE=0x01 121 122############################################################################### 123#Timeout in secs to get NFCEE Discover notification 124NXP_DEFAULT_NFCEE_DISC_TIMEOUT=20 125 126############################################################################### 127NXP_DEFAULT_NFCEE_TIMEOUT=20 128 129############################################################################### 130#Timeout in secs 131NXP_SWP_RD_START_TIMEOUT=0x0A 132 133############################################################################### 134#Timeout in secs 135NXP_SWP_RD_TAG_OP_TIMEOUT=0x01 136 137############################################################################### 138#Set the default AID route Location : 139#This settings will be used when application does not set this parameter 140# host 0x00 141# eSE 0x01 142# UICC 0x02 143# UICC2 0x03 144DEFAULT_ROUTE=0x00 145 146############################################################################### 147# Configure the default NfcA/IsoDep technology and protocol route. Can be 148# either a secure element (e.g. 0xF4) or the host (0x00) 149# host 0x00 150# eSE 0x01 151# UICC 0x02 152# UICC2 0x03 153DEFAULT_ISODEP_ROUTE=0x00 154 155############################################################################### 156#Set the Mifare CLT route Location : 157#This settings will be used when application does not set this parameter 158# host 0x00 159# eSE 0x01 160# UICC 0x02 161# UICC2 0x03 162DEFAULT_MIFARE_CLT_ROUTE=0x02 163 164############################################################################### 165#Set the Felica CLT route Location : 166#This settings will be used when application does not set this parameter 167# eSE 0x01 168# UICC 0x02 169# UICC2 0x03 170DEFAULT_FELICA_CLT_ROUTE=0x02 171 172############################################################################### 173#Set the default Felica T3T System Code OffHost route Location : 174#This settings will be used when application does not set this parameter 175# host 0x00 176# eSE 0x01 177DEFAULT_SYS_CODE_ROUTE=0x00 178 179############################################################################### 180#Set the default AID Power state : 181#This settings will be used when application does not set this parameter 182# bit pos 0 = Switch On 183# bit pos 1 = Switch Off 184# bit pos 2 = Battery Off 185# bit pos 3 = Screen On lock 186# bit pos 4 = Screen off unlock 187# bit pos 5 = Screen Off lock 188DEFAULT_AID_PWR_STATE=0x3B 189 190############################################################################### 191#Set the Mifare Desfire Power state : 192#This settings will be used when application does not set this parameter 193# bit pos 0 = Switch On 194# bit pos 1 = Switch Off 195# bit pos 2 = Battery Off 196# bit pos 3 = Switched On Sub-State 1 : Screen is off and device is unlocked 197# bit pos 4 = Switched On Sub-State 2 : Screen is on and device is locked 198# bit pos 5 = Switched On Sub-State 3 : Screen is off and device is locked 199DEFAULT_DESFIRE_PWR_STATE=0x3B 200 201############################################################################### 202#Set the Mifare CLT Power state : 203#This settings will be used when application does not set this parameter 204# bit pos 0 = Switch On 205# bit pos 1 = Switch Off 206# bit pos 2 = Battery Off 207# bit pos 3 = Screen off unlock 208# bit pos 4 = Screen On lock 209# bit pos 5 = Screen Off lock 210DEFAULT_MIFARE_CLT_PWR_STATE=0x3B 211 212############################################################################### 213#Set the Felica CLT Power state : 214#This settings will be used when application does not set this parameter 215# bit pos 0 = Switch On 216# bit pos 1 = Switch Off 217# bit pos 2 = Battery Off 218# bit pos 3 = Screen off unlock 219# bit pos 4 = Screen On lock 220# bit pos 5 = Screen Off lock 221DEFAULT_FELICA_CLT_PWR_STATE=0x3B 222 223############################################################################### 224#Set the SYS_CODE Power state : 225#This settings will be used when application does not set this parameter 226# bit pos 0 = Switch On 227# bit pos 1 = Switch Off 228# bit pos 2 = Battery Off 229# bit pos 3 = Switched On Sub-State 1 : Screen is off and device is unlocked 230# bit pos 4 = Switched On Sub-State 2 : Screen is on and device is locked 231# bit pos 5 = Switched On Sub-State 3 : Screen is off and device is locked 232DEFAULT_SYS_CODE_PWR_STATE=0x00 233 234############################################################################### 235# Configure the NFC Extras to open and use a static pipe. If the value is 236# not set or set to 0, then the default is use a dynamic pipe based on a 237# destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value 238# for each UICC (where F3="UICC0" and F4="UICC1") 239OFF_HOST_ESE_PIPE_ID=0x19 240OFF_HOST_SIM_PIPE_ID=0x0A 241 242############################################################################### 243# Bail out mode 244# If set to 1, NFCC is using bail out mode for either Type A or Type B poll. 245NFA_POLL_BAIL_OUT_MODE=0x01 246 247############################################################################### 248# AID Matching platform options 249# AID_MATCHING_L 0x01 250# AID_MATCHING_K 0x02 251AID_MATCHING_PLATFORM=0x01 252 253############################################################################### 254#CHINA_TIANJIN_RF_SETTING 255#Enable 0x01 256#Disable 0x00 257NXP_CHINA_TIANJIN_RF_ENABLED=0x00 258 259############################################################################### 260#SWP_SWITCH_TIMEOUT_SETTING 261# Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60]. 262# Timeout in milliseconds, for example 263# No Timeout 0x00 264# 10 millisecond timeout 0x0A 265NXP_SWP_SWITCH_TIMEOUT=0x0A 266 267############################################################################### 268# Flashing Options Configurations 269# FLASH_UPPER_VERSION 0x01 270# FLASH_DIFFERENT_VERSION 0x02 271# FLASH_ALWAYS 0x03 272NXP_FLASH_CONFIG=0x02 273 274############################################################################### 275#Timeout value in milliseconds for NFCC standby mode.The range is between 5000 276#msec to 20000 msec and zero is to disable. 277NXP_NFCC_STANDBY_TIMEOUT=20000 278 279############################################################################### 280#Dynamic RSSI feature enable 281# Disable 0x00 282# Enable 0x01 283NXP_AGC_DEBUG_ENABLE=0x00 284 285############################################################################### 286#Config to allow adding aids 287#NFC on/off is required after this config 288#1 = enabling adding aid to NFCC routing table. 289#0 = disabling adding aid to NFCC routing table. 290NXP_ENABLE_ADD_AID=0x01 291 292############################################################################### 293# Enable/Disable checking default proto SE Id 294# Enable 0x01 295NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01 296 297############################################################################### 298#NXP_CN_TRANSIT_CMA_BYPASSMODE_ENABLE 299#Enable this config it prevents EMVCo PICC compliance and Mifare backward compatibility works 300#Disable this config EMVCo PICC compliance works and Mifare backward compatibility will not work 301#Default config is Disable 302#Enable 0x01 303#Disable 0x00 304NXP_CN_TRANSIT_CMA_BYPASSMODE_ENABLE=0x00 305 306############################################################################### 307#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE 308#Enable/Disable block number checks for china transit use case 309#Enable 0x01 310#Disable 0x00 311NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE=0x01 312 313############################################################################### 314#This config will enable different level of Rf transaction debugs based on the 315#following values provided. Decoded information will be printed in adb logcat 316#Debug Mode Levels 317#Disable Debug 0x00 318#L1 Debug 0x01 319#L2 Debug 0x02 320#L1 & L2 Debug 0x03 321#L1 & L2 & RSSI 0x04 322#L1 & L2 & Felica 0x05 323#NXP_CORE_PROP_SYSTEM_DEBUG=0x00 324 325############################################################################### 326# Enable/Disable Block Route feature. 327# Block Route will restrict routing to first matched rule 328# Block Route enable 0x01 329# Block Route disable 0x00 330AID_BLOCK_ROUTE=0x00 331 332############################################################################## 333# Timeout value in milliseconds to send response for Felica command received 334NXP_HCEF_CMD_RSP_TIMEOUT_VALUE=5000 335 336############################################################################### 337# HAL library path for self-test 338NXP_HAL_PATH="/vendor/lib64/hw/nfc_nci.pn54x.so" 339 340############################################################################### 341# Enable or Disable RF_STATUS_UPDATE to EseHal module 342# Disable 0x00 343# Enable 0x01 344RF_STATUS_UPDATE_ENABLE=0x00 345 346############################################################################### 347# Vendor Specific Proprietary Protocol & Discovery Configuration 348# Set to 0xFF if unsupported 349# byte[0] NCI_PROTOCOL_18092_ACTIVE 350# byte[1] NCI_PROTOCOL_B_PRIME 351# byte[2] NCI_PROTOCOL_DUAL 352# byte[3] NCI_PROTOCOL_15693 353# byte[4] NCI_PROTOCOL_KOVIO 354# byte[5] NCI_PROTOCOL_MIFARE 355# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO 356# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME 357# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME 358NFA_PROPRIETARY_CFG={05, FF, FF, 06, 81, 80, 70, FF, FF} 359 360############################################################################### 361#White list of Hosts 362#This values will be the Hosts(NFCEEs) in the HCI Network. 363DEVICE_HOST_ALLOW_LIST={02, C0} 364 365############################################################################### 366#OffHost UICC route location for MultiSE 367#UICC1 = 02 368#UICC2 = 03 369OFFHOST_ROUTE_UICC={02} 370 371############################################################################### 372# Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1. 373# 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm 374# 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block 375# 2 NFA_RW_PRES_CHK_ISO_DEP_NAK; Type - 4 tag protocol iso-dep nak presence check 376PRESENCE_CHECK_ALGORITHM=2 377 378############################################################################### 379# Extended APDU length for ISO_DEP 380ISO_DEP_MAX_TRANSCEIVE=0xFEFF 381 382############################################################################### 383#For static or dynamic dual UICC feature support 384#Enable static dual UICC feature by setting value 0x00 385#Enable dynamic dual UICC feature by setting value 0x01 386NXP_DUAL_UICC_ENABLE=0x01 387 388############################################################################### 389# Enable disconnect tag in screen off 390# Disable 0x00 391# Enable 0x01 392NXP_DISCONNECT_TAG_IN_SCRN_OFF =0x01 393 394################################################################################# 395# Enable wait/delay if RF session is active. 396# Disable 0x00 397# Enable 0x01 398NXP_CE_PRIORITY_ENABLED=0x00 399 400############################################################################### 401# Core configuration extensions 402# It includes 403# Wired mode settings A0ED, A0EE 404# Tag Detector A040, A041, A043 405# Low Power mode A007 406# Clock settings A002, A003 407# PbF settings A008 408# Clock timeout settings A004 409# eSE (SVDD) PWR REQ settings A0F2 410# How eSE connected to PN553 A012 411# UICC bit rate A0D1 412# SWP1A interface A0D4 413# DWP intf behavior config, SVDD Load activated by default if set to 0x31 - A037 414# For Symmetric baud rate UICC's set A086 to 77 415NXP_CORE_CONF_EXTN={20, 02, 21, 08, 416 A0, EC, 01, 01, 417 A0, ED, 01, 00, 418 A0, 5E, 01, 01, 419 A0, 40, 01, 01, 420 A0, DD, 01, 2D, 421 A0, D1, 01, 06, 422 A0, D4, 01, 01, 423 A0, 86, 01, 77 424 } 425# A0, F2, 01, 01, 426# A0, 40, 01, 01, 427# A0, 41, 01, 02, 428# A0, 43, 01, 04, 429# A0, 02, 01, 01, 430# A0, 03, 01, 11, 431# A0, 07, 01, 03, 432# A0, 08, 01, 01 433# } 434 435############################################################################### 436# Core configuration settings 437NXP_CORE_CONF={ 20, 02, 37, 11, 438 28, 01, 00, 439 21, 01, 00, 440 30, 01, 08, 441 31, 01, 03, 442 32, 01, 60, 443 38, 01, 01, 444 33, 04, 01, 02, 03, 04, 445 54, 01, 06, 446 50, 01, 02, 447 5B, 01, 00, 448 3E, 01, 00, 449 80, 01, 01, 450 81, 01, 01, 451 82, 01, 0E, 452 18, 01, 01, 453 68, 01, 01, 454 85, 01, 01 455 } 456############################################################################### 457# 0x38 set to start Proprietary Action NTF 458# 0x00 to stop NTF 459NXP_PROP_CE_ACTION_NTF=0x00 460 461############################################################################### 462