Module 5 · Lesson 5.3

How readers talk to controllers

Wiegand versus OSDP: why the wire between reader and controller matters.

  • 4-minute video
  • 6-minute read
  • Builds on lesson 5.1

A reader can verify a card perfectly, and still hand its answer to the controller over a pair of wires that anyone with a screwdriver can tap. The link between reader and controller is part of the security.

Wiegand: simple and one-way

For decades, most readers have talked to controllers using the Wiegand interface. Two data wires, D0 and D1, carry the bits as short pulses: a pulse on D0 is a 0, a pulse on D1 is a 1. In the common 26-bit format, standardized by the Security Industry Association in 1996 (SIA AC-01), the reader sends a parity bit, an 8-bit facility code, a 16-bit card number and a final parity bit. Longer formats carry more digits, including formats that carry part of a PIV card’s FASC-N.

Wiegand is easy to wire and nearly universal, but it was designed for simplicity, not security:

  • In the clear: the bits aren’t encrypted, so anyone who can reach the wires can read them.
  • One way: the controller can’t ask the reader anything, and can’t tell a genuine reader from a device sending the same pulses.
  • Unsupervised: if a reader is disconnected or replaced, the controller may not notice.
Wiegand and OSDP wiring compared Left: Wiegand. A reader connects to a controller with two data wires, D0 and D1, plus ground. Data flows one way only, as pulses in the clear, and nothing checks that the reader is still there. Right: OSDP over RS-485. Several readers share one two-wire bus to the controller, and data flows both ways. The controller polls each reader. Secure Channel authenticates messages and encrypts their data. ReaderControllerD0D1groundone way onlyWiegandBits sent as pulses, in the clearNo check that the reader is thereReader 1Reader 2Controllertwo ways, one busOSDP (RS-485)Controller polls each readerSecure Channel authenticates;encrypts data
Wiegand passes bits one way, unprotected. OSDP is a two-way, supervised conversation whose messages can be authenticated and their data encrypted.

Taps and replays

Small, inexpensive devices can be hidden behind a reader, connected to its Wiegand wires. They record every badge number that passes, and can later send one again. The controller receives the same identifier again, and grants access if its current rules allow that identifier at that door and time. Against a Wiegand link, it doesn’t matter how strong the card authentication was: the controller receives only the number, and anyone who can send that number on the wires is treated the same way.

Try it: what travels on the wire

Enter a badge’s facility code and card number to see the 26-bit Wiegand frame a reader would send. Then send the same identifier over OSDP with Secure Channel, and try replaying a captured message on each. The OSDP bytes illustrate protected badge data; they’re not the real packet format, whose header stays visible.

On the wire (what a hidden tap would capture)

Nothing sent yet.

OSDP: supervised, and secure when configured

The Open Supervised Device Protocol (OSDP) replaces those pulses with a two-way conversation. It was first created by industry companies in 2008, transferred to the Security Industry Association in 2012, and approved as an international standard, IEC 60839-11-5, in 2020; SIA continues to develop it. It usually runs over RS-485, a two-wire bus that several readers can share over long cable runs.

  • Supervised: the controller polls each reader continuously, so loss of communication is detected. A device answering at the expected address isn’t proof that it’s the enrolled reader: that assurance comes from Secure Channel’s mutual authentication with a unique reader key.
  • Two-way: the controller can drive the reader’s lights and sounds and, where supported, its display and firmware updates.
  • Secure Channel: AES-128 session keys authenticate each message and encrypt the data it carries, such as badge data. The packet header stays visible, and some messages, such as a poll with no data, are authenticated without encrypted content. Session authentication detects altered, injected or replayed messages. In the federal product evaluation program, a test requires a cryptographically secure reader link; where OSDP is used, that means Secure Channel with AES-128 or greater.
  • Smart cards and biometrics: OSDP supports smart-card communications, including PKI, and biometric readers.

Secure Channel has to be turned on and keyed properly. Some devices offer an optional commissioning method that uses a well-known installation key to set a unique key. Use it only during setup, then require Secure Channel for normal use and reject any fallback to plaintext. Leaving the installation key in use, or never switching Secure Channel on at all, leaves OSDP little better than Wiegand.

Go deeperOptional technical detail for readers who want more

Wiegand sniffing

A Wiegand tap needs only access to the cable, usually behind the reader. Because the protocol has no encryption, no message authentication and no supervision, the controller can’t distinguish a replayed number from a genuine read. Tamper switches on readers and protected cable runs help, but the lasting fix is to move the link to OSDP with Secure Channel, or to make the decision somewhere the wires can’t influence.

OSDP Secure Channel

When a session starts, the controller and reader prove to each other that they share a secret base key and derive fresh session keys from it. Each message then carries a message authentication code computed with the session keys, and any data it carries is encrypted. Session authentication is what lets the receiver detect modified, injected or replayed messages; a short sequence field alone wouldn’t. The security rests on that base key: it should be unique per reader, set during commissioning, and the default installation key should never stay in use.

Getting OSDP right

Check that the controller and readers support Secure Channel, not just plain OSDP (look for independent conformance testing for the required features); set unique keys during commissioning; stop using any installation key and reject plaintext fallback; and monitor for readers dropping out of Secure Channel. Some systems also let the controller pass smart-card commands through the reader, so authentication can be done centrally rather than in the reader.

Sources

Draft lesson, awaiting technical review · Last updated 21 November 2026

Search

Press / to search from any page