com.caen.RFIDLibrary
Class CAENRFIDLogicalSource

java.lang.Object
  extended by com.caen.RFIDLibrary.CAENRFIDLogicalSource

public final class CAENRFIDLogicalSource
extends java.lang.Object

The CAENRFIDLogicalSource class is used to create logical source objects. Logical source objects represent an aggregation of read points (antennas). Operations on the tags are performed using methods belonging to the logical source. In addition to the methods used to operate on the tags, the logical source class exports methods to configure the anticollision algorithm and to configure the composition of the logical source itself.


Nested Class Summary
static class CAENRFIDLogicalSource.InventoryFlag
          These are the flag value used in the inventory function that comes with Flag parameter.
 
Constructor Summary
protected CAENRFIDLogicalSource(CAENRFIDReader Reader, java.lang.String nome)
          Creates a new instance of CAENRFIDLogicalSource
 
Method Summary
 void addCAENRFIDEventListener(CAENRFIDEventListener listener)
          Adds the specified CAENRFID Event listener to receive event events from this CAENRIFDReceiver.
 void AddReadPoint(java.lang.String ReadPoint)
          Add a ReadPoint to the Source
 void AddTrigger(CAENRFIDTrigger trigger)
          Deprecated. 
 byte[] Authenticate_EPC_C1G2(CAENRFIDTag Tag, boolean SenRep, boolean IncRepLen, char Csi, byte[] Challenge, short RepLen, int Password)
          The Authenticate_EPC_C1G2 method allows an interrogator to perform tag, interrogator or mutual authentication.
 void BlockWriteTagData(CAENRFIDTag Tag, short Address, short Length, byte[] Data)
          Write into the Tag's memory (for byte at a time) (only ISO18000_6b) This method doesen't work with semi-pasive tags.
 void BlockWriteTagData(CAENRFIDTag Tag, short Address, short mask, short Length, byte[] Data)
          Write into the Tag's memory (for byte at a time) (only ISO18000_6b) This method doesen't work with semi-pasive tags.
 void ClearBuffer()
          Clear the whole internal reader's buffer.
 byte[] CustomCommand_EPC_C1G2(CAENRFIDTag Tag, byte SubCmd, short TXLen, byte[] Data, short RXLen)
          This method can be used to issue a generic Custom command as defined by the EPC Class1 Gen2 protocol specification.
 byte[] CustomCommand_EPC_C1G2(CAENRFIDTag Tag, byte SubCmd, short TXLen, byte[] Data, short RXLen, int AccessPassword)
          This method can be used to issue a generic Custom command as defined by the EPC Class1 Gen2 protocol specification.
 EM4325TagData EM4325_GetSensorData(CAENRFIDTag Tag, boolean UIDEnable, boolean NewSample)
          The GetSensorData command allows the reader to get the UID (if required) and sensor's tag information with a single command.
 byte[] EM4325_GetUID(CAENRFIDTag Tag)
           
 byte[] EM4325_GetUID(CAENRFIDTag Tag, int Password)
          The GetUID command allows the reader to get the UID from a tag with a single command.
 void EM4325_ResetAlarms(CAENRFIDTag Tag, int Password)
          The ResetAlarms command allows the reader to reset/clear the alarm conditions for Aux, Under Temp and Over Temp.
 byte[] EM4325_SendSPI(CAENRFIDTag Tag, byte SPIConfig, byte[] SPICmd, int SlaveSPILength)
          The SendSPI command allows the reader to use the EM4325 SPI interface to send an SPI command to an SPI slave device attached to the EM4325 chip.
 byte[] EM4325_SendSPI(CAENRFIDTag Tag, byte SPIConfig, byte[] SPICmd, int SlaveSPILength, int Password)
          The SendSPI command allows the reader to use the EM4325 SPI interface to send an SPI command to an SPI slave device attached to the EM4325 chip.
 boolean EventInventoryTag(byte[] Mask, short MaskLength, short Position, short Flag)
          A call to this method will start a sequence of read cycle on each read point linked to the logical source.
