Calls and email answered 24/7/365 · An HSM Company contact@hsmservices.ca 1 800 716 8955

Access Control guide

OSDP vs Wiegand: reader wiring and security

How the two reader protocols work on the wire, why Wiegand can be sniffed, and what it takes to move to OSDP Secure Channel.

  • Advanced
  • 5 min read
  • Includes diagram

Key points

  • Wiegand sends the card number one way, unencrypted, and the panel cannot tell if the reader was removed or tapped.
  • OSDP runs over RS-485: two-way, supervised, longer distance, and encrypted with Secure Channel (AES-128).
  • Secure Channel must be completed during commissioning. A reader left in install mode is not protected.
  • Specify OSDP Secure Channel for every new reader. It is an open standard published by SIA and adopted as IEC 60839-11-5.

Between the card reader on the wall and the controller in the telecom room there is a cable, and the way the reader talks over that cable matters as much as the card itself. For decades the answer was Wiegand. It is simple and universal, and it is also the weakest link in many otherwise secure systems. OSDP, the Open Supervised Device Protocol, was developed to replace it. This guide explains the difference for the people who specify, install and maintain readers.

How Wiegand works

Wiegand uses two data lines, D0 and D1, held at about 5 V. To send a zero the reader pulls D0 low briefly; to send a one it pulls D1 low. The controller counts the pulses to rebuild the card number. Separate conductors carry reader power, ground, and usually LED and beeper control from the panel. Each reader needs its own cable, and the practical limit is about 150 m.

The common 26-bit Wiegand format Even parity Odd parity P P Facility code: 8 bits Card number: 16 bits Only 65,536 card numbers per facility code, sent in the clear on every read
Diagram The 26-bit format is widely known and has a small number space, which is one reason duplicate cards turn up between buildings.

The weaknesses

  • No encryption. The card number travels in the clear. Small interception devices can be hidden behind a reader to record every card and replay one later. An encrypted card does not help if the reader then sends its number over Wiegand.
  • No supervision. The controller only hears from the reader when a card is read. A disconnected or swapped reader looks the same as a quiet door.
  • One way. The panel cannot configure the reader or update its firmware. Every change means a ladder at every door.
  • More conductors, shorter runs. Six or more conductors per reader and home runs only.

How OSDP works

OSDP runs on RS-485, a two-wire, half-duplex serial connection. The controller polls each reader by address many times a second and the reader answers. Because the conversation is constant, the controller knows within moments if a reader goes offline or is tampered with. Commands flow both ways, so the panel can set LEDs, show messages on display readers, change settings and push firmware.

Wiegand: one cable per reader, one way D0 D1 +12 V GND LED Beeper Panel 6-conductor shielded, about 150 m max Data flows reader to panel only Reader OSDP: two-wire bus, both directions, encrypted Controller RS-485 port Twisted pair + power, up to about 1,200 m 120 Ω Reader addr 1 Reader addr 2 Reader addr 3
Diagram OSDP can run as a multi-drop bus, though many installers still home-run each reader for easier fault-finding. Either way it needs only one twisted pair for data.

Can existing readers and controllers do OSDP?

Many readers sold over the last several years support both protocols and can be switched to OSDP in configuration. Controllers are more variable. Some support OSDP on their existing reader ports, some need a firmware update or an interface module, and older panels may not support it at all. Check the controller's documentation for OSDP and Secure Channel support specifically, not just the word OSDP on a data sheet. Where a few legacy readers must stay on Wiegand, mount them with tamper switches and keep the cable inside the secure side.

Side-by-side

WiegandOSDP
Physical layerD0 / D1 pulses, about 5 VRS-485 twisted pair
DirectionReader to panel onlyTwo-way
EncryptionNoneSecure Channel, AES-128
Reader supervisionNoneContinuous polling, tamper and offline alerts
Typical maximum distanceAbout 150 mAbout 1,200 m
TopologyHome run per readerHome run or multi-drop with addresses
Remote configuration and firmwareNoYes, where the controller supports it

Installing OSDP correctly

  1. Use the right cable. Shielded twisted pair for data, rated for RS-485 (around 120 ohm impedance), plus a separate pair for reader power. Most composite access control cables include a suitable pair. Ground the shield at the panel end only.
  2. Set addresses and baud rate. Every reader on a port needs a unique address, and all must match the controller's baud rate. Set them on the bench before mounting if you can.
  3. Terminate the ends. On longer or multi-drop runs, fit a 120 ohm termination at the far end of the bus. Leave intermediate readers unterminated.
  4. Complete Secure Channel. Readers often ship in an install mode using a default key. The controller must exchange a unique key with each reader, after which install mode is disabled. Confirm in the software that each reader shows as secure.
  5. Test supervision. Disconnect a reader and confirm an offline alarm arrives. Reconnect and confirm it recovers.
"OSDP" is not automatically secure

A reader running OSDP without Secure Channel still sends card numbers in the clear. Ask for "OSDP with Secure Channel enabled and verified" in your specification and commissioning checklist, not just "OSDP".

Troubleshooting

SymptomCheck
Reader offline, LED flashingAddress or baud rate mismatch; A and B wires swapped
Intermittent drops on long runsMissing termination, shield grounded at both ends, or untwisted cable
Secure Channel will not establishReader not in install mode, or key already set by a previous controller
Works on the bench, not on siteVoltage drop on the power pair; measure at the reader under load

Moving an existing building from Wiegand to OSDP usually happens alongside a credential upgrade. See migrating from 125 kHz prox for the full sequence.

Want a professional to handle it?

Our technicians install and certify access control for businesses of every size. Send us the details and we will come back with a plan.