public abstract class UHFDevice extends BaseDevice
VERSION
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy UHFDevice.
|
void |
getBleDeviceName()
Get the device name of BLE through BLE interface.
|
void |
getBleRomVersion()
Get Firmware version of the ble module of the remote device.
|
void |
getFrequency(boolean temporary)
Get TX RF frequency list.
|
void |
getQValue(boolean temporary) |
void |
getRfPower(boolean temporary)
Read the RF power of remote device.
|
void |
getRfSensitivity(boolean temporary)
Get the RX RF input sensitivity level.
|
void |
getRomVersion()
Get Firmware version.
|
void |
getSessionAndTarget(boolean temporary)
Get session and target of Gen2 setting.
|
abstract void |
initializeSettings()
Please call this method after the remote device is connected and before to operating the remote device.
|
void |
readEpc(java.lang.String hexStringPassword) |
void |
readTag(java.lang.String hexStringPassword,
MemoryBank memoryBank,
int startWordAddress,
int readLength) |
void |
readTag(java.lang.String hexStringPassword,
java.lang.String selectedPcEpc,
MemoryBank memoryBank,
int startWordAddress,
int readLength) |
void |
setBleDeviceName(java.lang.String name)
Set the device name of BLE through BLE interface.
|
void |
setFrequency(boolean temporary,
java.util.ArrayList<java.lang.Double> frequencyList)
Set user-define frequencyList list.
|
void |
setQValue(boolean temporary,
int qValue)
Set the begin Q of the Gen2 dynamic operation of Q.
|
void |
setRfPower(boolean temporary,
byte rfPower)
Set the RF Power of remote device.
|
void |
setRfSensitivity(boolean temporary,
RfSensitivityLevel sensitivity)
Define the RX RF input sensitivity level.
|
void |
setSessionAndTarget(boolean temporary,
Session session,
Target target)
Set session and target of Gen2 setting.
|
void |
setUHFCallback(UHFCallback UHFCallback) |
void |
startInventory(TagPresentedType tagPresentedType)
Start Inventory EPC Tag.
|
void |
stopInventory()
Stop Inventory EPC Tag.
|
void |
writeEpc(java.lang.String hexStringPassword,
byte[] epcData) |
void |
writeTag(java.lang.String hexStringPassword,
MemoryBank memoryBank,
int startWordAddress,
byte[] data) |
void |
writeTag(java.lang.String hexStringPassword,
java.lang.String selectedPcEpc,
MemoryBank memoryBank,
int startWordAddress,
byte[] data) |
connect, disconnect, equals, getCommunicationType, getConnectionState, getDeviceIp, getDeviceMacAddr, getDeviceName, getDevicePort, send, setCommunicationCallback, setDeviceDebugCallback
public abstract void initializeSettings()
public void setUHFCallback(UHFCallback UHFCallback)
UHFCallback
- Callback of receiving remote device data.public void startInventory(TagPresentedType tagPresentedType)
public void stopInventory()
public void readEpc(java.lang.String hexStringPassword)
hexStringPassword
- Password of the tag that is going to read. (4 byte/2 Hex String)public void writeEpc(java.lang.String hexStringPassword, byte[] epcData)
hexStringPassword
- The password of the tag.epcData
- The epc data that is going to write into tag.public void readTag(java.lang.String hexStringPassword, java.lang.String selectedPcEpc, MemoryBank memoryBank, int startWordAddress, int readLength)
hexStringPassword
- Specifies the password to read data.selectedPcEpc
- Specifies the tag PC EPC to be selected.memoryBank
- Specifies which memory bank to read.startWordAddress
- Specifies the start word address of memory bank to read data.When read EPC bank, notice that EPC starts from address 02, the first two 2 words are for CRC and PC.readLength
- Specifies the length to read from memory bank.public void readTag(java.lang.String hexStringPassword, MemoryBank memoryBank, int startWordAddress, int readLength)
hexStringPassword
- Specifies the password to read data.memoryBank
- Specifies which memory bank to read.startWordAddress
- Specifies the start word address of memory bank to read data.When read EPC bank, notice that EPC starts from address 02, the first two 2 words are for CRC and PC.readLength
- Specifies the length to read from memory bank.public void writeTag(java.lang.String hexStringPassword, java.lang.String selectedPcEpc, MemoryBank memoryBank, int startWordAddress, byte[] data)
hexStringPassword
- Specifies the password to write data.selectedPcEpc
- Specifies the tag PC EPC to be selected.memoryBank
- Specifies which memory bank to write.startWordAddress
- Specifies the start word address of memory bank to write data.When write EPC bank, notice that EPC starts from address 02, the first two 2 words are for CRC and PC.data
- Specifies the data to write to memory bank.public void writeTag(java.lang.String hexStringPassword, MemoryBank memoryBank, int startWordAddress, byte[] data)
hexStringPassword
- Specifies the password to write data.memoryBank
- Specifies which memory bank to write.startWordAddress
- Specifies the start word address of memory bank to write data.When write EPC bank, notice that EPC starts from address 02, the first two 2 words are for CRC and PC.data
- Specifies the data to write to memory bank.public void getBleDeviceName()
public void setBleDeviceName(@NonNull java.lang.String name)
public void getRfPower(boolean temporary)
temporary
- True value specifies the changes are temporary overwrides for settings. The changes are not saved into the EEPROM and take immediate effect (no rebooting required). False value specifies the changes are permanently overwrides for settings And also saved into the EEPROM. The changes will keep after rebooting the device.public void setRfPower(boolean temporary, byte rfPower)
cmdUpdateRfPower
function after this method is success to update the status of remote device.rfPower
- The RF Power that is going to set to the remote device. (Range:1~27)public void getRfSensitivity(boolean temporary)
temporary
- True value specifies the changes are temporary overwrides for settings. The changes are not saved into the EEPROM and take immediate effect (no rebooting required). False value specifies the changes are permanently overwrides for settings And also saved into the EEPROM. The changes will keep after rebooting the device.public void setRfSensitivity(boolean temporary, RfSensitivityLevel sensitivity)
RX Sensitivity setting defines the RX input sensitivity level.
temporary
- Write the sensitivity value to RAM or not. It the value is true, the sensitivity value will be write to RAM.sensitivity
- Sensitivity level.public void setFrequency(boolean temporary, java.util.ArrayList<java.lang.Double> frequencyList)
temporary
- True value specifies the changes are temporary overwrides for settings. The changes are not saved into the EEPROM and take immediate effect (no rebooting required). False value specifies the changes are permanently overwrides for settings And also saved into the EEPROM. The changes will keep after rebooting the device.frequencyList
- The frequencyList of TX RF.public void getQValue(boolean temporary)
temporary
- True value specifies the changes are temporary overwrides for settings. The changes are not saved into the EEPROM and take immediate effect (no rebooting required). False value specifies the changes are permanently overwrides for settings And also saved into the EEPROM. The changes will keep after rebooting the device.public void setQValue(boolean temporary, int qValue)
temporary
- True value specifies the changes are temporary overwrides for settings. The changes are not saved into the EEPROM and take immediate effect (no rebooting required). False value specifies the changes are permanently overwrides for settings And also saved into the EEPROM. The changes will keep after rebooting the device.qValue
- Gens Q valuepublic void getFrequency(boolean temporary)
temporary
- True value specifies the changes are temporary overwrides for settings. The changes are not saved into the EEPROM and take immediate effect (no rebooting required). False value specifies the changes are permanently overwrides for settings And also saved into the EEPROM. The changes will keep after rebooting the device.public void setSessionAndTarget(boolean temporary, Session session, Target target)
temporary
- True value specifies the changes are temporary overwrides for settings. The changes are not saved into the EEPROM and take immediate effect (no rebooting required). False value specifies the changes are permanently overwrides for settings And also saved into the EEPROM. The changes will keep after rebooting the device.session
- Gen2 Sessiontarget
- Gen2 Targetpublic void getSessionAndTarget(boolean temporary)
temporary
- True value specifies the changes are temporary overwrides for settings. The changes are not saved into the EEPROM and take immediate effect (no rebooting required). False value specifies the changes are permanently overwrides for settings And also saved into the EEPROM. The changes will keep after rebooting the device.public void getRomVersion()
public void getBleRomVersion()
public void destroy()
destroy
in class BaseDevice