protected  void fireCAENRFIDEvent(CAENRFIDEvent evt)
           
 byte Fujitsu_BurstErase(CAENRFIDTag Tag, byte MemBank, short Address, byte Length)
          Sends the Fujitsu BurstErase custom command
 byte Fujitsu_BurstErase(CAENRFIDTag Tag, byte MemBank, short Address, byte Length, int AccessPassword)
          Sends the Fujitsu BurstErase custom command
 byte Fujitsu_BurstWrite(CAENRFIDTag Tag, byte MemBank, short Address, byte Length, byte[] data)
          Sends the Fujitsu BurstWrite custom command
 byte Fujitsu_BurstWrite(CAENRFIDTag Tag, byte MemBank, short Address, byte Length, byte[] Data, int AccessPassword)
          Sends the Fujitsu BurstWrite custom command
 void Fujitsu_ChgBlockGroupPassword(CAENRFIDTag Tag, byte BlockGroupPtr, int NewPassword, int OldPassword)
          Sends the Fujitsu ChgBlockGroupPassword custom command
 void Fujitsu_ChgBlockGroupPassword(CAENRFIDTag Tag, byte BlockGroupPtr, int NewPassword, int OldPassword, int AccessPassword)
          Sends the Fujitsu ChgBlockGroupPassword custom command
 void Fujitsu_ChgBlockLock(CAENRFIDTag Tag, byte BlockGroupPtr, int Payload, int UserPassword)
          Sends the Fujitsu ChgBlockLock custom command
 void Fujitsu_ChgBlockLock(CAENRFIDTag Tag, byte BlockGroupPtr, int Payload, int UserPassword, int AccessPassword)
          Sends the Fujitsu ChgBlockLock custom command
 void Fujitsu_ChgWordLock(CAENRFIDTag Tag, byte MemBank, short WordPtr, byte Payload, int UserPassword)
          Sends the Fujitsu ChgWordLock custom command
 void Fujitsu_ChgWordLock(CAENRFIDTag Tag, byte MemBank, short WordPtr, byte Payload, int UserPassword, int AccessPassword)
          Sends the Fujitsu ChgWordLock custom command
 byte[] Fujitsu_ReadBlockLock(CAENRFIDTag Tag, byte BlockGroupPtr)
          Sends the Fujitsu ReadBlockLock custom command
 byte[] Fujitsu_ReadBlockLock(CAENRFIDTag Tag, byte BlockGroupPtr, int AccessPassword)
          Sends the Fujitsu ReadBlockLock custom command
 void Fujitsu_Refresh(CAENRFIDTag Tag, byte option)
          Sends the Fujitsu Refresh custom command
 void Fujitsu_Refresh(CAENRFIDTag Tag, byte Option, int AccessPassword)
          Sends the Fujitsu Refresh custom command
 CAENRFIDTag[] GetBufferedData()
          The function returns all the Tags stored in reader's memory using all the ReadPoints belonging to the Source.
 CAENRFIDTag[] GetBufferedData(int address, int length)
          The function returns all the Tags stored in reader's memory using all the ReadPoints belonging to the Source.
 int GetBufferSize()
          Get the internal buffer size.
 CAENRFIDLogicalSourceConstants GetDESB_ISO180006B()
          Get the current DESB value for the C1G2 Protocol of the Source
 int GetInventoryCounts()
          Gets the current setting for the number of inventory counts performed by the logical source after pressing the TRIGGER during the inventory algorithm execution.
 int GetInventoryDwellTime()
          Gets the inventory execution time (msec) used by the logical source during the inventory algorithm execution.
 int GetInventoryQuietTime()
          Gets the inventory quiet time (msec) used by the logical source during the inventory algorithm execution.
 int GetLostThreshold()
          Deprecated. 
 java.lang.String GetName()
          Get the name of the Source
 int GetObservedThreshold()
          Deprecated. 
 int GetQ_EPC_C1G2()
          This method can be used to retrieve the current setting for the initial Q value (see EPC Class1 Gen2 protocol specification) used by the anticollision algorithm when called on this logical source.
 int GetReadCycle()
          This method gets the current setting for the number of read cycles performed by the logical source during the inventory algorithm execution.
 CAENRFIDLogicalSourceConstants GetSelected_EPC_C1G2()
          Get the current Selected value for the C1G2 Protocol of the Source
 CAENRFIDLogicalSourceConstants GetSession_EPC_C1G2()
          This method can be used to retrieve the Session setting (see EPC Class1 Gen2 protocol specification) used by the anticollision algorithm when called on this logical source.
 CAENRFIDLogicalSourceConstants GetTarget_EPC_C1G2()
          Get the current Target value for the C1G2 Protocol of the Source
 int GetTIDLength()
          This method can be use to get the excepted TID length when TID reading is enabled as flag in inventory methods.
 CAENRFIDTag GroupSelUnsel(CAENRFIDSelUnselOptions Code, short Address, short BitMask, byte[] Data)
          Send a Group SelectUnselect command to the reader
 void Hitachi_BlockLock(CAENRFIDTag Tag, byte BlockNum, int UserPassword, byte PayLoad)
          Sends the Hitachi BlockLock custom command
 void Hitachi_BlockLock(CAENRFIDTag Tag, byte BlockNum, int UserPassword, byte PayLoad, int AccessPassword)
          Sends the Hitachi BlockLock custom command
 void Hitachi_BlockReadLock(CAENRFIDTag Tag, byte BlockNum, int UserPassword, byte PayLoad)
          Sends the Hitachi BlockReadLock custom command
 void Hitachi_BlockReadLock(CAENRFIDTag Tag, byte BlockNum, int UserPassword, byte PayLoad, int AccessPassword)
          Sends the Hitachi BlockReadLock custom command
 HitachiSysInfo Hitachi_GetSystemInfo(CAENRFIDTag Tag)
          Deprecated. 
 HitachiSysInfo Hitachi_GetSystemInfo(CAENRFIDTag Tag, int AccessPassword)
          Sends the Hitachi GetSystemInfo custom command
 void Hitachi_ReadLock(CAENRFIDTag Tag, short Payload)
          Sends the Hitachi ReadLock custom command
 void Hitachi_ReadLock(CAENRFIDTag Tag, short Payload, int AccessPassword)
          Sends the Hitachi ReadLock custom command
 void Hitachi_SetAttenuate(CAENRFIDTag Tag, byte Level, boolean LevelLock)
          Sends the Hitachi SetAttenuate custom command
 void Hitachi_SetAttenuate(CAENRFIDTag Tag, byte Level, boolean LevelLock, int AccessPassword)
          Sends the Hitachi SetAttenuate custom command
 void Hitachi_WriteMultipleWords(CAENRFIDTag Tag, short MemBank, short Address, byte Length, byte[] Data)
          Sends the Hitachi WriteMultipleWord custom command
 void Hitachi_WriteMultipleWords(CAENRFIDTag Tag, short MemBank, short WordPtr, byte WordCount, byte[] MaskData, int AccessPassword)
          Sends the Hitachi WriteMultipleWord custom command
 CAENRFIDTag[] Inventory()
          Deprecated. As of CAENRFIDLibrary version 2.1, replaced by InventoryTag.
 CAENRFIDTag[] InventoryTag()
          The function returns all the Tags under the reader field using all the ReadPoints belonging to the Source.
 CAENRFIDTag[] InventoryTag(byte[] Mask, short MaskLength, short Position)
          The function returns all the Tags under the reader field that match to a specified mask, using all the ReadPoints belonging to the Source.
 CAENRFIDTag[] InventoryTag(byte[] Mask, short MaskLength, short Position, short Flag)
          The function returns all the Tags under the reader field that match to a specified mask, using all the ReadPoints belonging to the Source.
 CAENRFIDTag[] InventoryTag(short bank, byte[] Mask, short MaskLength, short Position)
          The function returns all the Tags under the reader field that match to a specified mask, using all the ReadPoints belonging to the Source.
 CAENRFIDTag[] InventoryTag(short bank, byte[] Mask, short MaskLength, short Position, short Flag)
          The function returns all the Tags under the reader field that match to a specified mask, using all the ReadPoints belonging to the Source.
 void ISO180006C_BroadcastSync(byte[] UTC)
          BroadcastSync is an optional ISO18000-6C command which allows readers to provide the current time to sensor tags.
 boolean isReadPointPresent(java.lang.String ReadPoint)
          Check if a ReadPoint is present in the Source
 void KillTag_EPC_C1G1(CAENRFIDTag Tag, short Password)
          Kill the EPC_C1G1 Tag.
 void KillTag_EPC_C1G2(CAENRFIDTag Tag, int Password)
          Kill the EPC_C1G2 Tag.
 void KillTag_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, int Password)
          Kill the EPC_C1G2 Tag
 void LockBlockPermalock_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short BlockPtr, short BlockRange, byte[] Mask, int AccessPassword)
          This method implements the BlockPermalock with ReadLock=1 as specified in EPC C1G2 rev. 1.2.0 protocol.
 void LockTag_EPC_C1G2(CAENRFIDTag Tag, int Payload)
          Lock a EPC C1G2 Tag's memory.
 void LockTag_EPC_C1G2(CAENRFIDTag Tag, int Payload, int AccessPassword)
          Lock a EPC C1G2 Tag's memory in Secure Mode.
 void LockTag_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, int Payload)
          Lock a EPC C1G2 Tag's memory in Secure Mode.
 void LockTag_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, int Payload, int AccessPassword)
          Lock a EPC C1G2 Tag's memory in Secure Mode.
 void LockTag_ISO180006B(CAENRFIDTag Tag, short Address)
          Lock a EPC C1G1 Tag's memory.
 void NXP_Calibrate(CAENRFIDTag Tag)
          Deprecated. 
 void NXP_Calibrate(CAENRFIDTag Tag, int AccessPassword)
          Sends the NXP Calibrate custom command
 void NXP_ChangeConfig(CAENRFIDTag Tag, short ConfigWord)
          This method can be used to issue a NXP_ChangeConfig custom command as defined in the NXP UCODE G2iM and G2iM+ datasheet.
 void NXP_ChangeConfig(CAENRFIDTag Tag, short ConfigWord, int Password)
          This method can be used to issue a NXP_ChangeConfig custom command as defined in the NXP UCODE G2iM and G2iM+ datasheet.
 void NXP_ChangeEAS(CAENRFIDTag Tag, boolean EAS)
          Deprecated. 
 void NXP_ChangeEAS(CAENRFIDTag Tag, boolean EAS, int AccessPassword)
          Sends the NXP Change EAS custom command
 byte[] NXP_EAS_Alarm()
          Sends the NXP EAS Alarm custom command
 byte[] NXP_EAS_Alarm(CAENRFIDTag Tag, int AccessPassword)
          Deprecated. 
 void NXP_ReadProtect(CAENRFIDTag Tag)
          Sends the NXP Calibrate custom command
 void NXP_ReadProtect(CAENRFIDTag Tag, int AccessPassword)
          Sends the NXP ReadProtect custom command
 void NXP_ResetReadProtect(CAENRFIDTag Tag, int Password)
          Sends the NXP ResetReadProtect custom command
 void NXP_ResetReadProtect(CAENRFIDTag Tag, int Password, int AccessPassword)
          Deprecated. 
 short ORIDAO_Begin(CAENRFIDTag Tag)
          The ORIDAOBegin command is used to put the tag in the open or secure mode: if the password's value is 0 or the given password does not match the access password stored in the reserved memory bank then the tag will be put in the open state, otherwhise the secure mode will be entered.
 short ORIDAO_Begin(CAENRFIDTag Tag, int Password)
          The ORIDAOBegin command is used to put the tag in the open or secure mode: if the password's value is 0 or the given password does not match the access password stored in the reserved memory bank then the tag will be put in the open state, otherwhise the secure mode will be entered.
 byte[] ORIDAO_Command(CAENRFIDTag Tag, short handle, short WriteLengthBit, byte[] WriteData, short ReplyLengthBit)
          The ORIDACommand is used to send the ORIDAO custom command to a tag put in the open or secure mode by a previous ORIDAO begin command.
 void ORIDAO_End(CAENRFIDTag Tag)
          The ORIDAOEnd command turn off the RF power which was left on by a previous ORIDAOBegin command.
 void ProgramID_EPC_C1G1(CAENRFIDTag Tag, short Password, boolean Lock)
          Write the ID into the EPC_C1G1 Tag
 void ProgramID_EPC_C1G2(CAENRFIDTag Tag, short NSI)
          Write the ID into the EPC_C1G2 Tag
 void ProgramID_EPC_C1G2(CAENRFIDTag Tag, short NSI, int AccessPassword)
          Write the ID into the EPC_C1G2 Tag in Secure Mode
 void ProgramID_EPC119(CAENRFIDTag Tag, byte[] NewID)
          Write the ID into the EPC_1.19 Tag
 boolean Query_EPC_C1G2()
          Query for detect a EPC C1G2 Tag.
 byte[] QueryAck_EPC_C1G2()
          Query for detect the single Tag under the RF field.
 byte[] ReadBlockPermalock_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short BlockPtr, short BlockRange, int AccessPassword)
          This method implements the BlockPermalock with ReadLock=0 as specified in EPC C1G2 rev. 1.2.0 protocol.
 byte[] ReadTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short Length)
          Read EPC C1G2 Tag's memory
 byte[] ReadTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short Length, int AccessPassword)
          Read EPC C1G2 Tag's memory in Secure Mode
 byte[] ReadTagData_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, short MemBank, short Address, short Length)
          Read EPC C1G2 Tag's memory
 byte[] ReadTagData_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, short MemBank, short Address, short Length, int AccessPassword)
          Read EPC C1G2 Tag's memory
 byte[] ReadTagData(CAENRFIDTag Tag, short Address, short Length)
          Read Tag's memory (only ISO18000_6b)
 void removeCAENRFIDEventListener(CAENRFIDEventListener listener)
          Removes the specified CAENRFIDEvent listener so that it no longer receives CAENRFID events from this CAENRFIDReceiver.
 void RemoveReadPoint(java.lang.String ReadPoint)
          Remove the a ReadPoint from the Source
 void RemoveTrigger(CAENRFIDTrigger trigger)
          Deprecated. 
 void ResetSession_EPC_C1G2()
          This method can be used to reset the Session status for EPC Class1 Gen2 tags.
 void SetDESB_ISO180006B(CAENRFIDLogicalSourceConstants Value)
          Set the DESB value for the ISO180006_B Protocol of the Source
 void SetInventoryCounts(int Value)
          Sets the number of inventory counts to be performed by the logical source after pressing the TRIGGER button during the inventory algorithm execution.
 void SetInventoryDwellTime(int Value)
          Sets the inventory execution time (msec) used by the logical source during the inventory algorithm execution.
 void SetInventoryQuietTime(int Value)
          Sets the inventory quiet time (msec) used by the logical source during the inventory algorithm execution.
 void SetLostThreshold(int Value)
          Deprecated. 
 void SetObservedThreshold(int Value)
          Deprecated. 
 void SetQ_EPC_C1G2(int Value)
          Set the Q value for the C1G2 Protocol of the Source
 void SetReadCycle(int Value)
          Set the number of ReadCycle of the Source
 void SetSelected_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)
          Set the Selected value for the C1G2 Protocol of the Source
 void SetSession_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)
          Set the Section value for the C1G2 Protocol of the Source
 void SetTarget_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)
          Set the Target value for the C1G2 Protocol of the Source
 void SetTIDLength(int Value)
          This method can be use to set the excepted TID length when TID reading is enabled as flag in inventory methods.
 void SL900A_EndLog(CAENRFIDTag Tag)
          This method can be used to issue an IDS SL900A EndLog custom command as defined in the IDS SL900A datasheet.
 byte[] SL900A_GetLogState(CAENRFIDTag Tag, boolean ShelfLife)
          This method can be used to issue an IDS SL900A Get Log State custom command as defined in the IDS SL900A datasheet.
 byte[] SL900A_GetMeasurementSetup(CAENRFIDTag Tag)
          The SL900A_GetMeasurementSetup method try to read the current system setup.
 IDSTagData SL900A_GetSensorValue(CAENRFIDTag Tag, byte SensorType)
          This method can be used to issue an IDS SL900A Get Sensor Value custom command as defined in the IDS SL900A datasheet.
 void SL900A_Initialize(CAENRFIDTag Tag, short DelayTime, short ApplicationData)
          This method can be used to issue an IDS SL900A Initialize custom command as defined in the IDS SL900A datasheet.
 void SL900A_SetLogLimits(CAENRFIDTag Tag, byte[] LogLimits)
          This SL900A_SetLogLimits method issues 4 limits that are going to be used for logging measurement data.
 void SL900A_SetLogMode(CAENRFIDTag Tag, int LogMode)
          The SET LOG MODE command sets the logging form, storage rule, enables sensors that are used in the logging process and finally sets the logging interval (in 1 second steps).
 void SL900A_StartLog(CAENRFIDTag Tag, int StartTime)
          The START LOG command starts the logging procedure and sets the Start time in UTC format.
 void Untraceable_EPC_C1G2(CAENRFIDTag Tag, boolean U, boolean HideEPC, byte HideTID, boolean HideUser, short Range, short NewEPCLen, int Password)
          The Untraceable_EPC_C1G2 command allows an interrogator with an asserted Untraceable privilege to instruct a Tag to (a) alter the L and U bits in EPC memory,(b) hide memory from interrogators with a deasserted Untraceable privilege and/or (c) reduce its operating range for all interrogators.
 void WriteTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short Length, byte[] Data)
          Write into the EPC C1G2 Tag's memory
 void WriteTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short Length, byte[] Data, int AccessPassword)
          Write into the EPC C1G2 Tag's memory in Secure Mode
 void WriteTagData_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, short MemBank, short Address, short Length, byte[] Data)
          Write EPC C1G2 Tag's memory
 void WriteTagData_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, short MemBank, short Address, short Length, byte[] Data, int AccessPassword)
          Write EPC C1G2 Tag's memory
 void WriteTagData(CAENRFIDTag Tag, short Address, short Length, byte[] Data)
          Write into the Tag's memory (only ISO18000_6b)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAENRFIDLogicalSource

protected CAENRFIDLogicalSource(CAENRFIDReader Reader,
                                java.lang.String nome)
Creates a new instance of CAENRFIDLogicalSource

Parameters:
Reader - The CAENRFIDReader class
nome - The name of the source
Method Detail

AddReadPoint

public void AddReadPoint(java.lang.String ReadPoint)
                  throws CAENRFIDException
Add a ReadPoint to the Source

Parameters:
antenna - The ReadPoint Name
Throws:
CAENRFIDException - If reader raise an error.

RemoveReadPoint

public void RemoveReadPoint(java.lang.String ReadPoint)
                     throws CAENRFIDException
Remove the a ReadPoint from the Source

Parameters:
ReadPoint - The ReadPoint Name
Throws:
CAENRFIDException - If reader raises an error

isReadPointPresent

public boolean isReadPointPresent(java.lang.String ReadPoint)
                           throws CAENRFIDException
Check if a ReadPoint is present in the Source

Parameters:
ReadPoint - The ReadPoint name
Returns:
a boolean value representing the presence of a ReadPoint in the Source
Throws:
CAENRFIDException - If reader raises an error

SetReadCycle

public void SetReadCycle(int Value)
                  throws CAENRFIDException
Set the number of ReadCycle of the Source

Parameters:
Value - The number of ReadCycle
Throws:
CAENRFIDException - If reader raises an error

GetReadCycle

public int GetReadCycle()
                 throws CAENRFIDException
This method gets the current setting for the number of read cycles performed by the logical source during the inventory algorithm execution. ReadCycle affects only inventory performed with continuos mode

Returns:
The number of ReadCycle of the Source
Throws:
CAENRFIDException - If reader raises an error

SetInventoryCounts

public void SetInventoryCounts(int Value)
                        throws CAENRFIDException
Sets the number of inventory counts to be performed by the logical source after pressing the TRIGGER button during the inventory algorithm execution.

Parameters:
Value - The number of read cycles.
Throws:
CAENRFIDException - If reader raises an error.

GetInventoryCounts

public int GetInventoryCounts()
                       throws CAENRFIDException
Gets the current setting for the number of inventory counts performed by the logical source after pressing the TRIGGER during the inventory algorithm execution.

Returns:
The number of read cycles.
Throws:
CAENRFIDException - If reader raises an error.

SetInventoryDwellTime

public void SetInventoryDwellTime(int Value)
                           throws CAENRFIDException
Sets the inventory execution time (msec) used by the logical source during the inventory algorithm execution.

Parameters:
Value - Inventory execution time (msec).
Throws:
CAENRFIDException - If reader raises an error.

GetInventoryDwellTime

public int GetInventoryDwellTime()
                          throws CAENRFIDException
Gets the inventory execution time (msec) used by the logical source during the inventory algorithm execution.

Returns:
Inventory execution time (msec).
Throws:
CAENRFIDException - If reader raises an error.

SetInventoryQuietTime

public void SetInventoryQuietTime(int Value)
                           throws CAENRFIDException
Sets the inventory quiet time (msec) used by the logical source during the inventory algorithm execution.

Parameters:
Value - The inventory quiet time (msec)
Throws:
CAENRFIDException - If reader raises an error.

GetInventoryQuietTime

public int GetInventoryQuietTime()
                          throws CAENRFIDException
Gets the inventory quiet time (msec) used by the logical source during the inventory algorithm execution.

Returns:
The inventory quiet time (msec)
Throws:
CAENRFIDException - If reader raises an error.

SetObservedThreshold

@Deprecated
public void SetObservedThreshold(int Value)
                          throws CAENRFIDException
Deprecated. 

Set the threshold for the Observed status of the Source

Parameters:
Value - The threshold value
Throws:
CAENRFIDException - If reader raises an error

GetObservedThreshold

@Deprecated
public int GetObservedThreshold()
                         throws CAENRFIDException
Deprecated. 

Get the current threshold for the Observed status of the Source

Returns:
The current threshold value
Throws:
CAENRFIDException - If reader raises an error

SetLostThreshold

@Deprecated
public void SetLostThreshold(int Value)
                      throws CAENRFIDException
Deprecated. 

Set the threshold for the Lost status of the Source

Parameters:
Value - The threshold value
Throws:
CAENRFIDException - If reader raises an error

GetLostThreshold

@Deprecated
public int GetLostThreshold()
                     throws CAENRFIDException
Deprecated. 

Get the current threshold for the Lost status of the Source

Returns:
The current threshold value
Throws:
CAENRFIDException - If reader raises an error

GetName

public java.lang.String GetName()
Get the name of the Source

Returns:
The Source Name

AddTrigger

@Deprecated
public void AddTrigger(CAENRFIDTrigger trigger)
                throws CAENRFIDException
Deprecated. 

Add a read trigger in the Source

Parameters:
trigger - The CAENRFIDTrigger representing the trigger to be added in the Source
Throws:
CAENRFIDException - If reader raises an error

RemoveTrigger

@Deprecated
public void RemoveTrigger(CAENRFIDTrigger trigger)
                   throws CAENRFIDException
Deprecated. 

Remove a read Trigger from the Source

Parameters:
trigger - The CAENRFIDTrigger representing the trigger to be removed from the Source
Throws:
CAENRFIDException - If reader raises an error

Inventory

@Deprecated
public CAENRFIDTag[] Inventory()
                        throws CAENRFIDException
Deprecated. As of CAENRFIDLibrary version 2.1, replaced by InventoryTag.

The function returns all the Tags under the reader field using all the ReadPoints belonging to the Source.

Returns:
An array of CAENRFIDTag objects detected
Throws:
CAENRFIDException - If reader raises an error.

InventoryTag

public CAENRFIDTag[] InventoryTag()
                           throws CAENRFIDException
The function returns all the Tags under the reader field using all the ReadPoints belonging to the Source.

Returns:
An array of CAENRFIDTag objects detected
Throws:
CAENRFIDException - If reader raises an error.

InventoryTag

public CAENRFIDTag[] InventoryTag(byte[] Mask,
                                  short MaskLength,
                                  short Position)
                           throws CAENRFIDException
The function returns all the Tags under the reader field that match to a specified mask, using all the ReadPoints belonging to the Source.

Parameters:
Mask - A byte array representing the bitmask to apply.
MaskLength - A value representing the bit-oriented length of the bitmask.
Position - A value representing the first bit of ID where the match will start.
Returns:
An array of CAENRFIDTag objects detected
Throws:
CAENRFIDException - If reader raises an error.

InventoryTag

public CAENRFIDTag[] InventoryTag(byte[] Mask,
                                  short MaskLength,
                                  short Position,
                                  short Flag)
                           throws CAENRFIDException
The function returns all the Tags under the reader field that match to a specified mask, using all the ReadPoints belonging to the Source. Bit 0 RSSI on/off Bit 1: Framed data on/off Bit 2: Continuous acquisition on/off Bit 3: Compact data on/off Bit 4: TID reading on/off Bit 6: XPC reading on/off Bit 8: PC reading on/off

Parameters:
Mask - A byte array representing the bitmask to apply.
MaskLength - A value representing the bit-oriented length of the bitmask.
Position - A value representing the first bit of ID where the match will start.
Flag - A bitmask representing the InventoryTag options.
Returns:
An array of CAENRFIDTag objects detected
Throws:
CAENRFIDException - If reader raises an error.

InventoryTag

public CAENRFIDTag[] InventoryTag(short bank,
                                  byte[] Mask,
                                  short MaskLength,
                                  short Position)
                           throws CAENRFIDException
The function returns all the Tags under the reader field that match to a specified mask, using all the ReadPoints belonging to the Source.

Parameters:
bank - A value representing the memory bank where apply the filter.
Mask - A byte array representing the bitmask to apply.
MaskLength - A value representing the bit-oriented length of the bitmask.
Position - A value representing the first bit of ID where the match will start.
Returns:
An array of CAENRFIDTag objects detected
Throws:
CAENRFIDException - If reader raises an error.

InventoryTag

public CAENRFIDTag[] InventoryTag(short bank,
                                  byte[] Mask,
                                  short MaskLength,
                                  short Position,
                                  short Flag)
                           throws CAENRFIDException
