<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PN7160 NfcFactoryTestApp functional mode not working in NFC</title>
    <link>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1914603#M11955</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200888"&gt;@EduardoZamora&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your comments.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Yes, below is correct.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The application does not react at all, and you are not getting any other response, is this correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Tag I am using is recognized by &lt;A href="https://play.google.com/store/apps/details?id=com.nxp.taginfolite" target="_blank" rel="nofollow noopener noreferrer"&gt;NFC TagInfo by NXP&lt;/A&gt;&amp;nbsp; android Application. Card details recognized by Taginfo application is as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IC Type : Unknown MIFARE Classic IC, possibly cloned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Technology Supported: ISO/IEC 14443-3 (TYPE A) compatible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. I was debugging&amp;nbsp;NfcFactoryTestApp.c application and put debug prints inside&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;static void Functional (int handle) function, and I found that instead of&amp;nbsp;(Answer[0] != 0x61) || ((Answer[1] != 0x05) &amp;amp;&amp;amp; (Answer[1] != 0x03)) I am getting&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Answer[0] = 0x61&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Answer[1]&amp;nbsp; = 0x23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Answer[2] = 0x00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;static void Functional (int handle)                                                                
{                                                                              
    char NCIStartDiscovery[] = {0x21, 0x03, 0x09, 0x04, 0x00, 0x01, 0x01, 0x01, 0x02, 0x01, 0x06, 0x01};
    char NCIRestartDiscovery[] = {0x21, 0x06, 0x01, 0x03};
    char Answer[256];                                                                                                                                                                        
    printf("Functional test mode, starting discovery loop ...\n");                                                  
    tml_transceive(handle, NCIStartDiscovery, sizeof(NCIStartDiscovery), Answer, sizeof(Answer));
    if((Answer[0] != 0x41) || (Answer[1] != 0x03) || (Answer[3] != 0x00)) {           
        printf("Cannot start discovery loop\n");                                                 
        return;                                                                       
    }                                                                                                   
    printf("NFC Controller is now in functional mode - Press Crtl^Z to stop\n");                        
    while(1) {                                                                   
        do {                                                                     
            tml_receive(handle,  Answer, sizeof(Answer));                            
                for(int i=0;i&amp;lt;3;i++){                                                              
                        printf("0x%x\r\n", Answer[i]);                                 
                }                                                                                      
        } while ((Answer[0] != 0x61) || ((Answer[1] != 0x05) &amp;amp;&amp;amp; (Answer[1] != 0x03)));
        printf(" - tag discovered, restarting discovery loop ...\n"); tml_transceive(handle, NCIRestartDiscovery, sizeof(NCIRestartDiscovery), Answer, sizeof(Answer));
    }                                                                                                   
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 03:58:37 GMT</pubDate>
    <dc:creator>NZP</dc:creator>
    <dc:date>2024-07-23T03:58:37Z</dc:date>
    <item>
      <title>PN7160 NfcFactoryTestApp functional mode not working</title>
      <link>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1913991#M11949</link>
      <description>&lt;P&gt;Hello experts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on pn7160 nfc reader while using NfcFactoryTestApp i am getting below logs.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;----------------------------
NFC Factory Test Application
----------------------------
&amp;gt;&amp;gt; 20 00 01 01 
&amp;lt;&amp;lt; 40 00 01 00 
&amp;lt;&amp;lt; 60 00 09 02 01 20 04 04 61 12 50 09 
&amp;gt;&amp;gt; 20 00 01 01 
&amp;lt;&amp;lt; 40 00 01 00 
&amp;lt;&amp;lt; 60 00 09 02 01 20 04 04 61 12 50 09 
&amp;gt;&amp;gt; 20 01 02 00 00 
&amp;lt;&amp;lt; 40 01 1e 00 1a 7e 06 02 01 d0 02 ff ff 01 ff 00 08 00 00 01 00 02 00 03 00 80 00 82 00 83 00 84 00 
PN7160 NFC controller detected
&amp;gt;&amp;gt; 2f 00 01 00 
&amp;lt;&amp;lt; 4f 00 01 00 
Select the test to run:
         1. Continuous RF ON mode
         2. Functional mode
         3. PRBS mode
         4. Standby mode
         5. Dump RF settings
         6. Set RF setting
         7. Get NCI parameter value
         8. Set NCI parameter value
         9. Get proprietary parameter value
        10. Set proprietary parameter value
enter 0 to leave the application
Your choice: 2
Functional test mode, starting discovery loop ...
&amp;gt;&amp;gt; 21 03 09 04 00 01 01 01 02 01 06 01 
&amp;lt;&amp;lt; 41 03 01 00 
NFC Controller is now in functional mode - Press Crtl^Z to stop&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I tap tag, I am not able to read any data or tag. but if i kill this app and do i2c get i am receiving below data, from below log I suspect that i2c is getting some data but i am not able to detect tag, so please help me in this issue.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@raam:~/linux_NfcFactoryTestApp# i2cget -y 2 0x28
0x61
root@raam:~/linux_NfcFactoryTestApp# i2cget -y 2 0x28
0x23
root@raam:~/linux_NfcFactoryTestApp# i2cget -y 2 0x28
0x00
root@raam:~/linux_NfcFactoryTestApp# i2cget -y 2 0x28
0x61
root@raam:~/linux_NfcFactoryTestApp# i2cget -y 2 0x28
0x23
root@raam:~/linux_NfcFactoryTestApp# i2cget -y 2 0x28
0x00&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 10:25:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1913991#M11949</guid>
      <dc:creator>NZP</dc:creator>
      <dc:date>2024-07-22T10:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: PN7160 NfcFactoryTestApp functional mode not working</title>
      <link>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1914523#M11954</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221645"&gt;@NZP&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Hope you are doing well.&lt;/P&gt;
&lt;P&gt;Just to confirm, once "NFC Controller is now in functional mode - Press Crtl^Z to stop" message is printed, and after tapping a card/tag, the application does not react at all and you are not getting any other response, is this correct?&lt;/P&gt;
&lt;P&gt;What is the tag you are using for the test? By any chance, have you tried reading the tag with another device to check that it is working properly? You could use, for example, a mobile phone with &lt;A href="https://apps.apple.com/de/app/nfc-tagwriter-by-nxp/id1246143221" target="_blank"&gt;TagWriter iOS&lt;/A&gt;&amp;nbsp;|&amp;nbsp;&lt;A href="https://play.google.com/store/apps/details?id=com.nxp.nfc.tagwriter&amp;amp;hl=de" target="_blank"&gt;Android&lt;/A&gt; or &lt;A href="https://play.google.com/store/apps/details?id=com.nxp.taginfolite" target="_blank"&gt;NFC TagInfo by NXP&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 01:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1914523#M11954</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2024-07-23T01:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: PN7160 NfcFactoryTestApp functional mode not working</title>
      <link>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1914603#M11955</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200888"&gt;@EduardoZamora&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your comments.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Yes, below is correct.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The application does not react at all, and you are not getting any other response, is this correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Tag I am using is recognized by &lt;A href="https://play.google.com/store/apps/details?id=com.nxp.taginfolite" target="_blank" rel="nofollow noopener noreferrer"&gt;NFC TagInfo by NXP&lt;/A&gt;&amp;nbsp; android Application. Card details recognized by Taginfo application is as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IC Type : Unknown MIFARE Classic IC, possibly cloned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Technology Supported: ISO/IEC 14443-3 (TYPE A) compatible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. I was debugging&amp;nbsp;NfcFactoryTestApp.c application and put debug prints inside&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;static void Functional (int handle) function, and I found that instead of&amp;nbsp;(Answer[0] != 0x61) || ((Answer[1] != 0x05) &amp;amp;&amp;amp; (Answer[1] != 0x03)) I am getting&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Answer[0] = 0x61&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Answer[1]&amp;nbsp; = 0x23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Answer[2] = 0x00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;static void Functional (int handle)                                                                
{                                                                              
    char NCIStartDiscovery[] = {0x21, 0x03, 0x09, 0x04, 0x00, 0x01, 0x01, 0x01, 0x02, 0x01, 0x06, 0x01};
    char NCIRestartDiscovery[] = {0x21, 0x06, 0x01, 0x03};
    char Answer[256];                                                                                                                                                                        
    printf("Functional test mode, starting discovery loop ...\n");                                                  
    tml_transceive(handle, NCIStartDiscovery, sizeof(NCIStartDiscovery), Answer, sizeof(Answer));
    if((Answer[0] != 0x41) || (Answer[1] != 0x03) || (Answer[3] != 0x00)) {           
        printf("Cannot start discovery loop\n");                                                 
        return;                                                                       
    }                                                                                                   
    printf("NFC Controller is now in functional mode - Press Crtl^Z to stop\n");                        
    while(1) {                                                                   
        do {                                                                     
            tml_receive(handle,  Answer, sizeof(Answer));                            
                for(int i=0;i&amp;lt;3;i++){                                                              
                        printf("0x%x\r\n", Answer[i]);                                 
                }                                                                                      
        } while ((Answer[0] != 0x61) || ((Answer[1] != 0x05) &amp;amp;&amp;amp; (Answer[1] != 0x03)));
        printf(" - tag discovered, restarting discovery loop ...\n"); tml_transceive(handle, NCIRestartDiscovery, sizeof(NCIRestartDiscovery), Answer, sizeof(Answer));
    }                                                                                                   
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 03:58:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1914603#M11955</guid>
      <dc:creator>NZP</dc:creator>
      <dc:date>2024-07-23T03:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: PN7160 NfcFactoryTestApp functional mode not working</title>
      <link>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1915544#M11962</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;By any chance, are you using a &lt;A href="https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/nfc-plug-and-play-controller-with-integrated-firmware-and-nci-interface:PN7160" target="_blank"&gt;PN7160&lt;/A&gt;-based custom board or is it one of our &lt;A href="https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/om27160-development-kits-for-pn7160-plugn-play-nfc-controller:PN7160-EVK" target="_blank"&gt;Development Kits for PN7160&lt;/A&gt;? I will recommend you testing the application by using another tag/card.&lt;/P&gt;
&lt;P&gt;Is the card you are using from a third-party manufacturer? If that is the case, please contact the card manufacturer for further support on this part.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 20:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7160-NfcFactoryTestApp-functional-mode-not-working/m-p/1915544#M11962</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2024-07-23T20:32:53Z</dc:date>
    </item>
  </channel>
</rss>

