C API for BALTECH SDK

§ brp_VHL_GetSnr()

brp_errcode brp_VHL_GetSnr ( brp_protocol  protocol,
brp_buf Snr,
size_t *  Snr_len,
brp_mempool mempool 
)

This command returns the serial number (UID) of the currently selected card. The UID is the number sent when the card is selected; this may also be a random ID.

If VHL.Select hasn't been executed successfully before, the reader will return VHL.ErrCardNotSelected. If the last selected card is no longer available in the antenna field, or a read/write operation failed previous to this command, the returned serial number is undefined.

Don't make security-critical decisions by only examining the card's serial number.

Parameters
[in]protocolused to execute the command
[out]SnrSerial number (UID) of the card. The length of this field depends on the selected card type.
[out]Snr_len
[in]mempoolis used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool