RFIDManager¶
getInstance¶
Obtains an instance object of RFIDManager.
public static RFIDManager getInstance()
Return Value¶
Name |
Type |
Description |
`` |
RFIDManager |
Instance object of the RFIDManager class |
Sample Code¶
RFIDManager rfidManager = RFIDManager.getInstance();
initialize¶
Initializes the RFIDManager.
public void initialize()
Sample Code¶
RFIDManager.getInstance().initialize();
setCallback¶
Sets the callback RFIDManagerCallback.
public void setCallback(RFIDManagerCallback callback)
Parameters¶
Name |
Type |
Description |
|
RFIDManagerCallback |
Instance object of the RFIDManagerCallback class |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setCallback(this);
setMaxTagValue¶
Sets the maximum number of RF tags readable in a single inventory.
public void setMaxTagValue(@IntRange(from = 0, to = 0xFF)int value)
Parameters¶
Name |
Type |
Description |
|
int |
Maximum number of RF tags readable in a single inventory |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setMaxTagValue(10);
getMaxTagValue¶
Retrieves the maximum number of RF tags readable in a single inventory.
public int getMaxTagValue()
Return Value¶
Type |
Description |
int |
Maximum number of RF tags readable in a single inventory |
Sample Code¶
int maxTag = AsReaderSDK.getInstance().getRFIDManager().getMaxTagValue();
setMaxTimeValue¶
Sets the maximum read time for a single inventory.
public void setMaxTimeValue(@IntRange(from = 0, to = 0xFF)int value)
Parameters¶
Name |
Type |
Description |
value |
int |
Maximum read time for a single inventory |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setMaxTimeValue(10);
getMaxTimeValue¶
Retrieves the maximum read time for a single inventory.
public int getMaxTimeValue()
Return Value¶
Type |
Description |
int |
Maximum read time for a single inventory |
Sample Code¶
int maxTime = AsReaderSDK.getInstance().getRFIDManager().getMaxTimeValue();
setRepeatCycleValue¶
Sets the number of repeated reads in a single inventory.
public void setRepeatCycleValue(@IntRange(from = 0, to = 0xFFFF)int value)
Parameters¶
Name |
Type |
Description |
value |
int |
Number of repeated reads in a single inventory |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setRepeatCycleValue(0);
getRepeatCycleValue¶
Retrieves the number of repeated reads in a single inventory.
public int getRepeatCycleValue()
Return Value¶
Type |
Description |
int |
Number of repeated reads in a single inventory |
Sample Code¶
int repeatCycle = AsReaderSDK.getInstance().getRFIDManager().getRepeatCycleValue();
setRSSIEnable¶
Sets whether to include RSSI information.
public void setRSSIEnable(boolean enable)
Parameters¶
Name |
Type |
Description |
|
boolean |
true: include |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setRSSIEnable(true);
getRSSIEnable¶
Retrieves whether RSSI information is included.
public boolean getRSSIEnable()
Return Value¶
Type |
Description |
boolean |
true: included |
Sample Code¶
boolean status = AsReaderSDK.getInstance().getRFIDManager().getRSSIEnable();
startInventory¶
Starts inventory. After executing this method, inventory data is received in the callback onTagReceived, and the result of auto-finish is received in onAutoInventoryFinished.
public void startInventory(@IntRange(from = 0, to = 0xFF) int maxTags,
@IntRange(from = 0, to = 0xFF) int maxTime,
@IntRange(from = 0, to = 0xFFFF) int repeatCycle)
Parameters¶
Name |
Type |
Description |
|
int |
Maximum number of RF tags to read |
|
int |
Maximum read time |
|
int |
Number of repeated reads |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().startInventory(0, 0, 0);
startInventoryRSSI¶
Starts inventory including RSSI values. After executing this method, inventory data is received in the callback onTagWithRssiReceived.
public void startInventoryRSSI(@IntRange(from = 0, to = 0xFF) int maxTags,
@IntRange(from = 0, to = 0xFF) int maxTime,
@IntRange(from = 0, to = 0xFFFF) int repeatCycle)
Parameters¶
Name |
Type |
Description |
|
int |
Maximum number of RF tags to read |
|
int |
Maximum read time |
|
int |
Number of repeated reads |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().startInventoryRSSI(0, 0, 0);
startInventoryTagID¶
Starts inventory including TID values. After executing this method, inventory data is received in the callback onTagWithTidReceived.
public void startInventoryTagID(@IntRange(from = 0, to = 0xFF) int maxTags,
@IntRange(from = 0, to = 0xFF) int maxTime,
@IntRange(from = 0, to = 0xFFFF) int repeatCycle)
Parameters¶
Name |
Type |
Description |
|
int |
Maximum number of RF tags to read |
|
int |
Maximum read time |
|
int |
Number of repeated reads |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().startInventoryTagID(0, 0, 0);
startRFMDecode¶
Starts inventory for temperature and humidity RF tags. After executing this method, temperature and humidity data is received in the callback onPcEpcSensorDataReceived. (Specific to ASR-A3xD)
public void startRFMDecode(@IntRange(from = 0, to = 0xFF) int codeType,
@IntRange(from = 0, to = 0xFF) int maxTags,
@IntRange(from = 0, to = 0xFF) int maxTime,
@IntRange(from = 0, to = 0xFFFF) int repeatCycle)
Parameters¶
Name |
Type |
Description |
|
int |
Sensor type of the tag (0x02: Humidity, 0x03: Temperature) |
|
int |
Maximum number of RF tags to read |
|
int |
Maximum read time |
|
int |
Number of repeated reads |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().startRFMDecode(0x02, 0, 0, 0);
stopDecode¶
Stops inventory.
public void stopDecode()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().stopDecode();
setRegion¶
Sets the AsReader region. After executing this method, the region setting result is received in the callback didReceiveRegion. (Specific to ASR-A3xD)
public void setRegion(int region)
Parameters¶
Name |
Type |
Description |
|
int |
KOREA (0x11), USA Wide (0x21), USA Narrow (0x22), EUROPE (0x31), JAPAN (0x41), CHINA (0x51),(0x52), BRAZIL (0x61),(0x62), AU HK (0x71) |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setRegion(0x11);
getRegion¶
Retrieves the AsReader region. After executing this method, the region is received in the callback onRegionReceived.
public void getRegion()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getRegion();
setSmartHopping¶
Sets the hopping mode. After executing this method, the result of the hopping mode setting is received in the callback didSetSmartMode. (Specific to ASR-A3xD)
public void setSmartHopping(boolean isOn)
Parameters¶
Name |
Type |
Description |
|
boolean |
true: Smart hopping mode |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setSmartHopping(true);
getFrequencyHoppingMode¶
Retrieves the frequency hopping mode. After calling this method, the hopping mode is received in the callback method onReceiveSmartMode. (ASR-A3xD only)
public void getFrequencyHoppingMode()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getFrequencyHoppingMode();
setOptimumFrequencyHoppingTable¶
Sets the frequency hopping table. After calling this method, the result is received in the callback method didSetOptiFreqHPTable. (ASR-A3xD only)
public void setOptimumFrequencyHoppingTable()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setOptimumFrequencyHoppingTable();
getFrequencyHoppingTable¶
Retrieves the frequency hopping table. After calling this method, the table is received in the callback method onGetFrequencyHoppingTableSuccess. (ASR-A3xD only)
public void getFrequencyHoppingTable()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getFrequencyHoppingTable();
setChannel¶
Sets the channel. After calling this method, the result is received in the callback method onSetChannelSuccess. (ASR-A3xD only)
Parameters¶
Parameter |
Type |
Description |
num |
int |
Channel number |
offset |
int |
Channel offset |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setChannel(0, 0);
getChannel¶
Retrieves the channel. After calling this method, the channel is received in the callback method onChannelReceived. (ASR-A3xD only)
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getChannel();
setSession¶
Sets the session. After calling this method, the result is received in the callback method onSetSessionSuccess.
public void setSession(@IntRange(from = 0, to = 4) int session)
Parameters¶
Parameter |
Type |
Description |
session |
int |
S0:0, S1:1, S2:2, S3:3 |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setSession(S0, 0);
getSession¶
Retrieves the session. After calling this method, the session is received in the callback method onSessionReceived.
public void getSession()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getSession();
setAntiCollisionMode¶
Sets the anti-collision algorithm. After calling this method, the result is received in the callback method onSetAntiCollisionModeSuccess. (ASR-A3xD only)
public void setAntiCollisionMode(@IntRange(from = 0, to = 0xFF) int mode, @IntRange(from = 0, to = 0xFF) int start, @IntRange(from = 0, to = 0xFF) int max, @IntRange(from = 0, to = 0xFF) int min, @IntRange(from = 0, to = 0xFF) int counter)
Parameters¶
Parameter |
Type |
Description |
mode |
int |
Anti-collision mode: Fixed Q (0x00), Dynamic Q (0x01) |
start |
int |
Q start position |
max |
int |
Maximum Q value |
min |
int |
Minimum Q value |
counter |
int |
Counter |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setAntiCollisionMode(0x00, 0, 0, 0, 1);
getAntiCollisionMode¶
Retrieves the anti-collision algorithm. After calling this method, the mode is received in the callback method onReceiveAntimode. (ASR-A3xD only)
public void getAntiCollisionMode()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getAntiCollisionMode();
setFhLbtParam¶
Sets the FH and LBT parameters. After calling this method, the result is received in the callback method onSetFhLbtParamSuccess. (ASR-A3xD only)
public void setFhLbtParam(@IntRange(from = 0, to = 0xFFFF) int readTime, @IntRange(from = 0, to = 0xFFFF) int idleTime, @IntRange(from = 0, to = 0xFFFF) int senseTime, @IntRange(from = 0, to = 0xFFFF) int rfLevel, @IntRange(from = 0, to = 0xFF) int fhMode, @IntRange(from = 0, to = 0xFF) int lbtMode, @IntRange(from = 0, to = 0xFF) int cwMode)
Parameters¶
Parameter |
Type |
Description |
readTime |
int |
Read time |
idleTime |
int |
Idle time |
senseTime |
int |
Carrier sense time |
rfLevel |
int |
Target frequency level |
fhMode |
int |
On (>=0x01) / Off (0x00) |
lbtMode |
int |
On (>=0x01) / Off (0x00) |
cwMode |
int |
On (0x01) / Off (0x00) |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setFhLbtParam(0, 0, 0, 0, 0x01, 0x01, 0x01);
getFhLbtParam¶
Retrieves the FH and LBT parameters. After executing this method, the FH and LBT parameters are received via the callback method onFhLbtReceived. (Exclusive to ASR-A3xD)
public void getFhLbtParam()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getFhLbtParam();
setOutputPowerLevel¶
Sets the power level. After executing this method, the result of setting the power level is received via the callback method onSetOutputPowerLevelSuccess.
public void setOutputPowerLevel(@IntRange(from =0, to = 250) int level)
Parameters¶
Name |
Type |
Description |
|
int |
Power level |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setOutputPowerLevel(25);
getOutputPowerLevel¶
Retrieves the current power level and the maximum and minimum configurable power levels. After executing this method, these values are received via the callback method onTxPowerLevelReceived.
public void getOutputPowerLevel()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getOutputPowerLevel();
setModulation¶
Sets the modulation mode. After executing this method, the result is received via the callback method didSetModulation.
public void setModulation(String mode)
Parameters¶
Name |
Type |
Description |
mode |
String |
Debug mode |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setModulation("160KHz, FM0, DR=64/3");
getModulation¶
Retrieves the current modulation mode. After executing this method, the mode is received via the callback method onModulationReceived.
public void getModulation()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getModulation();
setTriggerStopCondition¶
Sets the trigger stop conditions. After executing this method, the result is received via the callback method onSetTriggerStopConditionSuccess.
public void setTriggerStopCondition(@IntRange(from = 0, to = 0xFF) int maxTags,
@IntRange(from = 0, to = 0xFF) int maxTime, @IntRange(from = 0, to = 0xFFFF) int repeatCycle)
Parameters¶
Name |
Type |
Description |
maxTags |
int |
Maximum number of RF tags to read |
maxTime |
int |
Maximum read time |
repeatCycle |
int |
Number of repeated reads |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setTriggerStopCondition(0, 0, 0);
readTagMemory¶
Reads data from a specified memory bank of a target RF tag. After executing this method, the read data is received via the callback methods onTagMemoryReceived and onTagMemoryLongReceived.
public void readTagMemory(long password, String targetEPC, RFIDConst.MemoryBank memoryBank, RFIDConst.ReadMemoryType readType)
Parameters¶
Name |
Type |
Description |
password |
long |
Access password |
targetEPC |
String |
Target EPC data |
memoryBank |
RFIDConst.MemoryBank |
Target memory bank |
readType |
RFIDConst.ReadMemoryType |
Type of memory read |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().readTagMemory(12345678, "0123456789",
RFIDConst.MemoryBank.RESERVED, RFIDConst.ReadMemoryType.NORMAL);
writeTagMemory¶
Writes data to a specified memory bank of a target RF tag. After executing this method, the result is received via the callback method onWriteToTagMemorySuccess.
public void writeTagMemory(long password, String targetEPC, RFIDConst.MemoryBank memoryBank, RFIDConst.WriteMemoryType writeType, byte[] writeData)
Parameters¶
Name |
Type |
Description |
password |
long |
Access password |
targetEPC |
String |
Target EPC data |
memoryBank |
RFIDConst.MemoryBank |
Target memory bank |
writeType |
RFIDConst.WriteMemoryType |
Type of write |
writeData |
byte[] |
Data to write |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().writeTagMemory(12345678, "0123456789",
RFIDConst.MemoryBank.RESERVED, RFIDConst.WriteMemoryType.NORMAL,
writeData);
killTag¶
Kills an RF tag. After executing this method, the result is received via the callback method onKillTagMemorySuccess.
public void killTag(long password, String targetEPC)
Parameters¶
Name |
Type |
Description |
password |
long |
Password |
targetEPC |
String |
Target EPC data |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().killTag(12345678, "0123456789");
lockTagMemory¶
Locks a specified memory bank of a target RF tag. After executing this method, the result is received via the callback method onLockTagMemorySuccess.
public void lockTagMemory(long password, String targetEPC, @IntRange(from = 0, to = 0x0FFFFF) int lockData)
Parameters¶
Name |
Type |
Description |
password |
long |
Password |
targetEPC |
String |
Target EPC data |
lockData |
int |
24-bit data required; pad with leading zeros if less than 24 bits |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().lockTagMemory(12345678, "0123456789", 0);
updateRegistry¶
Updates the registry settings (saved to the AsReader flash memory). After executing this method, the result is received via the callback method didUpdateRegistry. (Exclusive to ASR-A3xD)
public void updateRegistry()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().updateRegistry();
setContinuousMode¶
Sets whether AsReader performs continuous scanning. After executing this method, the result is received via the callback method didSetContinuousMode.
public void setContinuousMode(boolean isOn)
Parameters¶
Name |
Type |
Description |
isOn |
boolean |
true: continuous scan |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setContinuousMode(true);
getContinuousMode¶
Retrieves whether AsReader is in continuous scan mode. After executing this method, the result is received via the callback method onReceiveContinuousMode.
public void getContinuousMode()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getContinuousMode();
setAutoOffTime¶
Sets the AsReader auto-off time. After executing this method, the result is received via the callback method didSetAutoOffTime.
public void setAutoOffTime(int time)
Parameters¶
Name |
Type |
Description |
time |
int |
Auto-off time (0–1800s), 0: disables auto-off |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setAutoOffTime(10);
getAutoOffTime¶
Retrieves the AsReader auto-off time. After executing this method, the value is received via the callback method onReceiveAutoOffTime.
public void getAutoOffTime()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getAutoOffTime();
setSessionFlag¶
Sets the SessionFlag. After executing this method, the result is received via the callback method didSetSessionFlag.
public void setSessionFlag(int sessionFlag)
Parameters¶
Name |
Type |
Description |
sessionFlag |
int |
SessionFlag |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setSessionFlag(0);
getSessionFlag¶
Retrieves the SessionFlag. After executing this method, the value is received via the callback method onReceiveSessionFlag.
public void getSessionFlag()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getSessionFlag();
setQValue¶
Sets the Q value. After executing this method, the result is received via the callback method didSetQValue.
public void setQValue(int value)
Parameters¶
Name |
Type |
Description |
value |
int |
Q value |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setQValue(1);
getQValue¶
Retrieves the Q value. After executing this method, the value is received via the callback method onReceiveQValue.
public void getQValue()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getQValue();
setHidMode¶
Sets HID mode. After executing this method, the result is received via the callback method didSetHidMode.
public void setHidMode(boolean hidMode)
Parameters¶
Name |
Type |
Description |
hidMode |
boolean |
true: HID mode |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setHidMode(true);
getHidMode¶
Retrieves whether HID mode is active. After executing this method, the result is received via the callback method onReceiveHidMode.
public void getHidMode()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getHidMode();
setDutyRatio¶
Sets the duty ratio (0–15). 0: full load, 1: 5%, 2: 10%, …, 15: 90%. Example: 5% means stopping for 5% of the time. After executing this method, the result is received via the callback method didSetDutyRatio.
public void setDutyRatio(int dutyRatio)
Parameters¶
Name |
Type |
Description |
dutyRatio |
int |
Duty ratio |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setDutyRatio(1);
getDutyRatio¶
Retrieves the duty ratio. After executing this method, the value is received via the callback method onReceiveDutyRatio.
public void getDutyRatio()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getDutyRatio();
setDutyRatioBaseTime¶
Sets the base time for the duty ratio (0–65000ms). After executing this method, the result is received via the callback method didSetDutyRatioBaseTime.
public void setDutyRatioBaseTime(int dutyRatioBaseTime)
Parameters¶
Name |
Type |
Description |
dutyRatioBaseTime |
int |
Duty ratio base time |
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().setDutyRatioBaseTime(1);
getDutyRatioBaseTime¶
Retrieves the base time for the duty ratio. After executing this method, the value is received via the callback method onReceiveDutyRatioBaseTime.
public void getDutyRatioBaseTime()
Sample Code¶
AsReaderSDK.getInstance().getRFIDManager().getDutyRatioBaseTime();