public abstract class StUhf
extends java.lang.Object
StUhf.Function
defines all the machine may support calls.
through getUhfInstance()
after gets StUhf
,can through getSupportedFunctions()
Get the machine can support the operation
, also can through isFunctionSupported(com.senter.support.openapi.StUhf.Function)
Check the specified operation is the current module support
Modifier and Type | Class and Description |
---|---|
static class |
StUhf.AccessPassword
Access password, consists of four bytes.
|
static class |
StUhf.Bank
Tags Bank, total four Bank,as below
StUhf.Bank.Reserved
StUhf.Bank.UII
StUhf.Bank.TID
StUhf.Bank.User |
static class |
StUhf.Frequency
Reader Frequency
|
static class |
StUhf.Function
Defines all possible functions after initialization is complete,
the specific implementation can return to their support functions
|
static class |
StUhf.InterrogatorModel
Enumerate the hardware models that are currently supported by the SDK
|
static class |
StUhf.InterrogatorModelA
operations of model A
|
static class |
StUhf.InterrogatorModelB
operations of model B
|
static class |
StUhf.InterrogatorModelC
operations of model C
|
static class |
StUhf.InterrogatorModelDs
operations about model D1 and D2
|
static class |
StUhf.InterrogatorModelF
operations of model F
|
static class |
StUhf.KillPassword
Inactivation of password
|
static class |
StUhf.LockParameter
Parameter object corresponding to the label Lock operation is performed.
|
static class |
StUhf.OnNewUiiInventoried
The label was found when the callback, use the card reader to inform the caller of the cycle count tags in settings.
|
static class |
StUhf.Password
pasword
|
static class |
StUhf.Q
The specified Q value when the anti-collision recognition
|
static class |
StUhf.Result
Some specific operation results
|
protected static class |
StUhf.StUhfHeritages |
static class |
StUhf.UID
UID
|
static class |
StUhf.UII
Tag’s UII is Composed of PC and EPC
|
static class |
StUhf.Version
The version information card reader, including the hardware and software version
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
mIsCrcEnabled |
protected boolean |
mIsCrcSupportable |
protected java.util.ArrayList<StUhf.Function> |
mSupportedFunctions |
Modifier | Constructor and Description |
---|---|
protected |
StUhf() |
Modifier and Type | Method and Description |
---|---|
protected void |
_throwUnsupportedFunctionException() |
boolean |
addFilter(int sIndex,
StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand sCommand)
Deprecated.
This method was deprecated,use getInterrogatorAs(InterrogatorModelB.class).addFilter() instead
|
java.lang.Boolean |
deleteFilterByIndex(int sIndex)
Deprecated.
This method was deprecated,use getInterrogatorAs(InterrogatorModelB.class).deleteFilterByIndex() insteed
|
java.lang.Boolean |
disableMaskSettings() |
boolean |
enterSleepMode()
Deprecated.
This method was deprecated,use getInterrogatorAs(InterrogatorModelB.class).enterSleepMode() insteed
|
StUhf.Result.EraseResult |
eraseDataByUii(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
byte length,
StUhf.UII uii)
The specified data erasing the specified tag
|
StUhf.Result.EraseResult |
eraseDataFromSingleTag(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
byte length)
Erase any tag data area
|
StUhf.Result.GetAccessPasswordResult |
getAccessPasswordFromSingleTag(StUhf.AccessPassword apwd)
get access password from any tag
|
StUhf.InterrogatorModelB.UmbSelectionRecord[] |
getFilterByIndex(int offset,
int length)
Deprecated.
This method was deprecated,use getInterrogatorAs(InterrogatorModelB.class).getFilterByIndex() insteed
|
StUhf.Frequency |
getFrequency()
Deprecated.
This method was deprecated,use getInterrogatorAs(InterrogatorModelB.class).getFrequency() insteed
|
<InterrogatorModelX> |
getInterrogatorAs(java.lang.Class<InterrogatorModelX> model) |
protected <InterrogatorModelX> |
getInterrogatorInterfaceAs(java.lang.Class<InterrogatorModelX> model) |
protected StUhf.InterrogatorModelA |
getInterrogatorInterfaceAsModelA() |
protected StUhf.InterrogatorModelB |
getInterrogatorInterfaceAsModelB() |
protected StUhf.InterrogatorModelC |
getInterrogatorInterfaceAsModelC() |
protected StUhf.InterrogatorModelDs.InterrogatorModelD1 |
getInterrogatorInterfaceAsModelD1() |
protected StUhf.InterrogatorModelDs.InterrogatorModelD2 |
getInterrogatorInterfaceAsModelD2() |
protected StUhf.InterrogatorModelF |
getInterrogatorInterfaceAsModelF() |
protected abstract java.util.Set<java.lang.Class<?>> |
getInterrogatorInterfaces() |
StUhf.InterrogatorModel |
getInterrogatorModel() |
StUhf.Result.GetKillPasswordResult |
getKillPasswordFromSingleTag(StUhf.AccessPassword apwd)
get kill password from any tag
|
static java.util.Set<StUhf.InterrogatorModel> |
getOptionalInterrogatorModel() |
java.lang.Integer |
getPower()
Gets the reader power
|
StUhf.Function[] |
getSupportedFunctions()
The machine can support the operation
|
static StUhf |
getUhfInstance()
Obtaining and matching of the current module StUhf.
|
static StUhf |
getUhfInstance(StUhf.InterrogatorModel interrogatorModel)
Obtaining and matching of the parameter module StUhf.
|
StUhf.Version |
getVersion()
Deprecated.
This method was deprecated,use getInterrogatorAs(InterrogatorModelB.class).getVersion() insteed
|
boolean |
init()
To initialize the objects, if no longer in use, please perform
uninit() |
StUhf.UII |
inventorySingleStep()
Check out a tag from the tag field.
|
java.lang.Boolean |
isCrcEnabled()
Gets the current module is on the CRC check
|
boolean |
isCrcSupportable()
View the current reader whether to support the CRC check
|
boolean |
isFunctionSupported(StUhf.Function function)
Check function is the current module support
|
boolean |
isReady()
Detection of reader current state
|
StUhf.Result.KillResult |
killSingleTag(StUhf.KillPassword killPwd)
Deprecated.
|
StUhf.Result.KillResult |
killSingleTagWithAccessPasswordAndKillPassword(StUhf.AccessPassword apwd,
StUhf.KillPassword kpwd)
kill any tag
|
StUhf.Result.KillResult |
killSingleTagWithKillPassword(StUhf.KillPassword killPwd)
Inactivation of either label
|
StUhf.Result.KillResult |
killTagByUii(StUhf.KillPassword killPwd,
StUhf.UII uii)
|
boolean |
killTagByUiiWithAccessPasswordAndKillPassword(StUhf.AccessPassword apwd,
StUhf.KillPassword kpwd,
StUhf.UII uii)
kill specified tag
|
StUhf.Result.KillResult |
killTagByUiiWithKillPassword(StUhf.KillPassword killPwd,
StUhf.UII uii)
Inactivation of the specified label
|
StUhf.Result.LockResult |
lockMemByUii(StUhf.AccessPassword apwd,
StUhf.LockParameter lockdata,
StUhf.UII uii)
Set lock fixed section of the specified label, this function can also be realized.
|
StUhf.Result.LockResult |
lockMemFromSingleTag(StUhf.AccessPassword apwd,
StUhf.LockParameter lockdata)
Set any label lock fixed section, this function can also be realized.
|
StUhf.Result.ReadResult |
readDataByUii(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
byte length,
StUhf.UII uii)
Reads the specified tag data
|
StUhf.Result.ReadResult |
readDataByUiiAfterIndex(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
StUhf.UII uii)
All data read from the specified position behind the specified label.
|
StUhf.Result.ReadResult |
readDataFromSingleTag(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
int length)
Read any tag data
|
StUhf.Result.ReadResult |
readDataFromSingleTagAfterIndex(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset)
All data read any specified position behind the label of the
|
java.lang.Boolean |
selectFilterByIndex(int sIndex,
int sNum)
Deprecated.
This method was deprecated,use getInterrogatorAs(InterrogatorModelB.class).selectFilterByIndex() insteed
|
StUhf.Result.SetAccessPasswordResult |
setAccessPasswordToSingleTag(StUhf.AccessPassword apwd,
StUhf.AccessPassword newApwd)
set access password to any tag
|
void |
setCrcEnabled(boolean enable)
Set in the interacting with a tag, whether to enable the CRC check
, if opened, parity error frames will be to determine the execution failed
|
boolean |
setFrequency(StUhf.Frequency frequency)
Deprecated.
This method was deprecated,use getInterrogatorAs(InterrogatorModelB.class).setFrequency() insteed
|
StUhf.Result.SetKillPasswordResult |
setKillPasswordToSingleTag(StUhf.AccessPassword apwd,
StUhf.KillPassword kpwd)
set kill password to any tag
|
boolean |
setPower(int power)
Set the reader power
|
boolean |
startInventorySingleTag(StUhf.OnNewUiiInventoried lisener)
Open the single label recognition cycle, in the method will in the internal opening process a loop to read, to stop this process, or to perform other specified, please perform stop instruction
If the current SELECT is specified, only the tags will be identified
|
boolean |
startInventoryWithAntiCollision(StUhf.Q startQ,
StUhf.OnNewUiiInventoried lisener)
Open the anti-collision recognition cycle, in the method will in the internal opening process a loop to read
, to stop this process, or to perform other specified, please perform stop instruction
|
boolean |
stopOperation()
To stop the operation, so that the reader to stop the ongoing operation.
|
void |
uninit()
To clean up the access to the object, open it after cleaning, please re-execution
init() |
StUhf.Result.WriteResult |
writeBlockDataByUii(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
byte[] data,
StUhf.UII uii)
Write data to assign a label to the specified location
|
StUhf.Result.WriteResult |
writeBlockDataToSingleTag(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
byte[] data)
Block data write any specified position of label
|
StUhf.Result.WriteResult |
writeWordDataByUii(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
byte[] data,
StUhf.UII uii)
Write the word data specify the location of the specified tag
|
StUhf.Result.WriteResult |
writeWordDataToSingleTag(StUhf.AccessPassword apwd,
StUhf.Bank bank,
int offset,
byte[] data)
Specify the location of the written word data either label
|
protected java.util.ArrayList<StUhf.Function> mSupportedFunctions
protected boolean mIsCrcEnabled
protected boolean mIsCrcSupportable
public static final StUhf getUhfInstance()
java.lang.InterruptedException
public static StUhf getUhfInstance(StUhf.InterrogatorModel interrogatorModel)
java.lang.InterruptedException
public static final java.util.Set<StUhf.InterrogatorModel> getOptionalInterrogatorModel()
public final StUhf.Function[] getSupportedFunctions()
public final boolean isFunctionSupported(StUhf.Function function)
public final boolean isCrcSupportable()
public final void setCrcEnabled(boolean enable)
enable
-
true:open;false:closejava.lang.IllegalStateException
-
If the module does not support CRC callspublic final java.lang.Boolean isCrcEnabled()
public boolean init()
uninit()
public void uninit()
init()
public boolean isReady()
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic java.lang.Integer getPower()
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic boolean setPower(int power)
power
-
power value,range [10,30]java.lang.IllegalStateException
-
This operation is not supported by the current module@Deprecated public StUhf.Frequency getFrequency()
java.lang.IllegalStateException
-
This operation is not supported by the current module@Deprecated public boolean setFrequency(StUhf.Frequency frequency)
frequency
-
frequency java.lang.IllegalStateException
-
This operation is not supported by the current module@Deprecated public StUhf.Version getVersion()
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic boolean startInventorySingleTag(StUhf.OnNewUiiInventoried lisener)
lisener
-
Recognition to label callback, to enable the caller to get a new recognition to the label java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public boolean startInventoryWithAntiCollision(StUhf.Q startQ, StUhf.OnNewUiiInventoried lisener)
startQ
-
The initial Q valuelisener
-
Recognition to label callback, to enable the caller to get a new recognition to the label java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic boolean stopOperation()
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic StUhf.Result.ReadResult readDataByUii(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, byte length, StUhf.UII uii)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addresslength
-
The data to be read is the total number of wordsuii
-
Specify that you want to read the label UII java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.WriteResult writeWordDataByUii(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, byte[] data, StUhf.UII uii)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addressdata
-
To block data writing.uii
-
Specify that you want to write to the label UII java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.EraseResult eraseDataByUii(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, byte length, StUhf.UII uii)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addresslength
-
The total number of words to be eraseduii
-
Specify that you want to erase label UII java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.LockResult lockMemByUii(StUhf.AccessPassword apwd, StUhf.LockParameter lockdata, StUhf.UII uii)
apwd
-
Access keylockdata
-
The specified parameter to lockuii
-
Specify that you want to write to the label UII java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
@Deprecated public final StUhf.Result.KillResult killTagByUii(StUhf.KillPassword killPwd, StUhf.UII uii)
killTagByUiiWithKillPassword(com.senter.support.openapi.StUhf.KillPassword, com.senter.support.openapi.StUhf.UII)
代替killPwd
-
Kill keyuii
-
To be inactivated label uii java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.UII inventorySingleStep()
java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.WriteResult writeBlockDataByUii(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, byte[] data, StUhf.UII uii)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addressdata
-
To block data writing.uii
-
Specify that you want to read the label UII java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.ReadResult readDataFromSingleTag(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, int length)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addresslength
-
The data to be read is the total number of wordsjava.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.WriteResult writeWordDataToSingleTag(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, byte[] data)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addressdata
-
To block data writing.java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.EraseResult eraseDataFromSingleTag(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, byte length)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addresslength
-
The total number of words to be erasedjava.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.LockResult lockMemFromSingleTag(StUhf.AccessPassword apwd, StUhf.LockParameter lockdata)
apwd
-
Access keylockdata
-
The specified parameter to lockjava.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
@Deprecated public final StUhf.Result.KillResult killSingleTag(StUhf.KillPassword killPwd)
killSingleTagWithKillPassword(com.senter.support.openapi.StUhf.KillPassword)
代替killPwd
-
Kill keyjava.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.WriteResult writeBlockDataToSingleTag(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, byte[] data)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addressdata
-
To block data writing.java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
@Deprecated public boolean addFilter(int sIndex, StUhf.InterrogatorModelB.UmbSelectionRecord.SelectionCommand sCommand)
sIndex
-
Add Record index,[1-15]sCommand
-
Add SELECT - command java.lang.IllegalStateException
-
This operation is not supported by the current module@Deprecated public java.lang.Boolean deleteFilterByIndex(int sIndex)
sIndex
-
Delete Record index,[1-15]java.lang.IllegalStateException
-
This operation is not supported by the current module@Deprecated public StUhf.InterrogatorModelB.UmbSelectionRecord[] getFilterByIndex(int offset, int length)
offset
-
Start index to get the record,[0-15]length
-
The total number of records to be selected,[1-16] java.lang.IllegalStateException
-
This operation is not supported by the current module@Deprecated public java.lang.Boolean selectFilterByIndex(int sIndex, int sNum)
sIndex
-
Start index to select records,[0-15]sNum
-
The total number of records to be selected,[1-16] java.lang.IllegalStateException
-
This operation is not supported by the current moduleenterSleepMode()
@Deprecated public boolean enterSleepMode()
java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.ReadResult readDataFromSingleTagAfterIndex(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addressjava.lang.IllegalStateException
-
This operation is not supported by the current modulejava.lang.InterruptedException
selectFilterByIndex(int, int)
public StUhf.Result.ReadResult readDataByUiiAfterIndex(StUhf.AccessPassword apwd, StUhf.Bank bank, int offset, StUhf.UII uii)
apwd
-
Access keybank
-
The specified bankoffset
-
The specified initial word addressuii
-
Specify that you want to read the label UIIjava.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
protected final void _throwUnsupportedFunctionException() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public StUhf.Result.KillResult killSingleTagWithKillPassword(StUhf.KillPassword killPwd)
killPwd
-
Kill keyjava.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.InterrogatorModel getInterrogatorModel()
protected abstract java.util.Set<java.lang.Class<?>> getInterrogatorInterfaces()
public StUhf.Result.KillResult killTagByUiiWithKillPassword(StUhf.KillPassword killPwd, StUhf.UII uii)
killPwd
-
Kill keyuii
-
To be inactivated label uii java.lang.IllegalStateException
-
This operation is not supported by the current moduleselectFilterByIndex(int, int)
public StUhf.Result.KillResult killSingleTagWithAccessPasswordAndKillPassword(StUhf.AccessPassword apwd, StUhf.KillPassword kpwd)
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic boolean killTagByUiiWithAccessPasswordAndKillPassword(StUhf.AccessPassword apwd, StUhf.KillPassword kpwd, StUhf.UII uii)
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic StUhf.Result.GetAccessPasswordResult getAccessPasswordFromSingleTag(StUhf.AccessPassword apwd)
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic StUhf.Result.SetAccessPasswordResult setAccessPasswordToSingleTag(StUhf.AccessPassword apwd, StUhf.AccessPassword newApwd)
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic StUhf.Result.GetKillPasswordResult getKillPasswordFromSingleTag(StUhf.AccessPassword apwd)
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic StUhf.Result.SetKillPasswordResult setKillPasswordToSingleTag(StUhf.AccessPassword apwd, StUhf.KillPassword kpwd)
java.lang.IllegalStateException
-
This operation is not supported by the current modulepublic java.lang.Boolean disableMaskSettings()
public final <InterrogatorModelX> InterrogatorModelX getInterrogatorAs(java.lang.Class<InterrogatorModelX> model)
protected final <InterrogatorModelX> InterrogatorModelX getInterrogatorInterfaceAs(java.lang.Class<InterrogatorModelX> model)
protected StUhf.InterrogatorModelA getInterrogatorInterfaceAsModelA()
protected StUhf.InterrogatorModelB getInterrogatorInterfaceAsModelB()
protected StUhf.InterrogatorModelC getInterrogatorInterfaceAsModelC()
protected StUhf.InterrogatorModelDs.InterrogatorModelD1 getInterrogatorInterfaceAsModelD1()
protected StUhf.InterrogatorModelDs.InterrogatorModelD2 getInterrogatorInterfaceAsModelD2()
protected StUhf.InterrogatorModelF getInterrogatorInterfaceAsModelF()