Knowing the Reader Capabilities

Applicable Devices : RFD40, RFD90, RFD8500

Overview

Retrieves the capabilities (read-only properties) of an active RFID reader, using srfidGetReaderCapabilitiesInfo.

Details

The SDK provides an ability to retrieve the capabilities (or read-only properties) of a particular active RFID reader. The reader capabilities include the following:

  • Serial number
  • Model name
  • Manufacturer
  • Manufacturing date
  • Device name
  • ASCII protocol version
  • Number of select records (pre-filters)
  • Minimal and maximal antenna power levels (in 0.1 dBm units)
  • Step for configuration of antenna power level (in 0.1 dBm units)
  • Version of air protocol
  • Bluetooth address
  • Maximal number of operations to be combined in a sequence

The reader capabilities could be retrieved via srfidGetReaderCapabilitiesInfo API function as demonstrated in the following example.


-(void)getReaderCapabilities {
    /* allocate object for storage of capabilities information */
    srfidReaderCapabilitiesInfo *capabilities = [[srfidReaderCapabilitiesInfo alloc] init];

    /* an object for storage of error response received from RFID reader */
    NSString *error_response = nil;

    /* retrieve capabilities information */
    SRFID_RESULT srfid_result = SRFID_RESULT_FAILURE;
    srfid_result = [apiInstance srfidGetReaderCapabilitiesInfo:readerID aReaderCapabilitiesInfo:&capabilities aStatusMessage:&error_response];

    if ((srfid_result == SRFID_RESULT_RESPONSE_TIMEOUT) || (srfid_result == SRFID_RESULT_FAILURE))
    {
        NSLog(@"Time out or Failure");
    }

    if (srfid_result == SRFID_RESULT_SUCCESS)
    {
        NSLog(@"Serial number: %@\n", [capabilities getSerialNumber]);
        NSLog(@"Model: %@\n", [capabilities getModel]);
        NSLog(@"Manufacturer: %@\n", [capabilities getManufacturer]);
        NSLog(@"Manufacturing date: %@\n", [capabilities getManufacturingDate]);
        NSLog(@"Device name: %@\n", [capabilities getScannerName]);
        NSLog(@"Ascii version: %@\n", [capabilities getAsciiVersion]);
        NSLog(@"Air version: %@\n", [capabilities getAirProtocolVersion]);
        NSLog(@"Bluetooth address: %@\n", [capabilities getBDAddress]);
        NSLog(@"Select filters number: %d\n", [capabilities getSelectFilterNum]);
        NSLog(@"Max access sequence: %d\n", [capabilities getMaxAccessSequence]);
        NSLog(@"Power level: min = %d; max = %d; step = %d\n", [capabilities getMinPower], [capabilities getMaxPower], [capabilities getPowerStep]);

    }
}