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.

2 data wiresD0 and D1, plus ground and reader power
Low pulses20 to 100 µs wide, 0.2 to 20 ms apart
One wayReader to controller only
26-bit H103018-bit facility code, 16-bit card number
About 150 mTypical maximum cable run, 500 ft
No encryptionOSDP over RS-485 is the secure successor

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.

Wiegand D0 and D1 lines sending the bits 0, 1, 1, 0Both lines idle high. A 0 bit is a short low pulse on D0 and a 1 bit is a short low pulse on D1. SIA AC-01 allows pulses 20 to 100 microseconds wide, 200 microseconds to 20 milliseconds apart. Only one line pulses at a time.D0D10110pulse 20 to 100 µs, gap 0.2 to 20 ms (not to scale)
The bits 0, 1, 1, 0 on D0 and D1. Pulse widths and gaps vary between readers; controllers accept a range.

The 26-Bit Format and Others

26-bit H10301 Wiegand formatBit 1 is even parity over bits 2 to 13. Bits 2 to 9 are the 8-bit facility code. Bits 10 to 25 are the 16-bit card number. Bit 26 is odd parity over bits 14 to 25.PevenFacility code8 bitsCard number16 bitsPoddLeading parity covers bits 2 to 13; trailing parity covers bits 14 to 25
H10301 26-bit: facility codes 0 to 255 and card numbers 0 to 65,535.

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.

BitsCommon FormatNotes
26H10301 standard 26-bitOpen format; 8-bit facility, 16-bit card number
34Various 34-bit formatsOften 16-bit facility, 16-bit card number
35HID Corporate 1000Proprietary, company ID assigned by HID
37H10304 and othersH10304: 16-bit facility code, 19-bit card number
4 or 8Keypad digitsOne 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

SymptomLikely CauseWhat to Check
Card rejected, reader beepsController expects a different bit count or formatCount the bits in the capture and compare with the controller setting
Wrong card numberBits decoded with D0 and D1 swapped, or the wrong format appliedCheck which line pulses for a known card and decode with the right format
Random parity errorsNoise on long unshielded runs, or ground difference between reader and controllerLook for extra or short pulses; check the common ground and cable
Nothing receivedReader set to OSDP or another output, or pull-ups missingCheck that the lines idle high and pulse low when a card is presented
Works on the bench, fails on sitePulse width or interval outside what the controller acceptsMeasure 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.

ProductRoleCapabilityPrice ex VAT
Acute TravelLogic 34-ChannelWatchLogic analyser running Acute's decoder library, which includes Wiegand£1,260
ZeroPlus LAP-C Pro SeriesWatchLogic 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.