Access Control, lesson 3 of 14
Readers and how they talk
A reader has two conversations. One is with the card, through the air. The other is with the controller, down a cable. Lesson 2 covered the first. This lesson covers the cable, and why the older way of using it leaves a gap.
Watch the cable between reader and controller
Pick a language, then play or step through. The last step cuts the cable.
The everyday picture
Imagine two ways for a shop assistant to work with a manager in the back office.
In the first, the assistant has a bell. One ring means one thing, two rings mean another. The manager can hear the bell but cannot answer. If the bell rope breaks, the back office simply hears nothing, which is exactly what a quiet day sounds like.
In the second, they have a telephone line that is always open. Every few seconds the manager asks, "Anything?" and the assistant says "No" or passes on a message. The manager can give instructions back. If the line goes dead, the manager knows within seconds.
Readers and controllers use one of these two arrangements. The bell is called Wiegand. The telephone is called OSDP.
Two languages on the cable
Wiegand: the bell
Wiegand dates from the 1980s and is still the most widely installed. It uses two data wires, named D0 and D1. Both normally rest at 5 volts. To send a 0 the reader briefly drops D0. To send a 1 it briefly drops D1. The controller counts the dips.
It is simple and nearly every product supports it. It also has three weaknesses: the number travels unprotected, the controller cannot talk back, and a cut cable looks the same as an idle reader.
OSDP: the telephone
OSDP stands for Open Supervised Device Protocol. It is an open standard looked after by the Security Industry Association. The controller asks each reader for news several times a second, and the reader must answer. Messages travel both ways on a single pair of wires, and they can be encrypted. The encrypted mode is called Secure Channel.
| Wiegand | OSDP | |
|---|---|---|
| Direction | Reader to controller only | Both ways |
| Protected on the cable | No | Yes, with Secure Channel on |
| Notices a cut cable | No | Yes, within seconds |
| Wires for data and signals | Two for data, plus one each for light and beeper | Two, for everything |
| Longest cable | About 500 feet | About 4,000 feet |
| Readers on one cable | One | Several, each with its own address |
Both also need two more wires to power the reader. Many readers sold today can speak either language, chosen with a setting.
Check yourself
A site has smart cards but Wiegand cabling. Where can the card number still be seen unprotected?
Draw the pulses yourself
A technician checking a Wiegand reader with a test instrument sees two lines that dip. Set some bits below and see what the two wires do.
Eight bits on two wires
Click a bit to switch it between 0 and 1.
Each dip lasts a tiny fraction of a second, and the two wires never dip together. That is the entire language. There is no way to say "this message is from a genuine reader" and no way to say anything back.
Choosing and mounting a reader
- Shape. A narrow reader fits on a door frame, which is called a mullion mount. A square one fits over an electrical box in the wall.
- Keypad. Some readers add number keys so a PIN can be asked for as well as a card.
- Side. Mount it on the handle side of the door, so people are not reaching across the opening.
- Height. About 42 to 48 inches above the floor. United States accessibility rules set 48 inches as the usual upper limit so that someone using a wheelchair can reach it.
- Weather. Outdoor readers need a rating for rain and dust, and a sealed cable entry.
- Tamper. Good readers contain a small switch that reports when the reader is pulled off the wall.
Three examples
Simple: a reader that cannot turn green
A new reader beeps when a card is shown and the door opens, but its light stays red. On a Wiegand installation, the light has its own wire. The installer landed five wires and left the sixth in the wall. Connect it to the controller's light output and the reader turns green.
Medium: the gate at the end of the parking lot
A reader at a vehicle gate works on some days and misreads on others. The cable from the controller measures 700 feet. That is well past what Wiegand is good for, so the pulses arrive rounded and weak, and rain makes it worse.
There are two honest fixes: put a controller near the gate, or switch that reader to OSDP, which is designed for long cables. Replacing the reader with the same model fixes nothing.
Advanced: the upgrade that stopped halfway
A company replaces copyable cards with smart cards and feels safe. The readers still speak Wiegand. The conversation in the air is now protected, but the reader then passes the plain number down the cable. A small device hidden behind the reader could record and replay it.
A chain is as strong as its weakest link. Protected cards, OSDP with Secure Channel, and a tamper switch on the reader close all three links.
From the field
- Use shielded cable and connect the shield at one end only, at the controller. Connected at both ends, it can carry stray current and cause misreads.
- Keep readers off bare metal unless the reader is made for it. Metal behind a reader can shorten its reading distance. A plastic spacer usually cures it.
- Do not mount two readers back to back on the same thin wall. Their radio fields interfere. Offset them by a foot or so.
- Seal the hole behind an outdoor reader. Water follows the cable into the wall and into the reader.
- Give every OSDP reader on a shared cable its own address, and write it on the back of the reader.
Common mistakes
- Believing smart cards make the whole system protected while the cable still carries plain Wiegand.
- Running Wiegand far beyond 500 feet and blaming the reader for misreads.
- Installing OSDP but leaving Secure Channel switched off.
- Swapping D0 and D1. The reader beeps, but the controller sees a number it does not recognize.
- Leaving the tamper switch unconnected because it needs one more wire.
Summary
- The reader talks to the card through the air and to the controller down a cable.
- Wiegand sends pulses one way on two wires. It is unprotected and cannot notice a cut cable.
- OSDP is a two-way conversation on one pair of wires. It can be encrypted, and the controller knows when a reader goes missing.
- Protection has three links: the card, the cable, and the reader's tamper switch.
- Mount readers on the handle side, at a height everyone can reach.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. In Wiegand, the controller sees D1 dip, then D0, then D0, then D1. Which bits were sent?
Show answer
Exercise 2. Count the wires in the cable for a Wiegand reader with a light and a beeper.
Show answer
Exercise 3. Someone snips the cable to a reader on a quiet back door at night. What does the monitoring screen show with Wiegand, and with OSDP?
Show answer
Exercise 4 (think, don't memorize). A customer can afford to convert only ten of their sixty readers to OSDP this year. Which ten would you choose?