Free UHF Gen2 Lock Mask & Permalock Calculator

Build or decode the 20-bit GS1 EPC Gen2v2 (ISO/IEC 18000-63) Lock command payload (10-bit Mask + 10-bit Action) across Kill Password, Access Password, EPC (Bank 01), TID (Bank 10) and User (Bank 11), compare 5-nibble hex against right-aligned and LLRP left-shifted 3-byte buffers, and catch NXP UCODE 9 / 9xe zero-password or plaintext Bank 00 traps before locking a roll. Runs locally with no password inputs, uploads or storage.

Updated

Mode
Production presets:

20-bit Gen2 Lock payload & region audit

20-bit Lock payload FC2A0h (Mask 3F0h · Action 2A0h) — Kill Password: Password-Locked (10b) · Access Password: Password-Locked (10b) · EPC / UII Memory: Password-Locked (10b).

20-bit Canonical Hex (5 nibbles)

FC2A0

Right-aligned 3-byte (0X XX XX)

0F C2 A0

LLRP C1G2LockPayload Left-Aligned 3-Byte Buffer (payload << 4)

FC 2A 00

10-bit Mask [Kill · Acc · EPC · TID · Usr]

11 11 11 00 00 (3F0h)

10-bit Action [Kill · Acc · EPC · TID · Usr]

10 10 10 00 00 (2A0h)

Target region Mask / Action ISO/IEC 18000-63 effect
Kill PasswordBank 00 Reserved (Words 00h–01h) 11 / 10 Password-Locked (10b) — Neither readable nor writable in Open state; accessible only in Secured state with valid non-zero Access Password.
Access PasswordBank 00 Reserved (Words 02h–03h) 11 / 10 Password-Locked (10b) — Neither readable nor writable in Open state; accessible only in Secured state with valid non-zero Access Password.
EPC / UII MemoryBank 01 (CRC, PC & EPC words) 11 / 10 Password-Locked (10b) — Readable in Open/Secured; writable only in Secured state after valid non-zero Access Password.
TID MemoryBank 10 (Factory permalocked) 00 / 00 No change (Mask 00b) — Both lock bits ignored; region keeps its previous state.
User MemoryBank 11 (Optional user words) 00 / 00 No change (Mask 00b) — Both lock bits ignored; region keeps its previous state.

Want UHF labels, vehicle stickers or hard tags delivered pre-encoded, locked & read-verified?

Proud Tek manufactures UHF RFID labels, dry & wet inlays, windshield tags, cable-tie tags and custom on-metal hard tags in Shenzhen. Every pre-encoded tag is read back after programming and shipped with a data report, plus an Excel, CSV or XML TID/EPC-to-serial mapping file on numbered orders via our RFID encoding service. UHF readers, printers and WMS software come from your integrator.

Standard blank samples are free; custom-printed, pre-encoded or custom-engineered samples carry a setup fee confirmed in the quotation. Agree secure password handover separately — never send passwords in an inquiry form.

How the 20-bit EPC Gen2v2 Lock payload is structured

In GS1 EPC UHF Gen2 Air Interface Protocol (EPC Gen2v2 / ISO/IEC 18000-63, §6.3.2.11 Lock), a reader locks or unlocks tag memory by sending a single 20-bit payload inside the Lock command (after transitioning the tag to the Secured state). Those 20 bits split cleanly into two 10-bit halves:

  • Bits 19..10 — 10-bit Mask: five 2-bit pairs ([PWD_Mask, PERM_Mask]) ordered from MSB to LSB as Kill Password (19..18), Access Password (17..16), EPC Bank 01 (15..14), TID Bank 10 (13..12) and User Bank 11 (11..10). Setting a mask bit to 1 tells the tag to apply the corresponding action bit; 0 leaves that lock bit untouched.
  • Bits 9..0 — 10-bit Action: five matching 2-bit pairs ([PWD_Action, PERM_Action]) in the identical order (9..8 Kill, 7..6 Access, 5..4 EPC, 3..2 TID, 1..0 User).
  • Password slots vs data banks: Setting 10b (PWD=1, PERM=0) or 11b (PWD=1, PERM=1) on EPC or User memory blocks unauthorised writes while keeping the bank readable during inventory. Setting 10b or 11b on Kill or Access in Bank 00 blocks both reads and writes so no third-party scanner can dump your passwords over RF.

Reference 20-bit Gen2 Lock payloads

