AnsweredAssumed Answered

Will NfcFactoryTestApp detect RFID card in Continuous RF ON mode

Question asked by sri navamani on Dec 11, 2018
Latest reply on Dec 18, 2018 by jimmychan

Hi,

I'm trying to integrate PN7150 with our prototype using Android 7.1.2 AOSP. I followed NXP NCI Android Porting Guidelines AN11690. Used NfcFactoryTestApp native application test the integration. I received following log. Help us in integrating pn7150 module with our android prototype.

 

1. What is the use of Continuous RF ON and RRBS mode? I tried showing RFID cards in Continuous RF mode. But, it doesn't show detect the card.

msm8909:/ # /data/NfcFactoryTestApp                                           

----------------------------
NFC Factory Test Application
----------------------------
PN7150 NFC controller detected
Select the test to run:
     1. Continuous RF ON
     2. PRBS
Your choice: 1
Continuous RF ON test
  NFC Controller is now in continuous RF ON mode - Press enter to stop

 

2. In Android Settings, NFC settings is in blocked mode. While trying to enable receiving following error message in logcat.

 

01-01 05:21:03.439  7258  7258 I NfcService: Starting NFC service
01-01 05:21:03.460  7258  7258 D BrcmNfcJni: JNI_OnLoad: enter
01-01 05:21:03.460  7258  7258 I BrcmNfcJni: NFC Service: loading nci JNI
01-01 05:21:03.460  7258  7258 D BrcmNfcJni: register_com_android_nfc_NativeNfcManager: enter
01-01 05:21:03.460  7258  7258 D BrcmNfcJni: PowerSwitch::initialize: level=PS-UNKNOWN (0)
01-01 05:21:03.460  7258  7258 D NfcAdaptation: bool CNfcConfig::readConfig(const char *, bool) Opened base config /etc/libnfc-brcm.conf
01-01 05:21:03.468  7258  7258 D NfcAdaptation: bool CNfcConfig::readConfig(const char *, bool) Opened optional config /etc/libnfc-nxp.conf
01-01 05:21:03.477  7258  7258 D NfcAdaptation: bool CNfcConfig::readConfig(const char *, bool) Cannot open config file /data/nfc/libnfc-nxpTransit.conf
01-01 05:21:03.477  7258  7258 D NfcAdaptation: const CNfcParam *CNfcConfig::find(const char *) const found SCREEN_OFF_POWER_STATE=(0x1)
01-01 05:21:03.477  7258  7258 D BrcmNfcJni: PowerSwitch::initialize: desired screen-off state=1
01-01 05:21:03.477  7258  7258 D BrcmNfcJni: register_com_android_nfc_NativeNfcManager: exit
01-01 05:21:03.478  7258  7258 D BrcmNfcJni: register_com_android_nfc_NativeNfcTag
01-01 05:21:03.479  7258  7258 D BrcmNfcJni: RoutingManager::RoutingManager():enter
01-01 05:21:03.479  7258  7258 D         : bool CNxpNfcConfig::readConfig(const char *, bool) Opened base config /etc/libnfc-nxp.conf
01-01 05:21:03.485  7258  7258 E         : bool CNxpNfcConfig::readConfig(const char *, bool) Cannot open config file /data/nfc/libnfc-nxpTransit.conf
01-01 05:21:03.485  7258  7258 D BrcmNfcJni: RoutingManager::RoutingManager():exit
01-01 05:21:03.485  7258  7258 D BrcmNfcJni: RoutingManager::registerJniFunctions
01-01 05:21:03.486  7258  7258 D BrcmNfcJni: JNI_OnLoad: exit
01-01 05:21:03.486  7258  7258 D BrcmNfcJni: nfcManager_initNativeStruc: enter
01-01 05:21:03.487  7258  7258 D BrcmNfcJni: nfcManager_initNativeStruc: exit
01-01 05:21:03.492  7258  7258 W Settings: Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
01-01 05:21:03.526  4148  4322 D HHC85xx_Service: Status = Reconnecting
01-01 05:21:03.561  7258  7258 W NfceeAccess: could not find /etc/nfcee_access.xml, no NFCEE access allowed
01-01 05:21:03.561  7258  7258 I NfceeAccess: read 0 signature(s) for NFCEE access
01-01 05:21:03.562  7258  7258 W NfcSccAccess: could not find /etc/nfcscc_access.xml, no NFCSCC access allowed
01-01 05:21:03.562  7258  7258 I NfcSccAccess: read 0 signature(s) for NFCSCC access
01-01 05:21:03.562  7258  7258 W NfcSeAccess: could not find /etc/nfcse_access.xml, no NFCSE access allowed
01-01 05:21:03.562  7258  7258 I NfcSeAccess: read 0 signature(s) for NFCSE access
01-01 05:21:03.568  7258  7258 D NfcService: Enforcing a policy change on user: UserHandle{0}, isActiveForUser = true
01-01 05:21:03.637  7258  7258 D AidRoutingManager: mDefaultRoute=0x0
01-01 05:21:03.637  7258  7258 D AidRoutingManager: mDefaultOffHostRoute=0x2
01-01 05:21:03.638  7258  7258 D AidRoutingManager: mAidMatchingSupport=0x0
01-01 05:21:03.638  7258  7258 D AidRoutingManager: mAidTableSize=0x0
01-01 05:21:03.640  7258  7258 D RegisteredT3tIdentifiersCache: RegisteredT3tIdentifiersCache
01-01 05:21:03.661  7258  7258 D RegisteredServicesCache: Dynamic AIDs file does not exist.
01-01 05:21:03.664  7258  7258 D RegisteredNxpServicesCache: readDynamicApduService End:   0
01-01 05:21:03.668  7258  7258 D RegisteredServicesCache:  Reading service state data always from file
01-01 05:21:03.670  7258  7258 D RegisteredServicesCache: ServiceStateFileVersion=1.0
01-01 05:21:03.670  7258  7258 E RegisteredServicesCache: Next Tag=services
01-01 05:21:03.671  7258  7258 E RegisteredServicesCache: 1invalidateCache:WriteServiceStateToFile
01-01 05:21:03.671  7258  7258 E RegisteredServicesCache:  Writing service state Data Always
01-01 05:21:03.796  7258  7258 D CardEmulationManager: Current default: null
01-01 05:21:03.797  7258  7258 D CardEmulationManager: No default set, last payment service removed.
01-01 05:21:03.797  7258  7258 D RegisteredAidCache: onServicesUpdated
01-01 05:21:03.798  7258  7258 D RegisteredAidCache: Not updating routing table because NFC is off.
01-01 05:21:03.799  7258  7258 D RegisteredNfcFServicesCache: Dynamic System Code, NFCID2 file does not exist.
01-01 05:21:03.802  7258  7258 D RegisteredNfcFServicesCache: Service unchanged, not updating
01-01 05:21:03.802  7258  7258 D NfcService: Before mIsHceCapable
01-01 05:21:03.810  7258  7278 D NfcService: checking on firmware download
01-01 05:21:03.810  7258  7278 D NfcService: NFC is on. Doing normal stuff
01-01 05:21:03.811  7258  7278 I NfcService: Enabling NFC
01-01 05:21:03.811  7258  7278 D BrcmNfcJni: nfcManager_getChipVer: enter
01-01 05:21:03.811  7258  7278 D BrcmNfcJni: 0: nfcManager_getChipVer
01-01 05:21:03.816  7258  7278 D BrcmNfcJni: nfcManager_getNfcInitTimeout: enter
01-01 05:21:03.816  7258  7278 D BrcmNfcJni: NAME_NXP_DEFAULT_NFCEE_DISC_TIMEOUT not found
01-01 05:21:03.816  7258  7278 D BrcmNfcJni: NAME_NXP_DEFAULT_NFCEE_TIMEOUT not found
01-01 05:21:03.816  7258  7278 D BrcmNfcJni:  gNfcInitTimeout = 0: gdisc_timeout = 0 nfcManager_getNfcInitTimeout
01-01 05:21:03.816  7258  7278 I NfcService: Enabling NFC timeout90000
01-01 05:21:03.824  7258  7278 D BrcmNfcJni: nfcManager_doInitialize: enter; ver=NFCDROID-AOSP_M_00.01 nfa=NFA_PI_1.03.66+ NCI_VERSION=0x10
01-01 05:21:03.824  7258  7278 D BrcmNfcJni: nfcManager_doInitialize:  MW Version: NFC_NCIHALx_AR3C.7.4.0
01-01 05:21:03.824  7258  7278 D BrcmNfcJni: PowerSwitch::initialize: level=PS-FULL (1)
01-01 05:21:03.824  7258  7278 D NfcAdaptation: const CNfcParam *CNfcConfig::find(const char *) const found SCREEN_OFF_POWER_STATE=(0x1)
01-01 05:21:03.824  7258  7278 D BrcmNfcJni: PowerSwitch::initialize: desired screen-off state=1
01-01 05:21:03.824  7258  7278 D NfcAdaptation: NfcAdaptation::Initialize: enter
01-01 05:21:03.825  7258  7278 E NfcAdaptation: NfcAdaptation::Initialize: ver=NFCDROID-AOSP_M_00.01 nfa=NFA_PI_1.03.66+
01-01 05:21:03.825  7258  7278 D NfcAdaptation: const CNfcParam *CNfcConfig::find(const char *) const found PROTOCOL_TRACE_LEVEL=(0xFF)
01-01 05:21:03.825  7258  7278 D NfcAdaptation: NfcAdaptation::Initialize: NFA_EE_MAX_EE_SUPPORTED to use 2
01-01 05:21:03.825  7258  7278 D NfcAdaptation: const CNfcParam *CNfcConfig::find(const char *) const found APPL_TRACE_LEVEL=(0xFF)
01-01 05:21:03.825  7258  7278 D BrcmNfcJni: initializeGlobalAppLogLevel: level=5
01-01 05:21:03.825  7258  7278 D         : verify_stack_non_volatile_store
01-01 05:21:03.825  7258  7278 D NfcNciHal: crcChecksumVerifyIntegrity: filename=/data/nfc/nfaStorage.bin1
01-01 05:21:03.825  7258  7278 D NfcNciHal: crcChecksumVerifyIntegrity: filename=/data/nfc/nfaStorage.bin2
01-01 05:21:03.826  7258  7278 D NfcNciHal: crcChecksumVerifyIntegrity: filename=/data/nfc/nfaStorage.bin3
01-01 05:21:03.826  7258  7278 D NfcNciHal: crcChecksumVerifyIntegrity: filename=/data/nfc/nfaStorage.bin4
01-01 05:21:03.826  7258  7278 D NfcNciHal: crcChecksumVerifyIntegrity: filename=/data/nfc/nfaStorage.bin5
01-01 05:21:03.826  7258  7278 D         : delete_stack_non_volatile_store
01-01 05:21:03.828  7258  7281 D NfcAdaptation: NfcAdaptation::Thread: enter
01-01 05:21:03.829  7258  7282 I BrcmNfcNfa: NFC_TASK started.
01-01 05:21:03.829  7258  7281 D NfcAdaptation: NfcAdaptation::Thread: exit
01-01 05:21:03.830  7258  7278 D NfcAdaptation: NfcAdaptation::InitializeHalDeviceContext: enter
01-01 05:21:03.830  7258  7278 D NfcAdaptation: const CNfcParam *CNfcConfig::find(const char *) const found NCI_HAL_MODULE=nfc_nci.pn54x
01-01 05:21:03.830  7258  7278 E NfcAdaptation: NfcAdaptation::InitializeHalDeviceContext: fail hw_get_module nfc_nci.pn54x
01-01 05:21:03.830  7258  7278 D NfcAdaptation: NfcAdaptation::InitializeHalDeviceContext: exit
01-01 05:21:03.830  7258  7278 D NfcAdaptation: NfcAdaptation::Initialize: exit
01-01 05:21:03.830  7258  7278 I BrcmNfcNfa: nfa_dm_init ()
01-01 05:21:03.830  7258  7278 I BrcmNfcNfa: nfa_sys_register () id=1, enable_cplt_mask=0x0
01-01 05:21:03.830  7258  7278 I BrcmNfcNfa: nfa_sys_register () id=3, enable_cplt_mask=0x8
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_rw_init ()
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_sys_register () id=6, enable_cplt_mask=0x48
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_ce_init ()
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_sys_register () id=7, enable_cplt_mask=0xc8
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_ee_init ()
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_sys_register () id=2, enable_cplt_mask=0xcc
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_hci_init ()
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_hci_init() 10
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_hci_init() 2000
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: nfa_sys_register () id=8, enable_cplt_mask=0x1cc
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: LLCP - llcp_init ()
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: num_rx_buff = 21, rx_congest_start = 14, rx_congest_end = 10, max_num_ll_rx_buff = 6
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: max_num_tx_buff = 49, max_num_ll_tx_buff = 14
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: LLCP_RegisterServer (): SAP:0x1, link_type:0x2, ServiceName:<urn:nfc:sn:sdp>
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: LLCP_RegisterServer (): Registered SAP = 0x01
01-01 05:21:03.831  7258  7278 I BrcmNfcNfa: NFA_Enable ()
01-01 05:21:03.831  7258  7278 D NfcAdaptation: const CNfcParam *CNfcConfig::find(const char *) const found APPL_TRACE_LEVEL=(0xFF)
01-01 05:21:03.831  7258  7278 D BrcmNfcJni: initializeGlobalAppLogLevel: level=5
01-01 05:21:03.832  7258  7278 I BrcmNfcNfa: NFC_SetTraceLevel () new_level = 5
01-01 05:21:03.833  7258  7282 I BrcmNfcNfa: NFA got event 0x0100
01-01 05:21:03.833  7258  7282 I BrcmNfcNfa: nfa_dm_evt_hdlr event: NFA_DM_API_ENABLE_EVT (0x00)
01-01 05:21:03.833  7258  7282 I BrcmNfcNfa: nfa_dm_enable ()
01-01 05:21:03.833  7258  7282 I BrcmNfcNfa: NFC_Enable ()
01-01 05:21:03.833  7258  7282 I BrcmNfcNfa: nfc_set_state 0 (NONE)->1 (W4_HAL_OPEN)
01-01 05:21:03.834  7258  7282 D NfcAdaptation: NfcAdaptation::HalOpen
01-01 05:21:03.836  7258  7280 D NfcAdaptation: NfcAdaptation::NFCA_TASK: enter
01-01 05:21:03.836  7258  7280 I BrcmNfcNfa: GKI_run(): Start/Stop GKI_timer_update_registered!

 

Regards,

Gokulraj K.

Outcomes