<?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: Can't execute ChangeSettings Command on NTAG 424 in NFC</title>
    <link>https://community.nxp.com/t5/NFC/undefined/m-p/1228551#M8170</link>
    <description>&lt;P&gt;undefined&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 04:25:46 GMT</pubDate>
    <dc:creator>undefined</dc:creator>
    <dc:date>2023-12-14T04:25:46Z</dc:date>
    <item>
      <title>undefined</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1223529#M8136</link>
      <description>&lt;P&gt;undefined&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 04:25:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1223529#M8136</guid>
      <dc:creator>undefined</dc:creator>
      <dc:date>2023-12-14T04:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1224570#M8143</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181889"&gt;@undefined&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We provide an example in the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12196.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12196.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please refer to section 6 for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;/P&gt;
&lt;P&gt;&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>Tue, 02 Feb 2021 09:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1224570#M8143</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-02-02T09:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1228551#M8170</link>
      <description>&lt;P&gt;undefined&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 04:25:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1228551#M8170</guid>
      <dc:creator>undefined</dc:creator>
      <dc:date>2023-12-14T04:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1231193#M8198</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181889"&gt;@undefined&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing great,&lt;/P&gt;
&lt;P&gt;Please accept our apologies for the delay there is an important holiday in my colleague country and that is why there is a little delay in our response, regarding your issue, that error means that the key used to authenticate is not the correct one to modify the file settings, basically whatever you have in your change key settings for the file is the one, I would recommend to double check the process I see you have the settings as E0EE which should require an authentication with key 00 to modify the file settings, also please first select the application then authenticate.&amp;nbsp; you can check the IV values in your process, that you are using the correct key, and confirm the file settings, check the following log I created for you doing the&amp;nbsp; Select command&amp;gt;Authenticate with key 01 ( since my card had the settings: Read 00 write 01 Read/Write 03 and change 01) &amp;gt; get file settings &amp;gt; change file settings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT command

Send to card: 00A4040C07D276000085010100
Recv from card: 9000



Authenticate EV2 first

Send to card: 9071000002010000

Recv from card: 739CC6604B45430E602EC5283139F1FE91AF

