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 | Status | Evidence or limit |
|---|---|---|
| Enrolment at reception | Implemented, validation pending | Implemented: 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 controller | Implemented, validation pending | Implemented, 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 UID | Not supported | Not 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.
| Specification | Value | Source |
|---|---|---|
| Frequency | 13.56 MHz | [2] Manufacturer |
| Standard | ISO/IEC 14443 A | [2] Manufacturer |
| Identifier | 4-byte (NUID) or 7-byte UID depending on the version | [2] Manufacturer |
| What Gymza reads | The number the reader outputs (UID), never the sectors or keys | [1] Gymza |
| Over Wiegand 26 | 24 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.
| Reader output | Example for UID 04 A3 2B 91 | Gymza setting (“Badge number format”) |
|---|---|---|
| Decimal | 77802385 | Decimal, as it arrives |
| Hexadecimal | 04A32B91 | Hexadecimal |
| Hexadecimal, bytes reversed | 912BA304 | Hexadecimal, bytes reversed |
| Wiegand 26 (24 bits) | 10693521 | Wiegand 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
- Use Test the reader at reception: it shows the raw keys, the number stored and who holds it.
- 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.
- Nothing matches at all: reconfigure one of the readers (configuration card or DIP switch) so both output the same format.
- 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).
- Gymza · Gymza application: hardware documentation and RFID input code (HARDWARE.md, card-number.ts, rfid-input.ts) · Atlaxys Consulting · accessed
- Manufacturer · MIFARE Classic EV1 1K/4K, product page (opens in a new tab) · NXP Semiconductors · accessed
- Technical reference · Understanding Card Data Formats (white paper) (opens in a new tab) · HID Global · accessed
