ACS Reader Integration with POS Applications
← Back to the smart card SDK and developer centre
How do you connect an ACS reader to POS software? In a closed-loop system (canteen, cafeteria, club, campus or food court cards that only work at your own counters) a USB ACS reader such as the ACR1252U or ACR1552U sits next to the POS PC. The POS reads the card either as typed text (keyboard emulation), good enough to look up a member, or through PC/SC, which is needed whenever the card pays. For payments, keep the balance on the server and treat the card as a pointer to the account; if value must live on the card, it has to be authenticated card data, never the UID or an open sector.
This guide is for developers and POS vendors adding cashless, canteen or membership cards to POS software: the use cases, keyboard wedge versus PC/SC at a busy counter, the tap-to-pay flow for prepaid cards, receipt and transaction logging, and running several terminals. For complete cashless and canteen solutions, see BSD's cashless payment system and canteen management software pages. BSD Infotech is an independent ACS supplier and integrator, not the manufacturer.
Bank cards are a different thing. An ACS PC-linked reader in a closed-loop POS is not a payment terminal for bank credit or debit cards. For bank cards, use a certified payment terminal from your bank or payment provider, alongside the card reader if you need both.
Not yet tested by BSD as a complete integration. Reader facts come from ACS's pages and our own reader guides; the payment and logging flows are design guidance from BSD's cashless and canteen work, not a recorded test with a particular POS product.
Cards at the POS: Cashless, Canteen and Membership
A card at the POS does one of three jobs. Which one decides how much the integration must do. ACS lists e-purse and loyalty among the primary applications of the ACR1252U and ACR1552U.
| Job | Typical venue | What the POS needs from the card | Route |
|---|---|---|---|
| Identify a member or customer | Clubs, loyalty schemes, staff discounts | An ID to look up the account; the bill is charged to the account or a discount applied | Keyboard wedge or PC/SC |
| Pay from an account (balance on the server) | Corporate and school canteens, campuses, food courts | A trustworthy card ID; the server checks and debits the balance | PC/SC |
| Pay from the card (stored value / e-purse) | Sites that must work fully offline, events | An authenticated value on the card, debited by the terminal | PC/SC with card keys |
| Entitlement check | Mess meals, prepaid coupons | Who the user is and whether today's meal is already taken | PC/SC (keyboard wedge only if UID is acceptable) |
The same counter usually also needs a top-up counter (load value, issue and block cards) and a way to check the balance. These are reader positions too, and they need the same integration route as the counters.
Keyboard Wedge or PC/SC in POS Software
The general comparison is in connecting an ACS reader to a Windows application and keyboard mode or PC/SC. At a POS counter a few points matter more than anywhere else:
| Point | Keyboard wedge (keyboard emulation) | PC/SC |
|---|---|---|
| POS changes needed | None, if the POS has a customer or card-number field | A reader module in the POS, or a small bridge program |
| Focus at a busy counter | The number is typed wherever the cursor is: a quantity or price field included | Card taps go only to the POS reader module |
| Is the card genuine? | Cannot tell; a typed or copied number looks the same | Can authenticate the card (DESFire, keyed sectors) |
| Stored value on the card | Impossible (UID only, no write) | Yes, with the card's keys |
| Card removed before the sale completes | Not detected | Detected; the POS can wait or cancel |
| Readers | ACR1552U, ACR1581U (not the ACR1252U or ACR122U) | Any ACS PC/SC reader |
| Good for | Member lookup, loyalty IDs, web-based POS where nothing can be installed | Every payment, top-up and entitlement check |
Rule of thumb: if a tap moves money, use PC/SC. Keyboard mode is fine for "who is this customer?", not for "take Rs 80 from this card".
Code you can start from
The reader module of a POS needs the same building blocks as any PC/SC application. These existing C# (.NET 10) samples are compiled but not yet tested on hardware: PC/SC programming in C# (connect, transmit, error handling), detecting an ACS reader (reader names, plug and unplug events), reading a card UID (one read per tap) and the .NET NFC reader application (a reader thread that never blocks the POS screen). The bridge approach fits POS software you cannot change.
The Tap-to-Pay Flow for Closed-Loop Prepaid Cards
Recommended design: balance on the server, card as a pointer. The server holds every account and balance; the card proves which account it is. A lost card is blocked in one place, the balance is never lost with the card, and a tampered card cannot create money. The flow at the counter:
- The cashier totals the bill and chooses "card" as the payment.
- The POS waits for a card on its reader (a PC/SC card arrival event, with a timeout and a Cancel button).
- The card is identified. At minimum the UID; for real money, an ID read from a DESFire application after authentication, so a copied UID is refused. See what needs authentication.
- The server checks the account: card active, not blocked, balance and daily limit, PIN if your scheme uses one.
- The server debits in one database transaction with a unique transaction ID generated by the POS. If the POS retries after a timeout, the same ID makes the server return the first result instead of debiting twice.
- The POS shows and prints the result: approved with the new balance, or declined with the reason.
When value must live on the card
Some sites must work with no network at all, so the balance has to be on the card (an e-purse). Then the value is only as safe as the card's security:
- Use authenticated card data. The UID or an unprotected sector is not money: anyone can read and copy it. Use a card with real authentication, such as a DESFire value file whose debit and credit need different keys. The commands, including
Debit,CreditandCommitTransaction, are listed in our DESFire APDU command reference. MIFARE Classic is a poor choice for value; see MIFARE Classic security. - Keep keys out of the POS program. A counter PC is shared and its software is easy to copy. Keep keys in a SAM in the reader (ACR1252U and ACR1552U have a SAM slot; see the SAM slot guide) or on a server, with per-card diversified keys.
- Make the write atomic. A card pulled away in the middle of a write must not lose or create value. DESFire's commit/abort mechanism is built for this; the POS must check the result and only print "paid" after the commit succeeds.
- Still keep a server shadow balance. Upload each terminal's transactions and compare the card balance with the server's record. Differences point to a lost upload, a faulty terminal or a manipulated card.
BSD's e-purse system page describes a complete stored-value design with mutual authentication and PIN protection. This page does not give key material or card layouts; those are specific to each project.
Receipts and Transaction Logging
Every card movement (sale, top-up, refund, block, reissue) is a transaction that someone will want to reconcile later. A useful record holds:
| Field | Why |
|---|---|
| Transaction ID (unique, made by the terminal) | Prevents double debits on retry; links the receipt to the record |
| Terminal ID, counter or outlet, cashier | Day-end totals per counter and per cashier |
| Date and time (synchronised clock) | Ordering and disputes |
| Card or account reference | Statement for the card holder; print it masked on receipts |
| Type and amount (sale, top-up, refund, adjustment) | Refunds are new reversing transactions, never edits of the old one |
| Balance before and after | Lets anyone check the arithmetic |
| Bill or order number in the POS | Links the card payment to the items sold |
| Result and reason (approved, declined: insufficient balance, blocked, error) | Support questions at the counter |
The receipt normally shows the amount paid by card, the masked card reference and the balance left. At day end, each terminal's card total should equal the server's total for that terminal; any difference is investigated before the next day starts. Keys and authentication data never go into logs. The scan log and CSV export in our .NET sample shows how a reader program can write its own read log.
Running Several POS Terminals
- One reader per terminal, chosen by name. Each POS PC uses its own ACS reader; the POS selects it by its PC/SC name (the PICC entry), not "the first reader found". See recognising ACS readers by name.
- One server for all balances. All counters, top-up points and balance checkers read and write the same accounts on a LAN or hosted server. Two counters must never hold their own copy of a balance.
- A terminal ID in every transaction. Set once per PC at installation, used in transaction IDs, reports and day-end reconciliation.
- Decide the offline rule in advance. With server balances, a counter that loses the network can either stop taking cards, or accept small amounts up to a per-card offline limit and upload them later. The second option risks overspending across counters, so keep the limit low and reconcile after.
- Same driver and settings everywhere. Install the same ACS driver version on every terminal and keep a note of the reader name and number format, so a replaced PC behaves the same.
- Remote Desktop and thin clients. If the POS runs in a Remote Desktop session, the reader is plugged into the computer the cashier sits at; see the Remote Desktop row in connecting an ACS reader to a Windows application.
BSD Infotech POS and Cashless Software
BSD Infotech builds POS and cashless software as well as supplying the readers. If you need a ready product rather than an integration into someone else's POS:
- RetailKey Dine: BSD's restaurant billing software for Windows and Android (KOT, table billing, counter sale, GST, several billing PCs on a LAN). Its standard payment modes are cash, card, UPI and credit; smart card payment is a separate configuration, described on the restaurant POS systems page.
- Canteen management software: canteen POS with smart card, NFC or QR identification and a prepaid wallet.
- Cashless payment system and e-purse system: top-up and tap-to-pay with cards or wristbands, and stored value on a smart card.
- Club management software and smart card membership cards: member identification and billing to the member account.
- POS hardware: touch terminals, receipt printers and accessories for the counter.
Which of these suits your site, and whether your cards and readers fit them, is confirmed per project.
POS Integration Problems and Fixes
| What you see | Likely cause | What to do |
|---|---|---|
| A card number appears in the quantity or price field | Keyboard emulation types into whatever field has the focus | Move payments to PC/SC, or have the POS put the cursor in the card field before asking for a tap. |
| The POS does not find the reader after a restart or replug | The program keeps an old reader handle, or the reader was plugged in after the POS started | Handle reader removal and reconnection; see design notes for real applications. |
| A customer was charged twice | The POS retried after a timeout and the server debited again | Send a unique transaction ID with each debit and have the server ignore repeats. |
| Card balance and server balance disagree | A terminal's offline transactions were not uploaded, or a write was interrupted | Reconcile by terminal; check the commit result in the card write code. |
| Cards work at one counter but not another | Different number format, reader name or driver on that PC | Compare settings with a working counter; see hex, decimal and byte order. |
| The tool or POS says "no reader" | Smart Card service, driver, or reader left in keyboard-only mode | Check PC/SC reader status; switch the reader back to PC/SC mode. |
| A customer tries to pay with a bank card on the ACS reader | The ACS reader in a closed-loop POS is not a bank payment terminal | Use the certified payment terminal for bank cards. |
For reader problems that are not specific to POS, 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 e-Purse & Loyalty; keyboard emulation mode on the ACR1552U): ACR1252U and ACR1552U
- Keyboard emulation readers and settings, SAM slots and DESFire commands: as cited on BSD's keyboard emulation guide, SAM slot guide and DESFire command reference, each checked against ACS and NXP documents
- BSD product facts: BSD's own RetailKey Dine, restaurant POS and e-purse pages
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.
