Every card reader has to pass the credential it reads to the door controller, and the way it does that is easy to overlook. For decades the answer was Wiegand: a few wires, a simple pulse code and almost universal support. Today more and more specifications call for OSDP instead. Choosing between Wiegand vs OSDP affects your cable, your maximum distance, how many cores you pull, and whether someone with a small sniffer in the reader back box can steal card numbers. This guide explains both protocols in practical terms, with the 26-bit format decoded bit by bit and a worked car park example.
Quick answer: Wiegand is a one-way, unencrypted, point-to-point interface: the reader sends bits on two data wires (D0 and D1), typically up to about 150 m (500 ft). OSDP (Open Supervised Device Protocol) runs on a two-wire RS-485 bus, is two-way and supervised, supports several readers on one cable up to about 1,200 m, and can encrypt traffic with AES-128 Secure Channel. OSDP is published by SIA and as IEC 60839-11-5. For new projects, choose OSDP with Secure Channel enabled.
Wiegand vs OSDP: Side-by-Side Comparison
| Feature | Wiegand | OSDP (RS-485) |
|---|---|---|
| Direction | One-way, reader to controller | Two-way, controller polls reader |
| Encryption | None, data sent in the clear | AES-128 Secure Channel (when enabled) |
| Supervision | None, a cut cable looks like “no card” | Yes, controller reports reader offline or tampered |
| Topology | Point-to-point, one reader per port | Multi-drop bus, addressed readers |
| Data cores | D0, D1 plus LED, buzzer, hold lines | One twisted pair (A/B) plus power |
| Typical maximum cable | About 150 m (500 ft), gauge dependent | About 1,200 m (4,000 ft) bus on 24 AWG |
| Reader feedback | Separate LED and buzzer wires | Commands for LEDs, buzzer, text display |
| Standard | SIA AC-01 (26-bit), de facto industry use | SIA OSDP v2.2.x, IEC 60839-11-5:2020 |
How Wiegand Works
A Wiegand reader uses three essential conductors: DATA0 (D0), DATA1 (D1) and a common ground. Both data lines sit high, normally at about +5 V DC. To send a 0, the reader pulls D0 low for a very short pulse; to send a 1, it pulls D1 low. A typical reader sends pulses of around 50 µs spaced roughly 1 ms apart, though timing varies by manufacturer. In practice the reader also needs +12 V DC power, and usually separate wires for the green LED, the buzzer and sometimes a hold or tamper line, so a Wiegand reader cable often has 6 to 8 cores.
Wiegand is simple and almost every controller in the world accepts it. Its weaknesses are just as simple:
- No encryption. The card number travels as plain pulses. Small sniffer devices that clip onto D0/D1 behind the reader have been publicly demonstrated since at least 2015. They record every card and can replay one later.
- No supervision. The controller cannot tell a quiet reader from a disconnected one.
- One-way. The controller can only drive the LED and buzzer through extra wires.
- Distance. HID’s reader manuals give about 500 ft (152 m) for Wiegand: on 22 AWG for iCLASS SE readers, or 18 AWG with 300 ft (91 m) on 20 AWG for Signo readers.
The 26-Bit Wiegand Format Explained
“Wiegand” also describes how card data is laid out. The standard open format, HID ordering code H10301, has 26 bits:
- Bit 1: even parity over bits 2 to 13.
- Bits 2 to 9: facility code, 8 bits, 0 to 255.
- Bits 10 to 25: card number, 16 bits, 0 to 65,535.
- Bit 26: odd parity over bits 14 to 25.

