AnsweredAssumed Answered

pn548 (npc300) porting Android 7.0 problem

Question asked by I-Shin Ma on Apr 19, 2019

Hello NXP Community,

 

These days, I am porting PN548 in Intel Android 7.0 BSP. There is a cannot read tag problem.

 

Problem:

After NPC300 is powered on and init, NPC300 can read and show tag information. 

However, if the NPC300 is nothing to do about 10 sec, NPC300 cannot read tag.

I need to go to Android Setting to turn off NFC and then turn on NFC to restart NPC300 and it will restart not read tag problem. 

 

when this problem is occurred, there is an error in debug log as below:  

04-19 03:53:04.494 4174 4215 D BrcmNfcJni: PowerSwitch::setModeOn(activated=0x1) : mCurrActivity=0x1
04-19 03:53:04.494 4174 4215 D BrcmNfcJni: releaseRfInterfaceMutexLock: sRfInterfaceMutex unlock
04-19 03:53:04.494 4174 4215 D BrcmNfcJni: nfcManager_enableDiscovery: exit
04-19 03:53:19.150 4174 4224 D NfcAdaptation: NfcAdaptation::HalDeviceContextCallback: event=6
04-19 03:53:19.150 4174 4224 I BrcmNfcNfa: nfc_main_hal_cback event: HAL_NFC_ERROR_EVT(0x6), status=3
04-19 03:53:19.151 4174 4224 I BrcmNfcNfa: nfa_dm_nfc_response_cback () NFC_NFCC_TIMEOUT_REVT(0x500f)
04-19 03:53:19.151 4174 4224 D BrcmNfcJni: nfaDeviceManagementCallback: enter; event=0x6
04-19 03:53:19.151 4174 4224 E BrcmNfcJni: nfaDeviceManagementCallback: NFA_DM_NFCC_TIMEOUT_EVT; abort
04-19 03:53:19.151 4174 4224 I BrcmNfcNfa: NFA_HciW4eSETransaction_Complete; type=0
04-19 03:53:19.151 4174 4224 I BrcmNfcNfa: NFA_HciW4eSETransaction_Complete; End
04-19 03:53:19.151 4174 4224 D BrcmNfcJni: nativeNfcTag_abortWaits
04-19 03:53:19.151 4174 4224 D BrcmNfcJni: nfaDeviceManagementCallback: aborting sNfaEnableDisablePollingEvent
04-19 03:53:19.152 4174 4224 D BrcmNfcJni: nfaDeviceManagementCallback: aborting sNfaEnableEvent
04-19 03:53:19.152 4174 4224 D BrcmNfcJni: nfaDeviceManagementCallback: aborting sNfaDisableEvent
04-19 03:53:19.152 4174 4224 D BrcmNfcJni: PowerSwitch::abort

 

I guess NPC300 is in Standby mode suddenly without notice Android 7.0 HAL and Service causes Time out error.

 

I also add NXP_CORE_STANDBY={2F, 00, 01, 00} to libncf-nxp.conf file to Disable Core Standbybut the problem is not fixed .

 

How Can I disable NPC300 Module Standby or idle mode?

 

My environment:

OS: Intel Android 7.0 64bit

NXP NFC SW package: I have tried 2 version have same problem.

android-7.0.0_r127.1.0_N (PN548C2/PN551/PN553)NFC_NCIHALx_ARFC.7.1.0_N_OpnSrc
android-7.1.1_r17.4.0_N (PN548C2/PN551)NFC_NCIHALx_AR3C.7.4.0_N_OpnSrc

  

NPC300 FW Version: FW Version: 10.1.23

 

Attached file is full log

Attachments

Outcomes