pn7220 enter loopback mode for Emvco L1 test

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pn7220 enter loopback mode for Emvco L1 test

2,953 Views
SeanHu
Contributor I

I am using PN722x on my device, and I want to set nfc into loopback mode by issuing nci command from kernel driver.
Can you provide me the correct nci command that can set pn722x into loop back mode.

0 Kudos
Reply
11 Replies

2,570 Views
SeanHu
Contributor I

Hi KaiLi,

As you can see in my previous screenshot,  we can see that loopback mode NCI command was issued. But our EE reported that the behavior was not correct while they went to FIME to run the EMVCo L1 test.
And they were told that in previous experience,  after issue the "EMVCoAidlHalComplianceTest" command, we still need to select the "secondary firmware" item in Cockpit in order to set the NFC into the loopback mode.
And we can only find this item in Cockpit 6.7, but not in Cockpit 8.1 and 8.3..
May I have your professional suggestions on this one?

Thank you.

0 Kudos
Reply

2,562 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @SeanHu 

$./EMVCoAidlHalComplianceTest type AB or $./EMVCoAidlHalComplianceTest type ABF has implemented EMVCo loopback application, only calibrating DPC or modify some parameteres will need to use NFC cockpit.

0 Kudos
Reply

2,817 Views
SeanHu
Contributor I

Hi KaiLi,
I know that NXP document "PN7220 – Quick start guide"  tells us to run the EMVCoAidlHalComplianceTest to enter loopback mode.
But we run EMVCO L1 test script after running EMVCoAidlHalComplianceTest, it shows the device doesn't enter loopback mode.
That's why we want to know how can we enter loopback mode by NCI command.

0 Kudos
Reply

2,806 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @SeanHu 

Then you can only use the NfcFactoryTestApp. For the A13/A14/A15 platforms, the code for the NfcFactoryTestApp can be obtained here: nxpnfc_android13/FactoryTestApp at main · NXPNFCLinux/nxpnfc_android13 · GitHub 

Then you can refer to Chapter 7 of the PN7160 Android porting guide to build and compile.

However, we still believe that you need to check your system integration.

0 Kudos
Reply

2,800 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @SeanHu 

After bulit NfcFactoryTestApp, you can refer the section 13.2 of  um11810 PN722X NFC controller to send EMCVO polling command. 

0 Kudos
Reply

2,914 Views
SeanHu
Contributor I

Hi Kai,

Yes, We followed the Quick start guide and issue the EMVCoAidlHalComplianceTest command, but the PN7220 does not enter loopback mode. That's why I was asking for the NCI command so that we can enter loopback mode manually.

影像.png

 

0 Kudos
Reply

2,903 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @SeanHu 

Current state on your side, EMVCo has been polling, you can put a card on the RF field, restart another window and check data exchange log,as the below shown:

KaiLi_0-1756950176446.png

 

0 Kudos
Reply

2,689 Views
SeanHu
Contributor I

Hi KaiLi

Regarding the data exchange log you mentioned earlier, can you tell me how to confirm through the log whether the device is in loop back mode?

Thank you.

0 Kudos
Reply

2,655 Views
SeanHu
Contributor I

Hi KaiLi

According to the EMVCoNciR and EMVCoNciX messages in the log I captured,  can this log shows that my device was in EMVCo loop back mode?

SeanHu_1-1758510011438.png

 

0 Kudos
Reply

2,637 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @SeanHu 

Yes, for example:

KaiLi_0-1758521246646.png

KaiLi_1-1758521279333.pngKaiLi_2-1758521302774.png

 

0 Kudos
Reply

2,930 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @SeanHu 

After finished NFC mw integration, and the device bring up, you can run the application
$./EMVCoAidlHalComplianceTest type ABF
PN7220 should enter EMVCo L1 .

0 Kudos
Reply