Worked decode: facility code 45, card 10234
- Facility code 45 in 8-bit binary = 00101101.
- Card number 10234 in 16-bit binary = 0010011111111010.
- The first 12 data bits (00101101 0010) contain five 1s. Five is odd, so the even parity bit must be 1 to make the total even.
- The last 12 data bits (011111111010) contain nine 1s. Nine is already odd, so the odd parity bit is 0.
- Full frame: 1 00101101 0010011111111010 0 = 26 bits.
Parity only catches simple transmission errors. It is not security: anyone who knows the facility code and one card number can calculate valid frames.
The 26-bit format allows only 65,535 cards per facility code, so many manufacturers use longer formats: 34-bit (common on Asian readers, often carrying a 32-bit card serial), 35-bit HID Corporate 1000, 37-bit and others. The reader and the controller must agree on the format. When they do not, cards either fail or show a different number in the software.
Pro tip: when a new reader gives “card not registered” for cards that work elsewhere, check the Wiegand mode first. Many controllers, including Hikvision, let you choose Wiegand 26 or 34 per reader port, and some have an auto-recognise option.
How OSDP Works
OSDP was created in 2008 by HID, Mercury and Lenel, handed to the Security Industry Association (SIA) in 2012, and approved by the IEC as IEC 60839-11-5 in 2020. SIA released OSDP v2.2 in 2020 and v2.2.2 in October 2024.
Physically, OSDP uses half-duplex RS-485: one twisted pair labelled A and B (sometimes TR+ and TR−), plus signal ground, with 8 data bits, no parity and 1 stop bit. Typical baud rates are 9600 or 115200; the specification lists several options. The controller (called the ACU or CP) is the master. It polls each reader (the PD, peripheral device) by address, 0 to 126, and a reader only talks when it is asked. Because every reader is polled several times a second, the controller knows immediately if one goes offline or is tampered with.
Secure Channel
OSDP Secure Channel authenticates the reader and the controller to each other and encrypts the traffic with AES-128, using a unique Secure Channel Base Key (SCBK) per reader. A sniffer on the cable sees only encrypted data. SIA’s position is that unsecured mode should exist only during initial setup.
My field advice: “OSDP supported” on a datasheet does not mean “encrypted”. Readers usually start in an install mode with a well-known default key so the controller can send them their own key. After commissioning, check in the software that every reader shows Secure Channel active and that install mode is off. Look for products listed under the SIA OSDP Verified programme where the specification demands it.