The function returns all the Tags under the reader field that match to a specified mask, using all the ReadPoints belonging to the Source.

Parameters:
bank - A value representing the memory bank where apply the filter
Mask - The byte array representing the Mask to match to the ID
MaskLength - the length in bit of the Mask
Position - The start index in bit from where starting to compare the Mask
Flag - A bitmask representing the InventoryTag options. Bit 0 RSSI on/off Bit 1: Framed data on/off Bit 2: Continuous acquisition on/off Bit 3: Compact data on/off Bit 4: TID reading on/off Bit 6: XPC reading on/off Bit 8: PC reading on/off
Returns:
An array of CAENRFIDTag objects detected
Throws:
CAENRFIDException - If reader raises an error.

EventInventoryTag

public boolean EventInventoryTag(byte[] Mask,
                                 short MaskLength,
                                 short Position,
                                 short Flag)
                          throws CAENRFIDException
A call to this method will start a sequence of read cycle on each read point linked to the logical source. The readings will be notified to the controller via event generation.

Parameters:
Mask - A byte array representing the bitmask to apply.
MaskLength - A value representing the bit-oriented length of the bitmask.
Position - A value representing the first bit of ID where the match will start.
Flag - A bitmask representing the InventoryTag options. Bit 0 RSSI on/off Bit 1: Framed data on/off Bit 2: Continuous acquisition on/off Bit 3: Compact data on/off Bit 4: TID reading on/off Bit 5: (A828BT only!): EventTrigger mode on/off Bit 6: XPC reading on/off Bit 7: Match Tag (only A828BT) on/off Bit 8: PC reading on/off
Returns:
A boolean value that represents the status of the command: true if the reader has accepted the command; false otherwise.
Throws:
CAENRFIDException

GetBufferedData

public CAENRFIDTag[] GetBufferedData()
                              throws CAENRFIDException
The function returns all the Tags stored in reader's memory using all the ReadPoints belonging to the Source.

Returns:
An array of CAENRFIDTag objects detected
Throws:
CAENRFIDException

GetBufferedData

public CAENRFIDTag[] GetBufferedData(int address,
                                     int length)
                              throws CAENRFIDException
The function returns all the Tags stored in reader's memory using all the ReadPoints belonging to the Source. User can specifies the portion of items that want to get.

Parameters:
address - This is the zero-based item's index from which start the data download.
length - This is the number of the items to read from address - index item.
Returns:
An array of CAENRFIDTag objects detected
Throws:
CAENRFIDException

GetBufferSize

public int GetBufferSize()
                  throws CAENRFIDException
Get the internal buffer size.

Returns:
The current number of items stored in the internal's reader buffer
Throws:
CAENRFIDException

ClearBuffer

public void ClearBuffer()
                 throws CAENRFIDException
Clear the whole internal reader's buffer.

Throws:
CAENRFIDException

ReadTagData

public byte[] ReadTagData(CAENRFIDTag Tag,
                          short Address,
                          short Length)
                   throws CAENRFIDException
Read Tag's memory (only ISO18000_6b)

Parameters:
Tag - The CAENRFIDTag representing the Tag to be readed
Address - The starting Tag's Address
Length - The number of byte to be readed
Returns:
The Tag's memory value readed.
Throws:
CAENRFIDException - If reader raises an error

ReadTagData_EPC_C1G2

public byte[] ReadTagData_EPC_C1G2(CAENRFIDTag Tag,
                                   short MemBank,
                                   short Address,
                                   short Length)
                            throws CAENRFIDException
Read EPC C1G2 Tag's memory

Parameters:
Tag - The CAENRFIDTag representing the Tag to be readed
MemBank - The Memory Bank to read
Address - The starting Tag's Address
Length - The number of byte to be readed
Returns:
The Tag's memory value readed.
Throws:
CAENRFIDException - If reader raises an error

ReadTagData_EPC_C1G2

public byte[] ReadTagData_EPC_C1G2(CAENRFIDTag Tag,
                                   short MemBank,
                                   short Address,
                                   short Length,
                                   int AccessPassword)
                            throws CAENRFIDException
Read EPC C1G2 Tag's memory in Secure Mode

Parameters:
Tag - The CAENRFIDTag representing the Tag to be readed
MemBank - The Memory Bank to read
Address - The starting Tag's Address
Length - The number of byte to be readed
AccessPassword - The Secure password.
Returns:
The Tag's memory value readed.
Throws:
CAENRFIDException - If reader raises an error

ReadTagData_EPC_C1G2

public byte[] ReadTagData_EPC_C1G2(short BankMask,
                                   short PositionMask,
                                   short LengthMask,
                                   byte[] Mask,
                                   short MemBank,
                                   short Address,
                                   short Length)
                            throws CAENRFIDException
Read EPC C1G2 Tag's memory

Parameters:
BankMask - Memory bank for tag identificantion
PositionMask - A value representing the first bit of BankMask where the match will start.
LengthMask - A value representing the bit-oriented length of the bitmask.
Mask - A byte array representing the bitmask to apply.
MemBank - The Memory Bank to read
Address - The starting Tag's Address
Length - The number of byte to be readed
Returns:
The Tag's memory value readed.
Throws:
CAENRFIDException - If reader raises an error

ReadTagData_EPC_C1G2

public byte[] ReadTagData_EPC_C1G2(short BankMask,
                                   short PositionMask,
                                   short LengthMask,
                                   byte[] Mask,
                                   short MemBank,
                                   short Address,
                                   short Length,
                                   int AccessPassword)
                            throws CAENRFIDException
Read EPC C1G2 Tag's memory

Parameters:
BankMask - Memory bank for tag identificantion
PositionMask - A value representing the first bit of BankMask where the match will start.
LengthMask - A value representing the bit-oriented length of the bitmask.
Mask - A byte array representing the bitmask to apply.
MemBank - The Memory Bank to read
Address - The starting Tag's Address
Length - The number of byte to be readed
AccessPassword - The Secure password.
Returns:
The Tag's memory value readed.
Throws:
CAENRFIDException - If reader raises an error

LockBlockPermalock_EPC_C1G2

public void LockBlockPermalock_EPC_C1G2(CAENRFIDTag Tag,
                                        short MemBank,
                                        short BlockPtr,
                                        short BlockRange,
                                        byte[] Mask,
                                        int AccessPassword)
                                 throws CAENRFIDException
This method implements the BlockPermalock with ReadLock=1 as specified in EPC C1G2 rev. 1.2.0 protocol.

Parameters:
Tag - The CAENRFIDTag representing the tag to be written
MemBank - The memory bank where to write the data.
BlockPtr - The address where to start writing the data.
BlockRange - The number of word of the mask
Mask - A bitmask that permit to select which of the four bytes have to be locked (i.e. mask 0x05 write the bytes on position Address + 1 and Address + 3)
AccessPassword - The access password
Throws:
CAENRFIDException

ReadBlockPermalock_EPC_C1G2

public byte[] ReadBlockPermalock_EPC_C1G2(CAENRFIDTag Tag,
                                          short MemBank,
                                          short BlockPtr,
                                          short BlockRange,
                                          int AccessPassword)
                                   throws CAENRFIDException
This method implements the BlockPermalock with ReadLock=0 as specified in EPC C1G2 rev. 1.2.0 protocol.

Parameters:
Tag - The CAENRFIDTag representing the tag to be read.
MemBank - Memory bank for tag identificantion
BlockPtr - The address to start where reading tag
BlockRange - The number of word to be read.
AccessPassword - The access password.
Returns:
An array of bytes representing the data read from the tag
Throws:
CAENRFIDException

WriteTagData

public void WriteTagData(CAENRFIDTag Tag,
                         short Address,
                         short Length,
                         byte[] Data)
                  throws CAENRFIDException
Write into the Tag's memory (only ISO18000_6b)

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
Address - The starting Tag's Address
Length - The numbr of byte to be written
Data - The data to write into the Tag's memory
Throws:
CAENRFIDException - If reader raises an error

WriteTagData_EPC_C1G2

public void WriteTagData_EPC_C1G2(CAENRFIDTag Tag,
                                  short MemBank,
                                  short Address,
                                  short Length,
                                  byte[] Data)
                           throws CAENRFIDException
Write into the EPC C1G2 Tag's memory

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
MemBank - The Memory Bank to write
Address - The starting Tag's Address
Length - The numbr of byte to be written
Data - The data to write into the Tag's memory
Throws:
CAENRFIDException - If reader raises an error

WriteTagData_EPC_C1G2

public void WriteTagData_EPC_C1G2(CAENRFIDTag Tag,
                                  short MemBank,
                                  short Address,
                                  short Length,
                                  byte[] Data,
                                  int AccessPassword)
                           throws CAENRFIDException
Write into the EPC C1G2 Tag's memory in Secure Mode

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
MemBank - The Memory Bank to write
Address - The starting Tag's Address
Length - The number of byte to be written
Data - The data to write into the Tag's memory
AccessPassword - The Secure password.
Throws:
CAENRFIDException - If reader raises an error

WriteTagData_EPC_C1G2

public void WriteTagData_EPC_C1G2(short BankMask,
                                  short PositionMask,
                                  short LengthMask,
                                  byte[] Mask,
                                  short MemBank,
                                  short Address,
                                  short Length,
                                  byte[] Data)
                           throws CAENRFIDException
Write EPC C1G2 Tag's memory

Parameters:
BankMask - Memory bank for tag identificantion
PositionMask - A value representing the first bit of BankMask where the match will start.
LengthMask - A value representing the bit-oriented length of the bitmask.
Mask - A byte array representing the bitmask to apply.
MemBank - The Memory Bank to read
Address - The starting Tag's Address
Length - The number of byte to be written
Data - The data to write into the Tag's memory
Throws:
CAENRFIDException - If reader raises an error

WriteTagData_EPC_C1G2

public void WriteTagData_EPC_C1G2(short BankMask,
                                  short PositionMask,
                                  short LengthMask,
                                  byte[] Mask,
                                  short MemBank,
                                  short Address,
                                  short Length,
                                  byte[] Data,
                                  int AccessPassword)
                           throws CAENRFIDException
