Trigger Mode switching Configurations Tutorial

RFID SDK for Android 2.0.1.15

Overview

This Tutorial provides a walk-through of the steps to perform Trigger Mode switching configuration using RFID API3

Create The Project

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

Details

Trigger Mode switching API is used to move reader trigger and functionality between RFID and BARCODE

In case of RFD8500 this API works same as physical mode button thus giving software control of modes

Setting it up

First parameter is mode enum value and second parameter indicates whether SDK should take care of scanner plugin. i.e. when mode is ENUM_TRIGGER_MODE.RFID_MODE and second parameter is true then SDK puts reader trigger in RFID mode as well executes code to disable scanner plugin on host device.


private void setTriggerMode() {
    try {
        reader.Config.setTriggerMode(ENUM_TRIGGER_MODE.RFID_MODE, false);
    } catch (InvalidUsageException e) {
        e.printStackTrace();
    } catch (OperationFailureException e) {
        e.printStackTrace();
    }
}
Important note: either use RFID SDK second parameter to control scanner plugin for host device or below given method but not both

Scanner Plugin

Application can control scanner functionality using DataWedge APIs

It is recommended that Application handles scanner plugin enable\disable in pause and resume activity respectively to avoid cross triggering and better control

Refer DataWedge documentation at following links

Closer look

  • Trigger Mode ENUM_TRIGGER_MODE.RFID_MODE moves Reader gun trigger to work for RFID functionality
  • Trigger Mode ENUM_TRIGGER_MODE.BARCODE_MODE moves Reader gun trigger to work for Barcode scanning functionality