RFIDManagerCallback¶
didUpdateRegistry¶
Receives the result of the registry update setting. When calling updateRegistry, this callback method receives the result of the registry update setting.
default void didUpdateRegistry(final int state);
Parameters¶
Name |
Type |
Description |
state |
int |
0: Data successfully saved to the registry |
Sample Code¶
@Override
public void didUpdateRegistry(int state) {
}
onModulationReceived¶
Receives the debug mode. When calling getModulation, this callback method receives the debug mode.
default void onModulationReceived(String modulationMode);
Parameters¶
Name |
Type |
Description |
modulationMode |
String |
Debug mode |
Sample Code¶
@Override
public void onModulationReceived(String modulationMode) {
}
didSetModulation¶
Receives the result of setting the debug mode. When calling setModulation, this callback method receives the result of setting the debug mode.
default void didSetModulation(final int state);
Parameters¶
Name |
Type |
Description |
state |
int |
0: Success |
Sample Code¶
@Override
public void didSetModulation(int state) {
}
onTxPowerLevelReceived¶
Receives the power level and the configurable minimum and maximum power levels. When calling getOutputPowerLevel, this callback method receives the current, minimum, and maximum power levels.
default void onTxPowerLevelReceived(int power, int minPower, int maxPower);
Parameters¶
Name |
Type |
Description |
power |
int |
Current power level |
minPower |
int |
Minimum power level |
maxPower |
int |
Maximum power level |
Sample Code¶
@Override
public void onTxPowerLevelReceived(int power, int minPower, int maxPower) {
}
onFhLbtReceived¶
Receives FH and LBT parameters. When calling getFhLbtParam, this callback method receives FH and LBT parameters.
default void onFhLbtReceived(int onTime, int offTime, int senseTime, int lbtLevel, int fhEnable, int lbtEnable, int cwEnable);
Parameters¶
Name |
Type |
Description |
onTime |
int |
Reading time |
offTime |
int |
Idle time |
senseTime |
int |
Carrier sense time |
lbtLevel |
int |
Target frequency level |
fhEnable |
int |
On (>=0x01) / Off (0x00) |
lbtEnable |
int |
On (>=0x01) / Off (0x00) |
cwEnable |
int |
On (0x01) / Off (0x00) |
Sample Code¶
@Override
public void onFhLbtReceived(int onTime, int offTime, int senseTime, int lbtLevel, int fhEnable, int lbtEnable, int cwEnable) {
}
onReceiveAntimode¶
Receives the anti-collision algorithm. When calling getAntiCollisionMode, this callback method receives the anti-collision algorithm.
default void onReceiveAntimode(final int mode, final int qStart, int qMax, int qMin, int counter);
Parameters¶
Name |
Type |
Description |
mode |
int |
Anti-collision: Fixed Q (0x00), Dynamic Q (0x01) |
qStart |
int |
Q start position |
qMax |
int |
Maximum Q |
qMin |
int |
Minimum Q |
counter |
int |
Counter |
Sample Code¶
@Override
public void onReceiveAntimode(int mode, int qStart, int qMax, int qMin, int counter) {
}
onSessionReceived¶
Receives the session. When calling getSession, this callback method receives the session.
default void onSessionReceived(final int session);
Parameters¶
Name |
Type |
Description |
session |
int |
S0:0, S1:1, S2:2, S3:3 |
Sample Code¶
@Override
public void onSessionReceived(int ses) {
}
onChannelReceived¶
Receives the channel. When calling getChannel, this callback method receives the channel.
default void onChannelReceived(final int channel, final int channelOffset);
Parameters¶
Name |
Type |
Description |
channel |
int |
Channel number |
channelOffset |
int |
Channel offset |
Sample Code¶
@Override
public void onChannelReceived(int channel, int channelOffset) {
}
onRegionReceived¶
Receives the AsReader region. When calling getRegion, this callback method receives the AsReader region.
default void onRegionReceived(final int region);
Parameters¶
Name |
Type |
Description |
region |
int |
AsReader region |
Sample Code¶
@Override
public void onRegionReceived(int region) {
}
didReceiveRegion¶
Receives the result of setting the AsReader region. When calling setRegion, this callback receives the result of the region setting.
default void didReceiveRegion(final int state);
Parameters¶
Name |
Type |
Description |
state |
int |
0: Success |
Sample Code¶
@Override
public void didReceiveRegion(int state) {
}
onReceiveSmartMode¶
Receives the hopping mode
When calling getFrequencyHoppingMode, this callback receives the hopping mode.
default void onReceiveSmartMode(final int mode);
Parameters¶
Name |
Type |
Description |
mode |
int |
0x00: Normal mode |
Sample Code¶
@Override
public void onReceiveSmartMode(int state) {
}
didSetSmartMode¶
Receives the result of setting the hopping mode
When calling setSmartHopping, this callback receives the result of setting the hopping mode.
default void didSetSmartMode(final int state);
Parameters¶
Name |
Type |
Description |
state |
int |
0: Success |
Sample Code¶
@Override
public void didSetSmartMode(int state) {
}
didSetOptiFreqHPTable¶
Receives the result of setting the hopping table
When calling setOptimumFrequencyHoppingTable, this callback receives the result of setting the hopping table.
default void didSetOptiFreqHPTable(final int status);
Parameters¶
Name |
Type |
Description |
status |
int |
0: Success |
Sample Code¶
@Override
public void didSetOptiFreqHPTable(int status) {
}
onTagReceived¶
Receives inventory data. When calling startInventory, this callback receives the inventory data.
default void onTagReceived(final int[] dest);
Parameters¶
Name |
Type |
Description |
dest |
int[] |
PC + EPC data |
Sample Code¶
@Override
public void onTagReceived(int[] dest) {
}
onTagWithTidReceived¶
Receives inventory data with TID values.
When calling startInventoryTagID, this callback receives the inventory data.
default void onTagWithTidReceived(final int[] pcEpc, final int[] tid);
Parameters¶
Name |
Type |
Description |
pcEpc |
int[] |
PC + EPC data |
tid |
int[] |
TID data |
Sample Code¶
@Override
public void onTagWithTidReceived(int[] pcEpc, int[] tid) {
}
onTagWithRssiReceived¶
Receives inventory data with RSSI values. When calling startInventoryRSSI, this callback receives the inventory data.
default void onTagWithRssiReceived(final int[] pcEpc, final int rssi);
Parameters¶
Name |
Type |
Description |
pcEpc |
int[] |
PC + EPC data |
rssi |
int |
RSSI status |
Sample Code¶
@Override
public void onTagWithRssiReceived(int[] pcEpc, int rssi) {
}
onTagMemoryReceived¶
Receives read tag data. When calling readTagMemory, this callback receives the read tag data.
default void onTagMemoryReceived(final int[] data);
Parameters¶
Name |
Type |
Description |
data |
int[] |
Tag data |
Sample Code¶
@Override
public void onTagMemoryReceived(int[] data) {
}
onTagMemoryLongReceived¶
Receives read tag data
When calling readTagMemory, this callback receives the read tag data.
default void onTagMemoryLongReceived(final int[] dest);
Parameters¶
Name |
Type |
Description |
dest |
int[] |
Tag data |
Sample Code¶
@Override
public void onTagMemoryLongReceived(int[] dest) {
}
onPcEpcSensorDataReceived¶
Receives inventory data of temperature/humidity RF tags
When calling startRFMDecode, this callback receives inventory data of temperature/humidity RF tags.
default void onPcEpcSensorDataReceived(int[] pcEpc, int[] sensorData);
Parameters¶
Name |
Type |
Description |
pcEpc |
int[] |
PC + EPC data |
sensorData |
int[] |
Sensor data |
Sample Code¶
@Override
public void onPcEpcSensorDataReceived(int[] pcEpc, int[] sensorData) {
}
onSetChannelSuccess¶
Receives the result of channel setting
When calling setChannel, this callback receives the result of setting the channel.
default void onSetChannelSuccess();
Sample Code¶
@Override
public void onSetChannelSuccess() {
}
onSetFhLbtParamSuccess¶
Receives the result of setting FH and LBT parameters
When calling setFhLbtParam, this callback receives the result of setting FH and LBT parameters.
default void onSetFhLbtParamSuccess();
Sample Code¶
@Override
public void onSetFhLbtParamSuccess() {
}
onLockTagMemorySuccess¶
Receives the result of locking an RF tag
When calling lockTagMemory, this callback receives the result of locking an RF tag.
default void onLockTagMemorySuccess();
Sample Code¶
@Override
public void onLockTagMemorySuccess() {
}
onWriteToTagMemorySuccess¶
Receives the result of writing data to an RF tag
When calling writeTagMemory, this callback receives the result of writing data to an RF tag.
default void onWriteToTagMemorySuccess();
Sample Code¶
@Override
public void onWriteToTagMemorySuccess() {
}
onKillTagMemorySuccess¶
Receives the result of killing an RF tag
When calling killTag, this callback receives the result of killing an RF tag.
default void onKillTagMemorySuccess();
Sample Code¶
@Override
public void onKillTagMemorySuccess() {
}
onSetSessionSuccess¶
Receives the result of setting a session
When calling setSession, this callback receives the result of setting a session.
default void onSetSessionSuccess();
Sample Code¶
@Override
public void onSetSessionSuccess() {
}
onGetFrequencyHoppingTableSuccess¶
Receives the frequency hopping table
When calling getFrequencyHoppingTable, this callback receives the frequency hopping table.
default void onGetFrequencyHoppingTableSuccess(int data[]);
Parameters¶
Name |
Type |
Description |
data[] |
int |
Frequency hopping table |
Sample Code¶
@Override
public void onGetFrequencyHoppingTableSuccess(int[] data) {
}
onSetOutputPowerLevelSuccess¶
Receives the result of setting the power level When calling OutputPowerLevel, this callback receives the result of setting the power level.
default void onSetOutputPowerLevelSuccess();
Sample Code¶
@Override
public void onSetOutputPowerLevelSuccess() {
}
onSetAntiCollisionModeSuccess¶
Receives the result of setting the anti-collision algorithm
When calling setAntiCollisionMode, this callback receives the result of setting the anti-collision algorithm.
default void onSetAntiCollisionModeSuccess();
Sample Code¶
@Override
public void onSetAntiCollisionModeSuccess() {
}
onSetTriggerStopConditionSuccess¶
Receives the result of setting trigger stop conditions
When calling setTriggerStopCondition, this callback receives the result of setting trigger stop conditions.
default void onSetTriggerStopConditionSuccess();
Sample Code¶
@Override
public void onSetTriggerStopConditionSuccess() {
}
onAutoInventoryFinished¶
Receives the result of automatic inventory completion When calling startInventory, this callback receives the result of automatic inventory completion.
default void onAutoInventoryFinished();
Sample Code¶
@Override
public void onAutoInventoryFinished() {
}
onRFIDManagerError¶
Called when an RFID-related configuration error occurs
void onRFIDManagerError(String message);
Parameters¶
Name |
Type |
Description |
message |
String |
Error message |
Sample Code¶
@Override
public void onRFIDManagerError(String message) {
}
didSetContinuousMode¶
Receives the result of setting continuous scan mode
When calling setContinuousMode, this callback receives the result of setting continuous scan mode.
default void didSetContinuousMode(int status);
Parameters¶
Name |
Type |
Description |
status |
int |
0: Success |
Sample Code¶
@Override
public void didSetContinuousMode(int status) {
}
onReceiveContinuousMode¶
Receives whether continuous scan mode is active
When calling getContinuousMode, this callback receives the current continuous scan mode status.
default void onReceiveContinuousMode(boolean status);
Parameters¶
Name |
Type |
Description |
status |
boolean |
true: Continuous scan |
Sample Code¶
@Override
public void onReceiveContinuousMode(boolean status) {
}
didSetAutoOffTime¶
Receives the result of setting AsReader auto-off time
When calling setAutoOffTime, this callback receives the result of setting auto-off time.
default void didSetAutoOffTime(int status);
Parameters¶
Name |
Type |
Description |
status |
int |
0: Success |
Sample Code¶
@Override
public void didSetAutoOffTime(int status) {
}
onReceiveAutoOffTime¶
Receives the AsReader auto-off time
When calling getAutoOffTime, this callback receives the AsReader auto-off time.
default void onReceiveAutoOffTime(int time);
Parameters¶
Name |
Type |
Description |
time |
int |
AsReader auto-off time |
Sample Code¶
@Override
public void onReceiveAutoOffTime(int time) {
}
didSetSessionFlag¶
Receives the result of setting SessionFlag
When calling setSessionFlag, this callback receives the result of setting SessionFlag.
default void didSetSessionFlag(int status);
Parameters¶
Name |
Type |
Description |
status |
int |
0: Success |
Sample Code¶
@Override
public void didSetSessionFlag(int status) {
}
onReceiveSessionFlag¶
Receives AsReader SessionFlag
When calling getSessionFlag, this callback receives the AsReader SessionFlag.
default void onReceiveSessionFlag(int value);
Parameters¶
Name |
Type |
Description |
value |
int |
SessionFlag |
Sample Code¶
@Override
public void onReceiveSessionFlag(int value) {
}
didSetQValue¶
Receives the result of setting Q value
When calling setQValue, this callback receives the result of setting Q value.
default void didSetQValue(int status);
Parameters¶
Name |
Type |
Description |
status |
int |
0: Success |
Sample Code¶
@Override
public void didSetQValue(int status) {
}
onReceiveQValue¶
Receives AsReader Q value
When calling getQValue, this callback receives the AsReader Q value.
default void onReceiveQValue(int value);
Parameters¶
Name |
Type |
Description |
value |
int |
Q value |
Sample Code¶
@Override
public void onReceiveQValue(int value) {
}
didSetHidMode¶
Receives the result of setting the AsReader HID mode.
When calling setHidMode, this callback receives the result of the HID mode setting.
default void didSetHidMode(int status);
Parameters¶
Name |
Type |
Description |
status |
int |
0: Success |
Sample Code¶
@Override
public void didSetHidMode(int status) {
}
onReceiveHidMode¶
Receives whether the AsReader is in HID mode.
When calling getHidMode, this callback receives whether the AsReader is in HID mode.
default void onReceiveHidMode(boolean value);
Parameters¶
Name |
Type |
Description |
value |
boolean |
true: HID mode |
Sample Code¶
@Override
public void onReceiveHidMode(boolean value) {
}
didSetDutyRatio¶
Receives the result of setting the AsReader duty ratio.
When calling setDutyRatio, this callback receives the result of the duty ratio setting.
default void didSetDutyRatio(int status);
Parameters¶
Name |
Type |
Description |
status |
int |
0: Success |
Sample Code¶
@Override
public void didSetDutyRatio(int status) {
}
onReceiveDutyRatio¶
Receives the AsReader duty ratio.
When calling getDutyRatio, this callback receives the AsReader duty ratio.
default void onReceiveDutyRatio(int value);
Parameters¶
Name |
Type |
Description |
value |
int |
Duty ratio |
Sample Code¶
@Override
public void onReceiveDutyRatio(int value) {
}
didSetDutyRatioBaseTime¶
Receives the result of setting the AsReader duty ratio base time.
When calling setDutyRatioBaseTime, this callback receives the result of the duty ratio base time setting.
default void didSetDutyRatioBaseTime(int status);
Parameters¶
Name |
Type |
Description |
status |
int |
0: Success |
Sample Code¶
@Override
public void didSetDutyRatioBaseTime(int status) {
}
onReceiveDutyRatioBaseTime¶
Receives the AsReader duty ratio base time.
When calling getDutyRatioBaseTime, this callback receives the AsReader duty ratio base time.
default void onReceiveDutyRatioBaseTime(int value);
Parameters¶
Name |
Type |
Description |
value |
int |
Duty ratio base time |
Sample Code¶
@Override
public void onReceiveDutyRatioBaseTime(int value) {
}