<?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>NFCのトピックRe: CLRC663: Discovery loop for Poll Mode takes High CPU Usage</title>
    <link>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1159870#M7745</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ricardo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I got your point. but my question is I am continuously polling for the RFID card using the Discovery loop. that polling logic uses the high CPU bandwidth. I have added the code snippet in the question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, I want to know that, Is there any event type mechanism is there in NXP RFID library so that I don't want to continuously poll for the RFID card. or Do we have any provision in the discovery loop? by using that we can implement it on the event-based?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sandip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 04:39:24 GMT</pubDate>
    <dc:creator>sandip_sathvara</dc:creator>
    <dc:date>2020-09-28T04:39:24Z</dc:date>
    <item>
      <title>CLRC663: Discovery loop for Poll Mode takes High CPU Usage</title>
      <link>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1157462#M7728</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using AM335x based custom board. We have connected &lt;STRONG&gt;CLRC663&lt;/STRONG&gt; RFID card reader to the I2C lines. and we have integrated RFID&amp;nbsp;NFC Reader Library in our application. everything works fine. We are able to read/write the Mifare Classic RFID card's memory. We have used the Discovery loop to detect the RFID card. below is the code snippet for that.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;do&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; /* Field OFF */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;status = phhalHw_FieldOff(pHal);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;CHECK_STATUS(status);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;/* Polling interval for the card detection */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sleep(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;/* Configure Discovery loop for Poll Mode */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;status = phacDiscLoop_SetConfig(pDiscLoop,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PHAC_DISCLOOP_CONFIG_NEXT_POLL_STATE,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PHAC_DISCLOOP_POLL_STATE_DETECTION);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CHECK_STATUS(status);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Run Discovery loop */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; status = phacDiscLoop_Run(pDiscLoop,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PHAC_DISCLOOP_ENTRY_POINT_POLL);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Exit on Card detection */&lt;BR /&gt;} while ((status &amp;amp; PH_ERR_MASK) != PHAC_DISCLOOP_DEVICE_ACTIVATED);&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Now, the problem is above code takes around 1&lt;STRONG&gt;0% CPU usage&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you guys suggest to us, How we can reduce the CPU usage?&amp;nbsp; Do we have any other method to detect the RFID card, other than the DIscovery loop?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 05:51:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1157462#M7728</guid>
      <dc:creator>sandip_sathvara</dc:creator>
      <dc:date>2020-09-23T05:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: CLRC663: Discovery loop for Poll Mode takes High CPU Usage</title>
      <link>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1158836#M7733</link>
      <description>&lt;P&gt;Hi Sandip,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing well. There are two Application Notes that could help you:&lt;/P&gt;
&lt;UL type="disc"&gt;
&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11342.pdf" target="_blank"&gt;How to Scale Down the NXP Reader Library&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12657.pdf" target="_blank"&gt;Using the RC663 without library&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 18:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1158836#M7733</guid>
      <dc:creator>nxf58474</dc:creator>
      <dc:date>2020-09-24T18:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: CLRC663: Discovery loop for Poll Mode takes High CPU Usage</title>
      <link>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1159014#M7736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ricardo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer, but the documents which you have shared don't give an answer to the questions. Below are my questions.&lt;/P&gt;&lt;P&gt;1) Why the Discovery loop is taking too much CPU usage.&lt;/P&gt;&lt;P&gt;2) Is our implementation of card detection logic is correct. or there is another way to implement the same logic? so that we can reduce CPU usage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 03:27:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1159014#M7736</guid>
      <dc:creator>sandip_sathvara</dc:creator>
      <dc:date>2020-09-25T03:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: CLRC663: Discovery loop for Poll Mode takes High CPU Usage</title>
      <link>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1159487#M7741</link>
      <description>&lt;P&gt;Hi Sandip,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The CPU usage depends on the host MCU, and it is something we cannot help you with, as it is not from NXP. The documents would help you to scale down the reader library, or to use the CLRC663 without the library in case you don’t want to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simplest example is the Basic Discovery Loop Example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 18:45:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1159487#M7741</guid>
      <dc:creator>nxf58474</dc:creator>
      <dc:date>2020-09-25T18:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: CLRC663: Discovery loop for Poll Mode takes High CPU Usage</title>
      <link>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1159870#M7745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ricardo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I got your point. but my question is I am continuously polling for the RFID card using the Discovery loop. that polling logic uses the high CPU bandwidth. I have added the code snippet in the question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, I want to know that, Is there any event type mechanism is there in NXP RFID library so that I don't want to continuously poll for the RFID card. or Do we have any provision in the discovery loop? by using that we can implement it on the event-based?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sandip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 04:39:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1159870#M7745</guid>
      <dc:creator>sandip_sathvara</dc:creator>
      <dc:date>2020-09-28T04:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: CLRC663: Discovery loop for Poll Mode takes High CPU Usage</title>
      <link>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1161604#M7761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your wise answer can solve our problem. Please reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 03:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1161604#M7761</guid>
      <dc:creator>sandip_sathvara</dc:creator>
      <dc:date>2020-10-01T03:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: CLRC663: Discovery loop for Poll Mode takes High CPU Usage</title>
      <link>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1276399#M8519</link>
      <description>&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;Please answer to the my question. We are waiting for the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 12:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/CLRC663-Discovery-loop-for-Poll-Mode-takes-High-CPU-Usage/m-p/1276399#M8519</guid>
      <dc:creator>sandip_sathvara</dc:creator>
      <dc:date>2021-05-13T12:41:03Z</dc:date>
    </item>
  </channel>
</rss>

