<?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: Use APDU to set Privacy mode or Password Protected in NFC</title>
    <link>https://community.nxp.com/t5/NFC/Use-APDU-to-set-Privacy-mode-or-Password-Protected/m-p/928513#M5711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="346435" data-username="g20500178@gmail.com" href="https://community.nxp.com/people/g20500178@gmail.com"&gt;Chen GuangJian&lt;/A&gt;,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I hope you are doing well.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Before setting a password or entering "privacy mode" you should first select your TAG:&lt;/P&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Perform TAG detection (anti-collision).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Select your TAG (set your TAG's state into "selected").&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Once you have successfully selected your TAG, you may begin sending it commands.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The procedure to change a "read/write" password is the following:&lt;/P&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Use the GET RANDOM NUMBER command (B2h).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Authenticate with the current "read/write" password through the command SET PASSWORD (B3h)&lt;/SPAN&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Note: select which password are you authenticating to with the corresponding password ID (see Table 13 of the &lt;A href="https://www.nxp.com/docs/en/data-sheet/SL2S2602.pdf"&gt;SL2S2602 datasheet&lt;/A&gt;).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;Use the command WRITE PASSWORD (B4h) to define the new "read/write" password.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Authenticate the new password to verify operation success. Use the command SET PASSWORD (B3h) to authenticate.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Now you will need to authenticate with your new password before being able to read/write on the TAG, depending on which action you protected under password.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;For example:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I generated the number 24069 through the GET RANDOM NUMBER command:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B2&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; ppRnd=5E05&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Then, I authenticated with my current (default) "read" password: 00000000&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B3015E055E05&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Once I have authenticated, I write my new "read" password: 01234567&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B40101234567&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Finally, I authenticate myself with my new "read" password:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pXorPwd=5F261B62&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; pTxBuffer=B3015F261B62&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Now I am able to read user memory locations. For example, I read the block 00, which contains &lt;/SPAN&gt;&lt;SPAN&gt;686F6C61&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;[pTxBuffer=2000&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; ppData=686F6C61]&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The procedure to enter "privacy mode" is the following:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Use the GET RANDOM NUMBER command (B2h).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Authenticate with the current "privacy" password through the command SET PASSWORD (B3h)&lt;/SPAN&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Note: select which password are you authenticating to with the corresponding password ID (see Table 13 of the &lt;A href="https://www.nxp.com/docs/en/data-sheet/SL2S2602.pdf"&gt;SL2S2602 datasheet&lt;/A&gt;).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Enter into "privacy mode" through the command ENABLE PRIVACY (BAh).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Now your TAG has entered privacy mode. It will not respond to any command other than GENERATE RANDOM NUMBER or SET PASSWORD (only for "privacy" password). You can verify this by trying to execute any other command. The result must be a failure.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;For example:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I generated the number 05834 through the GET RANDOM NUMBER command:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B2&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; ppRnd=16CA&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Then, I authenticated with my current (default) "privacy" password: &lt;/SPAN&gt;&lt;SPAN&gt;0F0F0F0F&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B30419C519C5&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Now, I enter the "privacy mode":&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pXorPwd=19C519C5&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; pTxBuffer=BA19C519C5&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I checked this by attempting to authenticate into my "read" password. As expected, it did not allow me.&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The procedure to exit the privacy mode is the following:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Use the GET RANDOM NUMBER command (B2h).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Authenticate with the current "privacy" password through the command SET PASSWORD (B3h)&lt;/SPAN&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Note: select which password are you authenticating to with the corresponding password ID (see Table 13 of the &lt;A href="https://www.nxp.com/docs/en/data-sheet/SL2S2602.pdf"&gt;SL2S2602 datasheet&lt;/A&gt;).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Now your TAG has exited privacy mode. You can confirm this by executing a read/write operation. The result should be a success if you have read/write permissions.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;For example:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I generated the number 10495 through the GET RANDOM NUMBER command:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B2&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; ppRnd=&lt;/SPAN&gt;&lt;SPAN&gt;28FF]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Then, I authenticated with my current (default) "privacy" password: &lt;/SPAN&gt;&lt;SPAN&gt;0F0F0F0F&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=&lt;/SPAN&gt;&lt;SPAN&gt;B30427F027F0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Now I am allowed authenticate under my "read" password &lt;/SPAN&gt;&lt;SPAN&gt;(01234567)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pXorPwd=29DC6D98&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; pTxBuffer=B30129DC6D98&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I recommend you trying our &lt;A href="https://www.nxp.com/products/rfid-nfc/mifare-hf/mifare-desfire/rfiddiscover:RFID-DISCOVER"&gt;RFID Discover&lt;/A&gt; software. There you will be able to test your TAG and observe the log session generated by the reader.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I hope this information helps. Please let us know if you have any doubts or concerns and we will be glad to assist you.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Best regards,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2019 16:41:00 GMT</pubDate>
    <dc:creator>nxf54945</dc:creator>
    <dc:date>2019-08-22T16:41:00Z</dc:date>
    <item>
      <title>Use APDU to set Privacy mode or Password Protected</title>
      <link>https://community.nxp.com/t5/NFC/Use-APDU-to-set-Privacy-mode-or-Password-Protected/m-p/928512#M5710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a&amp;nbsp;SL2S2602 TAG&amp;nbsp; then i use APDU commands to read UID 、block and write block are OK. but i don't know how to set the Tag to privacy mode or how to set the&amp;nbsp;Password protected to managent read/write rights of TAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UID command =&amp;gt; FF CA 00 00 00&lt;BR /&gt;Read Block&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; FF B0 01 00 04&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update block&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; FF D6 01 00 04 01 02 03 04&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 14:28:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Use-APDU-to-set-Privacy-mode-or-Password-Protected/m-p/928512#M5710</guid>
      <dc:creator>g20500178</dc:creator>
      <dc:date>2019-08-15T14:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use APDU to set Privacy mode or Password Protected</title>
      <link>https://community.nxp.com/t5/NFC/Use-APDU-to-set-Privacy-mode-or-Password-Protected/m-p/928513#M5711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="346435" data-username="g20500178@gmail.com" href="https://community.nxp.com/people/g20500178@gmail.com"&gt;Chen GuangJian&lt;/A&gt;,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I hope you are doing well.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Before setting a password or entering "privacy mode" you should first select your TAG:&lt;/P&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Perform TAG detection (anti-collision).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Select your TAG (set your TAG's state into "selected").&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Once you have successfully selected your TAG, you may begin sending it commands.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The procedure to change a "read/write" password is the following:&lt;/P&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Use the GET RANDOM NUMBER command (B2h).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Authenticate with the current "read/write" password through the command SET PASSWORD (B3h)&lt;/SPAN&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Note: select which password are you authenticating to with the corresponding password ID (see Table 13 of the &lt;A href="https://www.nxp.com/docs/en/data-sheet/SL2S2602.pdf"&gt;SL2S2602 datasheet&lt;/A&gt;).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;Use the command WRITE PASSWORD (B4h) to define the new "read/write" password.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Authenticate the new password to verify operation success. Use the command SET PASSWORD (B3h) to authenticate.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Now you will need to authenticate with your new password before being able to read/write on the TAG, depending on which action you protected under password.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;For example:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I generated the number 24069 through the GET RANDOM NUMBER command:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B2&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; ppRnd=5E05&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Then, I authenticated with my current (default) "read" password: 00000000&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B3015E055E05&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Once I have authenticated, I write my new "read" password: 01234567&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B40101234567&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Finally, I authenticate myself with my new "read" password:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pXorPwd=5F261B62&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; pTxBuffer=B3015F261B62&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Now I am able to read user memory locations. For example, I read the block 00, which contains &lt;/SPAN&gt;&lt;SPAN&gt;686F6C61&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;[pTxBuffer=2000&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; ppData=686F6C61]&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The procedure to enter "privacy mode" is the following:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Use the GET RANDOM NUMBER command (B2h).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Authenticate with the current "privacy" password through the command SET PASSWORD (B3h)&lt;/SPAN&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Note: select which password are you authenticating to with the corresponding password ID (see Table 13 of the &lt;A href="https://www.nxp.com/docs/en/data-sheet/SL2S2602.pdf"&gt;SL2S2602 datasheet&lt;/A&gt;).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Enter into "privacy mode" through the command ENABLE PRIVACY (BAh).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Now your TAG has entered privacy mode. It will not respond to any command other than GENERATE RANDOM NUMBER or SET PASSWORD (only for "privacy" password). You can verify this by trying to execute any other command. The result must be a failure.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;For example:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I generated the number 05834 through the GET RANDOM NUMBER command:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B2&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; ppRnd=16CA&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Then, I authenticated with my current (default) "privacy" password: &lt;/SPAN&gt;&lt;SPAN&gt;0F0F0F0F&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B30419C519C5&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Now, I enter the "privacy mode":&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pXorPwd=19C519C5&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; pTxBuffer=BA19C519C5&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I checked this by attempting to authenticate into my "read" password. As expected, it did not allow me.&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The procedure to exit the privacy mode is the following:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Use the GET RANDOM NUMBER command (B2h).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Authenticate with the current "privacy" password through the command SET PASSWORD (B3h)&lt;/SPAN&gt;&lt;OL style="margin-left: .375in; margin-top: 0in; margin-bottom: 0in; font-size: 11.0pt;"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Note: select which password are you authenticating to with the corresponding password ID (see Table 13 of the &lt;A href="https://www.nxp.com/docs/en/data-sheet/SL2S2602.pdf"&gt;SL2S2602 datasheet&lt;/A&gt;).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Now your TAG has exited privacy mode. You can confirm this by executing a read/write operation. The result should be a success if you have read/write permissions.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;For example:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I generated the number 10495 through the GET RANDOM NUMBER command:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=B2&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; ppRnd=&lt;/SPAN&gt;&lt;SPAN&gt;28FF]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Then, I authenticated with my current (default) "privacy" password: &lt;/SPAN&gt;&lt;SPAN&gt;0F0F0F0F&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pTxBuffer=&lt;/SPAN&gt;&lt;SPAN&gt;B30427F027F0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Now I am allowed authenticate under my "read" password &lt;/SPAN&gt;&lt;SPAN&gt;(01234567)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;pXorPwd=29DC6D98&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp; pTxBuffer=B30129DC6D98&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I recommend you trying our &lt;A href="https://www.nxp.com/products/rfid-nfc/mifare-hf/mifare-desfire/rfiddiscover:RFID-DISCOVER"&gt;RFID Discover&lt;/A&gt; software. There you will be able to test your TAG and observe the log session generated by the reader.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I hope this information helps. Please let us know if you have any doubts or concerns and we will be glad to assist you.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Best regards,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:41:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Use-APDU-to-set-Privacy-mode-or-Password-Protected/m-p/928513#M5711</guid>
      <dc:creator>nxf54945</dc:creator>
      <dc:date>2019-08-22T16:41:00Z</dc:date>
    </item>
  </channel>
</rss>