Write EPC C1G2 Tag's memory

Parameters:
BankMask - Memory bank for tag identificantion
PositionMask - A value representing the first bit of BankMask where the match will start.
LengthMask - A value representing the bit-oriented length of the bitmask.
Mask - A byte array representing the bitmask to apply.
MemBank - The Memory Bank to read
Address - The starting Tag's Address
Length - The number of byte to be written
Data - The data to write into the Tag's memory
AccessPassword - The Secure password.
Throws:
CAENRFIDException - If reader raises an error

BlockWriteTagData

public void BlockWriteTagData(CAENRFIDTag Tag,
                              short Address,
                              short Length,
                              byte[] Data)
                       throws CAENRFIDException
Write into the Tag's memory (for byte at a time) (only ISO18000_6b) This method doesen't work with semi-pasive tags.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
Address - The starting Tag's Address
Length - The numbr of byte to be written
Data - The data to write into the Tag's memory
Throws:
CAENRFIDException - If reader raises an error

BlockWriteTagData

public void BlockWriteTagData(CAENRFIDTag Tag,
                              short Address,
                              short mask,
                              short Length,
                              byte[] Data)
                       throws CAENRFIDException
Write into the Tag's memory (for byte at a time) (only ISO18000_6b) This method doesen't work with semi-pasive tags.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
Address - The starting Tag's Address
mask - The mask to choose which of 4 byte should be written (i.e. mask of 0x05 write byte on position Address + 1 and Address + 3)
Length - The numbr of byte to be written
Data - The data to write into the Tag's memory
Throws:
CAENRFIDException - If reader raises an error

LockTag_ISO180006B

public void LockTag_ISO180006B(CAENRFIDTag Tag,
                               short Address)
                        throws CAENRFIDException
Lock a EPC C1G1 Tag's memory.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be locked
Address - the Tag's Address to be locked
Throws:
CAENRFIDException - If reader raises an error

ProgramID_EPC119

public void ProgramID_EPC119(CAENRFIDTag Tag,
                             byte[] NewID)
                      throws CAENRFIDException
Write the ID into the EPC_1.19 Tag

Parameters:
Tag - The CAENRFIDTag representing the Tag to be modified
NewID - the byte representing the new ID for the Tag.
Throws:
CAENRFIDException - If reader raises an error

ProgramID_EPC_C1G1

public void ProgramID_EPC_C1G1(CAENRFIDTag Tag,
                               short Password,
                               boolean Lock)
                        throws CAENRFIDException
Write the ID into the EPC_C1G1 Tag

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
Password - the byte representing the password for the Tag
Lock - true if the Tag should be locked
Throws:
CAENRFIDException - If reader raises an error

ProgramID_EPC_C1G2

public void ProgramID_EPC_C1G2(CAENRFIDTag Tag,
                               short NSI)
                        throws CAENRFIDException
Write the ID into the EPC_C1G2 Tag

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
NSI - The Numbering System Identifier as defined in EPC C1G2 Protocol specifications.
Throws:
CAENRFIDException - If reader raises an error

KillTag_EPC_C1G1

public void KillTag_EPC_C1G1(CAENRFIDTag Tag,
                             short Password)
                      throws CAENRFIDException
Kill the EPC_C1G1 Tag.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be killed
Password - The Tag's password.
Throws:
CAENRFIDException - If reader raises an error

KillTag_EPC_C1G2

public void KillTag_EPC_C1G2(CAENRFIDTag Tag,
                             int Password)
                      throws CAENRFIDException
Kill the EPC_C1G2 Tag.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be killed
Password - The Tag's password.
Throws:
CAENRFIDException - If reader raises an error

KillTag_EPC_C1G2

public void KillTag_EPC_C1G2(short BankMask,
                             short PositionMask,
                             short LengthMask,
                             byte[] Mask,
                             int Password)
                      throws CAENRFIDException
Kill the EPC_C1G2 Tag

Parameters:
BankMask - Memory bank for tag identificantion
PositionMask - A value representing the first bit of BankMask where the match will start.
LengthMask - A value representing the bit-oriented length of the bitmask.
Mask - A byte array representing the bitmask to apply.
AccessPassword - The tag's kill password.
Throws:
CAENRFIDException

QueryAck_EPC_C1G2

public byte[] QueryAck_EPC_C1G2()
                         throws CAENRFIDException
Query for detect the single Tag under the RF field.

Returns:
The ID of the Tag
Throws:
CAENRFIDException - If reader raises an error

Untraceable_EPC_C1G2

public void Untraceable_EPC_C1G2(CAENRFIDTag Tag,
                                 boolean U,
                                 boolean HideEPC,
                                 byte HideTID,
                                 boolean HideUser,
                                 short Range,
                                 short NewEPCLen,
                                 int Password)
                          throws CAENRFIDException
The Untraceable_EPC_C1G2 command allows an interrogator with an asserted Untraceable privilege to instruct a Tag to (a) alter the L and U bits in EPC memory,(b) hide memory from interrogators with a deasserted Untraceable privilege and/or (c) reduce its operating range for all interrogators. See EPCGlobal Gen2 Specification EPCâ„¢ Radio-Frequency Identity Protocol Generation-2 UHF RFID v. 2.0.1 for additional information about this method.

Parameters:
Tag - The CAENRFIDTag representing the tag to be untraced.
U - A boolean value for the U bit in XPC_W1 word.
HideEPC - Specify whether a Tag untraceably hides part of EPC memory.
HideTID - Specify whether a Tag untraceably hides part of TID memory (allowed values: 0,1,2).
HideUser - Specify whether a Tag untraceably hides part of USER memory.
Range - A value specifying a tag’s operating range in terms of reading distance (allowed values: 0,1,2).
NewEPCLen - A value specifying a new EPC length field.
Password - The access password.
Throws:
CAENRFIDException - If reader raises an error.

Authenticate_EPC_C1G2

public byte[] Authenticate_EPC_C1G2(CAENRFIDTag Tag,
                                    boolean SenRep,
                                    boolean IncRepLen,
                                    char Csi,
                                    byte[] Challenge,
                                    short RepLen,
                                    int Password)
                             throws CAENRFIDException
The Authenticate_EPC_C1G2 method allows an interrogator to perform tag, interrogator or mutual authentication. The generic nature of the authenticate command allows it to support a variety of cryptographic suites. The number of authenticate commands required to implement an authentication depends on the authentication type and on the chosen cryptographic suite. See EPCGlobal Gen2 Specification EPCâ„¢ Radio-Frequency Identity Protocols Generation-2 UHF RFID v. 2.0.1 for additional information about this method.

Parameters:
Tag - The CAENRFIDTag representing the tag to be used for authentication.
SenRep - Specifies whether a tag backscatters its response or first stores the response in its ResponseBuffer and then returns the data from there.
IncRepLen - Specifies whether a tag omits or includes the response length in its reply.
Csi - Selects the cryptographic suite that tag and interrogator use for the authentication.
Challenge - It includes parameters and data for the authentication.
RepLen - Specify the byte's length of the tag's response.
Password - The access password.
Returns:
A byte array containing the tag's response to the authenticate command.
Throws:
CAENRFIDException - If reader raises an error.

ProgramID_EPC_C1G2

public void ProgramID_EPC_C1G2(CAENRFIDTag Tag,
                               short NSI,
                               int AccessPassword)
                        throws CAENRFIDException
Write the ID into the EPC_C1G2 Tag in Secure Mode

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
NSI - The Numbering System Identifier as defined in EPC C1G2 Protocol specifications.
AccessPassword - The Secure password.
Throws:
CAENRFIDException - If reader raises an error

LockTag_EPC_C1G2

public void LockTag_EPC_C1G2(CAENRFIDTag Tag,
                             int Payload)
                      throws CAENRFIDException
Lock a EPC C1G2 Tag's memory.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be locked
Payload - The Payload of the Tag.
Throws:
CAENRFIDException - If reader raises an error

LockTag_EPC_C1G2

public void LockTag_EPC_C1G2(CAENRFIDTag Tag,
                             int Payload,
                             int AccessPassword)
                      throws CAENRFIDException
Lock a EPC C1G2 Tag's memory in Secure Mode.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be locked
Payload - The Payload of the Tag.
AccessPassword - The Secure password.
Throws:
CAENRFIDException - If reader raises an error

LockTag_EPC_C1G2

public void LockTag_EPC_C1G2(short BankMask,
                             short PositionMask,
                             short LengthMask,
                             byte[] Mask,
                             int Payload)
                      throws CAENRFIDException
Lock a EPC C1G2 Tag's memory in Secure Mode.

Parameters:
BankMask - Memory bank for tag identificantion
PositionMask - A value representing the first bit of BankMask where the match will start.
LengthMask - A value representing the bit-oriented length of the bitmask.
Mask - A byte array representing the bitmask to apply.
Payload - The Payload of the Tag.
Throws:
CAENRFIDException

LockTag_EPC_C1G2

public void LockTag_EPC_C1G2(short BankMask,
                             short PositionMask,
                             short LengthMask,
                             byte[] Mask,
                             int Payload,
                             int AccessPassword)
                      throws CAENRFIDException
Lock a EPC C1G2 Tag's memory in Secure Mode.

Parameters:
BankMask - Memory bank for tag identificantion
PositionMask - A value representing the first bit of BankMask where the match will start.
LengthMask - A value representing the bit-oriented length of the bitmask.
Mask - A byte array representing the bitmask to apply.
Payload - The Payload of the Tag.
AccessPassword - The access password.
Throws:
CAENRFIDException

Query_EPC_C1G2

public boolean Query_EPC_C1G2()
                       throws CAENRFIDException
Query for detect a EPC C1G2 Tag.

Returns:
true if a Tag is detected
Throws:
CAENRFIDException - If reader raises an error

SetQ_EPC_C1G2

public void SetQ_EPC_C1G2(int Value)
                   throws CAENRFIDException
Set the Q value for the C1G2 Protocol of the Source

Parameters:
Value - The Q value
Throws:
CAENRFIDException - If reader raises an error

GetQ_EPC_C1G2

public int GetQ_EPC_C1G2()
                  throws CAENRFIDException
