<?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>NFCのトピックIssue with NTAG213 Password Removal - Card Becomes Unusable After AUTH0 Modification</title>
    <link>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2000691#M12342</link>
    <description>&lt;H3&gt;Problem:&lt;/H3&gt;&lt;P&gt;I'm working on a Flutter app using the flutter_nfc_kit package to manage NFC cards (NTAG213). I have successfully implemented password protection for NTAG213 cards, but I am facing a critical issue while trying to remove the password.&lt;/P&gt;&lt;P&gt;The problem occurs when I modify the AUTH0 page during the password removal process. Specifically:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Setting the AUTH0 page to 0xFF or 0x0F makes the card permanently unusable (dead).&lt;/LI&gt;&lt;LI&gt;Setting the AUTH0 page to 0x00 doesn't work as expected and fails to remove the protection.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here’s the specific part of my code related to the issue:&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Code:&lt;/H3&gt;&lt;P&gt;Future&amp;lt;bool&amp;gt; removePasswordProtection({&lt;BR /&gt;required List&amp;lt;int&amp;gt; password,&lt;BR /&gt;}) async {&lt;BR /&gt;try {&lt;BR /&gt;setStatus('Checking NFC availability...');&lt;BR /&gt;var availability = await FlutterNfcKit.nfcAvailability;&lt;BR /&gt;if (availability != NFCAvailability.available) {&lt;BR /&gt;setStatus('NFC not available');&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;setStatus('Scanning for NFC tag...');&lt;BR /&gt;setScanning(true);&lt;/P&gt;&lt;P&gt;var tag = await FlutterNfcKit.poll(&lt;BR /&gt;timeout: const Duration(seconds: 10), androidCheckNDEF: true);&lt;/P&gt;&lt;P&gt;setStatus('Checking if card is NTAG213...');&lt;BR /&gt;if (!await isNTAG213(tag)) {&lt;BR /&gt;setStatus('Not an NTAG213 card');&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;setStatus('Attempting authentication...');&lt;BR /&gt;var authCommand = Uint8List.fromList([&lt;BR /&gt;0x1B, // PWD_AUTH command&lt;BR /&gt;password[0],&lt;BR /&gt;password[1],&lt;BR /&gt;password[2],&lt;BR /&gt;password[3]&lt;BR /&gt;]);&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;var authResponse = await FlutterNfcKit.transceive(authCommand);&lt;BR /&gt;print('Auth Response: ${authResponse.map((e) =&amp;gt; e.toRadixString(16).padLeft(2, '0')).join(' ')}');&lt;BR /&gt;if (authResponse.length &amp;lt; 2) {&lt;BR /&gt;setStatus('Authentication failed: Invalid response');&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;BR /&gt;} catch (e) {&lt;BR /&gt;setStatus('Authentication Error: $e');&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Remove password&lt;BR /&gt;await FlutterNfcKit.transceive(&lt;BR /&gt;Uint8List.fromList([0xA2, 0x2B, 0xFF, 0xFF, 0xFF, 0xFF])); // Clear password&lt;BR /&gt;await FlutterNfcKit.transceive(&lt;BR /&gt;Uint8List.fromList([0xA2, 0x2C, 0x00, 0x00, 0x00, 0x00])); // Clear PACK&lt;BR /&gt;await FlutterNfcKit.transceive(&lt;BR /&gt;Uint8List.fromList([0xA2, 0x29, 0xFF, 0x00, 0x00, 0x00])); // Modify AUTH0&lt;/P&gt;&lt;P&gt;setStatus('Password protection reset successfully');&lt;BR /&gt;await FlutterNfcKit.finish();&lt;BR /&gt;setScanning(false);&lt;BR /&gt;return true;&lt;BR /&gt;} catch (e) {&lt;BR /&gt;setStatus('Error: $e');&lt;BR /&gt;await FlutterNfcKit.finish();&lt;BR /&gt;setScanning(false);&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;What I’ve Tried:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Setting the AUTH0 page value to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0xFF: Makes the card permanently unusable.&lt;/LI&gt;&lt;LI&gt;0x0F: Same issue as above, card becomes dead.&lt;/LI&gt;&lt;LI&gt;0x00: Does not successfully remove the password protection.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Confirming that the card is indeed NTAG213 using a capability container check.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Writing and verifying the password during the protection setup process works as expected.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;Questions:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;What is the correct value for AUTH0 to properly disable password protection on NTAG213 cards without rendering them unusable?&lt;/LI&gt;&lt;LI&gt;Are there any additional steps or specific commands needed to safely remove password protection for NTAG213 cards?&lt;/LI&gt;&lt;LI&gt;Could this issue be related to the card's configuration or a missing step in the removal process?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any insights or guidance on resolving this issue would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 04:40:32 GMT</pubDate>
    <dc:creator>kamal511</dc:creator>
    <dc:date>2024-11-25T04:40:32Z</dc:date>
    <item>
      <title>Issue with NTAG213 Password Removal - Card Becomes Unusable After AUTH0 Modification</title>
      <link>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2000691#M12342</link>
      <description>&lt;H3&gt;Problem:&lt;/H3&gt;&lt;P&gt;I'm working on a Flutter app using the flutter_nfc_kit package to manage NFC cards (NTAG213). I have successfully implemented password protection for NTAG213 cards, but I am facing a critical issue while trying to remove the password.&lt;/P&gt;&lt;P&gt;The problem occurs when I modify the AUTH0 page during the password removal process. Specifically:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Setting the AUTH0 page to 0xFF or 0x0F makes the card permanently unusable (dead).&lt;/LI&gt;&lt;LI&gt;Setting the AUTH0 page to 0x00 doesn't work as expected and fails to remove the protection.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here’s the specific part of my code related to the issue:&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Code:&lt;/H3&gt;&lt;P&gt;Future&amp;lt;bool&amp;gt; removePasswordProtection({&lt;BR /&gt;required List&amp;lt;int&amp;gt; password,&lt;BR /&gt;}) async {&lt;BR /&gt;try {&lt;BR /&gt;setStatus('Checking NFC availability...');&lt;BR /&gt;var availability = await FlutterNfcKit.nfcAvailability;&lt;BR /&gt;if (availability != NFCAvailability.available) {&lt;BR /&gt;setStatus('NFC not available');&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;setStatus('Scanning for NFC tag...');&lt;BR /&gt;setScanning(true);&lt;/P&gt;&lt;P&gt;var tag = await FlutterNfcKit.poll(&lt;BR /&gt;timeout: const Duration(seconds: 10), androidCheckNDEF: true);&lt;/P&gt;&lt;P&gt;setStatus('Checking if card is NTAG213...');&lt;BR /&gt;if (!await isNTAG213(tag)) {&lt;BR /&gt;setStatus('Not an NTAG213 card');&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;setStatus('Attempting authentication...');&lt;BR /&gt;var authCommand = Uint8List.fromList([&lt;BR /&gt;0x1B, // PWD_AUTH command&lt;BR /&gt;password[0],&lt;BR /&gt;password[1],&lt;BR /&gt;password[2],&lt;BR /&gt;password[3]&lt;BR /&gt;]);&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;var authResponse = await FlutterNfcKit.transceive(authCommand);&lt;BR /&gt;print('Auth Response: ${authResponse.map((e) =&amp;gt; e.toRadixString(16).padLeft(2, '0')).join(' ')}');&lt;BR /&gt;if (authResponse.length &amp;lt; 2) {&lt;BR /&gt;setStatus('Authentication failed: Invalid response');&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;BR /&gt;} catch (e) {&lt;BR /&gt;setStatus('Authentication Error: $e');&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Remove password&lt;BR /&gt;await FlutterNfcKit.transceive(&lt;BR /&gt;Uint8List.fromList([0xA2, 0x2B, 0xFF, 0xFF, 0xFF, 0xFF])); // Clear password&lt;BR /&gt;await FlutterNfcKit.transceive(&lt;BR /&gt;Uint8List.fromList([0xA2, 0x2C, 0x00, 0x00, 0x00, 0x00])); // Clear PACK&lt;BR /&gt;await FlutterNfcKit.transceive(&lt;BR /&gt;Uint8List.fromList([0xA2, 0x29, 0xFF, 0x00, 0x00, 0x00])); // Modify AUTH0&lt;/P&gt;&lt;P&gt;setStatus('Password protection reset successfully');&lt;BR /&gt;await FlutterNfcKit.finish();&lt;BR /&gt;setScanning(false);&lt;BR /&gt;return true;&lt;BR /&gt;} catch (e) {&lt;BR /&gt;setStatus('Error: $e');&lt;BR /&gt;await FlutterNfcKit.finish();&lt;BR /&gt;setScanning(false);&lt;BR /&gt;return false;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;What I’ve Tried:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Setting the AUTH0 page value to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0xFF: Makes the card permanently unusable.&lt;/LI&gt;&lt;LI&gt;0x0F: Same issue as above, card becomes dead.&lt;/LI&gt;&lt;LI&gt;0x00: Does not successfully remove the password protection.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Confirming that the card is indeed NTAG213 using a capability container check.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Writing and verifying the password during the protection setup process works as expected.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;Questions:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;What is the correct value for AUTH0 to properly disable password protection on NTAG213 cards without rendering them unusable?&lt;/LI&gt;&lt;LI&gt;Are there any additional steps or specific commands needed to safely remove password protection for NTAG213 cards?&lt;/LI&gt;&lt;LI&gt;Could this issue be related to the card's configuration or a missing step in the removal process?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any insights or guidance on resolving this issue would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 04:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2000691#M12342</guid>
      <dc:creator>kamal511</dc:creator>
      <dc:date>2024-11-25T04:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with NTAG213 Password Removal - Card Becomes Unusable After AUTH0 Modification</title>
      <link>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2001351#M12347</link>
      <description>&lt;P lang="en-US"&gt;Hello,&amp;nbsp;Thank you for your interest in our products.&lt;/P&gt;
&lt;P lang="en-US"&gt;AUTH0 is intended to be used for defining the starting page address of the protected area in Sector 0. Please take a look at the Memory Organization of the NTAG I2C. The starting address for AUTH0 is shown in the following image:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fabian_R_0-1732564873752.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/312419i550E4FDCD9422055/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fabian_R_0-1732564873752.png" alt="Fabian_R_0-1732564873752.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P lang="en-US"&gt;This is from section 8.3.1 Memory map from NFC perspective. Please keep in mind that the value cant exceed 0xE0. 0xFF will result in an error that could lock the NTAG.&lt;/P&gt;
&lt;P lang="en-US"&gt;Unfortunately, the use of Flutter is out of my scope but, please take a look at &lt;A href="https://www.nxp.com/products/rfid-nfc/mifare-hf/mifare-desfire/rfiddiscover:RFID-DISCOVER" target="_blank"&gt;RFIDDiscover&lt;/A&gt; for configuring the NTAGs using a GUI. The output log of this action will help you for implementing it to your Flutter application.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 20:01:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2001351#M12347</guid>
      <dc:creator>Fabian_R</dc:creator>
      <dc:date>2024-11-25T20:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with NTAG213 Password Removal - Card Becomes Unusable After AUTH0 Modification</title>
      <link>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2041826#M12655</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/158520"&gt;@Fabian_R&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your detailed response and for sharing insights. Your explanation was really helpful, and I truly appreciate the effort you put into guiding me.&lt;/P&gt;&lt;P&gt;A big apology for my very late reply—I genuinely appreciate your patience. Kudos to you for the great support!&lt;/P&gt;&lt;P&gt;Thanks again for your time and assistance!&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Kamal&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 13:54:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2041826#M12655</guid>
      <dc:creator>kamal511</dc:creator>
      <dc:date>2025-02-11T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with NTAG213 Password Removal - Card Becomes Unusable After AUTH0 Modification</title>
      <link>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2132559#M13393</link>
      <description>Hello Kamal, could you please send your email or WhatsApp number I want to inquire about some things if it is possible</description>
      <pubDate>Fri, 11 Jul 2025 13:48:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Issue-with-NTAG213-Password-Removal-Card-Becomes-Unusable-After/m-p/2132559#M13393</guid>
      <dc:creator>AshrafxLevi</dc:creator>
      <dc:date>2025-07-11T13:48:21Z</dc:date>
    </item>
  </channel>
</rss>

