libnfc-hal-st.conf 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. ########################### Start of libnf-hal-st_aosp.conf ###########################
  2. ###############################################################################
  3. ###############################################################################
  4. # ST HAL trace log level
  5. STNFC_HAL_LOGLEVEL=1
  6. NFC_DEBUG_ENABLED=0
  7. ###############################################################################
  8. # Vendor specific mode to enable FW (RF & SWP) traces.
  9. STNFC_FW_DEBUG_ENABLED=0
  10. ###############################################################################
  11. # File used for NFA storage
  12. NFA_STORAGE="/data/nfc"
  13. ###############################################################################
  14. # Keep the nfa storage file.
  15. PRESERVE_STORAGE=1
  16. ###############################################################################
  17. # In Switch OFF mode (phone switched-off), specify the desired CE mode to
  18. # the controller.
  19. # 0: No card-emulation; DEFAULT
  20. # 1: Switch-off card-emulation enabled
  21. CE_ON_SWITCH_OFF_STATE=1
  22. ###############################################################################
  23. # Vendor specific mode to support the USB charging mode if VPSIO=1 in switch off.
  24. STNFC_USB_CHARGING_MODE=1
  25. ###############################################################################
  26. # Vendor Specific Proprietary Protocol & Discovery Configuration
  27. # Set to 0xFF if unsupported
  28. # byte[0] NCI_PROTOCOL_18092_ACTIVE
  29. # byte[1] NCI_PROTOCOL_B_PRIME
  30. # byte[2] NCI_PROTOCOL_DUAL
  31. # byte[3] NCI_PROTOCOL_15693
  32. # byte[4] NCI_PROTOCOL_KOVIO
  33. # byte[5] NCI_PROTOCOL_MIFARE
  34. # byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO
  35. # byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME
  36. # byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
  37. NFA_PROPRIETARY_CFG={05:FF:FF:06:8A:90:77:FF:FF}
  38. ###############################################################################
  39. # Choose the presence-check algorithm for type-4 tag. If not defined,
  40. # the default value is 1.
  41. # 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm
  42. # 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block
  43. # 2 NFA_RW_PRES_CHK_RESET; Deactivate to Sleep, then re-activate
  44. # 3 NFA_RW_PRES_CHK_RB_CH0; Type-4 tag protocol's ReadBinary command on channel 0
  45. # 4 NFA_RW_PRES_CHK_RB_CH3; Type-4 tag protocol's ReadBinary command on channel 3
  46. # 5 NFA_RW_PRES_CHK_ISO_DEP_NAK; presence check command ISO-DEP NAK as per NCI2.0
  47. PRESENCE_CHECK_ALGORITHM=5
  48. ###############################################################################
  49. # Name of the NCI HAL module to use
  50. # If unset, falls back to nfc_nci.bcm2079x
  51. NCI_HAL_MODULE="nfc_nci.st21nfc"
  52. ###############################################################################
  53. # ALLOW list to be set at startup.
  54. DEVICE_HOST_ALLOW_LIST={02:C0}
  55. ###############################################################################
  56. # BAIL OUT value for P2P
  57. # Implements algorithm for NFC-DEP protocol priority over ISO-DEP protocol.
  58. POLL_BAIL_OUT_MODE=1
  59. ###############################################################################
  60. # Extended APDU length for ISO_DEP
  61. ISO_DEP_MAX_TRANSCEIVE=0xFEFF
  62. ###############################################################################
  63. # Configure the NFC Extras to open and use a static pipe. If the value is
  64. # not set or set to 0, then the default is use a dynamic pipe based on a
  65. # destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value
  66. # for each EE (ESE/SIM)
  67. OFF_HOST_ESE_PIPE_ID=0x5E
  68. OFF_HOST_SIM_PIPE_ID=0x3E
  69. ###############################################################################
  70. #Set the default Felica T3T System Code OffHost route Location :
  71. #This settings will be used when application does not set this parameter
  72. # host 0x00
  73. # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE)
  74. # UICC 0x81 (UICC_1), 0x85 (UICC_2)
  75. DEFAULT_SYS_CODE_ROUTE=0x86
  76. ###############################################################################
  77. #Set the Felica T3T System Code supported power state:
  78. DEFAULT_SYS_CODE_PWR_STATE=0x3B
  79. ###############################################################################
  80. # Path and Files used for FW update binaries storage
  81. STNFC_FW_PATH_STORAGE="/vendor/firmware"
  82. STNFC_FW_BIN_NAME="/st54j_fw.bin"
  83. STNFC_FW_CONF_NAME="/st54j_conf.bin"
  84. ###############################################################################
  85. # Default off-host route for Felica.
  86. # This settings will be used when application does not set this parameter
  87. # host 0x00
  88. # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE)
  89. # UICC 0x81 (UICC_1), 0x85 (UICC_2)
  90. DEFAULT_NFCF_ROUTE=0x86
  91. ###############################################################################
  92. # Configure the default off-host route.
  93. # used for technology A and B routing
  94. # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE)
  95. # UICC 0x81 (UICC_1), 0x85 (UICC_2)
  96. DEFAULT_OFFHOST_ROUTE=0x81
  97. ###############################################################################
  98. # Configure the default AID route.
  99. # host 0x00
  100. # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE)
  101. # UICC 0x81 (UICC_1), 0x85 (UICC_2)
  102. DEFAULT_ROUTE=0x00
  103. ###############################################################################
  104. # Configure the NFCEEIDs of offhost UICC.
  105. # UICC 0x81 (UICC_1), 0x85 (UICC_2)
  106. OFFHOST_ROUTE_UICC={81}
  107. ###############################################################################
  108. # Configure the NFCEEIDs of offhost eSEs.
  109. # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE)
  110. OFFHOST_ROUTE_ESE={86}
  111. ###############################################################################
  112. # Configure the list of NFCEE for the ISO-DEP routing.
  113. # host 0x00
  114. # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE)
  115. # UICC 0x81 (UICC_1), 0x85 (UICC_2)
  116. DEFAULT_ISODEP_ROUTE=0x81
  117. ###############################################################################
  118. # Configure the HAL Clock control
  119. # enable 0x01
  120. # disable 0x00 default value
  121. STNFC_CONTROL_CLK=0x01
  122. ###############################################################################
  123. # Configure the ACTIVE_RW timer
  124. # Default 0x00, set 0x01 to enable it
  125. STNFC_ACTIVERW_TIMER=0x01
  126. ###############################################################################
  127. # Core configuration settings
  128. CORE_CONF_PROP={ 20, 02, 0a, 03,
  129. a1, 01, 1e,
  130. a2, 01, 19,
  131. 80, 01, 01
  132. }