<?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: NXP NFC Reader Library ATS bytes bug in NFC</title>
    <link>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1333997#M8818</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/144481"&gt;@troky&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A good example for reference regarding this kind of operation is the demo of "Nfcrdlib_ISO10373_6_PCD_ComplApp", in which an array is defined globally for this purpose.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_0-1630573335977.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154926i82B488FFFD41BABC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kan_Li_0-1630573335977.png" alt="Kan_Li_0-1630573335977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may fetch the latest version (should be 6.12.00) of "NFC reader library" for more details.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&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;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2021 09:03:54 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2021-09-02T09:03:54Z</dc:date>
    <item>
      <title>NXP NFC Reader Library ATS bytes bug</title>
      <link>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1331261#M8810</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found possible bug in&amp;nbsp;phpalI14443p4a_Sw_Rats() function where *pAts param is not initialized/zeroed.&lt;/P&gt;&lt;P&gt;*pAts is user supplied buffer and can be zeroed in user code before calling discloop routine but I see this as workaround.&lt;/P&gt;&lt;P&gt;For example, if I read Mifare Plus card (that respondes to RATS command) and after that I read Mifare Classic card (no RATS response) I still got ATS bytes set from prior Mifare Plus card and detect Classic card as Plus card since both have SAK=0x08.&lt;/P&gt;&lt;P&gt;ATS buffer should be zeroed before issuing RATS command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;troky&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 08:11:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1331261#M8810</guid>
      <dc:creator>troky</dc:creator>
      <dc:date>2021-08-28T08:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: NXP NFC Reader Library ATS bytes bug</title>
      <link>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1332927#M8816</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/144481"&gt;@troky&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, providing an empty buffer to this kind of function is always a good habit! Have you also checked the returned value from this function in case of reading a mifare classic card? Is it always "PH_ERR_SUCCESS"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&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;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 06:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1332927#M8816</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-09-01T06:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: NXP NFC Reader Library ATS bytes bug</title>
      <link>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1333039#M8817</link>
      <description>&lt;P&gt;Yes, it is always PH_ERR_SUCCESS. RATS is internal part of "discloop".&lt;/P&gt;&lt;P&gt;IMHO, this buffer (big enough) should be part of struct&amp;nbsp;sTypeA_I3P4 so it can be cleared in library. What is the reason user has to supply ATS buffer (pointer) to library?&lt;/P&gt;&lt;P&gt;Also, it would be nice feature to have "bool bHasAts" in&amp;nbsp; "struct&amp;nbsp;sTypeA_I3P4" or some other mechanism to check for valid ATS response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;troky&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 08:02:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1333039#M8817</guid>
      <dc:creator>troky</dc:creator>
      <dc:date>2021-09-01T08:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: NXP NFC Reader Library ATS bytes bug</title>
      <link>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1333997#M8818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/144481"&gt;@troky&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A good example for reference regarding this kind of operation is the demo of "Nfcrdlib_ISO10373_6_PCD_ComplApp", in which an array is defined globally for this purpose.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_0-1630573335977.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154926i82B488FFFD41BABC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kan_Li_0-1630573335977.png" alt="Kan_Li_0-1630573335977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may fetch the latest version (should be 6.12.00) of "NFC reader library" for more details.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&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;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 09:03:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-NFC-Reader-Library-ATS-bytes-bug/m-p/1333997#M8818</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-09-02T09:03:54Z</dc:date>
    </item>
  </channel>
</rss>

