Class RFIDScannerService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.rfidscanner.RFIDScannerService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance
,jpos.services.BaseService
,jpos.services.RFIDScannerService112
,jpos.services.RFIDScannerService113
,jpos.services.RFIDScannerService114
,jpos.services.RFIDScannerService115
,jpos.services.RFIDScannerService116
RFIDScanner service implementation. For more details about getter, setter and method implementations,
see JposBase.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInstance of a class implementing the RFIDScannerInterface for RFID scanner specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props
-
Constructor Summary
ConstructorsConstructorDescriptionRFIDScannerService(RFIDScannerProperties props, JposDevice device)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
disableTag(byte[] tagID, int timeout, byte[] password)
void
firstTag()
boolean
boolean
boolean
int
boolean
boolean
int
boolean
byte[]
int
byte[]
int
int
int
void
lockTag(byte[] tagID, int timeout, byte[] password)
void
nextTag()
void
void
readTags(int cmd, byte[] filterID, byte[] filtermask, int start, int length, int timeout, byte[] password)
void
setCurrentTagData(int index)
Sets the current tag properties to the tag pointed to by the given index in the list of tags read, provided by the last delivered RFIDScannerDataEvent event.void
setProtocolMask(int mask)
void
setReadTimerInterval(int interval)
void
startReadTags(int cmd, byte[] filterID, byte[] filtermask, int start, int length, byte[] password)
void
stopReadTags(byte[] password)
void
writeTagData(byte[] tagID, byte[] userdata, int start, int timeout, byte[] password)
void
writeTagID(byte[] sourceID, byte[] destID, int timeout, byte[] password)
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, clearOutput, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatistics
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEvents
Methods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
Methods inherited from interface jpos.services.RFIDScannerService112
clearInput, clearInputProperties, clearOutput, compareFirmwareVersion, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getDataCount, getDataEventEnabled, getOutputID, getPowerNotify, getPowerState, resetStatistics, retrieveStatistics, setAutoDisable, setDataEventEnabled, setPowerNotify, updateFirmware, updateStatistics
-
Field Details
-
RFIDScanner
Instance of a class implementing the RFIDScannerInterface for RFID scanner specific setter and method calls bound to the property set. Almost always the same object as Data.
-
-
Constructor Details
-
RFIDScannerService
Constructor. Stores given property set and device implementation object.- Parameters:
props
- Property set.device
- Device implementation object.
-
-
Method Details
-
getCapContinuousRead
public boolean getCapContinuousRead() throws jpos.JposException- Specified by:
getCapContinuousRead
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCapDisableTag
public boolean getCapDisableTag() throws jpos.JposException- Specified by:
getCapDisableTag
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCapLockTag
public boolean getCapLockTag() throws jpos.JposException- Specified by:
getCapLockTag
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCapMultipleProtocols
public int getCapMultipleProtocols() throws jpos.JposException- Specified by:
getCapMultipleProtocols
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCapReadTimer
public boolean getCapReadTimer() throws jpos.JposException- Specified by:
getCapReadTimer
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCapRealTimeData
public boolean getCapRealTimeData() throws jpos.JposException- Specified by:
getCapRealTimeData
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCapWriteTag
public int getCapWriteTag() throws jpos.JposException- Specified by:
getCapWriteTag
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getContinuousReadMode
public boolean getContinuousReadMode() throws jpos.JposException- Specified by:
getContinuousReadMode
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCurrentTagID
public byte[] getCurrentTagID() throws jpos.JposException- Specified by:
getCurrentTagID
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCurrentTagProtocol
public int getCurrentTagProtocol() throws jpos.JposException- Specified by:
getCurrentTagProtocol
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getCurrentTagUserData
public byte[] getCurrentTagUserData() throws jpos.JposException- Specified by:
getCurrentTagUserData
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getProtocolMask
public int getProtocolMask() throws jpos.JposException- Specified by:
getProtocolMask
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getReadTimerInterval
public int getReadTimerInterval() throws jpos.JposException- Specified by:
getReadTimerInterval
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
getTagCount
public int getTagCount() throws jpos.JposException- Specified by:
getTagCount
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
setProtocolMask
public void setProtocolMask(int mask) throws jpos.JposException- Specified by:
setProtocolMask
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
setReadTimerInterval
public void setReadTimerInterval(int interval) throws jpos.JposException- Specified by:
setReadTimerInterval
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
setCurrentTagData
public void setCurrentTagData(int index) throws jpos.JposExceptionSets the current tag properties to the tag pointed to by the given index in the list of tags read, provided by the last delivered RFIDScannerDataEvent event.- Parameters:
index
- Index within the tag list, must be a value between 0 and TagCount - 1.- Throws:
jpos.JposException
- if index is out of range.
-
firstTag
public void firstTag() throws jpos.JposException- Specified by:
firstTag
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
nextTag
public void nextTag() throws jpos.JposException- Specified by:
nextTag
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
previousTag
public void previousTag() throws jpos.JposException- Specified by:
previousTag
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
startReadTags
public void startReadTags(int cmd, byte[] filterID, byte[] filtermask, int start, int length, byte[] password) throws jpos.JposException- Specified by:
startReadTags
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
stopReadTags
public void stopReadTags(byte[] password) throws jpos.JposException- Specified by:
stopReadTags
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
readTags
public void readTags(int cmd, byte[] filterID, byte[] filtermask, int start, int length, int timeout, byte[] password) throws jpos.JposException- Specified by:
readTags
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
disableTag
public void disableTag(byte[] tagID, int timeout, byte[] password) throws jpos.JposException- Specified by:
disableTag
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
lockTag
public void lockTag(byte[] tagID, int timeout, byte[] password) throws jpos.JposException- Specified by:
lockTag
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
writeTagData
public void writeTagData(byte[] tagID, byte[] userdata, int start, int timeout, byte[] password) throws jpos.JposException- Specified by:
writeTagData
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-
writeTagID
public void writeTagID(byte[] sourceID, byte[] destID, int timeout, byte[] password) throws jpos.JposException- Specified by:
writeTagID
in interfacejpos.services.RFIDScannerService112
- Throws:
jpos.JposException
-