diff --git a/configs/libnfc-nxp.conf b/configs/libnfc-nxp.conf index f8ac47c..e3cc0ea 100644 --- a/configs/libnfc-nxp.conf +++ b/configs/libnfc-nxp.conf @@ -19,6 +19,8 @@ NXPLOG_TML_LOGLEVEL=0x02 ############################################################################### # Extension for Mifare reader enable +# 0x00 - Disabled +# 0x01 - Enabled MIFARE_READER_ENABLE=0x01 ############################################################################### @@ -30,7 +32,7 @@ MIFARE_READER_ENABLE=0x01 #define CLK_SRC_XTAL 1 #define CLK_SRC_PLL 2 -NXP_SYS_CLK_SRC_SEL=0x01 +NXP_SYS_CLK_SRC_SEL=0x02 ############################################################################### # System clock frequency selection configuration @@ -41,13 +43,13 @@ NXP_SYS_CLK_SRC_SEL=0x01 #define CLK_FREQ_38_4MHZ 5 #define CLK_FREQ_52MHZ 6 -NXP_SYS_CLK_FREQ_SEL=0x00 +NXP_SYS_CLK_FREQ_SEL=0x02 ############################################################################### # The timeout value to be used for clock request acknowledgment # min value = 0x01 to max = 0x19 -NXP_SYS_CLOCK_TO_CFG=0x01 +NXP_SYS_CLOCK_TO_CFG=0x0A ############################################################################### # NXP proprietary settings @@ -59,96 +61,259 @@ NXP_NFC_PROFILE_EXTN={20, 02, 05, 01, A0, 44, 01, 00} ############################################################################### # Standby enable settings -#NXP_CORE_STANDBY={2F, 00, 01, 01} +NXP_CORE_STANDBY={2F, 00, 01, 01} -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -# NXP_RF_CONF_BLK_1={ -#} - -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -#NXP_RF_CONF_BLK_2={ -#} ############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -#NXP_RF_CONF_BLK_3={ -#} - -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -#NXP_RF_CONF_BLK_4={ -#} - +# NXP RF ALM (NO BOOSTER) configuration settings for FW VERSION = 08.01.1D ############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -#NXP_RF_CONF_BLK_5={ -#} -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -#NXP_RF_CONF_BLK_6={ -#} +# *** ALM(NO BOOSTER) FW VERSION = 08.01.1D *** +NXP_RF_CONF_BLK_1={ + 20, 02, F3, 20, + A0, 0D, 03, 00, 40, 03, + A0, 0D, 03, 04, 43, 20, + A0, 0D, 03, 04, FF, 05, + A0, 0D, 06, 06, 44, A3, 90, 03, 00, + A0, 0D, 06, 06, 30, CF, 00, 08, 00, + A0, 0D, 06, 06, 2F, 8F, 05, 80, 0C, + A0, 0D, 04, 06, 03, 00, 71, + A0, 0D, 03, 06, 48, 18, + A0, 0D, 03, 06, 43, A0, + A0, 0D, 06, 06, 42, 00, 00, F1, F6, + A0, 0D, 06, 06, 41, 80, 00, 00, 00, + A0, 0D, 03, 06, 37, 18, + A0, 0D, 03, 06, 16, 00, + A0, 0D, 03, 06, 15, 00, + A0, 0D, 06, 06, FF, 05, 00, 00, 00, + A0, 0D, 06, 08, 44, 00, 00, 00, 00, + A0, 0D, 06, 20, 4A, 00, 00, 00, 00, + A0, 0D, 06, 20, 42, 88, 10, FF, FF, + A0, 0D, 03, 20, 16, 00, + A0, 0D, 03, 20, 15, 00, + A0, 0D, 06, 22, 44, 22, 00, 02, 00, + A0, 0D, 06, 22, 2D, 50, 44, 0C, 00, + A0, 0D, 04, 32, 03, 40, 3D, + A0, 0D, 06, 32, 42, F8, 10, FF, FF, + A0, 0D, 03, 32, 16, 00, + A0, 0D, 03, 32, 15, 01, + A0, 0D, 03, 32, 0D, 22, + A0, 0D, 03, 32, 14, 22, + A0, 0D, 06, 32, 4A, 30, 07, 01, 1F, + A0, 0D, 06, 34, 2D, 24, 77, 0C, 00, + A0, 0D, 06, 34, 34, 00, 00, E4, 03, + A0, 0D, 06, 34, 44, 21, 00, 02, 00 +} +# *** ALM(NO BOOSTER) FW VERSION = 08.01.1D *** +NXP_RF_CONF_BLK_2={ + 20, 02, F4, 1F, + A0, 0D, 06, 35, 44, 21, 00, 02, 00, + A0, 0D, 06, 38, 4A, 53, 07, 01, 1B, + A0, 0D, 06, 38, 42, 68, 10, FF, FF, + A0, 0D, 03, 38, 16, 00, + A0, 0D, 03, 38, 15, 00, + A0, 0D, 06, 3A, 2D, 15, 47, 0D, 00, + A0, 0D, 06, 3C, 4A, 52, 07, 01, 1B, + A0, 0D, 06, 3C, 42, 68, 10, FF, FF, + A0, 0D, 03, 3C, 16, 00, + A0, 0D, 03, 3C, 15, 00, + A0, 0D, 06, 3E, 2D, 15, 47, 0D, 00, + A0, 0D, 06, 40, 42, F0, 10, FF, FF, + A0, 0D, 03, 40, 0D, 02, + A0, 0D, 03, 40, 14, 02, + A0, 0D, 06, 40, 4A, 12, 07, 00, 00, + A0, 0D, 03, 40, 16, 00, + A0, 0D, 03, 40, 15, 00, + A0, 0D, 06, 42, 2D, 15, 47, 0D, 00, + A0, 0D, 06, 46, 44, 21, 00, 02, 00, + A0, 0D, 06, 46, 2D, 05, 47, 0E, 00, + A0, 0D, 06, 44, 4A, 33, 07, 01, 07, + A0, 0D, 06, 44, 42, 88, 10, FF, FF, + A0, 0D, 03, 44, 16, 00, + A0, 0D, 03, 44, 15, 00, + A0, 0D, 06, 4A, 44, 22, 00, 02, 00, + A0, 0D, 06, 4A, 2D, 05, 37, 0C, 00, + A0, 0D, 06, 48, 4A, 33, 07, 01, 07, + A0, 0D, 06, 48, 42, 88, 10, FF, FF, + A0, 0D, 03, 48, 16, 00, + A0, 0D, 03, 48, 15, 00, + A0, 0D, 06, 4E, 44, 22, 00, 02, 00 +} +# *** ALM(NO BOOSTER) FW VERSION = 08.01.1D *** +NXP_RF_CONF_BLK_3={ + 20, 02, F7, 1E, + A0, 0D, 06, 4E, 2D, 05, 37, 0C, 00, + A0, 0D, 06, 4C, 4A, 33, 07, 01, 07, + A0, 0D, 06, 4C, 42, 88, 10, FF, FF, + A0, 0D, 03, 4C, 16, 00, + A0, 0D, 03, 4C, 15, 00, + A0, 0D, 06, 52, 44, 22, 00, 02, 00, + A0, 0D, 06, 52, 2D, 05, 25, 0C, 00, + A0, 0D, 06, 50, 42, 90, 10, FF, FF, + A0, 0D, 06, 50, 4A, 11, 0F, 01, 07, + A0, 0D, 03, 50, 16, 00, + A0, 0D, 03, 50, 15, 00, + A0, 0D, 06, 56, 2D, 05, 9E, 0C, 00, + A0, 0D, 06, 56, 44, 22, 00, 02, 00, + A0, 0D, 06, 5C, 2D, 05, 69, 0C, 00, + A0, 0D, 06, 5C, 44, 21, 00, 02, 00, + A0, 0D, 06, 54, 42, 88, 10, FF, FF, + A0, 0D, 06, 54, 4A, 33, 07, 01, 07, + A0, 0D, 03, 54, 16, 00, + A0, 0D, 03, 54, 15, 00, + A0, 0D, 06, 5A, 42, 90, 10, FF, FF, + A0, 0D, 06, 5A, 4A, 31, 07, 01, 07, + A0, 0D, 03, 5A, 16, 00, + A0, 0D, 03, 5A, 15, 00, + A0, 0D, 06, 98, 2F, AF, 05, 80, 0F, + A0, 0D, 06, 9A, 42, 00, 00, F1, F6, + A0, 0D, 06, 30, 44, A3, 90, 03, 00, + A0, 0D, 06, 6C, 44, A3, 90, 03, 00, + A0, 0D, 06, 6C, 30, CF, 00, 08, 00, + A0, 0D, 06, 6C, 2F, 8F, 05, 80, 0C, + A0, 0D, 06, 70, 2F, 8F, 05, 80, 12 +} +# *** ALM(NO BOOSTER) FW VERSION = 08.01.1D *** +NXP_RF_CONF_BLK_4={ + 20, 02, F7, 1E, + A0, 0D, 06, 70, 30, CF, 00, 08, 00, + A0, 0D, 06, 74, 2F, 8F, 05, 80, 12, + A0, 0D, 06, 74, 30, DF, 00, 07, 00, + A0, 0D, 06, 78, 2F, 1F, 06, 80, 01, + A0, 0D, 06, 78, 30, 3F, 00, 04, 00, + A0, 0D, 06, 78, 44, A2, 90, 03, 00, + A0, 0D, 03, 78, 47, 00, + A0, 0D, 06, 7C, 2F, AF, 05, 80, 0F, + A0, 0D, 06, 7C, 30, CF, 00, 07, 00, + A0, 0D, 06, 7C, 44, A3, 90, 03, 00, + A0, 0D, 06, 7D, 30, CF, 00, 08, 00, + A0, 0D, 06, 80, 2F, AF, 05, 80, 90, + A0, 0D, 06, 80, 44, A3, 90, 03, 00, + A0, 0D, 06, 84, 2F, AF, 05, 80, 92, + A0, 0D, 06, 84, 44, A3, 90, 03, 00, + A0, 0D, 06, 88, 2F, 7F, 04, 80, 10, + A0, 0D, 06, 88, 30, 5F, 00, 16, 00, + A0, 0D, 03, 88, 47, 00, + A0, 0D, 06, 88, 44, A1, 90, 03, 00, + A0, 0D, 03, 0C, 48, 18, + A0, 0D, 03, 10, 43, 20, + A0, 0D, 06, 6A, 42, F8, 10, FF, FF, + A0, 0D, 03, 6A, 16, 00, + A0, 0D, 03, 6A, 15, 01, + A0, 0D, 06, 6A, 4A, 30, 0F, 01, 1F, + A0, 0D, 06, 8C, 42, 88, 10, FF, FF, + A0, 0D, 06, 8C, 4A, 33, 07, 01, 07, + A0, 0D, 03, 8C, 16, 00, + A0, 0D, 03, 8C, 15, 00, + A0, 0D, 06, 92, 42, 90, 10, FF, FF +} +# *** ALM(NO BOOSTER) FW VERSION = 08.01.1D *** +NXP_RF_CONF_BLK_5={ + 20, 02, 37, 07, + A0, 0D, 06, 92, 4A, 31, 07, 01, 07, + A0, 0D, 03, 92, 16, 00, + A0, 0D, 03, 92, 15, 00, + A0, 0D, 06, 0A, 30, CF, 00, 08, 00, + A0, 0D, 06, 0A, 2F, 8F, 05, 80, 0C, + A0, 0D, 03, 0A, 48, 10, + A0, 0D, 06, 0A, 44, A3, 90, 03, 00 +} +# *** ALM(NO BOOSTER) FW VERSION = 08.01.1D *** +NXP_RF_CONF_BLK_6={ +} ############################################################################### # Core configuration extensions # It includes -# Wired mode settings A0ED, A0EE -# Tag Detector A040, A041, A043 -# Low Power mode A007 -# Clock settings A002, A003 -# PbF settings A008 -NXP_CORE_CONF_EXTN={20, 02, 16, 04, - A0, EC, 01, 01, - A0, ED, 01, 01, - A0, 5E, 01, 01, - A0, 0D, 06, 3E, 2D, 15, 88, 15, 00 +# A002 - Clock Request +# 0x00 - Disabled +# 0x01 - Enabled +# A003 - Clock Selection +# Please refer to User Manual +# A004 - Clock Time Out +# Defined in ms +# A00E - Load Modulation Mode +# 0x00 - PLM +# 0x01 - ALM +# A011 - Clock specific configuration +# Please refer to User Manual +# A012 - NFCEE interface 2 configuration +# 0x00 - SWP 2 interface is used +# 0x02 - DWP interface is used +# A013 - TVdd configuration +# 0x00 - TVdd is set to 3.1V in Poll mode +# 0x02 - TVdd is set to 2.7V in Poll mode +# A040-A043 - Low Power Card Detector +# Please refer to Application Note of LPCD +# A05E - Jewel Reader +# 0x00 - RID is not sent during activation +# 0x01 - RID is sent during activation +# A061 - Retry after LPCD +# 0b0000XXXX - Number of retry if activation failed +# 0bXXXX0000 - Duration to wait before retry (10ms per step) +# Please refer to User Manual +# A0CD - SWP interface 1: S1 line behavior +# Defined S1 High time-out during Activation sequence +# A0EC - SWP1 interface +# 0x00 - Disabled +# 0x01 - Enabled +# A0ED - SWP2 interface +# 0x00 - Disabled +# 0x01 - Enabled +NXP_CORE_CONF_EXTN={20, 02, 40, 0F, + A0, 02, 01, 01, + A0, 04, 01, 0A, + A0, 0E, 01, 01, + A0, 11, 04, 01, 22, 67, CD, + A0, 12, 01, 00, + A0, 13, 01, 00, + A0, 40, 01, 01, + A0, 41, 01, 02, + A0, 42, 01, 19, + A0, 43, 01, 00, + A0, 5E, 01, 01, + A0, 61, 01, 00, + A0, CD, 01, 0F, + A0, EC, 01, 01, + A0, ED, 01, 00 } -# A0, 40, 01, 01, -# A0, 41, 01, 02, -# A0, 43, 01, 04, -# A0, 02, 01, 01, -# A0, 03, 01, 11, -# A0, 07, 01, 03, -# A0, 08, 01, 01 -# } - -############################################################################### -# Core configuration rf field filter settings to enable set 01 ,to disable set to 00 last bit -NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 01 - } -############################################################################### -# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set to 0x00 -NXP_I2C_FRAGMENTATION_ENABLED=0x00 ############################################################################### -# Core configuration settings -NXP_CORE_CONF={ 20, 02, 2B, 0D, - 28, 01, 00, +# Core configuration settings +# It includes +# 18 - Poll Mode NFC-F: PF_BIT_RATE +# 21 - Poll Mode ISO-DEP: PI_BIT_RATE +# 28 - Poll Mode NFC-DEP: PN_NFC_DEP_SPEED +# 30 - Lis. Mode NFC-A: LA_BIT_FRAME_SDD +# 31 - Lis. Mode NFC-A: LA_PLATFORM_CONFIG +# 33 - Lis. Mode NFC-A: LA_SEL_INFO +# 50 - Lis. Mode NFC-F: LF_PROTOCOL_TYPE +# 54 - Lis. Mode NFC-F: LF_CON_BITR_F +# 5B - Lis. Mode ISO-DEP: LI_BIT_RATE +# 60 - Lis. Mode NFC-DEP: LN_WT +# 80 - Other Param.: RF_FIELD_INFO +# 81 - Other Param.: RF_NFCEE_ACTION +# 82 - Other Param.: NFCDEP_OP +NXP_CORE_CONF={ 20, 02, 2E, 0E, + 18, 01, 01, 21, 01, 00, + 28, 01, 01, 30, 01, 08, 31, 01, 03, 33, 04, 01, 02, 03, 04, - 54, 01, 06, 50, 01, 02, + 54, 01, 06, 5B, 01, 00, 60, 01, 0E, 80, 01, 01, 81, 01, 01, 82, 01, 0E, - 18, 01, 01 + 3C, 01, 04 } - + ############################################################################### -# Mifare Classic Key settings -#NXP_CORE_MFCKEY_SETTING={20, 02, 25,04, A0, 51, 06, A0, A1, A2, A3, A4, A5, +# Mifare Classic Key settings +#NXP_CORE_MFCKEY_SETTING={20, 02, 25,04, A0, 51, 06, A0, A1, A2, A3, A4, A5, # A0, 52, 06, D3, F7, D3, F7, D3, F7, # A0, 53, 06, FF, FF, FF, FF, FF, FF, # A0, 54, 06, 00, 00, 00, 00, 00, 00} @@ -158,48 +323,18 @@ NXP_CORE_CONF={ 20, 02, 2B, 0D, # No secure element 0x00 # eSE 0x01 # UICC 0x02 - +# MULTI_SE 0x03 NXP_DEFAULT_SE=0x02 +############################################################################### NXP_DEFAULT_NFCEE_TIMEOUT=0x06 ############################################################################### #Enable SWP full power mode when phone is power off -NXP_SWP_FULL_PWR_ON=0x01 - -############################################################################### -#Set the default AID route Location : -#This settings will be used when application does not set this parameter -# host 0x00 -# eSE 0x01 -# UICC 0x02 -DEFAULT_AID_ROUTE=0x00 - -############################################################################### -#Set the Mifare Desfire route Location : -#This settings will be used when application does not set this parameter -# host 0x00 -# eSE 0x01 -# UICC 0x02 -DEFAULT_DESFIRE_ROUTE=0x02 - -############################################################################### -#Set the Mifare CLT route Location : -#This settings will be used when application does not set this parameter -# host 0x00 -# eSE 0x01 -# UICC 0x02 -DEFAULT_MIFARE_CLT_ROUTE=0x02 +NXP_SWP_FULL_PWR_ON=0x00 ############################################################################### #Chip type #PN547C2 0x01 #PN65T 0x02 - NXP_NFC_CHIP=0x01 - -#Timeout in secs -NXP_SWP_RD_START_TIMEOUT=0x0A - -#Timeout in secs -NXP_SWP_RD_TAG_OP_TIMEOUT=0x01