TL;DR: What each Gen2 memory bank is for, how to choose EPC schemes that survive operations, and the encoding mistakes that cause duplicate or unreadable tags.
Most RFID data problems later traced to "the system" start with tag encoding. A duplicate EPC, a truncated serial, an EPC written without a matching TID record — each one is a five-minute mistake upstream and a multi-week cleanup downstream.
Related reading: Odoo RFID integration — the complete guide · Chipless RFID: The Promise and the Physics
This article explains what each Gen2 memory bank actually holds, how to choose an EPC scheme that survives years of operation, and the encoding rules worth enforcing as hard constraints in your middleware.
The four banks
An EPC Class 1 Gen2 tag exposes four logical memory banks:
- Bank 0 (Reserved) — kill and access passwords. Rarely used in normal operations; use them deliberately or not at all.
- Bank 1 (EPC) — the Electronic Product Code plus its length (PC) word and a CRC. This is what your readers report by default.
- Bank 2 (TID) — a factory-programmed identifier. Read-only in practice. Contains the chip vendor, chip model and a unique serial.
- Bank 3 (User) — optional application memory. Size varies from zero to hundreds of bits, depending on the chip.
The important property is that TID is set at silicon manufacture and cannot be duplicated, while EPC is written by you and can be copied by anyone with a writer. Treat EPC as business data, not as identity assurance.
EPC: choose a scheme you can live with for five years
The EPC is 96 bits in the standard configuration, structured as a header plus a domain-specific partition. Three schemes matter in practice:
- SGTIN-96 — company prefix + item reference + serial. Correct for item-level retail and any case where you need supplier-independent uniqueness. The company prefix comes from GS1, so this scheme is only usable if you own or are licensed a prefix.
- GID-96 — general identifier, no GS1 prefix needed. Popular for closed-loop internal deployments, asset tagging and manufacturing WIP.
- Vendor/application schemes — custom layouts such as 8-bit site + 16-bit product + 40-bit serial. Maximum flexibility, zero interoperability, and the most common cause of "we can never change it later" pain.
The decision rule: if the tagged item ever leaves your four walls and needs to be read by a partner, use a GS1 scheme. If it never leaves and you control every reader, a documented custom scheme is fine — provided you write the specification down and version it.
The encoding mistakes that cause real damage
- Writing EPC without a serial uniqueness check. Two tags with the same EPC are indistinguishable, and any read count silently under-reports. Enforce uniqueness at the write station by querying your encoding database, not by trusting the counter.
- Truncating the serial. A 40-bit serial space is 1.1 trillion values; a 24-bit space is 16.7 million and will collide at scale. Size the serial field for the total number of units you will ever tag, with a safety factor of at least 10.
- Writing EPC in the wrong byte order. Gen2 stores EPC words in a defined order; a byte-swapped EPC reads as valid data with the wrong value, which is worse than a read failure because it looks correct.
- Not recording TID at write time. TID is your forensic anchor. If a duplicate EPC appears in the field, TID is how you tell which physical tag is which.
- Leaving access password at zero on high-value tags. Anyone with a commodity writer can rewrite the EPC. Use a password for anything where cloning matters.
User memory: use it for what it is good at
User memory is where you put data that is genuinely tag-local:
- A batch or lot reference for offline verification.
- A production date or expiry, where the tag will outlive the printed label.
- A short digital signature or hash for anti-clone checks.
- Sensor calibration data on sensor tags.
Do not put business logic there. User memory is small, inconsistently sized across chips, and reading it requires a targeted access command that slows down bulk reads. If a reader has to read user memory to identify an item, your bulk read performance drops sharply.
Encoding workflow that scales
- Centralised write station with a fixed reader, or a printer-encoder inline on the label applicator.
- One authoritative encoding database: EPC, TID, product, lot, date, operator.
- Verify after write: read back the EPC, confirm the TID, and store both.
- Reject and quarantine tags that fail verification — do not re-encode a suspect tag, replace it.
- Version your scheme. Record which scheme version each tag carries so a later change does not orphan your installed base.
Gen2v2 and what it changes
Gen2v2 adds features that matter for security and for some operational cases: untraceable commands, authenticated reads, and tag-level privacy modes. In practice:
- Most logistics deployments do not need Gen2v2 features and should not pay for them.
- Where counterfeiting is a real risk, an authenticated tag with a cryptographic challenge is a meaningful upgrade over a plain EPC.
- Gen2v2 support varies by reader and chip; verify both ends before designing around it.
Testing before volume
- Encode 20 tags and read them with three different readers (handheld, fixed, printer-encoder) to catch interoperability problems early.
- Read at the maximum distance you expect in the field, not on the bench.
- Print and re-read labels after handling, to catch antenna damage from label conversion.
- Deliberately attempt to clone one tag, then confirm your verification process detects it.
Bottom line
Design the EPC scheme before you buy a single tag, record TID alongside every write, verify after write, and never rely on the EPC alone as proof of physical identity. Encoding discipline is cheap at the start and impossible to retrofit.









