Free SDK simplest

NFC RFID SDK available in the following programming languages

  • Java (including Applet),
  • JavaScript,
  • Lazarus,
  • Borland Delphi,
  • C++ Builder,
  • Microsoft® Visual C++ .NET,
  • Microsoft® Visual C# .NET,
  • Microsoft® Visual Basic .NET

General functions for working with the RFID reader

  • ReaderOpen: Opens a port of connected RFID reader. In the case of multi-thread applications, developers must be careful to synchronize access to reader’s resources to avoid unforeseen situations.
  • ReaderClose: Closes reader’s port. This enables access to the RFID reader from other processes.
  • GetCardId: This function returns the type identifier and card serial number placed into the RFID NFC reader.
UFR simplest software

General functions

Function that emulates the linear address space

LinearWrite

This function is used for writing data to the card using the emulation of linear address space. The method for proving authenticity is determined by the suffix in the functions names:

  • aucData - Pointer to the sequence of bytes containing data for writing
  • usLinearAddress - Linear address of the card where the data writing is intend
  • usDataLength - Number of bytes for the entry. In aucData a minimum usDataLength bytes must be allocated before calling the function
  • lpusBytesWritten - Pointer to a "unsigned short" type variable, where the number of successfully read bytes from the card is written. If the entry is a successfully completed this data is equal to the usDataLength parameter. If there was an error in writing some of the blocks, the function returns the number of successfully written bytes over this parameter.
  • ucAuthKey - This parameter defines whether to perform authentication with A key or key B. It can have two values, namely: AUTHENT1A (0x60) or AUTHENT1B (0x61).
  • ucReaderKeyIndex - The default method of authentication (when the functions without a suffix is used) performs the authenticity proving by using the selected key index from the RFID reader. In the linear address mode, this applies to all sectors that are written.
UFR simplest software

LinearRead

This function is used for writing data to the card using the emulation of linear address space. The method for proving authenticity is determined by the suffix in the functions names:

  • aucData - Pointer to the sequence of bytes containing data for writing on the card
  • usLinearAddress - Linear address of the card where the data writing is intend
  • usDataLength - Number of bytes for the entry. In aucData a minimum usDataLength bytes must be allocated before calling the function
  • lpusBytesReturned - Pointer to a "unsigned short" type variable, where the number of successfully read bytes from the card is written. If the entry is a successfully completed this data is equal to the usDataLength parameter. If there was an error in writing some of the blocks, the function returns the number of successfully written bytes over this parameter.
  • ucAuthMode - This parameter defines whether to perform authentication with key A or key B. It can have two values, namely: AUTHENT1A (0x60) or AUTHENT1B (0x61).
  • ucReaderKeyIndex - The default method of authentication (when the functions without a suffix is used) performs the authenticity proving by using the selected key index from the RFID reader. In the linear address mode, this applies to all sectors that are read.
UFR simplest software

LinearFormatCard

This function is used for formatting a card by rewriting all of cards data with default byte data [32 (dec), 20(hex)].

  • ucReaderKeyIndex - The default method of authentication (when the functions without a suffix is used) performs the authenticity proving by using the selected key index from the RFID reader. In the linear address mode, this applies to all sectors that are written.
UFR simplest software
UFR simplest software