Inventory Protocol

Applicable Devices : RFD40, RFD90

Overview

This determines which tag protocol (e.g. HYBRID, Gen2, Gen2x) the reader will use when performing inventory scans.

Supported Inventory Protocols

The inventory protocol is passed as a value of the SRFID_ENUM_INVENTORY_PROTOCOL type, which the SDK defines. The supported values are:

  • GEN2 (0x00)
  • GEN2X (0x01)
  • HYBRID (0x02)

Get Inventory Protocol


 -(SRFID_RESULT)getReaderInventoryProtocol:(SRFID_ENUM_INVENTORY_PROTOCOL *)protocol aStatusMessage:(NSString **)statusMessage {

    SRFID_RESULT srfid_result = SRFID_RESULT_FAILURE;
    SRFID_ENUM_INVENTORY_PROTOCOL protocolEnum;

    srfid_result = [apiInstance getInventoryProtocol:readerID protocol:&protocolEnum statusMessage:statusMessage];

    if (srfid_result == SRFID_RESULT_SUCCESS) {
        *protocol = protocolEnum;
    }

    return srfid_result;
}

Set Inventory Protocol


-(SRFID_RESULT)setReaderInventoryProtocol:(SRFID_ENUM_INVENTORY_PROTOCOL)protocol aStatusMessage:(NSString**)statusMessage {

    SRFID_RESULT srfid_result = SRFID_RESULT_FAILURE;
    srfid_result = [apiInstance setInventoryprotocol:readerID protocol:protocol statusMessage:statusMessage];
    return srfid_result;

}

Pass one of the values listed above, for example:


NSString *statusMessage = nil;
SRFID_RESULT result = [self setReaderInventoryProtocol:GEN2X aStatusMessage:&statusMessage];