Using the SAM Slot on ACS Readers
← Back to the smart card SDK and developer centre
What is the SAM slot on an ACS reader for? It holds a SAM (Secure Access Module): a small contact smart card chip, the size of a mobile SIM, that stores secret keys and does the cryptography with them, so the keys never sit in your PC or your application. The ACR1252U, ACR1552U, ACR1581U and ACR1281U-C1 each have one SIM-sized SAM slot (ISO 7816 Class A, 5 V, T=0 and T=1), according to ACS. Windows shows the SAM slot as its own PC/SC reader, next to the contactless (PICC) reader, and your program talks to the SAM exactly as it would to any contact card.
This page covers which ACS readers have the slot, what a SAM does, how the slot appears in Windows, how to fit a SAM and read its ATR in ACS QuickView, how to open it from code, where SAMs come from, and what to check when the SAM does not show up. It explains concepts and the PC/SC side only. The commands a SAM understands belong to its maker and your card system, so they are not covered here. BSD Infotech is an independent ACS supplier and integrator, not the manufacturer.
Not yet tested by BSD. Our test bench has the readers but no SAM card yet. Everything below is based on ACS's specifications and manuals and on standard PC/SC behaviour. We will add our own results (reader names, ATR, screenshots) once we have tested a SAM.
What a SAM Is and Why Systems Use One
A SAM is a secure microcontroller chip, normally supplied in the plug-in SIM format (the ID-000 size of ISO/IEC 7810, 25 x 15 mm) with ISO 7816 contacts. It is a smart card that stays inside the reader. Your card system's keys are loaded into it once, under the system owner's control, and from then on the SAM uses them without ever giving them out.
Why that matters: in a card system, every terminal must prove to every card that it knows the right key. If the key sits in the terminal software, anyone who copies the software or reads the PC's memory has it. With a SAM, the terminal software only passes messages between the card and the SAM. The secret stays in tamper-resistant hardware.
What a SAM typically does
- Key storage. Master keys are held inside the SAM and cannot be read out through normal commands.
- Key diversification. The SAM derives each card's own key from a master key and card data such as the UID, so one leaked card key does not expose the others. Our MIFARE authentication and key management guide explains diversification and why a SAM is the preferred place for master keys.
- Mutual authentication. The SAM answers the card's challenge, and checks the card's answer, on behalf of the terminal. ACS describes the SAM slot on the ACR1252U and ACR1552U in exactly these terms: key diversification and mutual authentication.
- Secure messaging and MACs. Encrypting or signing the data exchanged with the card, for example for stored-value or purse transactions.
Where SAMs are used
Mainly where cards carry value or grant access that is worth attacking: transport ticketing and fare collection, payment and e-purse systems, loyalty and stored value, and high-security access control. They are common with MIFARE DESFire and MIFARE Plus card systems, whose keys are often managed through an NXP MIFARE SAM. A simple project that only reads a card's UID or NDEF data does not need a SAM, and an empty SAM slot does no harm.
Which ACS Readers Have a SAM Slot
We checked each reader against ACS's own product page and, where we have it, the ACS manual (1 Dec 2026). Only readers that ACS documents with a SAM slot are marked "Yes".
| Reader (order codes) | SAM slot | What ACS documents | Source |
|---|---|---|---|
| ACR1252U USB NFC Reader III (ACR1252U-M1 USB Type-A, ACR1252U-MF USB Type-C) | Yes, 1 | 1 standard SIM-sized slot, ISO 7816 Class A (5 V), T=0 and T=1. The manual describes two PC/SC interfaces: PICC (contactless) and SAM. ACS lists the two order codes as connector variants and gives one SAM specification for the model. | ACS product page 342 (tech specs); ACR1252U API manual v1.17 |
| ACR1552U USB NFC Reader IV (ACR1552U-M1 USB Type-A, ACR1552U-MF USB Type-C) | Yes, 1 | 1 standard SIM-sized slot, ISO 7816 Class A (5 V), T=0 and T=1. The ACR1552U series manual also covers modules and other series members and notes that the SAM slot is not on every model, so check the exact order code if you buy a module rather than the desktop reader. | ACS product page 575 (tech specs); ACR1552U technical specification v1.04; ACR1552U series reference manual v1.05 and v1.09 |
| ACR1581U DualBoost III (ACR1581U-C1 USB Type-A, ACR1581U-CF USB Type-C) | Yes, 1 | 1 standard SIM-sized slot, ISO 7816 Class A (5 V), T=0 and T=1. ACS says the reader has three PC/SC interfaces: PICC, ICC (the full-size contact slot) and SAM. | ACS product page 583 (overview and tech specs) |
| ACR1281U-C1 DualBoost II | Yes, 1 | 1 standard SIM-sized slot, ISO 7816 Class A (5 V), T=0 and T=1, described as a built-in SAM slot for contact and contactless applications. | ACS product page 159 (overview and tech specs) |
| ACR122U USB NFC Reader | No built-in slot | The tech specs list no SAM interface. ACS's overview says the ACR122U "can be integrated with" an ISO 7816-3 SAM slot, which is not the same as having one. ACS now marks the ACR122U end-of-life and points to the ACR1552U. | ACS product page 3 |
| ACR39U contact reader | No (standard model) | The current tech specs list one full-size contact slot and no SAM interface. An older ACR39U-U1 technical specification (v1.04, in the ACR39U SDK) lists a SAM interface as "optional", but the current product page does not mention one. If you need a SAM on a contact reader, ask before ordering rather than assuming the standard ACR39U has one. | ACS product page 302 (tech specs); TSP-ACR39U-U1 v1.04 |
The ACR1252U and ACR1552U are tap-style NFC readers with no contact card slot, so the SAM slot is their only contact interface. The ACR1581U and ACR1281U-C1 also take full-size contact cards in a separate slot; the SAM slot is an extra, smaller slot. To find out which model you have, see how to identify your ACS reader model.
How the SAM Slot Appears in Windows
On a reader with a SAM slot, Windows lists more than one PC/SC reader for the one USB device: one per interface. ACS's ACR1252U manual names the two interfaces PICC (the contactless antenna) and SAM, and its architecture diagram shows them as two separate PC/SC readers over one USB (CCID) connection. The ACR1581U adds a third, ICC, for its contact card slot. Our PC/SC architecture guide explains why each slot becomes its own reader.
The reader names
- ACS's manuals print example names only for the contactless interface:
ACS ACR1252 1S CL Reader PICC 0(ACR1252U API manual v1.17) andACS ACR1552 1S CL Reader PICC 0(ACR1552U reference manual v1.05). ACS adds that the name depends on the reader. - The documents we checked do not print the SAM interface's name. Expect a second entry for the same reader that refers to the SAM, but copy the exact name from your own PC (QuickView shows it, see below) rather than typing it from a web page, including this one.
- Select readers in code by part of the name, never by position in the list. The order changes when another reader is plugged in. See how to check PC/SC reader status.
An empty slot is normal
The SAM reader entry is there whether or not a SAM is fitted. Without a SAM, it simply reports no card, like a contact reader with nothing inserted. That is why a tool pointed at the SAM entry says "no card" when you tap a contactless card: tapped cards are on the PICC entry. If you are testing cards, pick the PICC entry; the ACR1252U driver and test guide shows this for the ACR1252U.
Fitting a SAM in the Slot
The ACS manuals and product pages we checked give the slot's size and standard but do not describe where it is on each reader or which way round the SAM goes. So follow the markings on your reader and the instructions that come with the SAM, and use these general precautions:
- Disconnect the reader first. Unplug the USB cable (or shut down the PC). Do not fit or remove a SAM while the reader is powered.
- Use a plug-in SAM. The slot takes the small SIM-sized format. A SAM still in its full-size card carrier must be pressed out along its pre-cut edge first. Never cut a card by hand.
- Check the orientation before pushing. The gold contacts must face the reader's contacts, and the cut corner must match the slot's marking or shape. It should slide in without force. If it stops, take it out and check again rather than pushing harder.
- Reconnect and check. Plug the reader in and read the SAM's ATR in QuickView, as in the next section. A correctly fitted SAM is reported as a card present on the SAM entry.
Not yet tested by BSD. We have not yet fitted a SAM in these readers, so this section has no photos. If your reader's slot is not obvious, ask your supplier before opening anything: opening the case is not part of fitting a SAM unless the reader's own documentation says so.
Check the SAM: Read Its ATR in ACS QuickView
The quickest test that the slot, the SAM and the driver work together is the SAM's ATR (Answer To Reset), the bytes every contact card sends when it is powered up. ACS QuickView shows it without sending any command. How to download and use QuickView is in our ACS QuickView guide.
- Open QuickView with the reader connected and the SAM fitted.
- Look at the reader list. You should see two entries for an ACR1252U or ACR1552U (three for an ACR1581U). Write down the exact name of the SAM entry. You will need it in code.
- Select the SAM entry. It should report a card present and show an ATR in hex (an ATR is at most 33 bytes long).
- Save the ATR. Copy it with every byte. It identifies the SAM type and the protocols it offers (T=0, T=1). Our smart card ATR guide shows how to read it byte by byte.
Expected result: card present on the SAM entry, with an ATR. If the entry says no card, see troubleshooting. For other ways to see an ATR, including the ACS PC/SC Learning Tool, see the ATR guide.
Opening the SAM from Your Code
To your program, the SAM is an ordinary ISO 7816 contact card in a reader of its own. You open it with the same PC/SC calls as any other card:
SCardListReaders, then pick the SAM interface by part of its name.SCardConnectto that reader, normally in shared mode, accepting T=0 or T=1 (both are in ACS's SAM specification for these readers). Windows reports the protocol it chose.SCardTransmitto send the SAM the APDUs its documentation defines, with the protocol header that matches the chosen protocol.
A SAM application therefore keeps two connections open at once: one to the card on the PICC interface and one to the SAM. A typical authentication passes data between them. The program reads the card's UID or challenge from the PICC connection, hands it to the SAM, and sends the SAM's answer back to the card. The keys stay inside the SAM; your program only carries the messages. The exact sequence and commands depend on the SAM product and the card system, so this page does not list any. ACS's ACR1252U and ACR1552U manuals include a chapter of commands for ACS's own ACOS6-SAM, and ACS supplies the full ACOS6-SAM manual through its representatives. NXP publishes the MIFARE SAM AV3 documentation for its customers.
Example: read the SAM's ATR in C#
Language: C# 14 on .NET 10, Windows only. Prerequisites: the project and the two files WinScard.cs and Pcsc.cs from our C# PC/SC tutorial; an ACS reader with a SAM slot and its driver; a SAM fitted in the slot.
The program does only what QuickView does: it finds the SAM interface, connects, prints the protocol and the ATR, and disconnects. It sends no command to the SAM.
Compiled by BSD; not yet tested on hardware. Built for net10.0 on 1 Dec 2026 with 0 warnings and 0 errors, together with the tutorial's WinScard.cs and Pcsc.cs. It has not been run with an ACS reader and a SAM yet.
// Day 50: read the ATR of the SAM in an ACS reader's SAM slot. C# 14, .NET 10, Windows only.
// Needs WinScard.cs and Pcsc.cs from the C# PC/SC tutorial in the same project.
// Read-only: it connects to the SAM interface, prints the protocol and the ATR, and disconnects.
// It sends no APDU to the SAM. Compiled by BSD; not yet tested with a SAM.
using System;
using System.Linq;
using Bsd.Pcsc;
try
{
using var pcsc = new PcscContext();
string[] readers = pcsc.ListReaders();
if (readers.Length == 0) { Console.WriteLine("No PC/SC readers. Check the driver and the Smart Card service."); return 1; }
foreach (string r in readers) Console.WriteLine($"Reader: {r}");
// Pick the SAM interface by part of its name. Pass another filter as the first argument if your list differs.
string filter = args.Length > 0 ? args[0] : "SAM";
string? sam = readers.FirstOrDefault(r => r.Contains(filter, StringComparison.OrdinalIgnoreCase));
if (sam is null) { Console.WriteLine($"No reader name contains \"{filter}\". Check the list above."); return 2; }
Console.WriteLine($"Using: {sam}");
// A SAM is a contact card: connect in shared mode and let Windows choose T=0 or T=1.
using var card = pcsc.Connect(sam);
var (_, protocol, atr) = card.Status();
string name = protocol switch
{
WinScard.SCARD_PROTOCOL_T0 => "T=0",
WinScard.SCARD_PROTOCOL_T1 => "T=1",
_ => $"0x{protocol:X}"
};
Console.WriteLine($"Protocol: {name}");
Console.WriteLine($"ATR: {Apdu.HexSpaced(atr)}");
return 0;
}
catch (PcscException ex) when (ex.Code == WinScard.SCARD_E_NO_SMARTCARD)
{
Console.WriteLine("The SAM slot is empty, or the SAM is not seated (SCARD_E_NO_SMARTCARD).");
return 3;
}
catch (PcscException ex)
{
Console.WriteLine(ex.Message);
return 4;
}
Run it: dotnet run uses the filter "SAM". If the name of your SAM entry does not contain "SAM", pass a part of the name that only the SAM entry has as the first argument: dotnet run -- "<part of the name>".
Expected result: one Reader: line per PC/SC reader, the SAM entry after Using:, then Protocol: T=0 or T=1 and the SAM's ATR in hex, which should match what QuickView shows.
If it fails: exit code 2 means no reader name contains the filter (copy the name from the printed list); exit code 3 (SCARD_E_NO_SMARTCARD) means the slot is empty or the SAM is not seated; SCARD_E_SHARING_VIOLATION means another program, such as QuickView, has the SAM open, so close it. Every other PC/SC error is printed with its code; the error section of the C# tutorial explains them.
Which SAM Do You Need?
The SAM comes from your card system, not from the reader. It must contain the keys and the logic of the system it works with, so it is normally issued or specified by the card system's operator or vendor: the transit authority, payment scheme, access control supplier or whoever issues your cards. A blank SAM bought on its own is useful only if you are building and managing the card system yourself. BSD Infotech supplies the ACS readers; it does not issue SAMs for third-party systems.
| SAM | Maker | Typical use |
|---|---|---|
| MIFARE SAM AV3 | NXP | NXP's third-generation MIFARE SAM, listed as active on NXP's site. NXP positions it for key storage and cryptography in readers and terminals for MIFARE DESFire, MIFARE Plus and MIFARE Ultralight, and for NTAG, ICODE and UCODE DNA chips. It has an ISO/IEC 7816 interface. |
| MIFARE SAM AV2 | NXP | The previous generation, still listed in NXP's MIFARE SAM family. Existing systems may be built around it; for a new design, check NXP's current status first. |
| ACOS6-SAM | ACS | ACS's own SAM. ACS lists it for its ACOS3, ACOS6, ACOS7 and ACOS10 cards and for several NXP contactless card types, including the MIFARE DESFire family, for mutual authentication, secure messaging, key diversification and secure key injection. ACS includes one ACOS6-SAM card in its ACR1252U and ACR1552U SDK kits for development (see the ACR1252U SDK contents). |
Before buying anything, ask your system vendor three questions: which SAM type and version, in which form factor (it must be the plug-in SIM size to fit these ACS readers), and who loads the keys. An NXP SAM is a chip; it reaches you in plug-in card form through the vendor or a card supplier.
SAM Slot Troubleshooting
| What you see | Likely cause | What to do |
|---|---|---|
| No SAM reader in the list, only the PICC entry (or no ACS entry at all) | The reader model has no SAM slot; the driver is missing or old; or the reader is not detected at all | Check the model in the table above and on the label. Install the current driver from the official ACS driver page (see installing the ACS driver on Windows). If no ACS entry appears, follow check that Windows detects the reader. |
| SAM entry listed, but it always says no card | No SAM fitted, SAM not pushed fully home, or fitted the wrong way round | Unplug the reader, take the SAM out, check the contacts face the reader's contacts and the cut corner matches, refit, reconnect. |
Card present, but no ATR, or an error such as "unresponsive card" (SCARD_W_UNRESPONSIVE_CARD) | Poor contact, damaged or dirty contacts, or a chip that needs a voltage the slot does not supply | Clean and refit the SAM. These slots supply ISO 7816 Class A (5 V) only, according to ACS. Ask the SAM's supplier whether it works at 5 V. Try a second SAM if you have one. |
| Tapped cards are never seen | Your program or tool is using the SAM entry instead of the PICC entry | Select the contactless (PICC) entry for tapped cards. The SAM entry only ever shows the SAM. |
| Connect fails with a sharing violation | Another program (QuickView, a second copy of your program) has the SAM open exclusively | Close the other program, or connect in shared mode. |
| ATR is there, but your SAM commands return errors | Wrong command set for this SAM, keys not loaded, or a step missing from the authentication sequence | Check the SAM model from its ATR and follow its maker's documentation. Your card system vendor holds the key and command details. |
For reader problems that are not specific to the SAM, see the ACS reader troubleshooting centre.
Sources
Checked on 1 Dec 2026. Explanations are in BSD's own words.
- ACS product pages (overview and tech specs): ACR1252U, ACR1552U, ACR1581U, ACR1281U-C1, ACR122U, ACR39U and ACOS6-SAM: SAM slot count, standard, voltage and protocols; interfaces; order codes
- ACS manuals: ACR1252U API manual v1.17 (PICC and SAM interfaces, architecture, example reader name, ACOS6-SAM chapter); ACR1552U series reference manual v1.05 and v1.09 (SAM interface, model note, example reader name); ACR1552U technical specification v1.04; ACR39U-U1 technical specification v1.04 (optional SAM interface); ACR1552U SDK user manual v1.01 (ACOS6-SAM card in the kit)
- NXP, MIFARE SAM AV3 product page (status, interfaces, supported products) and MIFARE SAM family page (AV3 and AV2)
- Microsoft Win32 reference: SCardConnect and SCardStatus
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, MIFARE DESFire, MIFARE Plus, MIFARE Ultralight and MIFARE SAM are trademarks of NXP B.V.
