public class UhfI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UhfI.Bank
Tags Bank
|
static class |
UhfI.OnNewTagInventoried
The new tag inventory listener
|
static class |
UhfI.ST_AntPower
antenna read&write power
|
static class |
UhfI.ST_BLF
|
static class |
UhfI.ST_Code
|
static class |
UhfI.ST_CustomCmdType
|
static class |
UhfI.ST_EmbededData
|
static class |
UhfI.ST_HoptableData
hop table
|
static class |
UhfI.ST_LockObject
|
static class |
UhfI.ST_LockType
|
static class |
UhfI.ST_MaxLength
|
static class |
UhfI.ST_NXPChangeEASPara
NXP ChangeEAS request data
|
static class |
UhfI.ST_NXPEASAlarmPara
NXP EASAlarm request data
|
static class |
UhfI.ST_NXPEASAlarmResult
NXP EASALarm return data
|
static class |
UhfI.ST_PauseTimePer
|
static class |
UhfI.ST_RegionConf
|
static class |
UhfI.ST_ReturnDataFilter
return data filter
|
static class |
UhfI.ST_Session
|
static class |
UhfI.ST_TagFilter
tag filter object
|
static class |
UhfI.ST_TagInfo
|
static class |
UhfI.ST_TagProtocol
|
static class |
UhfI.ST_Target
|
static class |
UhfI.ST_Tari
|
static class |
UhfI.ST_WriteMode
|
static class |
UhfI.UII
Tag’s UII is Composed of PC and EPC
|
Modifier and Type | Method and Description |
---|---|
void |
disableFastMode()
disable fast mode
|
void |
enableFastMode(UhfI.ST_ReturnDataFilter returnDataFilter,
UhfI.ST_PauseTimePer pauseTimePer)
enable fast mode
|
java.lang.Boolean |
getAntennaCheck()
read check antenna or not
|
UhfI.ST_AntPower |
getAntennaPower()
read the antenna power
|
UhfI.ST_BLF |
getBLF()
read BLF
|
UhfI.ST_Code |
getCode()
read code
|
UhfI.ST_EmbededData |
getEmbededData()
read embeded data
|
java.lang.Boolean |
getEmbededDataUniqueState()
when inventory with embedded read another bank, some tags are the same epc data but with different other bank data whether consider these tags as different tag
data records
|
UhfI.ST_HoptableData |
getFrequencyHoptable()
read frequency hop table
|
static UhfI |
getInstance() |
UhfI.ST_MaxLength |
getMaxLength()
read the maximum supported EPC length in bits
|
java.lang.Integer |
getMaxPower()
read the antenna MAX power
|
java.lang.Integer |
getQ()
read Q value
|
java.lang.Boolean |
getRecordHighestRssi()
Whether or not only record the highest rssi value
|
UhfI.ST_RegionConf |
getRegion()
read region
|
UhfI.ST_Session |
getSession()
read Session
|
UhfI.ST_TagFilter |
getTagFilter()
read tag filter
|
UhfI.ST_Target |
getTarget()
read target
|
UhfI.ST_Tari |
getTari()
read tari
|
UhfI.ST_WriteMode |
getWriteMode()
read write mode
|
boolean |
init()
init
|
boolean |
isFastMode()
read fast mode or not
|
boolean |
isInited()
isInited
|
boolean |
killTag(byte[] killPassword,
UhfI.ST_TagFilter tagFilter)
Destroy tags.
|
boolean |
killTagByUII(byte[] killPassword,
UhfI.UII uii)
Destroy specified tag.
|
boolean |
lockTag(UhfI.ST_LockObject lockObject,
UhfI.ST_LockType lockType,
byte[] accessPassword,
UhfI.ST_TagFilter tagFilter)
lock the unSpecified tag
|
boolean |
lockTagByUII(UhfI.ST_LockObject lockObject,
UhfI.ST_LockType lockType,
byte[] accessPassword,
UhfI.UII uii)
lock the specified tag
|
byte[] |
readTag(UhfI.Bank bank,
int address,
int blkcnt,
byte[] accessPassword,
UhfI.ST_TagFilter tagFilter)
read the unSpecified tag
|
byte[] |
readTagByUII(UhfI.Bank bank,
int address,
int blkcnt,
byte[] accessPassword,
UhfI.UII uii)
read the specified tag
|
boolean |
setAntennaCheck(boolean isCheck)
set check antenna or not
|
boolean |
setAntennaPower(UhfI.ST_AntPower power)
set the antenna power
|
boolean |
setBLF(UhfI.ST_BLF blf)
set BLF
|
boolean |
setCode(UhfI.ST_Code code)
set code
|
boolean |
setCustomCmdChangeEAS(UhfI.ST_NXPChangeEASPara para,
UhfI.ST_TagFilter tagFilter)
set custom cmd ChangeEAS
|
UhfI.ST_NXPEASAlarmResult |
setCustomCmdEASAlarm(UhfI.ST_NXPEASAlarmPara para,
UhfI.ST_TagFilter tagFilter)
|
boolean |
setEmbededData(UhfI.ST_EmbededData embededData)
set embeded data
|
boolean |
setEmbededDataUnique(boolean isUnique)
when inventory with embedded read another bank, some tags are the same epc data but with different other bank data whether consider these tags as different tag
data records
|
boolean |
setFrequencyHoptable(UhfI.ST_HoptableData hoptableData)
set frequency hop table
|
boolean |
setMaxLength(UhfI.ST_MaxLength maxLength)
set the maximum supported EPC length in bits
|
boolean |
setQ(int q)
set Q value
|
boolean |
setRecordHighestRssi(boolean isUnique)
Whether or not only record the highest rssi value
|
boolean |
setRegion(UhfI.ST_RegionConf regionConf)
set region
|
boolean |
setSession(UhfI.ST_Session session)
set Session
|
boolean |
setTagFilter(UhfI.ST_TagFilter tagFilter)
set tag filter
|
boolean |
setTarget(UhfI.ST_Target target)
set target
|
boolean |
setTari(UhfI.ST_Tari tari)
set tari
|
boolean |
setWriteMode(UhfI.ST_WriteMode mode)
set write mode
|
boolean |
startInventory(UhfI.OnNewTagInventoried listener)
Open the tag 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
|
void |
stopInventory()
stop the tag recognition cycle
|
void |
uninit()
uninit
|
boolean |
writeTag(UhfI.Bank bank,
int address,
byte[] data,
byte[] accessPassword,
UhfI.ST_TagFilter tagFilter)
write the unSpecified tag
|
boolean |
writeTagByUII(UhfI.Bank bank,
int address,
byte[] data,
byte[] accessPassword,
UhfI.UII uii)
write the specified tag
|
boolean |
writeTagEpc(byte[] data,
byte[] accessPassword)
Write epc code to EPC bank,this function does not support tag filter and access password.
|
public static UhfI getInstance()
public boolean init()
public void uninit()
public boolean isInited()
public boolean startInventory(UhfI.OnNewTagInventoried listener)
listener
-
listenerpublic void stopInventory()
public byte[] readTag(UhfI.Bank bank, int address, int blkcnt, byte[] accessPassword, UhfI.ST_TagFilter tagFilter)
bank
-
The specified bankaddress
-
The specified initial word address,block as the unit,1 block = 16bitblkcnt
-
to read blocks countaccessPassword
-
access password ,default password can send nulltagFilter
-
filter conditionpublic byte[] readTagByUII(UhfI.Bank bank, int address, int blkcnt, byte[] accessPassword, UhfI.UII uii)
bank
-
The specified bankaddress
-
The specified initial word address,block as the unit,1 block = 16bitblkcnt
-
to read blocks countaccessPassword
-
access password ,default password can send nulluii
-
Specify that you want to read the tag UII public boolean writeTag(UhfI.Bank bank, int address, byte[] data, byte[] accessPassword, UhfI.ST_TagFilter tagFilter)
bank
-
The specified bankaddress
-
The specified initial word address,block as the unit,1 block = 16bitdata
-
data to be writtenaccessPassword
-
access password ,default password can send nulltagFilter
-
filter conditionpublic boolean writeTagByUII(UhfI.Bank bank, int address, byte[] data, byte[] accessPassword, UhfI.UII uii)
bank
-
The specified bankaddress
-
The specified initial word address,block as the unit,1 block = 16bitdata
-
data to be writtenaccessPassword
-
access password ,default password can send nulluii
-
Specify that you want to read the tag UII public boolean writeTagEpc(byte[] data, byte[] accessPassword)
data
-
data to be writtenaccessPassword
-
access password ,default password can send nullpublic boolean lockTag(UhfI.ST_LockObject lockObject, UhfI.ST_LockType lockType, byte[] accessPassword, UhfI.ST_TagFilter tagFilter)
lockObject
-
Objects to locklockType
-
Lock typeaccessPassword
-
access password ,default password can send nulltagFilter
-
filter conditionpublic boolean lockTagByUII(UhfI.ST_LockObject lockObject, UhfI.ST_LockType lockType, byte[] accessPassword, UhfI.UII uii)
lockObject
-
Objects to locklockType
-
Lock typeaccessPassword
-
access password ,default password can send nulluii
-
Specify that you want to read the tag UII public boolean killTag(byte[] killPassword, UhfI.ST_TagFilter tagFilter)
killPassword
-
kill password,before destroy a tag users must set the kill password instead of 0 tagFilter
-
filter conditionpublic boolean killTagByUII(byte[] killPassword, UhfI.UII uii)
killPassword
-
kill password,before destroy a tag users must set the kill password instead of 0 uii
-
Specify that you want to read the tag UII public boolean setAntennaCheck(boolean isCheck)
isCheck
-
check or notpublic java.lang.Boolean getAntennaCheck()
public boolean setAntennaPower(UhfI.ST_AntPower power)
power
-
power UhfI.ST_AntPowerpublic UhfI.ST_AntPower getAntennaPower()
public java.lang.Integer getMaxPower()
public boolean setRegion(UhfI.ST_RegionConf regionConf)
regionConf
-
region UhfI.ST_RegionConfpublic UhfI.ST_RegionConf getRegion()
public boolean setFrequencyHoptable(UhfI.ST_HoptableData hoptableData)
hoptableData
-
frequency hop table UhfI.ST_HoptableDatapublic UhfI.ST_HoptableData getFrequencyHoptable()
public boolean setSession(UhfI.ST_Session session)
session
-
Sessionpublic UhfI.ST_Session getSession()
public boolean setQ(int q)
q
-
Legal value: -1-—15. (-1:automatically adjust Q value;0---15:static Q value)public java.lang.Integer getQ()
public boolean setWriteMode(UhfI.ST_WriteMode mode)
mode
-
write mode UhfI.ST_WriteModepublic UhfI.ST_WriteMode getWriteMode()
public boolean setBLF(UhfI.ST_BLF blf)
blf
-
BLF UhfI.ST_BLFpublic UhfI.ST_BLF getBLF()
public boolean setMaxLength(UhfI.ST_MaxLength maxLength)
maxLength
-
max EPC length in bits UhfI.ST_MaxLengthpublic UhfI.ST_MaxLength getMaxLength()
public boolean setTarget(UhfI.ST_Target target)
target
-
target UhfI.ST_Targetpublic UhfI.ST_Target getTarget()
public boolean setCode(UhfI.ST_Code code)
code
-
code UhfI.ST_Codepublic UhfI.ST_Code getCode()
public boolean setTari(UhfI.ST_Tari tari)
tari
-
tari UhfI.ST_Taripublic UhfI.ST_Tari getTari()
public boolean setTagFilter(UhfI.ST_TagFilter tagFilter)
tagFilter
-
filter object UhfI.ST_TagFilterpublic UhfI.ST_TagFilter getTagFilter()
public boolean setEmbededData(UhfI.ST_EmbededData embededData)
embededData
-
embeded datapublic UhfI.ST_EmbededData getEmbededData()
public boolean setEmbededDataUnique(boolean isUnique)
isUnique
- public java.lang.Boolean getEmbededDataUniqueState()
public boolean setRecordHighestRssi(boolean isUnique)
isUnique
-
unique or notpublic java.lang.Boolean getRecordHighestRssi()
public void enableFastMode(UhfI.ST_ReturnDataFilter returnDataFilter, UhfI.ST_PauseTimePer pauseTimePer)
returnDataFilter
-
return data filter UhfI.ST_ReturnDataFilterpauseTimePer
-
pause time per UhfI.ST_PauseTimePerpublic void disableFastMode()
public boolean isFastMode()
public boolean setCustomCmdChangeEAS(UhfI.ST_NXPChangeEASPara para, UhfI.ST_TagFilter tagFilter)
para
-
param UhfI.ST_NXPChangeEASParatagFilter
-
filter condition UhfI.ST_TagFilterpublic UhfI.ST_NXPEASAlarmResult setCustomCmdEASAlarm(UhfI.ST_NXPEASAlarmPara para, UhfI.ST_TagFilter tagFilter)
para
-
param UhfI.ST_NXPEASAlarmParatagFilter
-
filter condition UhfI.ST_TagFilter