Configure a Universal Card Format
Configure a Universal Card Format to interpret third-party 125 kHz card data.
A Universal Card Format changes the way a Gallagher controller interprets card data it receives from a reader. When a controller gets a data stream it cannot interpret, you generally see the alarm "Unrecognised card format read at Door xxx".
Important. UCFs work for 125 kHz cards only. MIFARE card technologies are encrypted with keys that are not compatible with this process.
Collect the data
The alarm message in Command Centre contains most of what you need to create the UCF. Go to the Details tab of the alarm. Copy and paste the raw data rather than taking a screenshot, because the text itself is needed.
Card Format: Third Party (0xFD)
Number of Bits: 26
Raw Card Data (Hexadecimal): D4 95 12 40
Raw Card Data (Binary): 11010100 10010101 00010010 01
Collect data from at least 3 cards that are close together in card number sequence. If card numbers are printed on the cards, record those alongside the bitstream data. If the cards work on another system, get the card numbers and the facility code from that system.
Identify the facility code and card number
The bitstream is typically a parity bit, then the facility code, then the card number, then a parity bit. This varies by manufacturer.
Worked example, where both values are known:
Card Number
10788
10101000100100
Facility Code
169
10101001

Locate both values in the raw bitstream and note the start bit and bit length of each. When you size the card number field, start a few bits earlier and make the field longer, so it can accommodate larger card numbers in future.
Create the UCF
Identify the facility code start bit and length from the bitstream.
In Configuration Client, go to Configure > Universal Card Format.
Create a new UCF and configure the Format tab. Select the Wiegand radio button.
Enter the facility code start bit and bit count.
Enter the card number start bit and bit count.
Create a corresponding facility code entry in Command Centre.
Assign the UCF to the relevant controller's Card Formats property page.
Test by presenting the card to a reader.
Screenshots from the UCF creation walkthrough:





Multiple UCFs on the same system
If several UCFs share the same bit length but have different facility codes, cards can be identified incorrectly. Always define the facility code field to cover the largest feasible portion of the facility code binary in the bitstream, so the formats cannot be confused.
Example of the ambiguity:
975
00001111001111
16335
11111111001111
The binary of 975 looks exactly like the binary of 16335 if you are only looking at the last 10 binary bits of the facility code. Always make the UCF select the largest section of the facility code of the Wiegand string as possible, within reason.
Unknown facility code example
When the facility code is not known, you ideally need 3 or more of the same card, preferably in sequence. Present the three cards to the reader and collect the bitstreams.
5431608
00000001 10000000 10100101 11000010 01110000
5439800
00000001 10000000 10100110 00000010 01110000
8298808
00000001 10000000 11111101 01000010 01110000
Looking at the bitstreams, the facility code at the start appears the same on all three cards, so you can assume they share the same facility code, which reads as 3. The facility code component for the UCF is therefore Start Bit 2, Bits in FC 8.
Take the first card number 5431608, convert it to binary, 10100101110000100111000, and compare it with the bitstream in Notepad.

The actual card number starts at bit 17, but start earlier in case card numbers grow. Bit 14 is good enough, which makes the card number 26 bits in length.
Make a card type with A00003 and a UCF using this data.

Add it to the controller and present the card to the reader. Access is granted.

Cards with an obfuscated bitstream
Some 125 kHz card manufacturers obscured card data by shuffling the bits, so the card could only be read by systems that knew how to reorder them. Motorola and Indala are two manufacturers that did this. A standard UCF is not enough for these cards.
Gallagher provides custom DLL files, known as cust cards, that reside on the controller and reorder the bits. Identify these cards by the card format field in the alarm:
If none of the existing cust card DLLs work, Gallagher can develop a custom DLL from sample cards. Contact Gallagher Technical Support.
🔗 Related
Credentials - Using Card CSN as the Card Number. The UCF parameters for reading a MIFARE card serial number as the card number.
Credential Information. Which credential technologies Command Centre supports.
Last updated
Was this helpful?
