<?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 NxpNfcRdLib, Tag 4 B, CLRC663, NDEF in NFC</title>
    <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003484#M6581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have now, for several days been trying to use the NxpNfc library &lt;BR /&gt;to use an CLRC663 plus with a K64F microcontroller.&lt;BR /&gt;I want to read and write NDEF messages on a Type 4 B Tag.&lt;/P&gt;&lt;P&gt;First the problem was, that all the available tutorials for porting&amp;nbsp;&lt;BR /&gt;the&amp;nbsp;library to the K64F are either deprecated or plainly wrong. &lt;BR /&gt;Especially the step where it says to add the SDK as a project &lt;BR /&gt;is as far as I understand not correct. It has to be added as a folder instead,&lt;BR /&gt;and even then the rest of the tutorial is not strictly correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After &lt;SPAN style="text-decoration: line-through;"&gt;wasting&lt;/SPAN&gt;&amp;nbsp;working almost a week on Porting the library (due to the tutorials not being correct) I got the&amp;nbsp;&lt;BR /&gt;NfcrdlibEx1_BasicDiscoveryLoop example to work on the K64F. After taking another day figuring out that the &lt;BR /&gt;tutorial I was using&amp;nbsp;was missing several lines of code that had actually to be added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is now able to detect&amp;nbsp;the&amp;nbsp;Type 4 B tag correctly.&lt;BR /&gt;Since the PUPI is correctly displayed, some communication obviously takes place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example prints " \n\r Card detected and activated successfully... \n\r" so I would assume the card is now active,&lt;BR /&gt;even though the&amp;nbsp;phacDiscLoop_ActivateCard function has not been called?&lt;BR /&gt;I am unsure what that means for a type&amp;nbsp;4 B card though. &lt;BR /&gt;Does that mean the card is in the READY-DECLARED or in the PROTOCOL state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further&amp;nbsp;communication function I call&lt;/P&gt;&lt;P&gt;phpalI14443p3b_Exchange&amp;nbsp;or&lt;BR /&gt;phpall14443p4_Exchange&lt;BR /&gt;returns 0x0201, which I think is "HAL_TIMEOUT"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read ISO14443-3, ISO14443-4 and ISO7816,&lt;BR /&gt;as well as&amp;nbsp;UM10802.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the way the library is written, I still have to constantly read up on everything.&lt;/P&gt;&lt;P&gt;Since the functions practically only take&amp;nbsp;uint8_t and uint16_t arguments, &lt;BR /&gt;I can barely get any support/auto-complete help by the IDE!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could someone please please PLEASE! provide me with a complete example, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;or at least the list of functions in the nxpnfc library I have to call in order to:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366;"&gt;&lt;STRONG&gt;!USING THE CLRC663 PLUS!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;1)&amp;nbsp;Detect a Type 4 B&amp;nbsp;tag (there will always only be at most one tag in the field at one time),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;STRONG&gt;? )Activate / Switch it to the PROTOCOL state it if this step is necessary ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;STRONG&gt;?) Select the NDEF application if&amp;nbsp;this step is necessary ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Switch communication speed to 424kbit/s in both directions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;STRONG&gt;?) Read the NDEF Capability container (not really needed, since I already know the file properties)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3) Select an NDEF file on the tag (I need to switch between different files)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4) Read/write NDEF messages to/from the tag?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It took less than&amp;nbsp;2 hours to accomplish this&amp;nbsp;using an&amp;nbsp;Android app.&lt;BR /&gt;How can it be this&amp;nbsp;much more difficult (currently at around 40&amp;nbsp;hours) to do this using the nxpnfc library?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case it helps, I attached all the available information about the tag I want to read/write NDEF messages to/from.&lt;BR /&gt;I am totally frustrated by now...&lt;BR /&gt;Please help me&amp;nbsp;out!&amp;nbsp; : (&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2020 10:26:01 GMT</pubDate>
    <dc:creator>bioshazard</dc:creator>
    <dc:date>2020-02-10T10:26:01Z</dc:date>
    <item>
      <title>NxpNfcRdLib, Tag 4 B, CLRC663, NDEF</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003484#M6581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have now, for several days been trying to use the NxpNfc library &lt;BR /&gt;to use an CLRC663 plus with a K64F microcontroller.&lt;BR /&gt;I want to read and write NDEF messages on a Type 4 B Tag.&lt;/P&gt;&lt;P&gt;First the problem was, that all the available tutorials for porting&amp;nbsp;&lt;BR /&gt;the&amp;nbsp;library to the K64F are either deprecated or plainly wrong. &lt;BR /&gt;Especially the step where it says to add the SDK as a project &lt;BR /&gt;is as far as I understand not correct. It has to be added as a folder instead,&lt;BR /&gt;and even then the rest of the tutorial is not strictly correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After &lt;SPAN style="text-decoration: line-through;"&gt;wasting&lt;/SPAN&gt;&amp;nbsp;working almost a week on Porting the library (due to the tutorials not being correct) I got the&amp;nbsp;&lt;BR /&gt;NfcrdlibEx1_BasicDiscoveryLoop example to work on the K64F. After taking another day figuring out that the &lt;BR /&gt;tutorial I was using&amp;nbsp;was missing several lines of code that had actually to be added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is now able to detect&amp;nbsp;the&amp;nbsp;Type 4 B tag correctly.&lt;BR /&gt;Since the PUPI is correctly displayed, some communication obviously takes place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example prints " \n\r Card detected and activated successfully... \n\r" so I would assume the card is now active,&lt;BR /&gt;even though the&amp;nbsp;phacDiscLoop_ActivateCard function has not been called?&lt;BR /&gt;I am unsure what that means for a type&amp;nbsp;4 B card though. &lt;BR /&gt;Does that mean the card is in the READY-DECLARED or in the PROTOCOL state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further&amp;nbsp;communication function I call&lt;/P&gt;&lt;P&gt;phpalI14443p3b_Exchange&amp;nbsp;or&lt;BR /&gt;phpall14443p4_Exchange&lt;BR /&gt;returns 0x0201, which I think is "HAL_TIMEOUT"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read ISO14443-3, ISO14443-4 and ISO7816,&lt;BR /&gt;as well as&amp;nbsp;UM10802.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the way the library is written, I still have to constantly read up on everything.&lt;/P&gt;&lt;P&gt;Since the functions practically only take&amp;nbsp;uint8_t and uint16_t arguments, &lt;BR /&gt;I can barely get any support/auto-complete help by the IDE!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could someone please please PLEASE! provide me with a complete example, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;or at least the list of functions in the nxpnfc library I have to call in order to:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366;"&gt;&lt;STRONG&gt;!USING THE CLRC663 PLUS!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;1)&amp;nbsp;Detect a Type 4 B&amp;nbsp;tag (there will always only be at most one tag in the field at one time),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;STRONG&gt;? )Activate / Switch it to the PROTOCOL state it if this step is necessary ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;STRONG&gt;?) Select the NDEF application if&amp;nbsp;this step is necessary ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Switch communication speed to 424kbit/s in both directions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;STRONG&gt;?) Read the NDEF Capability container (not really needed, since I already know the file properties)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3) Select an NDEF file on the tag (I need to switch between different files)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4) Read/write NDEF messages to/from the tag?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It took less than&amp;nbsp;2 hours to accomplish this&amp;nbsp;using an&amp;nbsp;Android app.&lt;BR /&gt;How can it be this&amp;nbsp;much more difficult (currently at around 40&amp;nbsp;hours) to do this using the nxpnfc library?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case it helps, I attached all the available information about the tag I want to read/write NDEF messages to/from.&lt;BR /&gt;I am totally frustrated by now...&lt;BR /&gt;Please help me&amp;nbsp;out!&amp;nbsp; : (&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 10:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003484#M6581</guid>
      <dc:creator>bioshazard</dc:creator>
      <dc:date>2020-02-10T10:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: NxpNfcRdLib, Tag 4 B, CLRC663, NDEF</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003485#M6582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;1)&amp;nbsp;Detect a Type 4 B&amp;nbsp;tag (there will always only be at most one tag in the field at one time)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;3) Select an NDEF file on the tag (I need to switch between different files)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;4) Read/write NDEF messages to/from the tag?&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not have an specific example for the type B tags, the basic discovery loop will be able to activate the type B tag, you will need to use as a base the MIFARE Classic (type A) example as a base for what you are trying to do. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0000ff; "&gt;2) Switch communication speed to 424kbit/s in both directions&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please check the PHAC_DISCLOOP_ACT_POS_BIT_MASK_424. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, &lt;BR /&gt;Estephania &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 01:07:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003485#M6582</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2020-02-18T01:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: NxpNfcRdLib, Tag 4 B, CLRC663, NDEF</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003486#M6583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;EM style="color: #0000ff; border: 0px; font-weight: inherit;"&gt;&amp;gt;&amp;gt;2) Switch communication speed to 424kbit/s in both directions&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;gt;&amp;gt;Could you please check the PHAC_DISCLOOP_ACT_POS_BIT_MASK_424.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;The PICC I intend to interface supports 106kbits, 212kbits and 424kbits.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN&gt;PHAC_DISCLOOP_ACT_POS_BIT_MASK_424&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sounds more like I am scanning for an active 424kbit capable device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;If I understand the ISO14443 (B) correctly, &lt;BR /&gt;the&amp;nbsp;PICC should answer to the REQB&amp;nbsp;at 106kbit and indicate that it also supports 212kbits and 424kbits in the ATQB.&lt;BR /&gt;&lt;STRONG&gt;Then the PCD should decide/instruct the PICC to switch to 424kbit (in the ATTRIB)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Which the PICC will do after&amp;nbsp;responding to the ATTRIB still at 106kbits.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Will setting the &lt;SPAN style="color: #3d3d3d;"&gt;PHAC_DISCLOOP_ACT_POS_BIT_MASK_424 bit in...&lt;BR /&gt;Where would I even set that flag, I mean to which variable or to which function call would I provide that value?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #3d3d3d; "&gt;&lt;BR /&gt;From the API it looks like it belongs to the the mask reporting the found technologies.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #3d3d3d; "&gt;So will the library when activating a tag by discovery loop always&amp;nbsp;activate type B &lt;BR /&gt;tags with the highest supported data rate?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 20:34:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003486#M6583</guid>
      <dc:creator>bioshazard</dc:creator>
      <dc:date>2020-02-27T20:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: NxpNfcRdLib, Tag 4 B, CLRC663, NDEF</title>
      <link>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003487#M6584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned before, the NXP NFC Reader Library does not have implementation for the type B card. You might detect it but the implementation will be up to every customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you follow the specification of the tag you are using and enable the desired speed in the examples .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use as a&amp;nbsp; base the &lt;A href="https://www.nxp.com/docs/en/user-guide/UM10663.pdf"&gt;UM10663 &lt;/A&gt;for your development , the&amp;nbsp;chapter 2.3 PAL: ISO/IEC14443-3A shows in a basic&amp;nbsp; way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please check the load protocol as mentioned here &lt;A href="https://community.nxp.com/thread/498036"&gt;https://community.nxp.com/thread/498036&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 18:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NxpNfcRdLib-Tag-4-B-CLRC663-NDEF/m-p/1003487#M6584</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2020-03-09T18:56:52Z</dc:date>
    </item>
  </channel>
</rss>