Preset 20-bit Hex Right 3B LLRP (left 3B) Use case
Password-lock EPC + Access + Kill (FC2A0h) FC2A0 0F C2 A0 FC 2A 00 Standard reversible field deployment: locks EPC against Open overwrites and hides both Bank 00 passwords.
UCODE 9 / 9xe Permalock EPC only (0C030h) 0C030 00 C0 30 0C 03 00 Permanently freezes EPC on NXP UCODE 9 / 9xe where Access Password is hardwired to zero.
UCODE 9 / 9xe Permalock EPC + Kill (CC330h) CC330 0C C3 30 CC 33 00 Permanently seals a non-zero Kill Password in Bank 00 and permalocks EPC read-only for life.
Password-lock EPC + User + Passwords (FC2A2h) FCEA2 0F CE A2 FC EA 20 Locks Bank 01 EPC, Bank 11 User memory and both Bank 00 passwords under a non-zero Access Password.
Re-unlock EPC only in Secured state (0C000h) 0C000 00 C0 00 0C 00 00 Clears PWD lock on Bank 01 EPC (requires non-zero Access Password session and PERM = 0).

Three UHF silicon rules to check before locking a batch

  1. NXP UCODE 9 & UCODE 9xe fixed-zero Access Password: Both UCODE 9 (SL3S1206) and UCODE 9xe (SL3S1216) ship with a settable 32-bit Kill Password, 0 bits of User memory, and their Access Password permanently fixed at 00000000h. Because Gen2 tags with a zero Access Password enter Secured state for every reader, password-lock (0C020h) does not protect their EPC — issue Permalock (0C030h or CC330h) once the final EPC and PC word (sized in our UHF Memory & PC Word Calculator) are verified.
  2. Impinj M700 / M800 shared password slot vs independent passwords: In the Impinj M700 product brief (and M830/M850), one shared 32-bit value serves both the Access and Kill passwords, whereas Alien Higgs-9, NXP UCODE Nxm and Impinj Monza 4QT store independent 32-bit Kill and Access passwords (see NXP UCODE 9 vs Impinj M730, M750 & M830/M850).
  3. Write non-zero passwords before issuing FC2A0h or CC330h: Permalocking Bank 00 while a password word still holds 00000000h freezes it at zero permanently (making the Kill command permanently unusable per Gen2v2 §6.3.2.11.2.8, or leaving Access permanently open). Always write and verify Bank 00 Words 00h–03h first, then apply the Lock mask.

Questions about UHF EPC Gen2 Lock masks & Permalock

Why does Password-Lock (0C020h) fail to protect EPC memory on NXP UCODE 9 and UCODE 9xe?

Per NXP’s SL3S1206 (UCODE 9) and SL3S1216 (UCODE 9xe) datasheets, the 32-bit Access Password on both chips is hardwired at the factory to 00000000h. Under GS1 EPC Gen2v2 / ISO/IEC 18000-63 §6.3.2.3, any tag whose Access Password is all zeros transitions straight into the Secured state whenever a reader requests a handle — meaning every reader in the field can still overwrite a password-locked (10b) EPC bank without knowing a secret! On UCODE 9 and UCODE 9xe, only Permalock (0C030h, Action = 11b) stops EPC rewriting.

Why must Bank 00 Access Password also be locked when password-locking EPC or User memory?

In a blank factory chip, Bank 00 Reserved memory (Kill Password in Words 00h–01h and Access Password in Words 02h–03h) defaults to Unlocked (00b), meaning any Gen2 reader in Open state can send a plain Read command to Bank 00 Word 02h and read your 32-bit Access Password in cleartext over the air. Always include Access Password lock bits (e.g. FC2A0h instead of 0C020h) after writing your non-zero Access and Kill passwords.

What is the difference between 0FC2A0 and FC 2A 00 for the same Gen2 Lock command?

The EPC Gen2v2 Lock payload is 20 bits (5 hex nibbles: FC2A0h). SDKs that accept an integer or right-justified hex pad four zero bits at the top (0F C2 A0). Low-level byte protocols such as LLRP C1G2LockPayload pack the 20 bits starting at the most-significant bit of a 3-byte array and pad four zero bits at the bottom (payload << 4 = FC 2A 00). Mixing the two shifts every Mask and Action bit by 4 positions and locks the wrong memory bank.

Does Permalock (11b) stop readers from reading the EPC or User bank?

No for Bank 01 (EPC), Bank 10 (TID) and Bank 11 (User): Permalock (PWD = 1, PERM = 1) makes those banks permanently read-only while leaving them freely readable during inventory. In Bank 00 Reserved (Kill and Access Passwords), however, Permalock (11b) makes the password words permanently unreadable AND unwritable over RF while the chip continues to honour the stored password internally.

Does locking or permalocking the EPC make a UHF tag clone-proof?

No. Locking or permalocking Bank 01 stops someone overwriting your tag, but any UHF reader in range can still inventory the EPC and write the same bytes onto a blank tag. Pair EPC reads with factory-permalocked Bank 10 TID serial checks in your software, or specify cryptographic UHF ICs such as NXP UCODE DNA (ISO/IEC 29167-10 AES-128) where active anti-cloning is required.

Sources

Related pages

WhatsApp