RS-485 Wiring Rules for OSDP
OSDP is only as reliable as the RS-485 cabling. These rules come up on every site:
- Use twisted pair for A/B. HID recommends a shielded twisted-pair cable such as Belden 3107A or equivalent. Do not split A and B across two different pairs.
- Daisy-chain, do not star. Run the bus from the controller to reader 1, then to reader 2, and so on. Avoid long spurs.
- Terminate the ends. HID’s Signo guide calls for a 120 Ω (±2 Ω) resistor across A and B at the bus ends for runs over 61 m (200 ft) or where there is electrical noise.
- Unique addresses. Every reader on the same bus needs its own address and the same baud rate as the controller.
- Shield to earth at one point only, normally at the controller, to avoid ground loops.
- Check A/B naming. Some manufacturers swap the A/B convention. HID even notes that older iCLASS readers had reversed RS-485 terminals. If nothing talks, swap A and B before anything else.
- Power is separate. The RS-485 pair carries data only. Reader power still needs its own conductors sized for voltage drop, or a local power supply.
Specification limits are one thing; controller limits are another. The protocol supports up to 126 addresses, but most controllers allow only a few readers per RS-485 port, often 2 to 4. Check the controller manual.
Pro tip: many controllers from Asian brands, including several Hikvision models, connect their own readers over RS-485 using a DIP-switch address. That is RS-485, but not necessarily OSDP. If the specification says OSDP, confirm OSDP support on both the reader and the controller datasheets.
Practical Example: Car Park Barrier Reader 180 m Away
A villa compound in Jeddah needs a reader at the car park barrier, 180 m of cable route from the guard house controller. The reader draws about 150 mA at 12 V DC (typical value, check your datasheet).
Step 1: Can we use Wiegand?
The typical Wiegand limit is about 152 m, even on 18 AWG. 180 m is beyond that, so Wiegand data is not an option without a converter or a remote controller at the barrier.
Step 2: OSDP data link
The RS-485 bus is rated to about 1,219 m on 24 AWG twisted pair in HID’s reader guides. 180 m is well inside the limit. Because it is over 61 m, fit 120 Ω termination at both ends.
Step 3: Reader power, voltage drop
Loop resistance = 2 × length × resistance per metre. Using typical copper values:
- 24 AWG (about 84 Ω/km): 2 × 0.18 km × 84 = 30.2 Ω. Drop = 0.15 A × 30.2 Ω = 4.5 V. The reader gets about 7.5 V. That fails.
- 18 AWG (about 21 Ω/km): 2 × 0.18 × 21 = 7.6 Ω. Drop = 0.15 × 7.6 = 1.1 V. The reader gets about 10.9 V, inside a typical 9 to 16 V range.
Result: one 24 AWG shielded twisted pair for OSDP data and one 18 AWG pair for power, or a small local 12 V power supply at the barrier with a common reference to the controller as the manufacturer instructs. Check your own figures with the Voltage Drop Calculator.
The bonus: the guard house now sees an alarm the moment someone cuts the barrier cable, which Wiegand could never do.
Migrating from Wiegand to OSDP
- Check the controller. It must support OSDP on its reader ports, sometimes after a firmware update or with an interface module.
- Check the cable. Existing Wiegand D0/D1 cores can sometimes be reused for A/B, but HID notes that standard Wiegand cable may not meet RS-485 twisted-pair recommendations. Use a true twisted pair for long or noisy runs.
- Configure readers. Set the address, baud rate and OSDP mode (often by configuration card or app). Many current readers can do both Wiegand and OSDP.
- Enable Secure Channel and confirm keys are set per reader.
- Test supervision. Disconnect a reader and confirm the controller raises an offline event.
Plan port counts and reader types for new projects in the Access Control Designer, and see the input wiring in the REX button and door contact wiring guide. The protocol protects the wire; the card must be secure too, so choose an encrypted credential technology rather than a plain 125 kHz proximity card.
Troubleshooting Wiegand and OSDP
| Symptom | Likely cause | Fix |
|---|---|---|
| Wiegand: card reads but number is wrong | Format mismatch (26 vs 34-bit) or D0/D1 swapped | Match format; swap D0 and D1 if numbers look reversed |
| Wiegand: intermittent reads on long run | Cable over about 150 m, thin cores, noise | Shorten run, heavier gauge, shielded cable, or move to OSDP |
| OSDP: reader offline, LED flashing | Address or baud rate mismatch | Set matching address and baud on reader and controller port |
| OSDP: no communication at all | A and B reversed | Swap A and B at one end |
| OSDP: works, then drops randomly | Missing termination, star wiring, or shield earthed at both ends | Daisy-chain, 120 Ω at bus ends, earth shield at one point |
| OSDP: Secure Channel fails after reader swap | New reader has no key or is not in install mode | Re-run the key exchange from the controller software |
| Reader reboots when lock fires | Voltage drop on shared power cores | Separate lock and reader supplies; increase conductor size |
For the cybersecurity side of the wider system, our CCTV cybersecurity guide covers network hardening principles that apply equally to access controllers.
Frequently Asked Questions
Is OSDP more secure than Wiegand?
Yes, when Secure Channel is enabled. OSDP can encrypt reader traffic with AES-128 and supervises the reader, while Wiegand sends card data unencrypted and cannot detect a cut or tampered cable.
What is the maximum Wiegand cable length?
Most reader manufacturers publish about 150 m (500 ft), and the exact figure depends on conductor size and reader voltage. HID, for example, lists 500 ft on 18 AWG and 300 ft on 20 AWG for Signo readers.
How far can OSDP run?
OSDP uses RS-485, which typically supports a bus of about 1,200 m (4,000 ft) on 24 AWG twisted pair. Reader power over that distance usually needs heavier cores or a local power supply.
Can I reuse Wiegand cable for OSDP?
Often, for short runs, by using two cores as A and B. For long or noisy runs, use a proper twisted pair, because RS-485 relies on the twist for noise rejection.
What does 26-bit Wiegand mean?
It is the standard H10301 card format: one even parity bit, an 8-bit facility code (0 to 255), a 16-bit card number (0 to 65,535) and one odd parity bit, 26 bits in total.
Is OSDP an international standard?
Yes. It was approved by the IEC and published as IEC 60839-11-5 in 2020. SIA continues to maintain it, with version 2.2.2 released in October 2024.

