Profiles Tutorial

RFID SDK for Android 2.0.2.94

Applicable Devices : FX7500 and FX9600.

Overview

This Tutorial provides a walk-through of the steps to get Profile details using RFID3 API

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

Profiles tutorial is for get the profile list, set active profile, delete profile, export to reader and import from reader.

Setting it up

The following are the steps to get the profile details.

  • Create Reader Management Object
  • Create a LoginInfo object and Login to the Reader.
  • Create ProfileInfo Objct for storing profile details.
  • Perform profile api operations.

Creating a ReaderManagement object.


// create and initialize the Reader Management object.
    ReaderManagement readerManagement = new ReaderManagement(); 
                                                                                                      
                                                

Creating a LoginInfo object and perform login operation.


//Creating a LoginInfo object and perform login operation.
    LoginInfo loginInfo = new LoginInfo("hostName", "userName", "password", SECURE_MODE.HTTP, false);
    try {
            readerManagement.login(loginInfo,READER_TYPE.FX);
        } catch (InvalidUsageException e) {
            e.printStackTrace();
        } catch (OperationFailureException e) {
           e.printStackTrace();
        }

Performing operation

Get Profile List.


//  Get Profile List.
    try {
        ProfileInfo profileInfo = readerManagement.getProfileList();
    } catch (InvalidUsageException e) {
        e.printStackTrace();
    } catch (OperationFailureException e) {
        e.printStackTrace();
    }

Set Active Profile.


//  Set Active Profile.
    try {
        ProfileInfo profileInfo = readerManagement.getProfileList();
        for(int i =0; i

Delete Profile.


//  Delete Profile.
    try {
        ProfileInfo profileInfo = readerManagement.getProfileList();
        for(int i =0; i

Export Profile from Reader.


//  Export Profile from Reader.
LoginInfo loginInfo = new LoginInfo("hostName", "userName", "password", SECURE_MODE.HTTPS, true);
try {
        readerManagement.login(loginInfo,READER_TYPE.FX);
    } catch (InvalidUsageException e) {
        e.printStackTrace();
    } catch (OperationFailureException e) {
        e.printStackTrace();
    }
                                            

Import Profile to Reader.


//  Import Profile to Reader.
try {
    readerManagement.logout();
} catch (InvalidUsageException e) {
    e.printStackTrace();
} catch (OperationFailureException e) {
    e.printStackTrace();
}
                                        

Closer look

  • hostName i.e. IP of the reader.
  • userName i.e. user name of the reader.
  • password i.e. password of the reader.
ZEBRA and the stylized Zebra head are trademarks of Zebra Technologies Corporation, registered in many jurisdictions worldwide. All other trademarks are the property of their respective owners. ©2022 Zebra Technologies Corporation and/or its affiliates. All rights reserved. Terms & Conditions