1 ############################################################################### 2 # Application options 3 APPL_TRACE_LEVEL=0x01 4 PROTOCOL_TRACE_LEVEL=0x00000000 5 6 ############################################################################### 7 # performance measurement 8 # Change this setting to control how often USERIAL log the performance (throughput) 9 # data on read/write/poll 10 # defailt is to log performance dara for every 100 read or write 11 #REPORT_PERFORMANCE_MEASURE=100 12 13 ############################################################################### 14 # File used for NFA storage 15 NFA_STORAGE="/data/nfc" 16 17 ############################################################################### 18 # Insert a delay in milliseconds after NFC_WAKE and before write to NFCC 19 NFC_WAKE_DELAY=20 20 21 ############################################################################### 22 # Various Delay settings (in ms) used in USERIAL 23 # POWER_ON_DELAY 24 # Delay after turning on chip, before writing to transport (default 300) 25 # PRE_POWER_OFF_DELAY 26 # Delay after deasserting NFC-Wake before turn off chip (default 0) 27 # POST_POWER_OFF_DELAY 28 # Delay after turning off chip, before USERIAL_close returns (default 0) 29 # 30 POWER_ON_DELAY=50 31 PRE_POWER_OFF_DELAY=10 32 #POST_POWER_OFF_DELAY=0 33 34 ############################################################################### 35 # Maximum time (ms) to wait for RESET NTF after setting REG_PU to high 36 # The default is 1000. 37 NFCC_ENABLE_TIMEOUT=0 38 39 ############################################################################### 40 # Device Manager Config 41 # 42 # If NFA_DM_CFG is not provided, stack default settings are 43 # used (see nfa_dm_cfg.c). They are as follows: 44 # 0 (FALSE) Automatic NDEF detection when background polling 45 # 0 (FALSE) Automatic NDEF read when background polling 46 # 47 #NFA_DM_CFG={00:00} 48 49 ############################################################################### 50 # Default poll duration (in ms) 51 # The defualt is 500ms if not set (see nfc_target.h) 52 #NFA_DM_DISC_DURATION_POLL=500 53 54 ############################################################################### 55 # Startup Vendor Specific Configuration (100 bytes maximum); 56 # byte[0] TLV total len = 0x5 57 # byte[1] NCI_MTS_CMD|NCI_GID_PROP = 0x2f 58 # byte[2] NCI_MSG_FRAME_LOG = 0x9 59 # byte[3] 2 60 # byte[4] 0=turn off RF frame logging; 1=turn on 61 # byte[5] 0=turn off SWP frame logging; 1=turn on 62 # NFA_DM_START_UP_VSC_CFG={05:2F:09:02:01:01} 63 64 ############################################################################### 65 # Configure the default Destination Gate used by HCI (the default is 4, which 66 # is the ETSI loopback gate. 67 #NFA_HCI_DEFAULT_DEST_GATE=0x04 68 69 ############################################################################### 70 # Override the stack default for NFA_EE_MAX_EE_SUPPORTED set in nfc_target.h. 71 # The value is set to 3 by default as it assumes we will discover 0xF2, 72 # 0xF3, and 0xF4. If a platform will exclude an SE, this value can be reduced 73 # so that the stack will not wait any longer than necessary. It can be set to 74 # 0 to disable EE and HCI sub-systems (i.e. if there are no SE on the system). 75 # Note, if set to 0, the ACTIVE_SE setting should also be set to 0. 76 NFA_MAX_EE_SUPPORTED=0 77 78 ############################################################################### 79 # Configure the single default SE to use. The default is to use the first 80 # SE that is detected by the stack. This value might be used when the phone 81 # supports multiple SE (e.g. 0xF3 and 0xF4) but you want to force it to use 82 # one of them (e.g. 0xF4). This can be set to 0 if there are no SE on the 83 # system in order to skip SE initialization. 84 ACTIVE_SE=0 85 86 ############################################################################### 87 # Configure the NFC Extras to open and use a static pipe. If the value is 88 # not set or set to 0, then the default is use a dynamic pipe based on a 89 # destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value 90 # for each UICC (where F3="UICC0" and F4="UICC1") 91 #NFA_HCI_STATIC_PIPE_ID_F3=0x70 92 #NFA_HCI_STATIC_PIPE_ID_F4=0x71 93 94 ############################################################################### 95 # When disconnecting from Oberthur secure element, perform a warm-reset of 96 # the secure element to deselect the applet. 97 # The default hex value of the command is 0x3. If this variable is undefined, 98 # then this feature is not used. 99 OBERTHUR_WARM_RESET_COMMAND=0x03 100 101 ############################################################################### 102 # Force UICC to only listen to the following technology(s). 103 # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. 104 # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B. 105 #UICC_LISTEN_TECH_MASK=0x01 106 107 ############################################################################### 108 # AID for Empty Select command 109 # If specified, this AID will be substituted when an Empty SELECT command is 110 # detected. The first byte is the length of the AID. Maximum length is 16. 111 AID_FOR_EMPTY_SELECT={08:A0:00:00:01:51:00:00:00} 112 113 ############################################################################### 114 # Force tag polling for the following technology(s). 115 # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. 116 # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | 117 # NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 | 118 # NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_A_ACTIVE | 119 # NFA_TECHNOLOGY_MASK_F_ACTIVE. 120 # 121 # Notable bits: 122 # NFA_TECHNOLOGY_MASK_A 0x01 123 # NFA_TECHNOLOGY_MASK_B 0x02 124 # NFA_TECHNOLOGY_MASK_F 0x04 125 # NFA_TECHNOLOGY_MASK_ISO15693 0x08 126 # NFA_TECHNOLOGY_MASK_B_PRIME 0x10 127 # NFA_TECHNOLOGY_MASK_KOVIO 0x20 128 # NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 129 # NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 130 POLLING_TECH_MASK=0xEF 131 132 ############################################################################### 133 # Force P2P to only listen for the following technology(s). 134 # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. 135 # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F | 136 # NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE 137 #P2P_LISTEN_TECH_MASK=0xC5 138 139 ############################################################################### 140 # Maximum Number of Credits to be allowed by the NFCC 141 # This value overrides what the NFCC specifices allowing the host to have 142 # the control to work-around transport limitations. If this value does 143 # not exist or is set to 0, the NFCC will provide the number of credits. 144 #MAX_RF_DATA_CREDITS=1 145 146 ############################################################################### 147 # When screen is turned off, specify the desired power state of the controller. 148 # 0: power-off-sleep state; DEFAULT 149 # 1: full-power state (note: this is still low-power ("snooze") on BRCM devices. 150 # 2: screen-off card-emulation (CE4/CE3/CE1 modes are used) 151 SCREEN_OFF_POWER_STATE=1 152 153 ############################################################################### 154 # SPD Debug mode 155 # If set to 1, any failure of downloading a patch will trigger a hard-stop 156 #SPD_DEBUG=0 157 158 ############################################################################### 159 # SPD Max Retry Count 160 # The number of attempts to download a patch before giving up (defualt is 3). 161 # Note, this resets after a power-cycle. 162 #SPD_MAX_RETRY_COUNT=3 163 164 ############################################################################### 165 # transport driver 166 # 167 # TRANSPORT_DRIVER=<driver> 168 # 169 # where <driver> can be, for example: 170 # "/dev/ttyS" (UART) 171 # "/dev/bcmi2cnfc" (I2C) 172 # "hwtun" (HW Tunnel) 173 # "/dev/bcmspinfc" (SPI) 174 # "/dev/btusb0" (BT USB) 175 TRANSPORT_DRIVER="/dev/bcm2079x" 176 177 ############################################################################### 178 # power control driver 179 # Specify a kernel driver that support ioctl commands to control NFC_EN and 180 # NFC_WAKE gpio signals. 181 # 182 # POWER_CONTRL_DRIVER=<driver> 183 # where <driver> can be, for example: 184 # "/dev/nfcpower" 185 # "/dev/bcmi2cnfc" (I2C) 186 # "/dev/bcmspinfc" (SPI) 187 # i2c and spi driver may be used to control NFC_EN and NFC_WAKE signal 188 POWER_CONTROL_DRIVER="/dev/bcm2079x" 189 190 ############################################################################### 191 # I2C transport driver options 192 # BCMI2CNFC_ADDRESS=0 193 194 ############################################################################### 195 # I2C transport driver try to read multiple packets in read() if data is available 196 # remove the comment below to enable this feature 197 #READ_MULTIPLE_PACKETS=1 198 199 ############################################################################### 200 # SPI transport driver options 201 #SPI_NEGOTIATION={0A:F0:00:01:00:00:00:FF:FF:00:00} 202 203 ############################################################################### 204 # UART transport driver options 205 # 206 # PORT=1,2,3,... 207 # BAUD=115200, 19200, 9600, 4800, 208 # DATABITS=8, 7, 6, 5 209 # PARITY="even" | "odd" | "none" 210 # STOPBITS="0" | "1" | "1.5" | "2" 211 212 #UART_PORT=2 213 #UART_BAUD=115200 214 #UART_DATABITS=8 215 #UART_PARITY="none" 216 #UART_STOPBITS="1" 217 218 ############################################################################### 219 # Insert a delay in microseconds per byte after a write to NFCC. 220 # after writing a block of data to the NFCC, delay this an amopunt of time before 221 # writing next block of data. the delay is calculated as below 222 # NFC_WRITE_DELAY * (number of byte written) / 1000 milliseconds 223 # e.g. after 259 bytes is written, delay (259 * 20 / 1000) 5 ms before next write 224 NFC_WRITE_DELAY=20 225 226 ############################################################################### 227 # Configuration for the RF discovery frequency for each technology. The values mean 228 # frequency for NFC Technology A 229 # Technology B 230 # Technology F 231 # Proprietary Technology/15693 232 # Proprietary Technology/B-Prime 233 # Proprietary Technology/Kovio 234 # Technology A active mode 235 # Technology F active mode 236 #POLL_FREQUENCY={01:01:01:01:01:01:01:01} 237 238 ############################################################################### 239 # Choose the presence-check algorithm for type-4 tag. If not defined, 240 # the default value is 1. 241 # 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm 242 # 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block 243 # 2 NFA_RW_PRES_CHK_RESET; Deactivate to Sleep, then re-activate 244 # 3 NFA_RW_PRES_CHK_RB_CH0; Type-4 tag protocol's ReadBinary command on channel 0 245 # 4 NFA_RW_PRES_CHK_RB_CH3; Type-4 tag protocol's ReadBinary command on channel 3 246 PRESENCE_CHECK_ALGORITHM=1 247