BALTECH SDK wrapper functions reference

§ brp_VHL_GetSnr()

brp_errcode brp_VHL_GetSnr ( brp_VHL_GetSnr_t  params)

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 brp_VHL_Select() hasn't been executed successfully before, the reader will return BRP_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]paramsStruct with the following fields:
  • protocol used to execute the command
  • Snr (out) Serial number (UID) of the card. The length of this field depends on the selected card type.
  • Snr_len (out) Length of Snr (in bytes).
  • mempool (in) is 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