Wiegand Interface Protocol
Wiegand is the two-wire interface most access control card readers, keypads and biometric readers use to send a credential number to a door controller. Each bit is a short low pulse: on D0 for a 0, on D1 for a 1. The most common message is the 26-bit H10301 format: a facility code and card number wrapped in two parity bits. A logic analyser with a Wiegand decoder turns the pulses into bit counts, facility codes and card numbers, which settles most "the reader beeps but the door does not open" arguments.
How Wiegand Signalling Works
Both data lines are held high, usually at 5 V, by pull-ups in the controller; the reader pulls them low with open-collector outputs. A 0 is a pulse on D0 and a 1 is a pulse on D1. There is no clock and no start or stop bit: the controller counts pulses and treats a gap of tens of milliseconds as the end of the message. The bit count tells it the format. Many readers also have LED and buzzer inputs driven by the controller, which are separate wires, not part of the data protocol.
The 26-Bit Format and Others
The 26-bit format only allows 65,536 card numbers per facility code, so duplicates between sites are common. Larger systems use longer formats, many of them proprietary to a card maker, such as 34, 35 and 37-bit formats. The controller must be set to the same format as the cards, or it will reject them or read the wrong number.
| Bits | Common Format | Notes |
|---|---|---|
| 26 | H10301 standard 26-bit | Open format; 8-bit facility, 16-bit card number |
| 34 | Various 34-bit formats | Often 16-bit facility, 16-bit card number |
| 35 | HID Corporate 1000 | Proprietary, company ID assigned by HID |
| 37 | H10304 and others | H10304: 16-bit facility code, 19-bit card number |
| 4 or 8 | Keypad digits | One key per message; 8-bit variants add the inverted value as a check |
Security and OSDP
Wiegand sends the credential in clear, in one direction, with no check that the reader is genuine. A small device spliced into the cable can record card numbers and replay them. Newer installations use OSDP (Open Supervised Device Protocol), an SIA standard and IEC 60839-11-5, which runs over RS-485, supervises the reader and can encrypt the link. Our RS-485 guide covers the physical layer OSDP uses.
Where Wiegand Is Used
- Door access control: proximity, smart card, PIN and biometric readers connected to door controllers.
- Car parks and barriers: long-range readers and number plate cameras outputting a Wiegand number.
- Time and attendance: clocking terminals and canteen systems reading staff cards.
- Integration: converters from Wiegand to RS-485, Ethernet or USB keyboard input.
Common Wiegand Faults and How to Find Them
| Symptom | Likely Cause | What to Check |
|---|---|---|
| Card rejected, reader beeps | Controller expects a different bit count or format | Count the bits in the capture and compare with the controller setting |
| Wrong card number | Bits decoded with D0 and D1 swapped, or the wrong format applied | Check which line pulses for a known card and decode with the right format |
| Random parity errors | Noise on long unshielded runs, or ground difference between reader and controller | Look for extra or short pulses; check the common ground and cable |
| Nothing received | Reader set to OSDP or another output, or pull-ups missing | Check that the lines idle high and pulse low when a card is presented |
| Works on the bench, fails on site | Pulse width or interval outside what the controller accepts | Measure pulse width and spacing against the controller datasheet |
Tools for Decoding Wiegand
Watch tools capture D0 and D1 and decode bit count, parity and fields. Wiegand is slow, so any logic analyser has enough sample rate; set the threshold for the line voltage, usually 5 V logic.
| Product | Role | Capability | Price ex VAT |
|---|---|---|---|
| Acute TravelLogic 34-Channel | Watch | Logic analyser running Acute's decoder library, which includes Wiegand | £1,260 |
| ZeroPlus LAP-C Pro Series | Watch | Logic analyser with a Wiegand decoder in ZeroPlus's decoder library; ask us to confirm it comes with your LAP-C Pro model | £925 |
Moving an access system from Wiegand to OSDP? Tell us the readers and controllers and we will recommend tools for the RS-485 side.
Frequently Asked Questions
Is Wiegand a Standard?
Loosely. SIA AC-01 describes the electrical interface and timing, and the 26-bit H10301 format is open. Most longer formats are defined by card makers, so the bit count alone does not always tell you the field layout.
How Do I Read the Facility Code and Card Number?
For a 26-bit message, drop the first and last parity bits. The next 8 bits are the facility code and the last 16 bits are the card number, both sent most significant bit first.
How Long Can a Wiegand Cable Be?
About 150 m (500 ft) is the usual figure for the interface, using shielded multi-core cable of a suitable gauge. Beyond that, convert to RS-485 or a network.
Why Is Wiegand Considered Insecure?
The card number is sent unencrypted in one direction, and the controller cannot tell a genuine reader from a device replaying a recorded number. OSDP with secure channel fixes both problems.
Can a UART Decoder Read Wiegand?
No. Wiegand has no start bits or fixed baud rate; it is two lines of pulses. Use a Wiegand decoder, which counts pulses on each line and checks the parity.
More Protocols
By John Legg CEng, Director, Debug Store. Updated 24 November 2026.