This method can be used to retrieve the current setting for the initial Q value (see EPC Class1 Gen2 protocol specification) used by the anticollision algorithm when called on this logical source.

Returns:
The current initial Q value setting.
Throws:
CAENRFIDException - If reader raises an error

SetTIDLength

public void SetTIDLength(int Value)
                  throws CAENRFIDException
This method can be use to set the excepted TID length when TID reading is enabled as flag in inventory methods.

Parameters:
Value - The TID length to set
Throws:
CAENRFIDException

GetTIDLength

public int GetTIDLength()
                 throws CAENRFIDException
This method can be use to get the excepted TID length when TID reading is enabled as flag in inventory methods.

Returns:
Value The current TID Length.
Throws:
CAENRFIDException

SetSession_EPC_C1G2

public void SetSession_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)
                         throws CAENRFIDException
Set the Section value for the C1G2 Protocol of the Source

Parameters:
Value - The Section value
Throws:
CAENRFIDException - If reader raises an error

GetSession_EPC_C1G2

public CAENRFIDLogicalSourceConstants GetSession_EPC_C1G2()
                                                   throws CAENRFIDException
This method can be used to retrieve the Session setting (see EPC Class1 Gen2 protocol specification) used by the anticollision algorithm when called on this logical source.

Returns:
The current Session value
Throws:
CAENRFIDException - If reader raises an error

SetTarget_EPC_C1G2

public void SetTarget_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)
                        throws CAENRFIDException
Set the Target value for the C1G2 Protocol of the Source

Parameters:
Value - The Target value
Throws:
CAENRFIDException - If reader raises an error

GetTarget_EPC_C1G2

public CAENRFIDLogicalSourceConstants GetTarget_EPC_C1G2()
                                                  throws CAENRFIDException
Get the current Target value for the C1G2 Protocol of the Source

Returns:
The current Target value
Throws:
CAENRFIDException - If reader raises an error

SetSelected_EPC_C1G2

public void SetSelected_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)
                          throws CAENRFIDException
Set the Selected value for the C1G2 Protocol of the Source

Parameters:
Value - The Selected value
Throws:
CAENRFIDException - If reader raises an error

GetSelected_EPC_C1G2

public CAENRFIDLogicalSourceConstants GetSelected_EPC_C1G2()
                                                    throws CAENRFIDException
Get the current Selected value for the C1G2 Protocol of the Source

Returns:
The current Selected value
Throws:
CAENRFIDException - If reader raises an error

SetDESB_ISO180006B

public void SetDESB_ISO180006B(CAENRFIDLogicalSourceConstants Value)
                        throws CAENRFIDException
Set the DESB value for the ISO180006_B Protocol of the Source

Parameters:
Value - The BESB value
Throws:
CAENRFIDException - If reader raises an error

GetDESB_ISO180006B

public CAENRFIDLogicalSourceConstants GetDESB_ISO180006B()
                                                  throws CAENRFIDException
Get the current DESB value for the C1G2 Protocol of the Source

Returns:
The current DESB value
Throws:
CAENRFIDException - If reader raises an error

ResetSession_EPC_C1G2

public void ResetSession_EPC_C1G2()
                           throws CAENRFIDException
This method can be used to reset the Session status for EPC Class1 Gen2 tags. After the execution of this method all the tags in the field of the antennas belonging to this logical source are back in the default Session.

Throws:
CAENRFIDException - If reader raises an error

CustomCommand_EPC_C1G2

public byte[] CustomCommand_EPC_C1G2(CAENRFIDTag Tag,
                                     byte SubCmd,
                                     short TXLen,
                                     byte[] Data,
                                     short RXLen)
                              throws CAENRFIDException
This method can be used to issue a generic Custom command as defined by the EPC Class1 Gen2 protocol specification. The parameters are used to specify the type of the custom command and its parameters.

Parameters:
Tag - The CAENRFIDTag representing the Tag to use
SubCmd - The Sub Command to send
Length - The length of the data to be sent to the Tag
Data - The data to be sent to the Tag
TRLength - The length of the data to receive
Returns:
The data returned by the Tag.
Throws:
CAENRFIDException - If reader raises an error

CustomCommand_EPC_C1G2

public byte[] CustomCommand_EPC_C1G2(CAENRFIDTag Tag,
                                     byte SubCmd,
                                     short TXLen,
                                     byte[] Data,
                                     short RXLen,
                                     int AccessPassword)
                              throws CAENRFIDException
This method can be used to issue a generic Custom command as defined by the EPC Class1 Gen2 protocol specification. The parameters are used to specify the type of the custom command and its parameters. The Custom command is executed after an Access command to switch the tag in the Secured state using the provided password.

Parameters:
Tag - The CAENRFIDTag representing the Tag to use
SubCmd - The Sub Command to send
Length - The length of the data to be sent to the Tag
Data - The data to be sent to the Tag
TRLength - The length of the data to receive
AccessPassword - The Secure password.
Returns:
The data returned by the Tag.
Throws:
CAENRFIDException - If reader raises an error

NXP_ReadProtect

public void NXP_ReadProtect(CAENRFIDTag Tag)
                     throws CAENRFIDException
Sends the NXP Calibrate custom command

Throws:
CAENRFIDException

NXP_ReadProtect

public void NXP_ReadProtect(CAENRFIDTag Tag,
                            int AccessPassword)
                     throws CAENRFIDException
Sends the NXP ReadProtect custom command

Throws:
CAENRFIDException

NXP_ResetReadProtect

public void NXP_ResetReadProtect(CAENRFIDTag Tag,
                                 int Password)
                          throws CAENRFIDException
Sends the NXP ResetReadProtect custom command

Throws:
CAENRFIDException

NXP_ResetReadProtect

@Deprecated
public void NXP_ResetReadProtect(CAENRFIDTag Tag,
                                            int Password,
                                            int AccessPassword)
                          throws CAENRFIDException
Deprecated. 

Sends the NXP ResetReadProtect custom command

Throws:
CAENRFIDException

NXP_ChangeEAS

@Deprecated
public void NXP_ChangeEAS(CAENRFIDTag Tag,
                                     boolean EAS)
                   throws CAENRFIDException
Deprecated. 

Sends the NXP Change EAS custom command

Throws:
CAENRFIDException

NXP_ChangeEAS

public void NXP_ChangeEAS(CAENRFIDTag Tag,
                          boolean EAS,
                          int AccessPassword)
                   throws CAENRFIDException
Sends the NXP Change EAS custom command

Throws:
CAENRFIDException

NXP_EAS_Alarm

public byte[] NXP_EAS_Alarm()
                     throws CAENRFIDException
Sends the NXP EAS Alarm custom command

Throws:
CAENRFIDException

NXP_EAS_Alarm

@Deprecated
public byte[] NXP_EAS_Alarm(CAENRFIDTag Tag,
                                       int AccessPassword)
                     throws CAENRFIDException
Deprecated. 

Sends the NXP EAS Alarm custom command

Throws:
CAENRFIDException

NXP_Calibrate

@Deprecated
public void NXP_Calibrate(CAENRFIDTag Tag)
                   throws CAENRFIDException
Deprecated. 

Sends the NXP Calibrate custom command

Throws:
CAENRFIDException

NXP_Calibrate

public void NXP_Calibrate(CAENRFIDTag Tag,
                          int AccessPassword)
                   throws CAENRFIDException
Sends the NXP Calibrate custom command

Throws:
CAENRFIDException

NXP_ChangeConfig

public void NXP_ChangeConfig(CAENRFIDTag Tag,
                             short ConfigWord)
                      throws CAENRFIDException
This method can be used to issue a NXP_ChangeConfig custom command as defined in the NXP UCODE G2iM and G2iM+ datasheet.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
ConfigWord - The configuration word.
Throws:
CAENRFIDException - If reader raises an error

NXP_ChangeConfig

public void NXP_ChangeConfig(CAENRFIDTag Tag,
                             short ConfigWord,
                             int Password)
                      throws CAENRFIDException
This method can be used to issue a NXP_ChangeConfig custom command as defined in the NXP UCODE G2iM and G2iM+ datasheet.

Parameters:
Tag - The CAENRFIDTag representing the Tag to be written
ConfigWord - The configuration word.
Password - The access password.
Throws:
CAENRFIDException - If reader raises an error

Hitachi_ReadLock

public void Hitachi_ReadLock(CAENRFIDTag Tag,
                             short Payload)
                      throws CAENRFIDException
Sends the Hitachi ReadLock custom command

Throws:
CAENRFIDException

Hitachi_ReadLock

public void Hitachi_ReadLock(CAENRFIDTag Tag,
                             short Payload,
                             int AccessPassword)
                      throws CAENRFIDException
Sends the Hitachi ReadLock custom command

Throws:
CAENRFIDException

Hitachi_WriteMultipleWords

public void Hitachi_WriteMultipleWords(CAENRFIDTag Tag,
                                       short MemBank,
                                       short Address,
                                       byte Length,
                                       byte[] Data)
                                throws CAENRFIDException
Sends the Hitachi WriteMultipleWord custom command

Throws:
CAENRFIDException

Hitachi_WriteMultipleWords

public void Hitachi_WriteMultipleWords(CAENRFIDTag Tag,
                                       short MemBank,
                                       short WordPtr,
                                       byte WordCount,
                                       byte[] MaskData,
                                       int AccessPassword)
                                throws CAENRFIDException
Sends the Hitachi WriteMultipleWord custom command

Throws:
CAENRFIDException

Hitachi_BlockLock

public void Hitachi_BlockLock(CAENRFIDTag Tag,
                              byte BlockNum,
                              int UserPassword,
                              byte PayLoad)
                       throws CAENRFIDException
Sends the Hitachi BlockLock custom command

Throws:
CAENRFIDException

Hitachi_BlockLock

public void Hitachi_BlockLock(CAENRFIDTag Tag,
                              byte BlockNum,
                              int UserPassword,
                              byte PayLoad,
                              int AccessPassword)
                       throws CAENRFIDException
Sends the Hitachi BlockLock custom command

Throws:
CAENRFIDException

Hitachi_BlockReadLock

