Integrating ACS Readers with Access Control Systems
← Back to the smart card SDK and developer centre
How does an ACS reader fit into an access control system? A USB ACS reader such as the ACR1252U or ACR1552U is a PC-linked reader: it sits at a desk, reads cards for software on that PC, and hands the result to the access system through PC/SC or, on readers that support it, keyboard emulation. That makes it the right tool for card enrolment, visitor desks and PC-based entry points. It is not a door reader: it has no Wiegand or OSDP output and does not wire to a door controller. Doors are read by wall readers connected to the controller, and the ACS reader feeds the same database those doors check.
This guide is for developers and integrators who connect ACS readers to an access control application: where a PC-linked reader belongs, how card enrolment works, why the card UID alone is a weak credential and what to use instead, which integration route to choose, and what to log for an audit trail. For the access control solution itself (components, doors, turnstiles, software and pricing), see BSD's NFC access control system page. BSD Infotech is an independent ACS supplier and integrator, not the manufacturer.
Not yet tested by BSD as a complete integration. The reader facts come from ACS's product pages and our own reader guides; the enrolment and logging flows are design guidance from BSD's integration work, not a recorded test with a particular access control product. Nothing on this page has been tested end to end on our bench yet.
Where a PC-Linked ACS Reader Fits, and Where It Does Not
An access control system has two kinds of reading points. At the door, a wall reader passes the card to an access controller, which decides and switches the lock. At a desk, a person and a PC are involved: someone issues cards, registers visitors or admits people. ACS's USB readers belong at the desk. ACS lists the host interface of the ACR1252U, ACR1552U and ACR39U as USB, and describes them as CCID and PC/SC readers for a computer; ACS does list access control among the primary applications of the ACR1252U and ACR1552U, in that PC-linked role.
| Reading point | PC-linked ACS reader? | Why |
|---|---|---|
| Card enrolment / ID office | Yes, the main use | The operator taps a new card and the access software stores its identity against a person. See card enrolment. |
| Visitor desk | Yes | A visitor card is read, linked to the visit and returned at check-out. BSD's GuestKey visitor management covers the visitor workflow itself. |
| Operator-admitted entry (reception, pool, club, hostel desk) | Yes | The PC shows "valid / expired / blocked" and the operator admits the person; the entry is logged. No door hardware needed. |
| PC-based door or turnstile | Sometimes | Where the access software runs on a PC at the entry and switches the barrier through a relay or a controller that accepts commands from the PC. The reader still only reads; the PC software decides and the relay acts. |
| Handheld checks (guards, events, buses) | A Bluetooth model | ACS's mobile readers pair with a phone or tablet instead of a desk PC. |
| Outdoor door, gate or wall position | No | Needs a wall reader built for the location and wired to the controller. |
| Reader port of a door controller (Wiegand or OSDP panels) | No | ACS's USB readers are not Wiegand or OSDP door readers. They talk USB to a computer only, so they cannot be wired to a controller's reader input. |
In a typical site, then, the ACS reader and the door readers meet in the database, not in the wiring: the desk reader writes card records, and the controllers read them. Door readers, controllers and locks are on BSD's access control hardware page.
Card Enrolment: Read the Card, Assign It in the Access System
Enrolment is the step where a physical card becomes a credential: the system records "this card belongs to this person, with these rights". It is the job an ACS reader does most often in access control, and most of the problems at the door later start here.
- Prove the reader and the card first. Tap one card in ACS QuickView or a BSD utility and note what it reports (see reading an NFC card UID). If the card is not seen here, the access software will not see it either.
- Read the card identity at the enrolment PC. Either the access software reads it through PC/SC, or the operator clicks the card-number field and taps a reader in keyboard emulation mode. For secured cards, the identity is a value read from the card after authentication, not the UID (see secure credentials).
- Normalise the number to the system's format. Hex or decimal, byte order and leading zeros must match what the door readers report for the same card. Explained with examples in hex, decimal and byte order.
- Check it is not already assigned. The software should refuse a card that belongs to another active person, and say who has it, instead of silently moving it.
- Assign it to the person and set the rights. Person, card, valid-from and valid-to dates, access groups. Record who enrolled it and when.
- Test at a real door before issuing in bulk. Present the same card at one wall reader. If the door rejects a card the desk accepted, compare the number both sides record: door readers wired to a controller may report a different format or only part of the card number. Fix the conversion in software, not the cards.
Bulk enrolment. When hundreds of cards arrive at once, a common pattern is to tap each card into a list (person, card number) and import it into the access system. Keyboard mode into a spreadsheet works for UID-based systems; for secured cards, use a PC/SC program that reads and verifies each card. Blocking a lost card and issuing a replacement are enrolment events too, and belong in the audit log.
Secure Credentials: Why the UID Alone Is Weak
Many access systems store only the card's UID (serial number). That is simple, but the UID is not a secret: a contactless card sends it to any reader before any authentication, so it identifies a card without proving the card is genuine. A cloned card, or an emulated UID, can then pass as the original. Our MIFARE authentication and key management guide explains why the UID is an identifier, never a key.
| Credential | What the reader checks | Use for |
|---|---|---|
| UID only | The serial number, read without any key | Low-risk points: visitor passes checked by a person, canteen identification, attendance. Not for doors where a copied card causes real loss. |
| MIFARE Classic sector data | A value in a sector, after authentication with a key | Existing systems. Changed keys help, but the Classic cipher has published weaknesses; NXP points security-relevant systems to DESFire or MIFARE Plus. See MIFARE Classic security and migration. |
| MIFARE DESFire (EV2/EV3) application | Mutual AES authentication with the card's application key, then a read of the credential file | New systems and sensitive areas. How the read and authentication steps work is in reading MIFARE DESFire cards. |
| DESFire + diversified keys in a SAM | As above, with each card's key derived from a master key held in a SAM | Systems with many readers or enrolment desks, where no PC should hold a master key. See key diversification and the SAM slot on ACS readers. |
Three design rules follow, whatever the card:
- Keys never sit in the enrolment program or a config file. Keep them in a SAM in the reader's SAM slot (the ACR1252U and ACR1552U have one) or on a server. See secure key storage.
- The card points to a record; the database decides. Validity, groups and blocking live on the server, so a lost card is blocked in one place.
- Watch for random UIDs. Some DESFire cards can be set to send a different UID on every tap. A UID-based system cannot enrol them; read a stored card ID after authentication instead.
Keyboard emulation types the UID only, so it cannot carry a secured credential. Secure credentials always need PC/SC software. BSD does not provide methods to read or copy cards you did not issue.
Integration Routes: PC/SC or Keyboard Mode
The general choice between PC/SC, keyboard emulation and a bridge program is explained in how to connect an ACS reader to a Windows application. In access control the choice mostly follows the credential:
| Situation | Route | Notes |
|---|---|---|
| Web-based access software, UID credentials | Keyboard emulation | The operator clicks the card field and taps. Needs a reader with keyboard mode (ACR1552U, ACR1581U); the ACR1252U and ACR122U have none. See keyboard mode or PC/SC. |
| Desktop access software that lists smart card readers | PC/SC (built in) | Select the PICC entry of the reader in its settings, not the SAM entry. |
| Secured cards (DESFire, keyed sectors) | PC/SC | Only PC/SC can authenticate and read card data. |
| Software with an API but no reader support | Bridge program (PC/SC) | A small service reads the card and posts the card ID, reader name and time to the access system's API or database. |
| Operator-admitted entry with on-screen result | PC/SC | Card arrival events let the screen react to every tap without a cursor in a text field. |
Code you can start from
No new code is needed for this page: the existing C# (.NET 10) samples cover the reader layer of an access integration. They are compiled but not yet tested on hardware.
- PC/SC smart card programming in C#: context, reader list, connect, transmit, errors.
- Detecting an ACS reader in C#: choosing the PICC entry by name and reacting to readers plugged in or removed.
- Reading a card UID in C#: one read per tap, with the UID in hex, reversed or decimal.
- An NFC reader application in .NET: a Windows Forms app with a reader thread, a scan log and CSV export, a starting point for an enrolment or entry desk.
- Java and Python equivalents: ACS readers in Java and ACS readers in Python.
The Logging and Audit Flow
An access system is only as useful as its records: who went where, when, and who changed what. A PC-linked reader produces two kinds of events, and both should be logged.
- Read event. The integration program sees a card on a named reader. Record the time, the workstation and reader name, and the card ID (or a reference to it).
- Decision event. The access system looks up the card and answers granted, denied (with the reason: unknown, expired, blocked, wrong time or area) or error. Record the answer and the person it resolved to.
- Action event. For operator-admitted entry, record the operator's confirmation; for a PC-switched barrier, record that the relay command was sent.
- Administration events. Card enrolled, reassigned, blocked, unblocked, rights changed: record who did it, when, and the old and new values.
| Good practice | Why |
|---|---|
| Write events to the central database, with a local queue on the PC that is sent when the network returns | An entry desk keeps working during a network outage without losing records |
| Keep the event log append-only; correct mistakes with a new event | An audit trail that can be edited proves nothing |
| Keep PC clocks synchronised with the network time | Desk and door events must line up in reports |
| Record the reader name and workstation with each read | Shows which desk a card was read at when there are several |
| Never log keys, authentication data or raw secured card contents | Logs are copied, mailed and kept for years |
| Set and document a retention period | Entry logs are personal data; keep them only as long as your policy and local law require |
The scan log and CSV export in the .NET sample shows the read-event part of this in code; the decision and administration events belong to the access system you integrate with.
Integration Problems and Fixes
| What you see | Likely cause | What to do |
|---|---|---|
| A card enrolled at the desk is refused at the door | The desk and the door reader report the number in different formats (hex/decimal, byte order, length) | Read one known card at both and compare. Convert in the enrolment software; see byte order and decimal. |
| The access software does not list the ACS reader | Driver or Smart Card service problem, or the reader is in keyboard-only mode | Run the checks in checking PC/SC reader status; switch the reader back to PC/SC mode if needed. |
| The reader is listed but cards are never seen | The SAM entry is selected instead of the PICC entry | Select the PICC entry. See how the SAM slot appears in Windows. |
| Card numbers land in the wrong field or window | Keyboard emulation types into whatever has the focus | Keep the enrolment screen in front, or move to PC/SC for that desk. |
| The same card gives a different number on every tap | The card uses a random UID | Enrol a stored card ID read after authentication, or use cards with a fixed UID. |
| DESFire credential read fails with an authentication error | Wrong key or key number, or the application uses diversified keys | Check the key settings with whoever issued the cards. See DESFire troubleshooting. |
| Enrolment desk stops reading after sleep or a replug | The program keeps an old PC/SC context or handle | Handle reader removal and service restarts; see when the Smart Card service stops. |
For reader problems that are not specific to access control, see the ACS reader troubleshooting centre.
Sources
Checked on 1 Dec 2026. Explanations are in BSD's own words.
- ACS product pages (overview, primary applications including Access Control): ACR1252U and ACR1552U
- USB host interface, CCID/PC/SC compliance, SAM slots and keyboard emulation: as cited on BSD's USB CCID guide, SAM slot guide and keyboard emulation guide, each checked against ACS's pages and manuals
- MIFARE Classic security position and DESFire authentication: as cited on BSD's key management guide (NXP pages and AN10922)
BSD Infotech is an independent ACS supplier and integrator, not the manufacturer. ACS, the ACS logo and ACS product names belong to Advanced Card Systems Ltd. MIFARE and MIFARE DESFire are trademarks of NXP B.V.