PICC-to-&amp;gt;PCD E(Kx, RndB): 739CC6604B45430E602EC5283139F1FE
Plain RNDB = 65EAF88FAF5290623DDCE478ADBE0BC4
Plain RNDA = 25E559236536A90860A28C6571F9F913
Plain RndB'= 60A28C6571F9F913EAF88FAF5290623DDCE478ADBE0BC465
Plain (RndA || RndB')= 25E559236536A90860A28C6571F9F913EAF88FAF5290623DDCE478ADBE0BC465
Encrypted (RndA || RndB'): 1EAC3CCD71A607FA2D474B4845721ADA12F20F9B63C92E1603D630EBA4B9B830



Send to card: 90AF0000201EAC3CCD71A607FA2D474B4845721ADA12F20F9B63C92E1603D630EBA4B9B83000

Recv from card: 4E4F4614CA94263B65E18D31FA6F34C15BFC7C4C499B3FDA90EA8B50A373BFEC9100



PICC-to-&amp;gt;PCD E(Kx, TI||RndA'||PDcap2||PCDcap2): 4E4F4614CA94263B65E18D31FA6F34C15BFC7C4C499B3FDA90EA8B50A373BFEC
Plain (TI || RndA' || PDcap2 || PCDcap2)= FB72B311E559236536A90860A28C6571F9F91325000000000000000000000000
Plain RNDA' =


SV1 = 0xA5||0x5A||0x00||0x01||0x00||0x80||RndA[15..14]||(RndA[13..8] ⊕ RndB[15..10])||RndB[9..0]||RndA[7..0] 
SV1 = A55A0001008025E53CC99DB9065A90623DDCE478ADBE0BC460A28C6571F9F913
Encrypted SessionEncKey = AF479E5DFD0B91E1E0B364CB41746088

SV2 = 0x5A||0xA5||0x00||0x01||0x00||0x80||RndA[15..14]||(RndA[13..8] ⊕ RndB[15..10])||RndB[9..0]||RndA[7..0] 
SV2 = 5AA50001008025E53CC99DB9065A90623DDCE478ADBE0BC460A28C6571F9F913
Encrypted SessionMacKey = 795A1CF5300943E758AF53BD5FE5E769

CmdCtr = 0000


Get file settings



IV = 00000000000000000000000000000000

MAC Input Data = Cmd || CmdCtr || TI || CmdHeader || E(CmdData) 
MAC Input Data = F50000FB72B31102
MAC = E2D5F311756E933104D85618A1EE7207

Send to card: 90F500000902D5116E31D818EE0700

Recv from card: 00003102000100BCC4DE8C5817369D9100


IV = 00000000000000000000000000000000

MAC Input Data = Cmd || CmdCtr || TI || CmdHeader || E(CmdData) 
MAC Input Data = 000100FB72B31100003102000100
MAC = 2CBC83C49ADEAC8CA25838175036719D
phalMfNtag42XDna_GetFileSettings--------LEAVE-------- pFSBuffer=00003102000100 bBufferLen=07 [STATUS = SUCCESS]


phalMfNtag42XDna_ChangeFileSettings--------ENTRY-------- bCommMode=30 bFileNo=02 bFileOption=00 bAdditionalInfoLen=00 pAccessRights=3102



Change file settings:


plain stream(in): plain= A55AFB72B31101000000000000000000
Encrypted stream(out): enc= 596A58A577257242F81A425E74FB5F9D
IV = 596A58A577257242F81A425E74FB5F9D
plain stream(in): plain= 00310280000000000000000000000000
Encrypted stream(out): enc= C559F8442B9FD87636A54D09397553F3
IV = 00000000000000000000000000000000

MAC Input Data = Cmd || CmdCtr || TI || CmdHeader || E(CmdData) 
MAC Input Data = 5F0100FB72B31102C559F8442B9FD87636A54D09397553F3
MAC = 74E5F7EA2FF190BD1102D2EA55434D0B

 

Send to card: 905F00001902C559F8442B9FD87636A54D09397553F3E5EAF1BD02EA430B00

Recv from card: 1EE98E904AE6AACD9100
IV = 00000000000000000000000000000000

MAC Input Data = Cmd || CmdCtr || TI || CmdHeader || E(CmdData) 
MAC Input Data = 000200FB72B311
MAC = 751E34E99C8EC490E24A82E683AA91CD


&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jonathan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 18:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1231193#M8198</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2021-02-16T18:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1232574#M8211</link>
      <description>&lt;P&gt;Hello&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;Thanks for the following up!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181889"&gt;@undefined&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any progress on your side? I have checked with the expert, and he recommended not using&amp;nbsp; “80” at the end of ChangeFileSettings Data: 4000E0C1F121200000430000430000&lt;SPAN style="text-decoration: line-through;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;and he can&amp;nbsp;get APDU with your settings:&lt;/P&gt;
&lt;P&gt;905F0000190295DA3AAB53AABA618E20BFC140208CD7238DC0733225B78B00&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, 18 Feb 2021 05:54:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1232574#M8211</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-02-18T05:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1232609#M8214</link>
      <description>&lt;P&gt;undefined&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 04:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1232609#M8214</guid>
      <dc:creator>undefined</dc:creator>
      <dc:date>2023-12-14T04:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1234192#M8218</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181889"&gt;@undefined&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it is AES-128 cipher. 80h is indeed used for padding, but it is not part of Change File Settings, that’s why it is mentioned.&lt;/P&gt;
&lt;P&gt;- Maybe problem is with CmdCtr, can you print out command counters at each command after authentication? &lt;BR /&gt;- Is it possible to share exact order? Because --SELECT APPLICATION-- cannot be done after --AUTHENTICATE EV2 FIRST--.&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>Mon, 22 Feb 2021 07:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1234192#M8218</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-02-22T07:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1237089#M8235</link>
      <description>&lt;P&gt;undefined&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 04:25:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1237089#M8235</guid>
      <dc:creator>undefined</dc:creator>
      <dc:date>2023-12-14T04:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1237145#M8236</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181889"&gt;@undefined&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No,&amp;nbsp;the actual value of the CmdCtr is never transmitted. The CmdCtr is reset to 0000h at PCD and&lt;BR /&gt;PICC after a successful AuthenticateEV2First authentication and it is maintained as long as the PICC remains authenticated. Please kindly refer to "9.1.2 Command Counter" of the data sheet for more details.&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>Fri, 26 Feb 2021 08:30:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1237145#M8236</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-02-26T08:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1239666#M8249</link>
      <description>&lt;P&gt;undefined&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 04:26:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1239666#M8249</guid>
      <dc:creator>undefined</dc:creator>
      <dc:date>2023-12-14T04:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute ChangeSettings Command on NTAG 424</title>
      <link>https://community.nxp.com/t5/NFC/undefined/m-p/1398605#M9105</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181889"&gt;@undefined&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm running into the same issue, using the same node setup.&lt;/P&gt;&lt;P&gt;Can you share more information on how you computed the&amp;nbsp;&lt;SPAN&gt;SV1 and&amp;nbsp;SV2 values please? Did you set the CmdCtr to 0000 when computing them?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 04:54:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/undefined/m-p/1398605#M9105</guid>
      <dc:creator>curdin</dc:creator>
      <dc:date>2022-01-13T04:54:26Z</dc:date>
    </item>
  </channel>
</rss>

