public final class UhfH
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UhfH.ApplicationDataFile
Application data file
|
static class |
UhfH.Bank
Tags Bank
|
static class |
UhfH.Device
RLM Device Info
|
static class |
UhfH.Frequency
Reader Frequency
|
static class |
UhfH.FrequencyBase
Frequency base
|
static class |
UhfH.FrequencyMode
Frequency mode
|
static class |
UhfH.IdentifyOption
Identity Option
|
static class |
UhfH.KeyType
Key type
|
static class |
UhfH.LockProperty
lock property
|
static class |
UhfH.LockStyle
Lock style
|
static class |
UhfH.OnEraseListener
The erase data listener
|
static class |
UhfH.OnKillListener
The kill tag listener
|
static class |
UhfH.OnLockListener
The lock tag listener
|
static class |
UhfH.OnNewUiiInventoried
The new uii inventory listener
|
static class |
UhfH.OnReadListener
The read data listener
|
static class |
UhfH.OnTwoBankReadListener
The two bank read data listener
|
static class |
UhfH.OnWriteListener
The write data listener
|
static class |
UhfH.ProCfgBLF
BLF
|
static class |
UhfH.ProCfgEncode
Encode
|
static class |
UhfH.ProCfgTC
TC
|
static class |
UhfH.Protocol
Protocol
|
static class |
UhfH.ProtocolMode
Protocol Mode
|
static class |
UhfH.RandomOption
Random option
|
static class |
UhfH.Result
Some specific operation results
|
static class |
UhfH.SafetyProperty
Safe property
|
static class |
UhfH.Session
Session
|
static class |
UhfH.TRext
The trext
|
static class |
UhfH.UII
Tag’s UII is Composed of PC and EPC
|
static class |
UhfH.WorkMode
Work mode
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
checkAntennaEnable()
check antenna enable or not
|
void |
clearBuffer()
clear buffer
|
byte[] |
decrypt(byte[] key,
byte[] cipherText)
decrypt
|
byte[] |
encrypt(byte[] key,
byte[] plaintext)
encrypt
|
boolean |
enterSleepMode()
enter sleep mode
|
UhfH.Result.EraseResult |
eraseOnceFromSingleTag(UhfH.Bank bank,
int ptr,
int len,
UhfH.UII uii)
erase the specified tag once
|
UhfH.Result.EraseResult |
eraseOnceFromUnSpecifiedTag(UhfH.Bank bank,
int ptr,
int len)
erase the unSpecified tag once
|
UhfH.ApplicationDataFile |
getADF()
|
java.lang.Integer |
getAntWorkTime()
Get the reader antenna stay time
|
UhfH.Device |
getDevice()
Gets the reader device info
|
UhfH.Frequency |
getFrequency()
Get the reader frequency settings
|
static UhfH |
getInstance() |
java.lang.Integer |
getPower()
Get the reader power
|
UhfH.Result.ProCfgResult |
getProCfg()
Gets the reader protocol param
|
UhfH.Result.ProtocolResult |
getProSel()
Get the reader protocol
|
java.lang.String |
getRandom(UhfH.RandomOption option)
Get random data
|
byte[] |
getRegister(int address,
int length)
|
UhfH.Session |
getSession()
|
java.lang.Integer |
getTimeout()
Get the reader command timeout
|
UhfH.TRext |
getTRext()
|
UhfH.WorkMode |
getWorkMode()
Get the reader work mode
|
boolean |
identifyFinish(int identify)
identity finish
|
byte[] |
identifyRequest(UhfH.IdentifyOption option)
identity request
|
byte[] |
identifyToken1(UhfH.IdentifyOption option,
byte[] token1)
identity token1
|
boolean |
init()
|
UhfH.UII |
inventorySingleTagOnce()
open the single tag recognition once
|
boolean |
isInited()
isinited
|
boolean |
keyDownload(UhfH.KeyType keyType,
byte[] key)
Download key
|
boolean |
keySave(UhfH.KeyType keyType)
Save key
|
UhfH.Result.KillResult |
killOnceFromSingleTag(UhfH.UII uii)
kill the specified tag once
|
UhfH.Result.KillResult |
killOnceFromUnSpecifiedTag()
kill the unSpecified tag once
|
UhfH.Result.LockResult |
lockOnceFromSingleTag(UhfH.Bank bank,
UhfH.UII uii,
UhfH.LockStyle lockStyle,
UhfH.LockProperty lockProperty,
UhfH.SafetyProperty safetyProperty)
lock the specified tag once
|
UhfH.Result.LockResult |
lockOnceFromUnSpecifiedTag(UhfH.Bank bank,
UhfH.LockStyle lockStyle,
UhfH.LockProperty lockProperty,
UhfH.SafetyProperty safetyProperty)
lock the unSpecified tag once
|
boolean |
onlineRequest()
Send online request to reader
|
UhfH.Result.ReadResult |
readOnceFromSingleTag(UhfH.Bank bank,
int ptr,
int len,
UhfH.UII uii)
read the specified tag once
|
UhfH.Result.ReadResult |
readOnceFromUnSpecifiedTag(UhfH.Bank bank,
int ptr,
int len)
read the unSpecified tag once
|
boolean |
resetRegister()
reset the reader register
|
boolean |
saveRegister()
Save the reader register
|
boolean |
setADF(UhfH.ApplicationDataFile adf)
|
boolean |
setAntenna()
set antenna enable
|
boolean |
setAntWorkTime(int workTime)
Set the reader antenna stay time real time:workTime*25ms
|
boolean |
setFrequency(UhfH.Frequency frequency)
Set the reader frequency
|
boolean |
setPower(int power)
Set the reader power range:[10,30]
|
boolean |
setProCfg(UhfH.ProCfgTC tc,
UhfH.ProCfgEncode encode,
UhfH.ProCfgBLF blf)
Set the reader protocol param,only set in test mode protocol
|
boolean |
setProSel(UhfH.Protocol protocol,
UhfH.ProtocolMode mode)
Set the reader protocol
|
boolean |
setRegister(int address,
int length,
byte[] value)
|
boolean |
setSession(UhfH.Session session)
|
boolean |
setTimeOut(int timeout)
Set the reader command timeout real time :timeout*50ms
|
boolean |
setTRext(UhfH.TRext trext)
|
boolean |
setUserDefineFrequency(int freStart,
int freEnd)
Set the reader frequency
|
boolean |
setWorkMode(UhfH.WorkMode workMode)
Set the reader work mode
|
boolean |
startEraseLoopFromSingleTag(UhfH.Bank bank,
int ptr,
int len,
UhfH.UII uii,
UhfH.OnEraseListener listener)
Open the specified tag erase cycle, in the method will in the internal opening process a loop to erase, to stop this process, or to perform other
specified,
please perform stopLoopOperate() () stop instruction}
|
boolean |
startEraseLoopFromUnSpecifiedTag(UhfH.Bank bank,
int ptr,
int len,
UhfH.OnEraseListener listener)
Open the unspecified tag erase cycle, in the method will in the internal opening process a loop to erase, to stop this process, or to perform other
specified,
please perform stopLoopOperate() () stop instruction}
|
boolean |
startInventoryLoopMultiTag(UhfH.OnNewUiiInventoried listener)
Open the multiply 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
|
boolean |
startInventoryLoopSingleTag(UhfH.OnNewUiiInventoried listener)
Open the single 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
|
boolean |
startKillLoopFromSingleTag(UhfH.UII uii,
UhfH.OnKillListener listener)
Open the specified tag kill cycle, in the method will in the internal opening process a loop to kill, to stop this process, or to perform other
specified,
please perform stopLoopOperate() () stop instruction}
|
boolean |
startKillLoopFromUnSpecifiedTag(UhfH.OnKillListener listener)
Open the unSpecified tag kill cycle, in the method will in the internal opening process a loop to kill, to stop this process, or to perform other
specified,
please perform stopLoopOperate() () stop instruction}
|
boolean |
startLockLoopFromSingleTag(UhfH.Bank bank,
UhfH.UII uii,
UhfH.LockStyle lockStyle,
UhfH.LockProperty lockProperty,
UhfH.SafetyProperty safetyProperty,
UhfH.OnLockListener listener)
Open the specified tag lock cycle, in the method will in the internal opening process a loop to lock, to stop this process, or to perform other
specified,
please perform stopLoopOperate() () stop instruction}
|
boolean |
startLockLoopFromUnSpecifiedTag(UhfH.Bank bank,
UhfH.LockStyle lockStyle,
UhfH.LockProperty lockProperty,
UhfH.SafetyProperty safetyProperty,
UhfH.OnLockListener listener)
Open the specified tag lock cycle, in the method will in the internal opening process a loop to lock, to stop this process, or to perform other
specified,
please perform stopLoopOperate() () stop instruction}
|
boolean |
startReadLoopFromSingleTag(UhfH.Bank bank,
int ptr,
int len,
UhfH.UII uii,
UhfH.OnReadListener listener)
Open the specified tag read 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 |
startReadLoopFromUnSpecifiedTag(UhfH.Bank bank,
int ptr,
int len,
UhfH.OnReadListener listener)
Open the unSpecified tag read 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 stopLoopOperate() () stop instruction}
|
boolean |
startReadMultiTagsOneBankLoop(UhfH.Bank bank,
int ptr,
int len,
UhfH.OnReadListener listener)
Open the multiply tag and one bank read 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 |
startReadMultiTagsTwoBankLoop(UhfH.Bank bank1,
int ptr1,
int len1,
UhfH.Bank bank2,
int ptr2,
int len2,
UhfH.OnTwoBankReadListener listener)
Open the multiply tag and two bank read 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 |
startWriteLoopFromSingleTag(UhfH.Bank bank,
int ptr,
int len,
byte[] data,
UhfH.UII uii,
UhfH.OnWriteListener listener)
Open the specified tag wirte cycle, in the method will in the internal opening process a loop to write, to stop this process, or to perform other
specified,
please perform stopLoopOperate() () stop instruction}
|
boolean |
startWriteLoopFromUnSpecifiedTag(UhfH.Bank bank,
int ptr,
int len,
byte[] data,
UhfH.OnWriteListener listener)
Open the unSpecified tag wirte cycle, in the method will in the internal opening process a loop to write, to stop this process, or to perform other
specified,
please perform stopLoopOperate() () stop instruction}
|
void |
stopLoopOperate()
stop loop operation
|
void |
stopOperation()
stop operate
|
void |
uninit()
uninit
|
boolean |
update(java.lang.String filePath)
Update
|
UhfH.Result.WriteResult |
writeOnceFromSingleTag(UhfH.Bank bank,
int ptr,
int len,
byte[] data,
UhfH.UII uii)
write the specified tag once
|
UhfH.Result.WriteResult |
writeOnceFromUnSpecifiedTag(UhfH.Bank bank,
int ptr,
int len,
byte[] data)
write the unSpecified tag once
|
public static UhfH getInstance()
public boolean init()
public void uninit()
public boolean isInited()
public boolean onlineRequest()
public java.lang.Integer getPower()
public boolean setPower(int power)
power
- public UhfH.Frequency getFrequency()
public boolean setFrequency(UhfH.Frequency frequency)
frequency
- public boolean setUserDefineFrequency(int freStart, int freEnd)
freStart
-
start frequencyfreEnd
-
end frequencypublic UhfH.Device getDevice()
public UhfH.Result.ProtocolResult getProSel()
public boolean setProSel(UhfH.Protocol protocol, UhfH.ProtocolMode mode)
protocol
-
the protocolmode
-
the protocol modepublic java.lang.Integer getAntWorkTime()
public boolean setAntWorkTime(int workTime)
workTime
- public UhfH.WorkMode getWorkMode()
public boolean setWorkMode(UhfH.WorkMode workMode)
workMode
-
work modepublic java.lang.Integer getTimeout()
public boolean setTimeOut(int timeout)
timeout
-
timeoutpublic UhfH.Result.ProCfgResult getProCfg()
public boolean setProCfg(UhfH.ProCfgTC tc, UhfH.ProCfgEncode encode, UhfH.ProCfgBLF blf)
tc
- encode
- blf
- public UhfH.TRext getTRext()
public boolean setTRext(UhfH.TRext trext)
trext
- public UhfH.Session getSession()
public boolean setSession(UhfH.Session session)
session
- public UhfH.ApplicationDataFile getADF()
public boolean setADF(UhfH.ApplicationDataFile adf)
adf
- public byte[] getRegister(int address, int length)
address
- length
- public boolean setRegister(int address, int length, byte[] value)
address
-
addresslength
-
lengthvalue
-
valuepublic boolean saveRegister()
public boolean resetRegister()
public boolean enterSleepMode()
public void stopOperation()
public java.lang.Boolean checkAntennaEnable()
public boolean setAntenna()
public boolean update(java.lang.String filePath)
filePath
-
update file pathpublic java.lang.String getRandom(UhfH.RandomOption option)
option
-
random optionpublic byte[] identifyRequest(UhfH.IdentifyOption option)
option
-
identity optionpublic byte[] identifyToken1(UhfH.IdentifyOption option, byte[] token1)
option
-
identity optiontoken1
-
token1 datapublic boolean identifyFinish(int identify)
identify
-
0:failed 1:successpublic boolean keyDownload(UhfH.KeyType keyType, byte[] key)
keyType
-
key typekey
-
keypublic boolean keySave(UhfH.KeyType keyType)
keyType
-
key typepublic UhfH.UII inventorySingleTagOnce()
public boolean startInventoryLoopSingleTag(UhfH.OnNewUiiInventoried listener)
listener
-
listenerpublic boolean startInventoryLoopMultiTag(UhfH.OnNewUiiInventoried listener)
listener
-
listenerpublic boolean startReadMultiTagsOneBankLoop(UhfH.Bank bank, int ptr, int len, UhfH.OnReadListener listener)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordspublic boolean startReadMultiTagsTwoBankLoop(UhfH.Bank bank1, int ptr1, int len1, UhfH.Bank bank2, int ptr2, int len2, UhfH.OnTwoBankReadListener listener)
bank1
-
The first specified bankptr1
-
The first specified initial word addresslen1
-
The data to be read is the total number of wordsbank2
-
The second specified bankptr2
-
The second specified initial word addresslen2
-
The data to be read is the total number of wordslistener
-
listenerpublic UhfH.Result.ReadResult readOnceFromSingleTag(UhfH.Bank bank, int ptr, int len, UhfH.UII uii)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordsuii
-
Specify that you want to read the tag UII public boolean startReadLoopFromSingleTag(UhfH.Bank bank, int ptr, int len, UhfH.UII uii, UhfH.OnReadListener listener)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordsuii
-
Specify that you want to read the tag UII listener
-
listenerpublic UhfH.Result.ReadResult readOnceFromUnSpecifiedTag(UhfH.Bank bank, int ptr, int len)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordspublic boolean startReadLoopFromUnSpecifiedTag(UhfH.Bank bank, int ptr, int len, UhfH.OnReadListener listener)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordslistener
-
listenerpublic UhfH.Result.WriteResult writeOnceFromSingleTag(UhfH.Bank bank, int ptr, int len, byte[] data, UhfH.UII uii)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordsdata
-
To block data writing.uii
-
Specify that you want to read the tag UII public boolean startWriteLoopFromSingleTag(UhfH.Bank bank, int ptr, int len, byte[] data, UhfH.UII uii, UhfH.OnWriteListener listener)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordsdata
-
To block data writing.uii
-
Specify that you want to read the tag UII listener
-
listenerpublic UhfH.Result.WriteResult writeOnceFromUnSpecifiedTag(UhfH.Bank bank, int ptr, int len, byte[] data)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordsdata
-
To block data writing.public boolean startWriteLoopFromUnSpecifiedTag(UhfH.Bank bank, int ptr, int len, byte[] data, UhfH.OnWriteListener listener)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordsdata
-
To block data writing.listener
-
listenerpublic UhfH.Result.EraseResult eraseOnceFromSingleTag(UhfH.Bank bank, int ptr, int len, UhfH.UII uii)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordsuii
-
Specify that you want to read the tag UII public boolean startEraseLoopFromSingleTag(UhfH.Bank bank, int ptr, int len, UhfH.UII uii, UhfH.OnEraseListener listener)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordsuii
-
Specify that you want to read the tag UII listener
-
listenerpublic UhfH.Result.EraseResult eraseOnceFromUnSpecifiedTag(UhfH.Bank bank, int ptr, int len)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordspublic boolean startEraseLoopFromUnSpecifiedTag(UhfH.Bank bank, int ptr, int len, UhfH.OnEraseListener listener)
bank
-
The specified bankptr
-
The specified initial word addresslen
-
The data to be read is the total number of wordslistener
-
listenerpublic UhfH.Result.LockResult lockOnceFromSingleTag(UhfH.Bank bank, UhfH.UII uii, UhfH.LockStyle lockStyle, UhfH.LockProperty lockProperty, UhfH.SafetyProperty safetyProperty)
bank
-
The specified bankuii
-
Specify that you want to read the tag UII lockStyle
- lockProperty
- safetyProperty
- public boolean startLockLoopFromSingleTag(UhfH.Bank bank, UhfH.UII uii, UhfH.LockStyle lockStyle, UhfH.LockProperty lockProperty, UhfH.SafetyProperty safetyProperty, UhfH.OnLockListener listener)
bank
-
The specified bankuii
-
Specify that you want to read the tag UII lockStyle
-
lockProperty
-
lock style: storage propertysafetyProperty
-
lock style: safe mode propertylistener
-
listenerpublic UhfH.Result.LockResult lockOnceFromUnSpecifiedTag(UhfH.Bank bank, UhfH.LockStyle lockStyle, UhfH.LockProperty lockProperty, UhfH.SafetyProperty safetyProperty)
bank
-
The specified banklockStyle
-
lockProperty
-
lock style: storage propertysafetyProperty
-
lock style: safe mode propertypublic boolean startLockLoopFromUnSpecifiedTag(UhfH.Bank bank, UhfH.LockStyle lockStyle, UhfH.LockProperty lockProperty, UhfH.SafetyProperty safetyProperty, UhfH.OnLockListener listener)
bank
-
The specified banklockStyle
-
lockProperty
-
lock style: storage propertysafetyProperty
-
lock style: safe mode propertylistener
-
listenerpublic UhfH.Result.KillResult killOnceFromSingleTag(UhfH.UII uii)
uii
-
Specify that you want to read the tag UII public boolean startKillLoopFromSingleTag(UhfH.UII uii, UhfH.OnKillListener listener)
uii
-
Specify that you want to read the tag UII listener
-
listenerpublic UhfH.Result.KillResult killOnceFromUnSpecifiedTag()
public boolean startKillLoopFromUnSpecifiedTag(UhfH.OnKillListener listener)
listener
-
listenerpublic void stopLoopOperate()
public byte[] encrypt(byte[] key, byte[] plaintext)
key
- plaintext
- public byte[] decrypt(byte[] key, byte[] cipherText)
key
- cipherText
- public void clearBuffer()