<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Leading Byte in NFC NDEF APDUs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27654/leading-byte-in-nfc-ndef-apdus</link><description>Hi,
We are testing with the experimental_writable_ndef_msg example from SDK12.2.0 and we have issues reading the nordic NRF52 Hardware using the PC-Card Reader identive uTrust3700F with the PCSC card interface under windows 8. We have added NRF_LOG_HEXDUMP_INFO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Dec 2017 10:57:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27654/leading-byte-in-nfc-ndef-apdus" /><item><title>RE: Leading Byte in NFC NDEF APDUs</title><link>https://devzone.nordicsemi.com/thread/109177?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 10:57:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b35bfc9f-726d-4cd4-811e-3f04e689452a</guid><dc:creator>Mik</dc:creator><description>&lt;p&gt;Hi Michal,
I&amp;#39;ve tested with SDK 14.2.0 and it works fine with CID enabled in the reader. I will migrate to this SDK or just use the Lib from this SDK. This will work for us.
Thanks for the answers and the great nordic support!&lt;/p&gt;
&lt;p&gt;Kind reagrds
Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Leading Byte in NFC NDEF APDUs</title><link>https://devzone.nordicsemi.com/thread/109178?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 10:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cfea2d9-3eba-48b4-a0fe-0916ed1c4a73</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hi Michael, ok I can see the point, our ATS response declares CID support which is true for all CID value execpt 0. The reason is, that in most readers when the CID equals 0 it is omitted from the APDUs so our library didn&amp;#39;t handle it. We fixed this behavior in SDK 14.0.0, so either you can migrate to this version (actually you should be able to just take the nfc_t4t_lib_xxx.lib and hal_nfc_t4t.c from SDK 14.0.0), or maybe you could force the reader to use a non-zero CID value, which our library should just handle correctly.&lt;/p&gt;
&lt;p&gt;Unfortunately there is no way to change the ATS response in our library.&lt;/p&gt;
&lt;p&gt;Best regards,
Michał&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Leading Byte in NFC NDEF APDUs</title><link>https://devzone.nordicsemi.com/thread/109179?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 09:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0afa60a-b10e-4508-a4fa-e2831b6149a6</guid><dc:creator>Mik</dc:creator><description>&lt;p&gt;Hi Michal,
i got a feedback from the reader manufacturer and it seems it&amp;#39;s a problem of the ATS command. The Nordic chip responds to ATS (APDU: FF CC 00 00 01 93) with 05 78 80 42 02 90 00 indicating to support CID, which is then used by the reader. When CID in the reader is disabled, the reader works fine.
Is there a way to change the ATS response of the Nordic chip?&lt;/p&gt;
&lt;p&gt;kind regards
Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Leading Byte in NFC NDEF APDUs</title><link>https://devzone.nordicsemi.com/thread/109176?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 13:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47f16a0a-6f96-4e0f-bb0c-e074584d959d</guid><dc:creator>Mik</dc:creator><description>&lt;p&gt;Hi Michal, thanks for your response,
Yes the used reader doesn&amp;#39;t have the leading byte and we will now check with the manufacturer where this behavior comes from.&lt;/p&gt;
&lt;p&gt;kind regards Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Leading Byte in NFC NDEF APDUs</title><link>https://devzone.nordicsemi.com/thread/109175?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 12:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4df70876-9ac2-49c0-bb60-671a81428ee2</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hi,
the alternating byte with values 0x02 and 0x03 is correct and expected, it is an &amp;quot;SoD&amp;quot; field of a &lt;em&gt;Block&lt;/em&gt; defined by the ISO-DEP transmission protocol (NFC Forum Digital specification v. 2.0, section 16).&lt;/p&gt;
&lt;p&gt;So answering your questions directly:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This byte is received over NFC.&lt;/li&gt;
&lt;li&gt;This is part of the ISO-DEP protocol as described above&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regarding your problem description, I confirm, you should be able to see the NFC APDUs using nrf_log as you described. They are encapsulated in the mentioned ISO-DEP protocol so to analyze the APDUs you can disregard the &amp;quot;leading bytes&amp;quot;.
When you say:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The only difference to the identive reader is an additional leading byte&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Do you mean: the reader which fails to read the nRF52 tag doesn&amp;#39;t send the mentioned leading byte? Then this is probably the answer why the read operation is failing. Reading a Type 4 Tag requires using the ISO-DEP protocol. The nRF5 SDK Type 4 Tag examples won&amp;#39;t work if the reader doesn&amp;#39;t use ISO-DEP.&lt;/p&gt;
&lt;p&gt;Best regards,
Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>