Skip to main content
Gymza

RFID badges and cards

MIFARE 13.56 MHz cards and key fobs with Gymza

A MIFARE Classic card is a 13.56 MHz contactless card (ISO/IEC 14443 A) with a unique identifier, the UID, and a small protected memory. Gymza only uses the UID that the reader outputs, never the memory. It works at reception and at a door as long as both readers report the same number, the one condition that trips up most new installations.

Implemented, validation pendingPage reviewed on: , based on Gymza 1.3.1

In short

  • Gymza identifies a MIFARE card by the number the reader outputs (its UID). It never reads the sectors or the keys.
  • The reception reader and the door reader must agree on the format; a Wiegand 26 door reader only passes 24 of the 32 bits, which Gymza can match back.
  • Cards with a random UID (some phones and secure cards) cannot be enrolled: the number changes at every read.
  • Status: implemented, not yet validated end to end on a physical door. Set the reception reader to “Free” for MIFARE.

What works with Gymza

Function by function: status and evidence
FunctionStatusEvidence or limit
Enrolment at receptionImplemented, validation pendingImplemented: a 13.56 MHz USB reader that types the UID works with the reception reader set to “Free”. No specific 13.56 MHz USB reader model has been validated.
Door or turnstile through a C3 controllerImplemented, validation pendingImplemented, not validated on a physical panel: Gymza tries the decimal, hexadecimal, reversed and Wiegand 26 readings and accepts one only if it matches exactly one card.
Cards or phones with a random UIDNot supportedNot supported: a number that changes at every read cannot identify a member.

Specifications

Manufacturer values are taken from its documentation; values marked “Gymza” come from the application or our tests.

Checked specifications and the document they come from
SpecificationValueSource
Frequency13.56 MHz[2] Manufacturer
StandardISO/IEC 14443 A[2] Manufacturer
Identifier4-byte (NUID) or 7-byte UID depending on the version[2] Manufacturer
What Gymza readsThe number the reader outputs (UID), never the sectors or keys[1] Gymza
Over Wiegand 2624 of the UID’s 32 bits: Gymza finds the card by its low 24 bits[1] Gymza

What a MIFARE card is

MIFARE is a family of NXP chips working at 13.56 MHz under the ISO/IEC 14443 A standard, the same radio family as NFC. MIFARE Classic 1K and 4K add a memory divided into protected sectors. NXP itself now recommends its newer MIFARE DESFire products for new security designs: Classic’s protection is considered weak.

Every card also has a UID: 4 bytes (often a non-unique “NUID”) or 7 bytes, depending on the version. This is what an access-control reader usually reports, and it is all Gymza needs.

One card, several numbers: why the two readers must agree

Take a card whose UID is 04 A3 2B 91. A USB reader at reception may type it as the full decimal number, as hexadecimal, or with its bytes reversed, depending on how it is configured. A Wiegand 26 reader at the turnstile cannot carry 32 bits: the top byte is lost and it sends A3 2B 91. Same card, different numbers.

How the same MIFARE UID can reach Gymza
Reader outputExample for UID 04 A3 2B 91Gymza setting (“Badge number format”)
Decimal77802385Decimal, as it arrives
Hexadecimal04A32B91Hexadecimal
Hexadecimal, bytes reversed912BA304Hexadecimal, bytes reversed
Wiegand 26 (24 bits)10693521Wiegand 26-bit (3 bytes)

Gymza does not insist that the two readers match. When a door reports a number it does not know, it tries these readings in turn, accepts one only if it identifies exactly one enrolled card, and writes which one worked in the log. Once you know the right format, pin it in Settings → RFID badges → Badge number format: every scan becomes a single lookup.

Where MIFARE fits in a Gymza installation

  • At reception: a 13.56 MHz USB reader that types the UID, with Gymza’s reception reader set to Free (MIFARE, hexadecimal…). The 125 kHz USB reader supplied with the RFID plan does not read MIFARE.
  • At a turnstile: a 13.56 MHz or dual-frequency Wiegand reader such as the ZKTeco KR901, wired to a ZKTeco C3 controller. Gymza’s reference turnstile kit uses MIFARE cards.

MIFARE or 125 kHz?

For a gym that only checks members in at reception, 125 kHz EM4100 badges are cheaper and verified with the supplied reader. MIFARE makes sense when the door hardware is 13.56 MHz (as on many new readers), or when you want one card that also works on other 13.56 MHz systems. The full comparison is in 125 kHz or 13.56 MHz.

Common mistakes

  • Presenting a MIFARE card on the 125 kHz USB reader: nothing happens, by design.
  • Leaving the reception reader on “EM4100, 10 digits”: a hexadecimal UID is refused as a partial reading.
  • Mixing card batches with 4-byte and 7-byte UIDs: some cards match at the door, others do not.
  • Enrolling a member’s phone: many phones present a random identifier for card emulation, which changes at every read.

Troubleshooting

  1. Use Test the reader at reception: it shows the raw keys, the number stored and who holds it.
  2. Card known at reception but “unknown badge” at the door: open the log, filter on “Badge matched”; if a line names a reading, pin that format.
  3. Nothing matches at all: reconfigure one of the readers (configuration card or DIP switch) so both output the same format.
  4. Some cards work, others not: compare UID lengths between batches. See RFID troubleshooting.

Frequently asked questions

Does Gymza read the data stored on a MIFARE card?

No. Gymza identifies a card only by the number the reader outputs (its UID). It never reads or writes the card’s sectors or keys.

Will the USB reader supplied with Gymza read MIFARE cards?

No. The reader supplied with the RFID and Advanced plans in Morocco is a 125 kHz EM4100 reader. MIFARE needs a 13.56 MHz or dual-frequency reader.

Can members use their phone instead of a MIFARE card?

Not reliably. Many phones present a random identifier that changes at every read, which cannot be enrolled. Gymza can instead print a member card with a QR code for a keyboard-emulation scanner.

Sources

Documents read for this page, with the date they were read. Gymza evidence is the application and its test records (not public).

  1. Gymza · Gymza application: hardware documentation and RFID input code (HARDWARE.md, card-number.ts, rfid-input.ts) · Atlaxys Consulting · accessed
  2. Manufacturer · MIFARE Classic EV1 1K/4K, product page (opens in a new tab) · NXP Semiconductors · accessed
  3. Technical reference · Understanding Card Data Formats (white paper) (opens in a new tab) · HID Global · accessed

Already using MIFARE cards?

Tell us your readers’ models and we will check how the numbers line up before you enrol anyone.

Download Gymza