Antenna Configurations Tutorial

RFID SDK for MAUI

Overview

This Tutorial provides a walk-through of the steps to perform Antenna configuration using MAUI RFID SDK

Create the Project

  • Start by creating a new project in Visual Studio. For help, see the Create Project.
  • Refer Hello RFID to prepare basic setup to work with RFID Reader and then follow this guide

Details

The config class contains the Antennas object. The AntennaProperties is used to set the antenna configuration to individual antenna or all the antennas. The antenna configuration (SetAntennaConfig function) is comprised of Antenna ID, Transmit Power Index. These indexes are refers to the Transmit Power table, Tari Frequency Hop table, or Fixed Frequency table respectively. These tables are available in Reader capabilities.getAntennaConfig function gets the antenna configuration for the given antenna ID.

Setting it up

Declarations and API calls to setup configuration

  • RF Configuration
  • The function SetAntennaRfConfig is added to configure antenna RF configuration to individual antenna. This function is similar to SetAntennaConfig but includes additional parameters specific pertaining to antenna. The configuration includes, Transmit Power Index, tari and RF Mode Table Index. These indexes are refers to the Transmit Power table, Tari and RF Mode table respectively. These tables are available in Reader capabilities. The function getAntennaRfConfig gets the antenna RF configuration for the given antenna ID.


try
{
    // get the configuration                                                
    Antennas.AntennaRfConfig antennaRfConfig = Reader.Config.Antennas.GetAntennaRfConfig(1);
    antennaRfConfig.SetrfModeTableIndex(0);
    antennaRfConfig.Tari = 0;
    antennaRfConfig.TransmitPowerIndex = 270;
    // set the configuration
    Reader.Config.Antennas.SetAntennaRfConfig(1, antennaRfConfig);
}
catch (OperationFailureException ex)
{
    Console.WriteLine(" Antenna configuration failed " + ex.VendorMessage);
}

Closer look

  • Get the reader supported power levels for particular regulatory using Reader.ReaderCapabilities.GetTransmitPowerLevelValues()
  • SetrfModeTableIndex sets particular link profile as provided by Reader.ReaderCapabilities.RFModes.GetRFModeTableInfo(0) and supported for specific regulatory. In general default link profile is always referred to index 0

What's Next

  • Change TransmitPowerIndex values to move between different power levels
  • Use SetrfModeTableIndex to use different link profiles suited for use case.