RFID Module
Returns the type of RFID reader module present in the device.
GET /device_rfid_module.fcgi
Parameters
- This request has no parameters.
Response
- module (string): RFID module type. Possible values:
| Value | Description |
|---|---|
"mifare" |
Mifare-compatible RFID reader |
"ASK" |
ASK (standard 125 kHz) RFID reader |
Request example
$.ajax({
url: "/device_rfid_module.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"module": "mifare"
}
Get last HID card read NEW!
Returns the data of the last card presented to the HID reader. Useful for diagnostics and card enrollment workflows.
Available on versions V7 and V8.
GET /get_hid_last_card.fcgi
Parameters
- This call has no parameters.
Response
- csn (string): Card Serial Number.
- pac (string): Card credential value (PAC).
- type (string): Card type identifier.
- bits (int): Number of bits in the card data.
- custom (string): Hexadecimal string of the
custom_data[custom_use_index]block (see the hid_reader.card_process and hid_reader.custom_use_index parameters in Configuration Parameters) of the last card read, or an empty string if no custom data is available/configured.
Request example
$.ajax({
url: "/get_hid_last_card.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"csn": "A1B2C3D4",
"pac": "00123456",
"type": "hid",
"bits": 26,
"custom": "0x1a2b3c4d"
}
Get Wiegand card read
Returns diagnostic data from the last Wiegand card read. Useful for troubleshooting card readers and verifying card format compatibility.
Available on versions V6, V7 and V8.
GET /get_wiegand_card_read.fcgi
Parameters
- This call has no parameters.
Response
- card_read_value (string): Raw Wiegand value read from the card.
- card_read_num_bits (int): Number of bits in the Wiegand data.
- facility_code (string): Facility code extracted from the card data.
- card_number (string): Card number extracted from the card data.
- parities (int): Parity check result.
- last_read_time (string): Timestamp of the last card read.
Request example
$.ajax({
url: "/get_wiegand_card_read.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"card_read_value": "0A1B2C3D",
"card_read_num_bits": 26,
"facility_code": "10",
"card_number": "12345",
"parities": 0,
"last_read_time": "2024-01-15 10:30:00"
}