<?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: Problems with NTAG DNA 424 - WriteData - Length Error in NFC</title>
    <link>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009757#M6645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------ISO 14443-3 ACTIVATION------------------&lt;/P&gt;&lt;P&gt;phpalI14443p3a_ActivateCard--------ENTRY-------- &lt;BR /&gt;Send to card: 26&lt;BR /&gt;Recv from card: 4403&lt;BR /&gt;Send to card: 9320&lt;BR /&gt;Recv from card: 88046F0FEC&lt;BR /&gt;Send to card: 937088046F0FEC&lt;BR /&gt;Recv from card: 04&lt;BR /&gt;Send to card: 9520&lt;BR /&gt;Recv from card: 2AAA618061&lt;BR /&gt;Send to card: 95702AAA618061&lt;BR /&gt;Recv from card: 20&lt;BR /&gt;phpalI14443p3a_ActivateCard--------LEAVE-------- pUidOut=046F0F2AAA6180 pSak=20 pMoreCardsAvailable=00 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------ISO 14443-4---------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4a_ActivateCard--------ENTRY-------- bFsdi=08 bCid=00 bDri=03 bDsi=03 &lt;BR /&gt;Send to card: E080&lt;BR /&gt;Recv from card: 067777710280&lt;BR /&gt;Send to card: D0110F&lt;BR /&gt;Recv from card: D0&lt;BR /&gt;phpalI14443p4a_ActivateCard--------LEAVE-------- pAts=067777710280 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------ISO FILE SELECT-------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phalMfNtag42XDna_IsoSelectFile--------ENTRY-------- bOption=0C bSelector=04 pFid=10E1 pFid=10E1 bDFnameLen=07 pDFname=D2760000850101&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=00A4040C07&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=D2760000850101&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Send to card: 00A4040C07D276000085010100&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=9000 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Recv from card: 9000&lt;BR /&gt;phalMfNtag42XDna_IsoSelectFile--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------AUTHENTICATION TO KEY 00--------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phalMfNtag42XDna_AuthenticatEv2--------ENTRY-------- bAuthOption=01 wOption=FFFF wKeyNo=0000 wKeyVer=0000 bKeyNoCard=00&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=9071000002&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=0000&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Send to card: 9071000002000000&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=E21768618E1FDB9D93F596551CE06E6B91AF [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Recv from card: E21768618E1FDB9D93F596551CE06E6B91AF&lt;BR /&gt; PICC-to-&amp;gt;PCD E(Kx, RNDB): E21768618E1FDB9D93F596551CE06E6B&lt;BR /&gt; Plain RNDB = CE86E6E968F45458B6762D28D91764B8&lt;BR /&gt; Plain RNDA = D5D29FF822CD1A158E59A42AA74AA245&lt;BR /&gt; Encrypted (RndA || RndB') = 7B57022C027C5124E19AC54D5E38A10A732F64C98AA63F80F9536F4D889C257F&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=90AF000020&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=7B57022C027C5124E19AC54D5E38A10A732F64C98AA63F80F9536F4D889C257F&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Send to card: 90AF0000207B57022C027C5124E19AC54D5E38A10A732F64C98AA63F80F9536F4D889C257F00&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=1820F5BC0D050F4CAA73E388C86BE03188B85535D1B7682A9818ACEDA8D2A9E59100 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Recv from card: 1820F5BC0D050F4CAA73E388C86BE03188B85535D1B7682A9818ACEDA8D2A9E59100&lt;BR /&gt; PICC-to-&amp;gt;PCD E(Kx, TI||RndA'||PDcap2||PCDcap2): 1820F5BC0D050F4CAA73E388C86BE03188B85535D1B7682A9818ACEDA8D2A9E5&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = A55A00010080D5D2517EC42472E15458B6762D28D91764B88E59A42AA74AA245&lt;BR /&gt; MAC = 9E2BC594A132DD9FA2C236A7900BC709&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = 5AA500010080D5D2517EC42472E15458B6762D28D91764B88E59A42AA74AA245&lt;BR /&gt; MAC = 13930ABCFB85B996262109D34C08726E&lt;BR /&gt; Encrypted SessionKeyEnc KSesAuthENC = 9E2BC594A132DD9FA2C236A7900BC709&lt;BR /&gt; Session KeyType ENC = 0000&lt;BR /&gt; Encrypted SessionKeyMAC KSesAuthMAC = 13930ABCFB85B996262109D34C08726E&lt;BR /&gt; Session KeyType MAC = 0000&lt;BR /&gt; Transaction Identifier = 9092A1C6&lt;BR /&gt;phalMfNtag42XDna_AuthenticatEv2--------LEAVE-------- bPcdCapsOut=000000000000 bPdCapsOut=000000000000 [STATUS = SUCCESS] AUTHENTICATED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------WRITE DATA TO FILE----------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phalMfNtag42XDna_WriteData--------ENTRY-------- bOption=30 bIns=01 bFileNo=02 pOffset=000000 pTxData=6688A4D75482FC972C2447A1A20F0AC9C073C1CF506B2BD3 pTxDataLen=180000 &lt;BR /&gt; Encrypted (RndA || RndB') = 007D004AD1DF8F85B07D9CF17000DE2A&lt;BR /&gt; Encrypted (RndA || RndB') = 75B2F5DDC646CA4C70B9A64F9D7888C2&lt;BR /&gt; Encrypted (RndA || RndB') = 3BA4362223091B1BFFE940229FA36A67&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = 8D00009092A1C60200000018000075B2&lt;BR /&gt; MAC = 5B85393206D2041DEEF7AA344C0FAB66&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = F5DDC646CA4C70B9A64F9D7888C23BA4362223091B1BFFE940229FA36A67&lt;BR /&gt; MAC = 43153DFF079B421A4A8E31AA92407AE5&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=908D00002F&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=02000000180000&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=75B2F5DDC646CA4C70B9A64F9D7888C2&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=3BA4362223091B1BFFE940229FA36A6715FF9B1A8EAA40E5&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Send to card: &lt;STRONG&gt;908D00002F0200000018000075B2F5DDC646CA4C70B9A64F9D7888C23BA4362223091B1BFFE940229FA36A6715FF9B1A8EAA40E500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=87E6C1369D4C9F019100 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Recv from card: 87E6C1369D4C9F019100&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = 0001009092A1C6&lt;BR /&gt; MAC = 568770E6F1C1E5362D9D844CCF9FA301&lt;BR /&gt;phalMfNtag42XDna_WriteData--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this process, this is the entire process I used, please check that you have changed the file settings so it supports encrypted communication and which keys are allowed to perform this actions. and check the LC of the APDU command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have more questions please let me know.&lt;/P&gt;&lt;P&gt;Have a great day !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2020 17:28:38 GMT</pubDate>
    <dc:creator>Jonathan_Iglesias</dc:creator>
    <dc:date>2020-03-18T17:28:38Z</dc:date>
    <item>
      <title>Problems with NTAG DNA 424 - WriteData - Length Error</title>
      <link>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009754#M6642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; font-size: 13px;"&gt;Hello,&lt;/SPAN&gt;&lt;BR style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; font-size: 13px;"&gt;I am trying to use the NTAG 424 chip for my anti-tamper application. For this I implemented the AES authentication and cryptographie for sending and receiving commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; font-size: 13px;"&gt;However when I am trying to issue&amp;nbsp;the writeData command with some dummy data, I get the error:&amp;nbsp;&lt;SPAN&gt;917E: "Length Error"".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The data I am trying to send is the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cmd_header = 02000000040000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cmd_data = 00D1FF00 (before padding)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cmd_data = 00D1FF00800000000000000000000000 (after padding)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;now the complete command which I send looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cla cmd P1&amp;amp;2| Lc |ISO Header&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | encrypted Data |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;90 8D 00 00&amp;nbsp; &amp;nbsp; 1F 02 000000 040000 6688A4D75482FC972C2447A1A20F0AC9C073C1CF506B2BD3 00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; font-size: 13px;"&gt;I dont think that I made errors in the encryption, because I implemented a unit test which replicates the results of the example in the AN12196 application note (Table 17). Also, the PICC returns an Length error, which according to the Documentation means "Command size not allow". I do not understand this error, but I dont think it has something to do with my encryption.&lt;BR /&gt;&lt;SPAN&gt;So does anyone know what I am doing wrong?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Phil&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;Update: So I can definitely say that the fault has nothing to do with my encryption, because I can correctly&amp;nbsp;parse the response from the chips for commands like the GetTTStatus and the GetCardUID. Additionally I can correctly encrypt and send the SetConfiguration command, which tells me that I definitly send the correct command.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 10:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009754#M6642</guid>
      <dc:creator>philippe_petit</dc:creator>
      <dc:date>2020-03-10T10:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with NTAG DNA 424 - WriteData - Length Error</title>
      <link>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009755#M6643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope you are doing great,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the problem is thar the lenght inside the CMD header is incorrectly please&amp;nbsp; check datasheet Figure 27&amp;nbsp;&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/98025i9EF19498B9064668/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;the number of bytes to be written&amp;nbsp; should be 24 bytes&amp;nbsp; (&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff;"&gt;6688A4D75482FC972C2447A1A20F0AC9C073C1CF506B2BD3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 14:41:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009755#M6643</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2020-03-18T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with NTAG DNA 424 - WriteData - Length Error</title>
      <link>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009756#M6644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;/P&gt;&lt;P&gt;thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right if we are in plain mode. If we are in plain mode, and I want to write the&amp;nbsp;bytes&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; border: 0px;"&gt;6688A4D75482FC972C2447A1A20F0AC9C073C1CF506B2BD3), then I have to have a length of 24 in my header.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; border: 0px;"&gt;If, however, I want to write the 4 bytes as specified in my question (in encrypted communication mode), then it does not work to put a length of 24 (18h) in the header.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; border: 0px;"&gt;So my workaround for the moment is to write the 4 bytes in plain communciation mode (in which I dont have to perform the encryption) and then to lock the file with the desired key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; border: 0px;"&gt;However I would like to know how to write in encrypted mode? The Data-sheet is a bit unspecific in this term, and the application note is just plainly wrong (the application note has also a couple of other errors see for &lt;A href="https://stackoverflow.com/questions/60708943/python-crc-calculation-for-the-ntag-424-nfc-chip"&gt;example&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.8); background-color: #ffffff; border: 0px;"&gt;Thanks for&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 15:05:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009756#M6644</guid>
      <dc:creator>philippe_petit</dc:creator>
      <dc:date>2020-03-18T15:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with NTAG DNA 424 - WriteData - Length Error</title>
      <link>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009757#M6645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------ISO 14443-3 ACTIVATION------------------&lt;/P&gt;&lt;P&gt;phpalI14443p3a_ActivateCard--------ENTRY-------- &lt;BR /&gt;Send to card: 26&lt;BR /&gt;Recv from card: 4403&lt;BR /&gt;Send to card: 9320&lt;BR /&gt;Recv from card: 88046F0FEC&lt;BR /&gt;Send to card: 937088046F0FEC&lt;BR /&gt;Recv from card: 04&lt;BR /&gt;Send to card: 9520&lt;BR /&gt;Recv from card: 2AAA618061&lt;BR /&gt;Send to card: 95702AAA618061&lt;BR /&gt;Recv from card: 20&lt;BR /&gt;phpalI14443p3a_ActivateCard--------LEAVE-------- pUidOut=046F0F2AAA6180 pSak=20 pMoreCardsAvailable=00 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------ISO 14443-4---------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4a_ActivateCard--------ENTRY-------- bFsdi=08 bCid=00 bDri=03 bDsi=03 &lt;BR /&gt;Send to card: E080&lt;BR /&gt;Recv from card: 067777710280&lt;BR /&gt;Send to card: D0110F&lt;BR /&gt;Recv from card: D0&lt;BR /&gt;phpalI14443p4a_ActivateCard--------LEAVE-------- pAts=067777710280 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------ISO FILE SELECT-------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phalMfNtag42XDna_IsoSelectFile--------ENTRY-------- bOption=0C bSelector=04 pFid=10E1 pFid=10E1 bDFnameLen=07 pDFname=D2760000850101&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=00A4040C07&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=D2760000850101&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Send to card: 00A4040C07D276000085010100&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=9000 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Recv from card: 9000&lt;BR /&gt;phalMfNtag42XDna_IsoSelectFile--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------AUTHENTICATION TO KEY 00--------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phalMfNtag42XDna_AuthenticatEv2--------ENTRY-------- bAuthOption=01 wOption=FFFF wKeyNo=0000 wKeyVer=0000 bKeyNoCard=00&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=9071000002&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=0000&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Send to card: 9071000002000000&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=E21768618E1FDB9D93F596551CE06E6B91AF [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Recv from card: E21768618E1FDB9D93F596551CE06E6B91AF&lt;BR /&gt; PICC-to-&amp;gt;PCD E(Kx, RNDB): E21768618E1FDB9D93F596551CE06E6B&lt;BR /&gt; Plain RNDB = CE86E6E968F45458B6762D28D91764B8&lt;BR /&gt; Plain RNDA = D5D29FF822CD1A158E59A42AA74AA245&lt;BR /&gt; Encrypted (RndA || RndB') = 7B57022C027C5124E19AC54D5E38A10A732F64C98AA63F80F9536F4D889C257F&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=90AF000020&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=7B57022C027C5124E19AC54D5E38A10A732F64C98AA63F80F9536F4D889C257F&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Send to card: 90AF0000207B57022C027C5124E19AC54D5E38A10A732F64C98AA63F80F9536F4D889C257F00&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=1820F5BC0D050F4CAA73E388C86BE03188B85535D1B7682A9818ACEDA8D2A9E59100 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Recv from card: 1820F5BC0D050F4CAA73E388C86BE03188B85535D1B7682A9818ACEDA8D2A9E59100&lt;BR /&gt; PICC-to-&amp;gt;PCD E(Kx, TI||RndA'||PDcap2||PCDcap2): 1820F5BC0D050F4CAA73E388C86BE03188B85535D1B7682A9818ACEDA8D2A9E5&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = A55A00010080D5D2517EC42472E15458B6762D28D91764B88E59A42AA74AA245&lt;BR /&gt; MAC = 9E2BC594A132DD9FA2C236A7900BC709&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = 5AA500010080D5D2517EC42472E15458B6762D28D91764B88E59A42AA74AA245&lt;BR /&gt; MAC = 13930ABCFB85B996262109D34C08726E&lt;BR /&gt; Encrypted SessionKeyEnc KSesAuthENC = 9E2BC594A132DD9FA2C236A7900BC709&lt;BR /&gt; Session KeyType ENC = 0000&lt;BR /&gt; Encrypted SessionKeyMAC KSesAuthMAC = 13930ABCFB85B996262109D34C08726E&lt;BR /&gt; Session KeyType MAC = 0000&lt;BR /&gt; Transaction Identifier = 9092A1C6&lt;BR /&gt;phalMfNtag42XDna_AuthenticatEv2--------LEAVE-------- bPcdCapsOut=000000000000 bPdCapsOut=000000000000 [STATUS = SUCCESS] AUTHENTICATED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------WRITE DATA TO FILE----------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phalMfNtag42XDna_WriteData--------ENTRY-------- bOption=30 bIns=01 bFileNo=02 pOffset=000000 pTxData=6688A4D75482FC972C2447A1A20F0AC9C073C1CF506B2BD3 pTxDataLen=180000 &lt;BR /&gt; Encrypted (RndA || RndB') = 007D004AD1DF8F85B07D9CF17000DE2A&lt;BR /&gt; Encrypted (RndA || RndB') = 75B2F5DDC646CA4C70B9A64F9D7888C2&lt;BR /&gt; Encrypted (RndA || RndB') = 3BA4362223091B1BFFE940229FA36A67&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = 8D00009092A1C60200000018000075B2&lt;BR /&gt; MAC = 5B85393206D2041DEEF7AA344C0FAB66&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = F5DDC646CA4C70B9A64F9D7888C23BA4362223091B1BFFE940229FA36A67&lt;BR /&gt; MAC = 43153DFF079B421A4A8E31AA92407AE5&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=908D00002F&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=02000000180000&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=75B2F5DDC646CA4C70B9A64F9D7888C2&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000 pTxBuffer=3BA4362223091B1BFFE940229FA36A6715FF9B1A8EAA40E5&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Send to card: &lt;STRONG&gt;908D00002F0200000018000075B2F5DDC646CA4C70B9A64F9D7888C23BA4362223091B1BFFE940229FA36A6715FF9B1A8EAA40E500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00&lt;BR /&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=87E6C1369D4C9F019100 [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;Recv from card: 87E6C1369D4C9F019100&lt;BR /&gt; MAC Input Data = Cmd||CmdCtr||TI||CmdHeader||E(CmdData) &lt;BR /&gt; MAC Input Data = 0001009092A1C6&lt;BR /&gt; MAC = 568770E6F1C1E5362D9D844CCF9FA301&lt;BR /&gt;phalMfNtag42XDna_WriteData--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this process, this is the entire process I used, please check that you have changed the file settings so it supports encrypted communication and which keys are allowed to perform this actions. and check the LC of the APDU command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have more questions please let me know.&lt;/P&gt;&lt;P&gt;Have a great day !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 17:28:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009757#M6645</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2020-03-18T17:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with NTAG DNA 424 - WriteData - Length Error</title>
      <link>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009758#M6646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="356418" data-username="philippe.petit@securovin.com" href="https://community.nxp.com/people/philippe.petit@securovin.com"&gt;Philippe Petit&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if my answer above was helpful.&lt;/P&gt;&lt;P&gt;Looking forward to your answer.&lt;/P&gt;&lt;P&gt;Have a great day !&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 21:28:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1009758#M6646</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2020-03-19T21:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with NTAG DNA 424 - WriteData - Length Error</title>
      <link>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1729470#M10784</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I know this message was from a while ago, but I'm curious to know how you run the APDU commands on your NTAG424. I'm having issues with running commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 07:09:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/1729470#M10784</guid>
      <dc:creator>shaghayeghnz</dc:creator>
      <dc:date>2023-09-26T07:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with NTAG DNA 424 - WriteData - Length Error</title>
      <link>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/2350795#M14174</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/65988"&gt;@Jonathan_Iglesias&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am checking this post because I am having the same issue here.&lt;BR /&gt;&lt;BR /&gt;I followed the exact same steps in your post, but I keep getting 917E response.&lt;BR /&gt;&lt;BR /&gt;Do you think it might be due to my card reader? I am using an ACS ACR1251U.&lt;BR /&gt;&lt;BR /&gt;Also, you said: "&lt;SPAN&gt;check that you have changed the file settings so it supports encrypted communication and which keys are allowed to perform this actions."&lt;BR /&gt;&lt;/SPAN&gt;How do I check that?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 14:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Problems-with-NTAG-DNA-424-WriteData-Length-Error/m-p/2350795#M14174</guid>
      <dc:creator>RafaelKC</dc:creator>
      <dc:date>2026-04-14T14:01:58Z</dc:date>
    </item>
  </channel>
</rss>

