| java.lang.Object | |
| ↳ | com.datalogic.device.rfid.RfidManager |
RFIDManager gives developers access to RFID-related
functionalities of the device.
To manage RFID inventory sessions with this class, use the following steps:
RfidManager();
startInventory(). Your registered
RFIDStartListener/RFIDReadListener/RFIDTimeoutListener will be called when a successful
read occurs or if the configured timeout expires, etc;
stopInventory() to end the reading session;
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an
RfidManager instance and initializes the connection
with the underlying RFID system service. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Registers a
RfidReadListener to be notified when a read event is
triggered. | |||||||||||
Registers a
RfidStartListener to be notified when a inventory started
event is triggered. | |||||||||||
Registers a
RfidStopListener to be notified when a inventory stopped
event is triggered. | |||||||||||
Registers a
RfidTimeoutListener to be notified when a inventory
timeout event is triggered. | |||||||||||
Disables the RFID tag if it matches the filter and has the correct password.
| |||||||||||
Locks or unlocks specified objects on an RFID tag based on the provided filter and password.
| |||||||||||
Locks RFID UCODE9 tag based on the provided filter and password.
| |||||||||||
Reads data from a specified memory bank of an RFID tag.
| |||||||||||
Unregisters a
RfidReadListener associated with the reader. | |||||||||||
Unregisters a
RfidStartListener associated with the reader. | |||||||||||
Unregisters a
RfidStopListener associated with the reader. | |||||||||||
Unregisters a
RfidTimeoutListener associated with the reader. | |||||||||||
Call this method to start an RFID inventory operation.
| |||||||||||
Call this method to stop an ongoing RFID inventory operation.
| |||||||||||
Writes data to a specified memory bank of an RFID tag.
| |||||||||||
Writes data to the EPC memory bank of an RFID tag, only one RFID Tag must be in the writing area.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs an RfidManager instance and initializes the connection
with the underlying RFID system service.
| RfidException | If an error occurs during initialization of the RFID service, including service retrieval failure, unavailability, or unexpected runtime exceptions. |
|---|---|
| DeviceException | If the RFID service is not available, returns a null reference, or the feature is not supported or not initialized. |
Registers a RfidReadListener to be notified when a read event is
triggered. Call removeReadListener(RfidReadListener) before the application
closes to properly shut down the listener.
| listener | The RfidReadListener that will be called when a
reader's read event is fired. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Registers a RfidStartListener to be notified when a inventory started
event is triggered. Call removeStartListener(RfidStartListener) before the
application closes to properly shut down the listener.
| listener | The RfidStartListener that will be called when a
reader's started inventory event is fired. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Registers a RfidStopListener to be notified when a inventory stopped
event is triggered. Call removeStopListener(RfidStopListener) before the
application closes to properly shut down the listener.
| listener | The RfidStopListener that will be called when a
reader's stopped inventory event is fired. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Registers a RfidTimeoutListener to be notified when a inventory
timeout event is triggered. Call removeTimeoutListener(RfidTimeoutListener)
before the application closes to properly shut down the listener.
| listener | The RfidTimeoutListener that will be called when a
reader's inventory timeout event is fired. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Disables the RFID tag if it matches the filter and has the correct password.
| filter | The RfidFilter used to select on which RFID tag to apply the operation. |
|---|---|
| password | The RfidPassword that demonstrates the operation is authorized on the tag.
If null, a default password of 4 bytes with value 0x00 is used. |
int SUCCESS in case of success,
otherwise an error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Locks or unlocks specified objects on an RFID tag based on the provided filter and password.
| filter | The RfidFilter used to select on which RFID tag to apply the operation. |
|---|---|
| password | The RfidPassword that demonstrates the operation is authorized on the tag.
If null, a default password of 4 bytes with value 0x00 is used. |
| object | The RfidLockObject enum used to select which objects to lock. |
| type | The RfidLockType enum that defines how each object must be locked or unlocked. |
int SUCCESS in case of success,
otherwise an error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Locks RFID UCODE9 tag based on the provided filter and password.
| filter | The RfidFilter used to select on which RFID tag to apply the operation. |
|---|---|
| password | The RfidPassword that demonstrates the operation is authorized on the tag.
If null, a default password of 4 bytes with value 0x00 is used. |
int SUCCESS in case of success,
otherwise an error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Reads data from a specified memory bank of an RFID tag.
| filter | The RfidFilter used to select which RFID tag to apply the operation to.
If null, no filtering is applied and the operation targets any tag in range. |
|---|---|
| password | The RfidPassword that authorizes the read operation on the tag.
If null, a default password of 4 bytes with value 0x00 is used. |
| bank | The RfidMemoryBankRegion from which the data must be read. |
| address | The starting address within the memory bank. |
| length | The number of words to read from the memory bank. |
| data | The output buffer that will contain the data read from the tag. Its size must be at least two times the required length, because RFID operation are word-based. |
int SUCCESS if the operation completes successfully,
otherwise an error code defined in RfidException.| RfidException | If an error occurs during the operation, and exceptions are enabled via the ErrorManager singleton.
|
|---|
Unregisters a RfidReadListener associated with the reader.
| listener | The RfidReadListener that will be no more notified. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Unregisters a RfidStartListener associated with the reader.
| listener | The RfidStartListener that will be no more notified. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Unregisters a RfidStopListener associated with the reader.
| listener | The RfidStopListener that will be no more notified. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Unregisters a RfidTimeoutListener associated with the reader.
| listener | The RfidTimeoutListener that will be no more
notified. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Call this method to start an RFID inventory operation.
The inventory process begins immediately upon invocation and continues until either:
- the configured timeout (if set via the Configuration Manager) expires, or
- the stopInventory() method is explicitly called.
int SUCCESS in case of success,
otherwise an error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Call this method to stop an ongoing RFID inventory operation.
This method can be used to manually terminate the inventory process before the configured timeout expires.
It is typically used in conjunction with startInventory() to control the duration of the inventory session.
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Writes data to a specified memory bank of an RFID tag.
| filter | The RfidFilter used to select on which RFID tag to apply the operation.
If null, no filtering is applied and the operation targets any tag in range. |
|---|---|
| password | The RfidPassword that demonstrates the operation is authorized on the tag.
If null, a default password of 4 bytes with value 0x00 is used. |
| bank | The RfidMemoryBankRegion on which the data must be written. |
| address | The address from which to start writing the data. |
| data | The data to be written. The length of the data must be even, as RFID memory is word-addressable. |
int SUCCESS in case of success,
otherwise a possible error code, matching one of the RfidException error constants.| RfidException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Writes data to the EPC memory bank of an RFID tag, only one RFID Tag must be in the writing area.
| password | The RfidPassword that authorizes the operation on the tag.
If null, a default password of 4 bytes with value 0x00 is used. |
|---|---|
| data | The EPC data to be written to the tag. |
int SUCCESS if the operation completes successfully,
otherwise an error code defined in RfidException.| RfidException | If an error occurs during the operation, and exceptions are enabled via the ErrorManager singleton.
|
|---|