Skip to Content
On this page

SAM ID card reader

Resident ID card security module card search, card selection and explicit card reading driver

Compatible devices and models

Device series / model examplesConnection requirements
Resident ID card readers using SAM security-module commandsMatch the AA AA AA 96 69 sync header, length, XOR checksum and responses for module query, card search, selection and reading.

Connect the SAM command interface

  1. Confirm the reader exposes SAM commands through serial or transparent TCP in its vendor tool. A USB SDK-only or keyboard-output reader is not automatically a matching byte interface.
  2. Record serial or network settings, close the vendor tool’s serial connection and create the matching gateway channel. Select SAM ID card reader. Defaults are 10000 ms timeout and 20 ms send delay; no Modbus station is needed.
  3. Without a card, read the module number and check module status first. No card is a search-stage result rather than proof of broken serial communication.
  4. Present an authorized card and execute Search, Select and Read in order. After a card change or failed step, restart with Search.

Responses use the AA AA AA 96 69 sync header, length and XOR checksum. Methods take no arguments and use no register address or terminator. Text and photo data belong to the complete card result, not generic byte-order, len or array conversion. Module number and status suffice for routine connection diagnosis.

Open the plugin

Enter “Development Configuration → Collection Configuration”, create a device and select “SAM ID card reader” in “Device Plugin”.

Supported channels and data types

Channel typePre-configuration check
Serial PortConfirm that the serial port is not occupied by other programs and maintains the same baud rate, data bits, stop bits and parity bits as the device.
TCP ClientConfirm network reachability of the device IP, port, and gateway to the device.

Optional data types: Select by page options

Address rules

  • The SAM ID card security module does not support register variable addresses. Please perform the complete card reading process by reading the module number, checking the module status, finding the card, selecting the card and reading the card dynamically.

Special methods

MethodPurposeParameters
ReadModuleNumberAsyncRead the security module numberNo parameters
CheckModuleStatusAsyncCheck security module statusNo parameters
SearchCardAsyncSearch ID cardNo parameters
SelectCardAsyncSelect ID cardNo parameters
ReadCardAsyncRead ID cardNo parameters

Device debug

Enter “Development Configuration → Collection Configuration”, select the current device then open “Protocol Debug” at the top of the workspace.

SAM ID card reader: Operations

Debugging notes

Card searching, card selection, and reading summaries may display identity information and require sensitive data permissions and secondary confirmation.

Functions

FunctionPurpose
Read module numberIdentifies the connected ID-card security module.
Check module statusChecks whether the security module is ready for card operations.
Search cardDetects an ID card in the reader’s sensing area.
Select cardSelects the detected card before reading it.
Read cardReads identity information from the selected card; this operation accesses personal data.

Verify the configuration

Match the module number to the reader label or confirm the status query; use Search → Select → Read for the separate card workflow.

Troubleshooting

  • Ordinary register variables do not apply. If module status is healthy but card reads fail, check placement and Search/Select order.
  • Special method execution fails: Check method parameters and permissions; control, write or reset methods also need to confirm that the device is in a state that allows operation.
  • The serial port device does not respond: Confirm that the serial port is not occupied, and check the baud rate, data bits, stop bits and parity bits.