public void Hitachi_BlockReadLock(CAENRFIDTag Tag,
                                  byte BlockNum,
                                  int UserPassword,
                                  byte PayLoad)
                           throws CAENRFIDException
Sends the Hitachi BlockReadLock custom command

Throws:
CAENRFIDException

Hitachi_BlockReadLock

public void Hitachi_BlockReadLock(CAENRFIDTag Tag,
                                  byte BlockNum,
                                  int UserPassword,
                                  byte PayLoad,
                                  int AccessPassword)
                           throws CAENRFIDException
Sends the Hitachi BlockReadLock custom command

Throws:
CAENRFIDException

Hitachi_GetSystemInfo

@Deprecated
public HitachiSysInfo Hitachi_GetSystemInfo(CAENRFIDTag Tag)
                                     throws CAENRFIDException
Deprecated. 

Sends the Hitachi GetSystemInfo custom command

Throws:
CAENRFIDException

Hitachi_GetSystemInfo

public HitachiSysInfo Hitachi_GetSystemInfo(CAENRFIDTag Tag,
                                            int AccessPassword)
                                     throws CAENRFIDException
Sends the Hitachi GetSystemInfo custom command

Throws:
CAENRFIDException

Hitachi_SetAttenuate

public void Hitachi_SetAttenuate(CAENRFIDTag Tag,
                                 byte Level,
                                 boolean LevelLock)
                          throws CAENRFIDException
Sends the Hitachi SetAttenuate custom command

Throws:
CAENRFIDException

Hitachi_SetAttenuate

public void Hitachi_SetAttenuate(CAENRFIDTag Tag,
                                 byte Level,
                                 boolean LevelLock,
                                 int AccessPassword)
                          throws CAENRFIDException
Sends the Hitachi SetAttenuate custom command

Throws:
CAENRFIDException

Fujitsu_Refresh

public void Fujitsu_Refresh(CAENRFIDTag Tag,
                            byte option)
                     throws CAENRFIDException
Sends the Fujitsu Refresh custom command

Throws:
CAENRFIDException

Fujitsu_Refresh

public void Fujitsu_Refresh(CAENRFIDTag Tag,
                            byte Option,
                            int AccessPassword)
                     throws CAENRFIDException
Sends the Fujitsu Refresh custom command

Throws:
CAENRFIDException

Fujitsu_ChgWordLock

public void Fujitsu_ChgWordLock(CAENRFIDTag Tag,
                                byte MemBank,
                                short WordPtr,
                                byte Payload,
                                int UserPassword)
                         throws CAENRFIDException
Sends the Fujitsu ChgWordLock custom command

Throws:
CAENRFIDException

Fujitsu_ChgWordLock

public void Fujitsu_ChgWordLock(CAENRFIDTag Tag,
                                byte MemBank,
                                short WordPtr,
                                byte Payload,
                                int UserPassword,
                                int AccessPassword)
                         throws CAENRFIDException
Sends the Fujitsu ChgWordLock custom command

Throws:
CAENRFIDException

Fujitsu_ChgBlockLock

public void Fujitsu_ChgBlockLock(CAENRFIDTag Tag,
                                 byte BlockGroupPtr,
                                 int Payload,
                                 int UserPassword)
                          throws CAENRFIDException
Sends the Fujitsu ChgBlockLock custom command

Throws:
CAENRFIDException

Fujitsu_ChgBlockLock

public void Fujitsu_ChgBlockLock(CAENRFIDTag Tag,
                                 byte BlockGroupPtr,
                                 int Payload,
                                 int UserPassword,
                                 int AccessPassword)
                          throws CAENRFIDException
Sends the Fujitsu ChgBlockLock custom command

Throws:
CAENRFIDException

Fujitsu_ReadBlockLock

public byte[] Fujitsu_ReadBlockLock(CAENRFIDTag Tag,
                                    byte BlockGroupPtr)
                             throws CAENRFIDException
Sends the Fujitsu ReadBlockLock custom command

Throws:
CAENRFIDException

Fujitsu_ReadBlockLock

public byte[] Fujitsu_ReadBlockLock(CAENRFIDTag Tag,
                                    byte BlockGroupPtr,
                                    int AccessPassword)
                             throws CAENRFIDException
Sends the Fujitsu ReadBlockLock custom command

Throws:
CAENRFIDException

Fujitsu_ChgBlockGroupPassword

public void Fujitsu_ChgBlockGroupPassword(CAENRFIDTag Tag,
                                          byte BlockGroupPtr,
                                          int NewPassword,
                                          int OldPassword)
                                   throws CAENRFIDException
Sends the Fujitsu ChgBlockGroupPassword custom command

Throws:
CAENRFIDException

Fujitsu_ChgBlockGroupPassword

public void Fujitsu_ChgBlockGroupPassword(CAENRFIDTag Tag,
                                          byte BlockGroupPtr,
                                          int NewPassword,
                                          int OldPassword,
                                          int AccessPassword)
                                   throws CAENRFIDException
Sends the Fujitsu ChgBlockGroupPassword custom command

Throws:
CAENRFIDException

Fujitsu_BurstWrite

public byte Fujitsu_BurstWrite(CAENRFIDTag Tag,
                               byte MemBank,
                               short Address,
                               byte Length,
                               byte[] data)
                        throws CAENRFIDException
Sends the Fujitsu BurstWrite custom command

Throws:
CAENRFIDException

Fujitsu_BurstWrite

public byte Fujitsu_BurstWrite(CAENRFIDTag Tag,
                               byte MemBank,
                               short Address,
                               byte Length,
                               byte[] Data,
                               int AccessPassword)
                        throws CAENRFIDException
Sends the Fujitsu BurstWrite custom command

Throws:
CAENRFIDException

Fujitsu_BurstErase

public byte Fujitsu_BurstErase(CAENRFIDTag Tag,
                               byte MemBank,
                               short Address,
                               byte Length)
                        throws CAENRFIDException
Sends the Fujitsu BurstErase custom command

Throws:
CAENRFIDException

Fujitsu_BurstErase

public byte Fujitsu_BurstErase(CAENRFIDTag Tag,
                               byte MemBank,
                               short Address,
                               byte Length,
                               int AccessPassword)
                        throws CAENRFIDException
Sends the Fujitsu BurstErase custom command

Throws:
CAENRFIDException

GroupSelUnsel

public CAENRFIDTag GroupSelUnsel(CAENRFIDSelUnselOptions Code,
                                 short Address,
                                 short BitMask,
                                 byte[] Data)
                          throws CAENRFIDException
Send a Group SelectUnselect command to the reader

Parameters:
code - The operation code
Address - The Address from which start the comparison
BitMask - The Bit Mask to use
Data - The data to be cempared
Returns:
the CAENRFIDTag detected.
Throws:
CAENRFIDException

EM4325_GetUID

public byte[] EM4325_GetUID(CAENRFIDTag Tag)
                     throws CAENRFIDException
Throws:
CAENRFIDException

EM4325_GetUID

public byte[] EM4325_GetUID(CAENRFIDTag Tag,
                            int Password)
                     throws CAENRFIDException
The GetUID command allows the reader to get the UID from a tag with a single command. The length and format of the UID is defined by the allocation class which shall be 0xE0(length : 64 bit), 0xE3(length : 80 bit), 0xE2 (length : 96 bit) or 0x44, 0x45, 0x46, 0x47 (length : 64).

Parameters:
Tag - The Tag contains the UID
Password - The access password
Returns:
The byte contains the UID of Tag
Throws:
CAENRFIDException

EM4325_GetSensorData

public EM4325TagData EM4325_GetSensorData(CAENRFIDTag Tag,
                                          boolean UIDEnable,
                                          boolean NewSample)
                                   throws CAENRFIDException
The GetSensorData command allows the reader to get the UID (if required) and sensor's tag information with a single command. Sensor's tag information can be related to the last acquired sample or to a new sample acquired by the tag after receiving this command but before replying to it.

Parameters:
Tag - The Tag containing the sensor data
UIDEnable - Enable the UID retrievement
NewSample - Force the tag's to acquire a new sample before replying
Returns:
Throws:
CAENRFIDException

EM4325_SendSPI

public byte[] EM4325_SendSPI(CAENRFIDTag Tag,
                             byte SPIConfig,
                             byte[] SPICmd,
                             int SlaveSPILength)
                      throws CAENRFIDException
The SendSPI command allows the reader to use the EM4325 SPI interface to send an SPI command to an SPI slave device attached to the EM4325 chip. The SendSPI command is only executed if the EM4325 chip is configured as an SPI master device and the SPI operation is enabled.

Parameters:
Tag - The Tag to send SPI command to.
SPIConfig - PI configuration Byte - bit 5-4 : SPI clock (00 : 40 KHz, 01 : 80KHz, 10 : 160 KHz, 11 : 320 KHz) - bit 3-2 : SPI start delay (00 : 1 SCLK, 01: 50 us, 10 : 500 us, 11 : 5 ms) - bit 1-0 : SPI delay between bytes (00 : none, 01: 50 us, 10 : 100 us, 11 : 500 us)
SPICmd - The Master SPI command bytes.
SlaveSPILength - Byte length of the SPI Response (direction : Slave -> Master).
Returns:
The slave's SPI response bytes.
Throws:
CAENRFIDException

EM4325_SendSPI

public byte[] EM4325_SendSPI(CAENRFIDTag Tag,
                             byte SPIConfig,
                             byte[] SPICmd,
                             int SlaveSPILength,
                             int Password)
                      throws CAENRFIDException
The SendSPI command allows the reader to use the EM4325 SPI interface to send an SPI command to an SPI slave device attached to the EM4325 chip. The SendSPI command is only executed if the EM4325 chip is configured as an SPI master device and the SPI operation is enabled.

Parameters:
Tag - The Tag to send SPI command to.
SPIConfig - PI configuration Byte - bit 5-4 : SPI clock (00 : 40 KHz, 01 : 80KHz, 10 : 160 KHz, 11 : 320 KHz) - bit 3-2 : SPI start delay (00 : 1 SCLK, 01: 50 us, 10 : 500 us, 11 : 5 ms) - bit 1-0 : SPI delay between bytes (00 : none, 01: 50 us, 10 : 100 us, 11 : 500 us)
SPICmd - The Master SPI command bytes.
SlaveSPILength - Byte length of the SPI Response (direction : Slave -> Master).
Password - The access password.
Returns:
The slave's SPI response bytes.
Throws:
CAENRFIDException

