<?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: MIFARE DESFire Light Invalid Command String Error in NFC</title>
    <link>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036876#M6916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thank you. This helped a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2019 16:33:26 GMT</pubDate>
    <dc:creator>wilmer_suarez</dc:creator>
    <dc:date>2019-12-06T16:33:26Z</dc:date>
    <item>
      <title>MIFARE DESFire Light Invalid Command String Error</title>
      <link>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036872#M6912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I am attempting to write to a MIFARE DESFire Light card using the Write Data command in ISO/IEC 7816 APDU Wrapping and native chaining. The card has a Standard File of size 256. I'm attempting to write exactly 256 bytes but I keep getting a response of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;"0x917E - Length of command string invalid"&lt;/STRONG&gt;. I've attempted to make the frame different sizes but that does not help. The datasheet says the card has a frame size of 128 bytes by default; but I still get the same error, so that cannot be the issue.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I tried writing just 7 bytes and that works, so the issue must be length parameter (3 bytes - little endian). If the file size is 256 I should be able to write 256 bytes, no? So, the length parameter should be 00 01 00.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;Here's a byte view of the first frame that I'm sending to the card:&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;C-APDU --&amp;gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;90 8D 00 00 71 00 00 00 00 00 01 00 |--- 87 bytes of data ---| 00&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;R-APDU &amp;lt;--&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;91 7E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2019 01:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036872#M6912</guid>
      <dc:creator>wilmer_suarez</dc:creator>
      <dc:date>2019-11-26T01:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: MIFARE DESFire Light Invalid Command String Error</title>
      <link>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036873#M6913</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;According to the data sheet, up to 248 bytes are allowed to write in one time. 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/94954iC7DA0773333659C4/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;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 10:31:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036873#M6913</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2019-11-27T10:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: MIFARE DESFire Light Invalid Command String Error</title>
      <link>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036874#M6914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have seen this. If 248 bytes are allowed then why wouldn't 87 bytes (+ the MAC) work? My reader's FIFO is limited to 128 bytes. My problem is that the tag isn't responding with an AF status to send the rest of the data. Right now I've forgone the chaining mechanism and I'm manually keeping track of the bytes to send and that seems to be working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 19:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036874#M6914</guid>
      <dc:creator>wilmer_suarez</dc:creator>
      <dc:date>2019-11-27T19:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: MIFARE DESFire Light Invalid Command String Error</title>
      <link>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036875#M6915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is because the comm mode is full and data filed includes secure messaging. 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/95869i05646ABB33598601/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 class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95870i497B0188FB874969/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95871iEBC169D3DF7D8759/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so due to the padding, you can only write 239 bytes in one command, and the same rule applies for the read operation.&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/95872i18E4E6F60D028E28/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;Hope that makes sense,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 09:19:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036875#M6915</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2019-12-06T09:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: MIFARE DESFire Light Invalid Command String Error</title>
      <link>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036876#M6916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thank you. This helped a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 16:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036876#M6916</guid>
      <dc:creator>wilmer_suarez</dc:creator>
      <dc:date>2019-12-06T16:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: MIFARE DESFire Light Invalid Command String Error</title>
      <link>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036877#M6917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to do the same using RFIDDiscover; but I keep getting the error:&lt;/P&gt;&lt;P class=""&gt;Recv from card: Error, Error: HAL,BUFFER_OVERFLOW&lt;BR /&gt;How do I change the buffer size?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 00:08:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036877#M6917</guid>
      <dc:creator>wilmer_suarez</dc:creator>
      <dc:date>2019-12-13T00:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: MIFARE DESFire Light Invalid Command String Error</title>
      <link>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036878#M6918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a doc and video on that topic, please kindly refer to&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-345275"&gt;MIFARE DESFire Light read and write demonstration&lt;/A&gt;&amp;nbsp;for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; margin: 20px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&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;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 08:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MIFARE-DESFire-Light-Invalid-Command-String-Error/m-p/1036878#M6918</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2019-12-19T08:38:48Z</dc:date>
    </item>
  </channel>
</rss>

