<?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: PN7150 RF Timeout in NFC</title>
    <link>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925981#M5678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NCI defines the TOTAL_DURATION parameter for that purpose, please refer to the following for details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81334i05457DD67988CB7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;To increase this time TOTAL_DURATION parameter must be extended. In NXP-NCI_example code this is done in this declaration:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;/* NCI standard dedicated settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;* Refer to NFC Forum NCI standard for more details&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: #2b91af; background: white;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black; background: white;"&gt; NxpNci_CORE_CONF[]={0x20, 0x02, 0x05, 0x01,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;/* CORE_SET_CONFIG_CMD */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00, 0x02, 0xF4, 0x01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;/* TOTAL_DURATION */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black; background: white;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Here TOTAL_DURATION is set to 0x01F4 = 500ms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hope that helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Have a great day,&lt;BR /&gt;Kan &lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2019 08:08:23 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2019-09-04T08:08:23Z</dc:date>
    <item>
      <title>PN7150 RF Timeout</title>
      <link>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925980#M5677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently testing out the PN7150S NFC controller for a project.&lt;/P&gt;&lt;P&gt;For intial testing we're using the OM5578 dev. module with a Raspberry Pi running the linux_libnfc-nci stack (R2.4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently integrating support for a rather proprietary NFC temperature sensor over ISO14443.&lt;/P&gt;&lt;P&gt;To read out the temperautre, the process is as follws:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#1 - Send 'start measurement process' command to the NFC chip&lt;/P&gt;&lt;P&gt;#2 - Wait &amp;gt; 400 ms.&lt;/P&gt;&lt;P&gt;#3 - Send 'read measurement result" command to the NFC chip and receive the temperature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The communications is achieved using the nfcTag_transceive() function provided by linux_libnfc-nci.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current issue is that during the &amp;gt; 400 ms wait period, the NFC chip disables it's RF interface.&lt;/P&gt;&lt;P&gt;This in turn causes the controller/stack to disable the RF field and restart the polling process (looking for tags).&lt;/P&gt;&lt;P&gt;When the field is lost, the NFC chip shuts down and the process needs to be restarted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Searching the PN7150 user manual i found the '&lt;SPAN style="left: 90px; top: 265.421px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.01201);"&gt;TO_&lt;SPAN class=""&gt;RF_OFF&lt;/SPAN&gt;_CFG&lt;/SPAN&gt;' parameter which "&lt;SPAN style="left: 280.4px; top: 265.421px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.981818);"&gt;Specifies the time out (in&lt;/SPAN&gt;&lt;SPAN style="left: 459.2px; top: 265.421px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.973068);"&gt;ms) applied by &lt;/SPAN&gt;&lt;SPAN style="left: 567.2px; top: 265.421px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.04616);"&gt;PN7150&lt;/SPAN&gt;&lt;SPAN style="left: 627.8px; top: 265.421px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.972047);"&gt;before it &lt;/SPAN&gt;&lt;SPAN style="left: 280.4px; top: 283.621px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.02413);"&gt;restarts a Polling sequence, after it has detected a Field OFF &lt;/SPAN&gt;&lt;SPAN style="left: 280.4px; top: 302.026px; font-size: 15px; font-family: sans-serif; transform: scaleX(1.04918);"&gt;in Listen Mode&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would increasing the value of this parameter from the default 300ms help with my issue?&lt;BR /&gt;If so, is there any way to change this setting trough linux_libnfc-nci configuration file or function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 09:02:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925980#M5677</guid>
      <dc:creator>matsge</dc:creator>
      <dc:date>2019-08-30T09:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: PN7150 RF Timeout</title>
      <link>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925981#M5678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NCI defines the TOTAL_DURATION parameter for that purpose, please refer to the following for details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81334i05457DD67988CB7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;To increase this time TOTAL_DURATION parameter must be extended. In NXP-NCI_example code this is done in this declaration:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;/* NCI standard dedicated settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;* Refer to NFC Forum NCI standard for more details&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: #2b91af; background: white;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black; background: white;"&gt; NxpNci_CORE_CONF[]={0x20, 0x02, 0x05, 0x01,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;/* CORE_SET_CONFIG_CMD */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00, 0x02, 0xF4, 0x01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: green; background: white;"&gt;/* TOTAL_DURATION */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black; background: white;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Here TOTAL_DURATION is set to 0x01F4 = 500ms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hope that helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Have a great day,&lt;BR /&gt;Kan &lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 08:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925981#M5678</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2019-09-04T08:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: PN7150 RF Timeout</title>
      <link>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925982#M5679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks @Kan_Li&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That seems reasonable. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to set these configuration params in user space trough the linux-libnfc_nci stack?&lt;/P&gt;&lt;P&gt;I found these parameters in the &lt;STRONG&gt;&lt;EM&gt;libnfc-nxp-pn548.conf&lt;/EM&gt;&lt;/STRONG&gt; file, but I am unsure of the mapping.&lt;/P&gt;&lt;P&gt;Do these params relate to the &lt;SPAN style="font-size: 9.5pt; color: black; background: white;"&gt;NxpNci_CORE_CONF[]&lt;/SPAN&gt; params in your post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Core configuration settings&lt;BR /&gt;NXP_CORE_CONF={ 20, 02, 2B, 0D,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28, 01, 00,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21, 01, 00,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30, 01, 08,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31, 01, 03,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33, 04, 04, 03, 02, 01,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 54, 01, 06,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50, 01, 02,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5B, 01, 00,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60, 01, 0E,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80, 01, 01,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 81, 01, 01,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 82, 01, 0E,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18, 01, 01&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 08:44:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925982#M5679</guid>
      <dc:creator>matsge</dc:creator>
      <dc:date>2019-09-10T08:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: PN7150 RF Timeout</title>
      <link>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925983#M5680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. There is another way to set up this parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;TOTAL_DURATION can be set within &lt;EM&gt;libnfc-nci.conf&lt;/EM&gt; file using “NFA_DM_DISC_DURATION_POLL” parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;For instance, defining “NFA_DM_DISC_DURATION_POLL=256” will configure TOTAL_DURATION to 256ms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hope that helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Have a great day,&lt;BR /&gt;Kan &lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:16:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925983#M5680</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2019-09-12T08:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: PN7150 RF Timeout</title>
      <link>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925984#M5681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I was forced to change my focus for a while, but now my attention is back on this project.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;BR /&gt;I was able to make this work by changing the DEFAULT_PRESENCE_CHECK definition in &amp;lt;nativeNfcTag.cpp&amp;gt; in the linux_libnfc-nci library.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;DIV class=""&gt; &lt;PRE class=""&gt; //default general trasceive timeout in millisecond&lt;/PRE&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;DIV class=""&gt; &lt;PRE class=""&gt; #define DEFAULT_GENERAL_TRANS_TIMEOUT  2000&lt;/PRE&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;DIV class=""&gt; &lt;PRE class=""&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;-#define DEFAULT_PRESENCE_CHECK_MDELAY &lt;SPAN style="text-decoration: line-through;"&gt;125&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;DIV class=""&gt; &lt;PRE class=""&gt;&lt;SPAN style="color: #339966;"&gt;+#define DEFAULT_PRESENCE_CHECK_MDELAY &lt;INS&gt;300&lt;/INS&gt;&lt;/SPAN&gt;&lt;/PRE&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;DIV class=""&gt; &lt;DIV class=""&gt;&lt;/DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;BR /&gt;Posting here for future reference if someone has the same issue.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Thanks for you help. It put me on the right path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2019 08:54:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7150-RF-Timeout/m-p/925984#M5681</guid>
      <dc:creator>matsge</dc:creator>
      <dc:date>2019-11-01T08:54:16Z</dc:date>
    </item>
  </channel>
</rss>