EM4325_ResetAlarms

public void EM4325_ResetAlarms(CAENRFIDTag Tag,
                               int Password)
                        throws CAENRFIDException
The ResetAlarms command allows the reader to reset/clear the alarm conditions for Aux, Under Temp and Over Temp. It resets also the UTC clock and the Monitor function. This command is executed only in Secure Mode, so a password is always required.

Parameters:
Tag - Tag to reset alarm
Password - The access password
Throws:
CAENRFIDException

ISO180006C_BroadcastSync

public void ISO180006C_BroadcastSync(byte[] UTC)
                              throws CAENRFIDException
BroadcastSync is an optional ISO18000-6C command which allows readers to provide the current time to sensor tags. Time is implemented as a 32 bit integer value representing UTC time with an LSB of one second and based on UTC time epoch beginning at 1970-01-01 00:00:00.

Parameters:
UTC - The 4 byte UTC fomat to broadcast over the antenna of the source
Throws:
CAENRFIDException

SL900A_Initialize

public void SL900A_Initialize(CAENRFIDTag Tag,
                              short DelayTime,
                              short ApplicationData)
                       throws CAENRFIDException
This method can be used to issue an IDS SL900A Initialize custom command as defined in the IDS SL900A datasheet.

The DelayTime structure is: - bit 15..4 : Delay time (expressed in seconds). - bit 3..2 : RFU - bit 1 : Delay mode (0 : Internal timer, 1 : External switch) - bit 0 : IRQ + Timer Enable The ApplicationData structure is: - bit 15..7 : Application Area size (in words) - bit 6..3 : RFU - bit 2..0 : Broken word pointer.

Parameters:
Tag - The tag to initialize
DelayTime - The DelayTime parameter let the user configure the time delay from the start logging command to the first temperature sample.
ApplicationData - The Application data that contains size itself
Throws:
CAENRFIDException

SL900A_SetLogMode

public void SL900A_SetLogMode(CAENRFIDTag Tag,
                              int LogMode)
                       throws CAENRFIDException
The SET LOG MODE command sets the logging form, storage rule, enables sensors that are used in the logging process and finally sets the logging interval (in 1 second steps).

Logmode structure is: bit 31..24 : RFU. bit 23..21 : Logging Form. bit 20 : Storage Rule. bit 19 : Ext1 sensor enable. bit 18 : Ext2 sensor enable. bit 17 : Temperature sensor enable. bit 16 : Battery Check enable. bit 15.. 0 : Log Interval. bit 0 : RFU.

Parameters:
Tag - The tag to set log mode on.
LogMode - The LogMode parameter let the user configure chip's logging mode.
Throws:
CAENRFIDException

SL900A_StartLog

public void SL900A_StartLog(CAENRFIDTag Tag,
                            int StartTime)
                     throws CAENRFIDException
The START LOG command starts the logging procedure and sets the Start time in UTC format. In logging state the chips automatically performs the measurements and data logging in the specified time intervals. Supported is also a delayed start, which means that the chip will start with the logging procedure with a specified delay after it receives the START LOG command. This command also starts the Interrupt mode of operation where the measurements and data-logging are driven from external events.

The StartTime structure is: bit 31..26 : Year. bit 25..21 : Month. bit 15..11 : Hour. bit 10.. 6 : Minute. bit 5.. 0 : Second.

Parameters:
Tag - The Tag where start logging
StartTime - The start time
Throws:
CAENRFIDException

SL900A_EndLog

public void SL900A_EndLog(CAENRFIDTag Tag)
                   throws CAENRFIDException
This method can be used to issue an IDS SL900A EndLog custom command as defined in the IDS SL900A datasheet.

Parameters:
Tag - The tag where stop the log.
Throws:
CAENRFIDException

SL900A_GetLogState

public byte[] SL900A_GetLogState(CAENRFIDTag Tag,
                                 boolean ShelfLife)
                          throws CAENRFIDException
This method can be used to issue an IDS SL900A Get Log State custom command as defined in the IDS SL900A datasheet.

The Structure of the returned parameters is: - LimitCounter The limit counter word is composed as: 31..24 : Extreme Lower. 23..16 : Lower. 16..08 : Upper. 08..00 : Extreme Upper. - SystemStatus The SystemStatus word is composed as: 31..22 : Measurement Address Pointer. 21..16 : Number of memory replacements. 15..01 : Number of measuremenst. 00 : Active bit. - ShelfLifeBlock - CurrentShelfLife - StatusFlag The StatusFlag byte is composed as: 7 : Active. 6 : Measurement Area Full. 5 : Measurement Overwritten. 4 : AD error. 3 : Low Battery. 2 : Shelf Life Low Error. 1 : Shelf Life High Error. 0 : Shelf Life Expired.

Parameters:
Tag - The tag selected
ShelfLife - This parameter is used to inform the reader if the shelf life flag is set in the tag's EEPROM.
Returns:
It returns all parameters of the log state.
Throws:
CAENRFIDException

SL900A_GetSensorValue

public IDSTagData SL900A_GetSensorValue(CAENRFIDTag Tag,
                                        byte SensorType)
                                 throws CAENRFIDException
This method can be used to issue an IDS SL900A Get Sensor Value custom command as defined in the IDS SL900A datasheet.

The Sensor Type word is composed as: bit 07..02 : Extreme Lower. bit 01..00 : Sensor Type. -Sensor type bits can be: 00 : Temperature sensor. 01 : External sensor 1. 10 : External sensor 2. 11 : Battery Voltage.

Parameters:
Tag - The tag to extract sensor data.
SensorType - Describe what sensor to choose.
Returns:
Return and IDSTagData object contains all data read form tag's selected sensor
Throws:
CAENRFIDException

SL900A_SetLogLimits

public void SL900A_SetLogLimits(CAENRFIDTag Tag,
                                byte[] LogLimits)
                         throws CAENRFIDException
This SL900A_SetLogLimits method issues 4 limits that are going to be used for logging measurement data. Each of the 4 limits is 10 bit long. The LogLimits parameter is composed as: 39..30 : Extreme Lower. 29..20 : Lower. 19..10 : Upper. 09..00 : Extreme Upper.

Parameters:
Tag - The target tag where apply the limits.
LogLimits - An array of 4 bytes containing the fourty bits representing limit values.
Throws:
CAENRFIDException - If reader raises an error.

SL900A_GetMeasurementSetup

public byte[] SL900A_GetMeasurementSetup(CAENRFIDTag Tag)
                                  throws CAENRFIDException
The SL900A_GetMeasurementSetup method try to read the current system setup. The current setup is returned as: | ST | LL | LM | LI | DT | AD | ST: StartTime (4 bytes) LL: LogLimits (5 bytes) LM : LogMode (1 byte) LI: LogInterval (2 bytes) DT: DelayTime (2 bytes) AD: ApplicationData (2 bytes)

Parameters:
Tag - The target tag from which read the current setup.
Returns:
It will return an array of bytes rapresenting the setup values.
Throws:
CAENRFIDException - If reader raises an error.

ORIDAO_Begin

public short ORIDAO_Begin(CAENRFIDTag Tag)
                   throws CAENRFIDException
The ORIDAOBegin command is used to put the tag in the open or secure mode: if the password's value is 0 or the given password does not match the access password stored in the reserved memory bank then the tag will be put in the open state, otherwhise the secure mode will be entered. If the command is succesfull, the reader wil wait for one or more ORIDAO custom commands with the RF power turned on.

Parameters:
Tag - The selected tag.
Returns:
The tag's handle.
Throws:
CAENRFIDException

ORIDAO_Begin

public short ORIDAO_Begin(CAENRFIDTag Tag,
                          int Password)
                   throws CAENRFIDException
The ORIDAOBegin command is used to put the tag in the open or secure mode: if the password's value is 0 or the given password does not match the access password stored in the reserved memory bank then the tag will be put in the open state, otherwhise the secure mode will be entered. If the command is succesfull, the reader wil wait for one or more ORIDAO custom commands with the RF power turned on.

Parameters:
Tag - The selected tag.
Password - The access password
Returns:
The tag's handle
Throws:
CAENRFIDException

ORIDAO_Command

public byte[] ORIDAO_Command(CAENRFIDTag Tag,
                             short handle,
                             short WriteLengthBit,
                             byte[] WriteData,
                             short ReplyLengthBit)
                      throws CAENRFIDException
The ORIDACommand is used to send the ORIDAO custom command to a tag put in the open or secure mode by a previous ORIDAO begin command.

Parameters:
Tag - The selected tag
handle - The tag's handle
WriteLengthBit - Number of bit to send
WriteData - An array of byte representing the bit to be sent to the tag (it includes the 16 bit ORIDAO custom command field, RFU, CmdType, WordCountCmd, WordCountAns, DataFields).
ReplyLengthBit - Number of bit to be received (header, handle and CRC excluded)
Returns:
A byte array where the received bit will be stored (header, handle and CRC excluded)
Throws:
CAENRFIDException

ORIDAO_End

public void ORIDAO_End(CAENRFIDTag Tag)
                throws CAENRFIDException
The ORIDAOEnd command turn off the RF power which was left on by a previous ORIDAOBegin command.

Parameters:
Tag - The selected tag.
Throws:
CAENRFIDException

addCAENRFIDEventListener

public void addCAENRFIDEventListener(CAENRFIDEventListener listener)
Adds the specified CAENRFID Event listener to receive event events from this CAENRIFDReceiver.

Parameters:
listener - the action listener

removeCAENRFIDEventListener

public void removeCAENRFIDEventListener(CAENRFIDEventListener listener)
Removes the specified CAENRFIDEvent listener so that it no longer receives CAENRFID events from this CAENRFIDReceiver.

Parameters:
listener - the action listener

fireCAENRFIDEvent

protected void fireCAENRFIDEvent(CAENRFIDEvent evt)