Class CAENRFIDLogicalSource
- java.lang.Object
-
- com.caen.RFIDLibrary.CAENRFIDLogicalSource
-
public final class CAENRFIDLogicalSource extends 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.- Author:
- Andrea Iavazzo (support@caenrfid.com) CAEN RFID Srl Computing Division @2009-2016
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCAENRFIDLogicalSource.InventoryFlagThese are the flag value used in the inventory function that comes with Flag parameter.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCAENRFIDLogicalSource(CAENRFIDReader Reader, String nome)Creates a new instance of CAENRFIDLogicalSource
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddCAENRFIDEventListener(CAENRFIDEventListener listener)Adds the specified CAENRFID Event listener to receive event events from this CAENRIFDReceiver.voidAddReadPoint(String ReadPoint)Add a ReadPoint to the Sourcebyte[]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.voidBlockProgramID_EPC_C1G2(CAENRFIDTag Tag, short NSI, short BlockLength)This method can be used to optimize a programming operation on an ISO18000-6C (EPC Class1 Gen2) tag's ID space, writing data a block of bytes at time.voidBlockProgramID_EPC_C1G2(CAENRFIDTag Tag, short NSI, short BlockLength, int AccessPassword)This method can be used to optimize a programming operation on an ISO18000-6C (EPC Class1 Gen2) tag's ID space, writing data a block of bytes at time.voidBlockWriteTagData(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.voidBlockWriteTagData(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.voidBlockWriteTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short BlockLength, short Length, byte[] Data)This method can be used to optimize a writing operation on an ISO18000-6C (EPC Class1 Gen2) tag's memory, writing data a block of bytes at time.voidBlockWriteTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short BlockLength, short Length, byte[] Data, int AccessPassword)This method can be used to optimize a writing operation on an ISO18000-6C (EPC Class1 Gen2) tag's memory, writing data a block of bytes at time.voidClearBuffer()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.EM4325TagDataEM4325_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)The GetUID command allows the reader to get the UID from a tag with a single command.byte[]EM4325_GetUID(CAENRFIDTag Tag, int Password)The GetUID command allows the reader to get the UID from a tag with a single command.voidEM4325_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.booleanEventInventoryTag(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.booleanEventInventoryTag(byte[] Mask, short MaskLength, short Position, short Flag, InventorySubCommand subCommand)A call to this method will start a sequence of read cycle on each read point linked to the logical source.protected voidfireCAENRFIDEvent(CAENRFIDEvent evt)byteFujitsu_BurstErase(CAENRFIDTag Tag, byte MemBank, short Address, byte Length)Sends the Fujitsu BurstErase custom commandbyteFujitsu_BurstErase(CAENRFIDTag Tag, byte MemBank, short Address, byte Length, int AccessPassword)Sends the Fujitsu BurstErase custom commandbyteFujitsu_BurstWrite(CAENRFIDTag Tag, byte MemBank, short Address, byte Length, byte[] data)Sends the Fujitsu BurstWrite custom commandbyteFujitsu_BurstWrite(CAENRFIDTag Tag, byte MemBank, short Address, byte Length, byte[] Data, int AccessPassword)Sends the Fujitsu BurstWrite custom commandvoidFujitsu_ChgBlockGroupPassword(CAENRFIDTag Tag, byte BlockGroupPtr, int NewPassword, int OldPassword)Sends the Fujitsu ChgBlockGroupPassword custom commandvoidFujitsu_ChgBlockGroupPassword(CAENRFIDTag Tag, byte BlockGroupPtr, int NewPassword, int OldPassword, int AccessPassword)Sends the Fujitsu ChgBlockGroupPassword custom commandvoidFujitsu_ChgBlockLock(CAENRFIDTag Tag, byte BlockGroupPtr, int Payload, int UserPassword)Sends the Fujitsu ChgBlockLock custom commandvoidFujitsu_ChgBlockLock(CAENRFIDTag Tag, byte BlockGroupPtr, int Payload, int UserPassword, int AccessPassword)Sends the Fujitsu ChgBlockLock custom commandvoidFujitsu_ChgWordLock(CAENRFIDTag Tag, byte MemBank, short WordPtr, byte Payload, int UserPassword)Sends the Fujitsu ChgWordLock custom commandvoidFujitsu_ChgWordLock(CAENRFIDTag Tag, byte MemBank, short WordPtr, byte Payload, int UserPassword, int AccessPassword)Sends the Fujitsu ChgWordLock custom commandbyte[]Fujitsu_ReadBlockLock(CAENRFIDTag Tag, byte BlockGroupPtr)Sends the Fujitsu ReadBlockLock custom commandbyte[]Fujitsu_ReadBlockLock(CAENRFIDTag Tag, byte BlockGroupPtr, int AccessPassword)Sends the Fujitsu ReadBlockLock custom commandvoidFujitsu_Refresh(CAENRFIDTag Tag, byte option)Sends the Fujitsu Refresh custom commandvoidFujitsu_Refresh(CAENRFIDTag Tag, byte Option, int AccessPassword)Sends the Fujitsu Refresh custom commandCAENRFIDTag[]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.intGetBufferSize()Get the internal buffer size.CAENRFIDLogicalSourceConstantsGetDESB_ISO180006B()Get the current DESB value for the C1G2 Protocol of the SourceintGetInventoryCounts()Gets the current number of inventory round performed by the logical source during the inventory algorithm execution.intGetInventoryDwellTime()Gets the inventory execution time (msec) used by the logical source during the inventory algorithm execution.intGetInventoryQuietTime()Gets the inventory quiet time (msec) used by the logical source during the inventory algorithm execution.intGetLostThreshold()Deprecated.intGetMaxQ_EPC_C1G2()Get the current maximum Q Value for the C1G2 Protocol of the SourceintGetMinQ_EPC_C1G2()Get the current minimum Q Value for the C1G2 Protocol of the SourceStringGetName()Get the name of the SourceintGetNumMinQ_EPC_C1G2()Get the number of inventory round count to perform with minimum EPC Class 1 Gen. 2 Q value and no tags found on each readpoint of this logical source, before stop the inventory execution.intGetObservedThreshold()Deprecated.intGetQ_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.intGetReadCycle()This method gets the current number of read cycles performed by the logical source for the inventoryTag command execution.CAENRFIDLogicalSourceConstantsGetSelected_EPC_C1G2()Get the current Selected value for the C1G2 Protocol of the SourceCAENRFIDLogicalSourceConstantsGetSession_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.CAENRFIDLogicalSourceConstantsGetTarget_EPC_C1G2()Get the current Target value for the C1G2 Protocol of the SourceintGetTIDLength()This method can be use to get the excepted TID length when TID reading is enabled as flag in inventory methods.CAENRFIDTagGroupSelUnsel(CAENRFIDSelUnselOptions Code, short Address, short BitMask, byte[] Data)Send a Group SelectUnselect command to the readervoidHitachi_BlockLock(CAENRFIDTag Tag, byte BlockNum, int UserPassword, byte PayLoad)Sends the Hitachi BlockLock custom commandvoidHitachi_BlockLock(CAENRFIDTag Tag, byte BlockNum, int UserPassword, byte PayLoad, int AccessPassword)Sends the Hitachi BlockLock custom commandvoidHitachi_BlockReadLock(CAENRFIDTag Tag, byte BlockNum, int UserPassword, byte PayLoad)Sends the Hitachi BlockReadLock custom commandvoidHitachi_BlockReadLock(CAENRFIDTag Tag, byte BlockNum, int UserPassword, byte PayLoad, int AccessPassword)Sends the Hitachi BlockReadLock custom commandHitachiSysInfoHitachi_GetSystemInfo(CAENRFIDTag Tag)Deprecated.HitachiSysInfoHitachi_GetSystemInfo(CAENRFIDTag Tag, int AccessPassword)Sends the Hitachi GetSystemInfo custom commandvoidHitachi_ReadLock(CAENRFIDTag Tag, short Payload)Sends the Hitachi ReadLock custom commandvoidHitachi_ReadLock(CAENRFIDTag Tag, short Payload, int AccessPassword)Sends the Hitachi ReadLock custom commandvoidHitachi_SetAttenuate(CAENRFIDTag Tag, byte Level, boolean LevelLock)Sends the Hitachi SetAttenuate custom commandvoidHitachi_SetAttenuate(CAENRFIDTag Tag, byte Level, boolean LevelLock, int AccessPassword)Sends the Hitachi SetAttenuate custom commandvoidHitachi_WriteMultipleWords(CAENRFIDTag Tag, short MemBank, short Address, byte Length, byte[] Data)Sends the Hitachi WriteMultipleWord custom commandvoidHitachi_WriteMultipleWords(CAENRFIDTag Tag, short MemBank, short WordPtr, byte WordCount, byte[] MaskData, int AccessPassword)Sends the Hitachi WriteMultipleWord custom commandCAENRFIDTag[]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(byte[] Mask, short MaskLength, short Position, short Flag, InventorySubCommand subCommand)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, InventorySubCommand subCommand)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.CAENRFIDTag[]InventoryTag(short bank, byte[] Mask, short MaskLength, short Position, short Flag, InventorySubCommand subCommand)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, InventorySubCommand subCommand)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(InventorySubCommand subCommand)The function returns all the Tags under the reader field using all the ReadPoints belonging to the Source.voidISO180006C_BroadcastSync(byte[] UTC)BroadcastSync is an optional ISO18000-6C command which allows readers to provide the current time to sensor tags.booleanisReadPointPresent(String ReadPoint)Check if a ReadPoint is present in the SourcevoidKillTag_EPC_C1G1(CAENRFIDTag Tag, short Password)Kill the EPC_C1G1 Tag.voidKillTag_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, int Password)Kill the EPC_C1G2 Tag.voidKillTag_EPC_C1G2(CAENRFIDTag Tag, int Password)Kill the EPC_C1G2 Tag.voidLockBlockPermalock_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.voidLockTag_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, int Payload)Lock a EPC C1G2 Tag's memory in Secure Mode.voidLockTag_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, int Payload, int AccessPassword)Lock a EPC C1G2 Tag's memory in Secure Mode.voidLockTag_EPC_C1G2(CAENRFIDTag Tag, int Payload)Lock a EPC C1G2 Tag's memory.voidLockTag_EPC_C1G2(CAENRFIDTag Tag, int Payload, int AccessPassword)Lock a EPC C1G2 Tag's memory in Secure Mode.voidLockTag_ISO180006B(CAENRFIDTag Tag, short Address)Lock a EPC C1G1 Tag's memory.byte[]MAGNUSS2_ReadSensor(CAENRFIDTag Tag)The MAGNUSS2_ReadSensor method reads the tag sensor.byte[]MAGNUSS3_ReadSensor(CAENRFIDTag Tag)The MAGNUSS3_ReadSensor method reads the tag sensor.byte[]MAGNUSS3_ReadTemperature(CAENRFIDTag Tag)The MAGNUSS3_ReadTemperature method reads the tag temperature sensor.voidNXP_Calibrate(CAENRFIDTag Tag)Deprecated.voidNXP_Calibrate(CAENRFIDTag Tag, int AccessPassword)Sends the NXP Calibrate custom commandvoidNXP_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.voidNXP_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.voidNXP_ChangeEAS(CAENRFIDTag Tag, boolean EAS)Deprecated.voidNXP_ChangeEAS(CAENRFIDTag Tag, boolean EAS, int AccessPassword)Sends the NXP Change EAS custom commandbyte[]NXP_EAS_Alarm()Sends the NXP EAS Alarm custom commandbyte[]NXP_EAS_Alarm(CAENRFIDTag Tag, int AccessPassword)Deprecated.CAENRFIDTag_NXP_UCODE8[]NXP_InventoryWithBrandIdentifier()This method is used to run an inventory with the NXP UCODE 8/8m Brand Identifier returning option.voidNXP_ReadProtect(CAENRFIDTag Tag)Sends the NXP Calibrate custom commandvoidNXP_ReadProtect(CAENRFIDTag Tag, int AccessPassword)Sends the NXP ReadProtect custom commandvoidNXP_ResetReadProtect(CAENRFIDTag Tag, int Password)Sends the NXP ResetReadProtect custom commandvoidNXP_ResetReadProtect(CAENRFIDTag Tag, int Password, int AccessPassword)Deprecated.shortORIDAO_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.shortORIDAO_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.voidORIDAO_End(CAENRFIDTag Tag)The ORIDAOEnd command turn off the RF power which was left on by a previous ORIDAOBegin command.voidProgramID_EPC_C1G1(CAENRFIDTag Tag, short Password, boolean Lock)Write the ID into the EPC_C1G1 TagvoidProgramID_EPC_C1G2(CAENRFIDTag Tag, short NSI)Write the ID into the EPC_C1G2 TagvoidProgramID_EPC_C1G2(CAENRFIDTag Tag, short NSI, int AccessPassword)Write the ID into the EPC_C1G2 Tag in Secure ModevoidProgramID_EPC119(CAENRFIDTag Tag, byte[] NewID)Write the ID into the EPC_1.19 TagbooleanQuery_EPC_C1G2()Query for detect a EPC C1G2 Tag.byte[]QueryAck_EPC_C1G2()Query for detect the single Tag under the RF field.voidR1175OChargeDevice(CAENRFIDReader.CAENRFIDR1175OReaderConstants ChargeType, short OnOff)This method can be used to enable/disable the charging of the reader to or from a connected device.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(CAENRFIDTag Tag, short Address, short Length)Read Tag's memory (only ISO18000_6b)byte[]ReadTagData_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, short MemBank, short Address, short Length)Read EPC C1G2 Tag's memorybyte[]ReadTagData_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, short MemBank, short Address, short Length, int AccessPassword)Read EPC C1G2 Tag's memorybyte[]ReadTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short Length)Read EPC C1G2 Tag's memorybyte[]ReadTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short Length, int AccessPassword)Read EPC C1G2 Tag's memory in Secure ModevoidremoveCAENRFIDEventListener(CAENRFIDEventListener listener)Removes the specified CAENRFIDEvent listener so that it no longer receives CAENRFID events from this CAENRFIDReceiver.voidRemoveReadPoint(String ReadPoint)Remove the a ReadPoint from the SourcevoidResetSession_EPC_C1G2()This method can be used to reset the Session status for EPC Class1 Gen2 tags.voidSetDESB_ISO180006B(CAENRFIDLogicalSourceConstants Value)Set the DESB value for the ISO180006_B Protocol of the SourcevoidSetInventoryCounts(int Value)Sets the current number of inventory round performed by the logical source during the inventory algorithm execution.voidSetInventoryDwellTime(int Value)Sets the inventory execution time (msec) used by the logical source during the inventory algorithm execution.voidSetInventoryQuietTime(int Value)Sets the inventory quiet time (msec) used by the logical source during the inventory algorithm execution.voidSetLostThreshold(int Value)Deprecated.voidSetMaxQ_EPC_C1G2(int Value)Set the maximum Q value for the C1G2 Protocol of the SourcevoidSetMinQ_EPC_C1G2(int Value)Set the minimum Q value for the C1G2 Protocol of the SourcevoidSetNumMinQ_EPC_C1G2(int Value)Set the number of inventory round count to perform with minimum EPC Class 1 Gen. 2 Q value and no tags found on each readpoint of this logical source, before stop the inventory execution.voidSetObservedThreshold(int Value)Deprecated.voidSetQ_EPC_C1G2(int Value)Set the Q value for the C1G2 Protocol of the SourcevoidSetReadCycle(int Value)This method sets the current number of read cycles performed by the logical source for the inventoryTag command execution.voidSetSelected_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)Set the Selected value for the C1G2 Protocol of the SourcevoidSetSession_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)Set the Section value for the C1G2 Protocol of the SourcevoidSetTarget_EPC_C1G2(CAENRFIDLogicalSourceConstants Value)Set the Target value for the C1G2 Protocol of the SourcevoidSetTIDLength(int Value)This method can be use to set the excepted TID length when TID reading is enabled as flag in inventory methods.voidSL900A_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_GetBatteryLevel(CAENRFIDTag Tag, Boolean BatteryTypeReCheck)The SL900A_GetBatteryLevel method try to read the level of the battery The current status is returned as: | AD | BT | ZE | BL | AD : A\D error (1 bit) BT : Battery Type (1 bit) ZE : Zeros (4 bits) BL : Battery Level (10 bits)byte[]SL900A_GetCalibrationData(CAENRFIDTag Tag)The SL900A_GetCalibrationData method try to read the calibration data for the internal and external sensors.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.IDSTagDataSL900A_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.voidSL900A_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.voidSL900A_OpenArea(CAENRFIDTag Tag, byte PasswordLevel, int Password)The SL900A_OpenArea method opens the specified area of the memory.voidSL900A_SetLogLimits(CAENRFIDTag Tag, byte[] LogLimits)This SL900A_SetLogLimits method issues 4 limits that are going to be used for logging measurement data.voidSL900A_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).voidSL900A_SetPassword(CAENRFIDTag Tag, byte PasswordLevel, int Password)The SL900A_SetPassword method sets the password for the specified memory area.voidSL900A_StartLog(CAENRFIDTag Tag, int StartTime)The START LOG command starts the logging procedure and sets the Start time in UTC format.voidUntraceable_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.voidWriteTagData(CAENRFIDTag Tag, short Address, short Length, byte[] Data)Write into the Tag's memory (only ISO18000_6b)voidWriteTagData_EPC_C1G2(short BankMask, short PositionMask, short LengthMask, byte[] Mask, short MemBank, short Address, short Length, byte[] Data)Write EPC C1G2 Tag's memoryvoidWriteTagData_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 memoryvoidWriteTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short Length, byte[] Data)Write into the EPC C1G2 Tag's memoryvoidWriteTagData_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
-
-
-
Constructor Detail
-
CAENRFIDLogicalSource
protected CAENRFIDLogicalSource(CAENRFIDReader Reader, String nome)
Creates a new instance of CAENRFIDLogicalSource- Parameters:
Reader- The CAENRFIDReader classnome- The name of the source
-
-
Method Detail
-
AddReadPoint
public void AddReadPoint(String ReadPoint) throws CAENRFIDException
Add a ReadPoint to the Source- Parameters:
ReadPoint- The string identifies the antenna to attach (e.g. 'Ant0')- Throws:
CAENRFIDException- If reader raise an error.
-
RemoveReadPoint
public void RemoveReadPoint(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(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 CAENRFIDExceptionThis method sets the current number of read cycles performed by the logical source for the inventoryTag command execution.- Parameters:
Value- The number of ReadCycle- Throws:
CAENRFIDException- If reader raises an error
-
GetReadCycle
public int GetReadCycle() throws CAENRFIDExceptionThis method gets the current number of read cycles performed by the logical source for the inventoryTag command 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 CAENRFIDExceptionSets the current number of inventory round performed by the logical source during the inventory algorithm execution.- Parameters:
Value- The number of inventory rounds count.- Throws:
CAENRFIDException- If reader raises an error.
-
GetInventoryCounts
public int GetInventoryCounts() throws CAENRFIDExceptionGets the current number of inventory round performed by the logical source during the inventory algorithm execution.- Returns:
- The number of inventory rounds count.
- Throws:
CAENRFIDException- If reader raises an error.
-
SetInventoryDwellTime
public void SetInventoryDwellTime(int Value) throws CAENRFIDExceptionSets 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 CAENRFIDExceptionGets 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 CAENRFIDExceptionSets 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 CAENRFIDExceptionGets 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 String GetName()
Get the name of the Source- Returns:
- The Source Name
-
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(InventorySubCommand subCommand) throws CAENRFIDException
The function returns all the Tags under the reader field using all the ReadPoints belonging to the Source. For each tag found the reader performs a sub command.- Parameters:
subCommand- The sub command to perform for each tag found.- 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, InventorySubCommand subCommand) 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. For each tag found the reader performs a sub command.- Parameters:
Mask- The byte array representing the Mask to match to the IDMaskLength- the length in bit of the MaskPosition- The start index in bit from where starting to compare the MasksubCommand- The sub command to perform on each tag found.- 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(byte[] Mask, short MaskLength, short Position, short Flag, InventorySubCommand subCommand) 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. For each tag found the reader performs a sub command.- Parameters:
Mask- The byte array representing the Mask to match to the IDMaskLength- the length in bit of the MaskPosition- The start index in bit from where starting to compare the MaskFlag- A bitmask representing the InventoryTag options.subCommand- The sub command to perform on each tag found. 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 (Not allowed if subcommand is different from none.) Bit 7: XPC reading on/off- 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, InventorySubCommand subCommand) 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. For each tag found the reader performs a sub command.- Parameters:
bank- A value representing the memory bank where apply the filterMask- The byte array representing the Mask to match to the IDMaskLength- the length in bit of the MaskPosition- The start index in bit from where starting to compare the MasksubCommand- The sub command to perform on each tag found.- 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 filterMask- The byte array representing the Mask to match to the IDMaskLength- the length in bit of the MaskPosition- The start index in bit from where starting to compare the MaskFlag- 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.
-
InventoryTag
public CAENRFIDTag[] InventoryTag(short bank, byte[] Mask, short MaskLength, short Position, short Flag, InventorySubCommand subCommand) 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. For each tag found the reader performs a sub command.- Parameters:
bank- A value representing the memory bank where apply the filterMask- The byte array representing the Mask to match to the IDMaskLength- the length in bit of the MaskPosition- The start index in bit from where starting to compare the MaskFlag- A bitmask representing the InventoryTag options.subCommand- The sub command to perform on each tag found. 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 (Not allowed if subcommand is different from none.) Bit 7: XPC 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 CAENRFIDExceptionA 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: (reader with physical button 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
-
EventInventoryTag
public boolean EventInventoryTag(byte[] Mask, short MaskLength, short Position, short Flag, InventorySubCommand subCommand) throws CAENRFIDExceptionA 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. For each tag found the reader performs a sub command.- Parameters:
Mask- A byte array representing the bitmask to apply.MaskLength- A value representing the length of the bitmask.Position- A value representing the first bit where the match will start.Flag- A bitmask representing the InventoryTag options.subCommand- The sub command performed on each tag found. 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 (not allowed if sub command is different from none) Bit 5 (reader with physical button only!): EventTrigger mode on/off Bit 7: XPC 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- If reader raises an error.
-
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 CAENRFIDExceptionGet the internal buffer size.- Returns:
- The current number of items stored in the internal's reader buffer
- Throws:
CAENRFIDException
-
ClearBuffer
public void ClearBuffer() throws CAENRFIDExceptionClear 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 readedAddress- The starting Tag's AddressLength- 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 readedMemBank- The Memory Bank to readAddress- The starting Tag's AddressLength- 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 readedMemBank- The Memory Bank to readAddress- The starting Tag's AddressLength- The number of byte to be readedAccessPassword- 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 CAENRFIDExceptionRead EPC C1G2 Tag's memory- Parameters:
BankMask- Memory bank for tag identificantionPositionMask- 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 readAddress- The starting Tag's AddressLength- 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 CAENRFIDExceptionRead EPC C1G2 Tag's memory- Parameters:
BankMask- Memory bank for tag identificantionPositionMask- 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 readAddress- The starting Tag's AddressLength- The number of byte to be readedAccessPassword- 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 writtenMemBank- The memory bank where to write the data.BlockPtr- The address where to start writing the data.BlockRange- The number of word of the maskMask- 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 identificantionBlockPtr- The address to start where reading tagBlockRange- 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 writtenAddress- The starting Tag's AddressLength- The numbr of byte to be writtenData- 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 writtenMemBank- The Memory Bank to writeAddress- The starting Tag's AddressLength- The numbr of byte to be writtenData- 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 writtenMemBank- The Memory Bank to writeAddress- The starting Tag's AddressLength- The number of byte to be writtenData- The data to write into the Tag's memoryAccessPassword- 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 CAENRFIDExceptionWrite EPC C1G2 Tag's memory- Parameters:
BankMask- Memory bank for tag identificantionPositionMask- 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 readAddress- The starting Tag's AddressLength- The number of byte to be writtenData- 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 CAENRFIDExceptionWrite EPC C1G2 Tag's memory- Parameters:
BankMask- Memory bank for tag identificantionPositionMask- 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 readAddress- The starting Tag's AddressLength- The number of byte to be writtenData- The data to write into the Tag's memoryAccessPassword- The Secure password.- Throws:
CAENRFIDException- If reader raises an error
-
BlockWriteTagData_EPC_C1G2
public void BlockWriteTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short BlockLength, short Length, byte[] Data) throws CAENRFIDException
This method can be used to optimize a writing operation on an ISO18000-6C (EPC Class1 Gen2) tag's memory, writing data a block of bytes at time. It's an optional command, so before use it, please refer to the tag's manual.- Parameters:
Tag- The CAENRFIDTag representing the Tag to be writtenMemBank- The memory bank where to write the data.Address- The starting Tag's AddressBlockLength- The length in byte of a single block of data.Length- The number of byte to be writtenData- The data to write into the Tag's memory- Throws:
CAENRFIDException- If reader raises an error
-
BlockWriteTagData_EPC_C1G2
public void BlockWriteTagData_EPC_C1G2(CAENRFIDTag Tag, short MemBank, short Address, short BlockLength, short Length, byte[] Data, int AccessPassword) throws CAENRFIDException
This method can be used to optimize a writing operation on an ISO18000-6C (EPC Class1 Gen2) tag's memory, writing data a block of bytes at time. It's an optional command, so before use it, please refer to the tag's manual.- Parameters:
Tag- The CAENRFIDTag representing the Tag to be writtenMemBank- The memory bank where to write the data.Address- The starting Tag's AddressBlockLength- The length in byte of a single block of data.Length- The number of byte to be writtenData- The data to write into the Tag's memoryAccessPassword- The access 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 writtenAddress- The starting Tag's AddressLength- The numbr of byte to be writtenData- 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 writtenAddress- The starting Tag's Addressmask- 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 writtenData- 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 lockedAddress- 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 modifiedNewID- 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 writtenPassword- the byte representing the password for the TagLock- 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 writtenNSI- The Numbering System Identifier as defined in EPC C1G2 Protocol specifications.- Throws:
CAENRFIDException- If reader raises an error
-
BlockProgramID_EPC_C1G2
public void BlockProgramID_EPC_C1G2(CAENRFIDTag Tag, short NSI, short BlockLength) throws CAENRFIDException
This method can be used to optimize a programming operation on an ISO18000-6C (EPC Class1 Gen2) tag's ID space, writing data a block of bytes at time. It's an optional command, so before use it, please refer to the tag's manual.- Parameters:
Tag- The CAENRFIDTag representing the tag to be programmed, the ID contained in this object will be programmed into the tagNSI- The Numbering System Identifier as defined in EPC Class 1 Gen 2 protocol specifications.BlockLength- The length in byte of the single block of data.- Throws:
CAENRFIDException- If reader raises an error.
-
BlockProgramID_EPC_C1G2
public void BlockProgramID_EPC_C1G2(CAENRFIDTag Tag, short NSI, short BlockLength, int AccessPassword) throws CAENRFIDException
This method can be used to optimize a programming operation on an ISO18000-6C (EPC Class1 Gen2) tag's ID space, writing data a block of bytes at time. It's an optional command, so before use it, please refer to the tag's manual.- Parameters:
Tag- The CAENRFIDTag representing the tag to be programmed, the ID contained in this object will be programmed into the tagNSI- The Numbering System Identifier as defined in EPC Class 1 Gen 2 protocol specifications.BlockLength- The length in byte of the single block of data.AccessPassword- The access password.- 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 killedPassword- 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 killedPassword- 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 CAENRFIDExceptionKill the EPC_C1G2 Tag. Standard kill password value should be different than 0, to let the tag be killed.- Parameters:
BankMask- Memory bank for tag identificantionPositionMask- 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.Password- The kill password.- Throws:
CAENRFIDException- If reader raises an error.
-
QueryAck_EPC_C1G2
public byte[] QueryAck_EPC_C1G2() throws CAENRFIDExceptionQuery 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 writtenNSI- 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 lockedPayload- 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 lockedPayload- 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 CAENRFIDExceptionLock a EPC C1G2 Tag's memory in Secure Mode.- Parameters:
BankMask- Memory bank for tag identificantionPositionMask- 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 CAENRFIDExceptionLock a EPC C1G2 Tag's memory in Secure Mode.- Parameters:
BankMask- Memory bank for tag identificantionPositionMask- 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 CAENRFIDExceptionQuery 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 CAENRFIDExceptionSet 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 CAENRFIDExceptionThis 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
-
GetMinQ_EPC_C1G2
public int GetMinQ_EPC_C1G2() throws CAENRFIDExceptionGet the current minimum Q Value for the C1G2 Protocol of the Source- Returns:
- The current minimum Q value
- Throws:
CAENRFIDException- If reader raises an error
-
SetMinQ_EPC_C1G2
public void SetMinQ_EPC_C1G2(int Value) throws CAENRFIDExceptionSet the minimum Q value for the C1G2 Protocol of the Source- Parameters:
Value- The minimum Q value- Throws:
CAENRFIDException- If reader raises an error
-
GetMaxQ_EPC_C1G2
public int GetMaxQ_EPC_C1G2() throws CAENRFIDExceptionGet the current maximum Q Value for the C1G2 Protocol of the Source- Returns:
- The current maximum Q value
- Throws:
CAENRFIDException- If reader raises an error
-
SetMaxQ_EPC_C1G2
public void SetMaxQ_EPC_C1G2(int Value) throws CAENRFIDExceptionSet the maximum Q value for the C1G2 Protocol of the Source- Parameters:
Value- The maximum Q value- Throws:
CAENRFIDException- If reader raises an error
-
GetNumMinQ_EPC_C1G2
public int GetNumMinQ_EPC_C1G2() throws CAENRFIDExceptionGet the number of inventory round count to perform with minimum EPC Class 1 Gen. 2 Q value and no tags found on each readpoint of this logical source, before stop the inventory execution.- Returns:
- The current number of inventory round count with minimum Q.
- Throws:
CAENRFIDException- If reader raises an error
-
SetNumMinQ_EPC_C1G2
public void SetNumMinQ_EPC_C1G2(int Value) throws CAENRFIDExceptionSet the number of inventory round count to perform with minimum EPC Class 1 Gen. 2 Q value and no tags found on each readpoint of this logical source, before stop the inventory execution.- Parameters:
Value- The number of inventory round count with minimum Q.- Throws:
CAENRFIDException- If reader raises an error
-
SetTIDLength
public void SetTIDLength(int Value) throws CAENRFIDExceptionThis 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 CAENRFIDExceptionThis 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 CAENRFIDExceptionThis 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 useSubCmd- The Sub Command to sendTXLen- The length of the data to be sent to the TagData- The data to be sent to the TagRXLen- 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 useSubCmd- The Sub Command to sendTXLen- The length of the data to be sent to the TagData- The data to be sent to the TagRXLen- The length of the data to receiveAccessPassword- 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- Parameters:
Tag- The NXP tag to calibrate.- Throws:
CAENRFIDException- If reader raises an error
-
NXP_ReadProtect
public void NXP_ReadProtect(CAENRFIDTag Tag, int AccessPassword) throws CAENRFIDException
Sends the NXP ReadProtect custom command- Parameters:
Tag- The tag to protect.AccessPassword- The access password.- Throws:
CAENRFIDException- If reader raises an error
-
NXP_ResetReadProtect
public void NXP_ResetReadProtect(CAENRFIDTag Tag, int Password) throws CAENRFIDException
Sends the NXP ResetReadProtect custom command- Parameters:
Tag- The NXP read-protected tag to reset.Password- The Access password.- Throws:
CAENRFIDException- If reader raises an error
-
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- Parameters:
Tag- The tag where change the EAS.EAS- Indicator whereas the EAS should be changed or not.AccessPassword- The access password.- Throws:
CAENRFIDException- If reader raises an error
-
NXP_EAS_Alarm
public byte[] NXP_EAS_Alarm() throws CAENRFIDExceptionSends the NXP EAS Alarm custom command- Returns:
- The value in bytes of the EAS Alarm.
- Throws:
CAENRFIDException- If reader raises an error
-
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- Parameters:
Tag- The NXP tag to calibrate.AccessPassword- The Access password- 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 writtenConfigWord- 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 writtenConfigWord- The configuration word.Password- The access password.- Throws:
CAENRFIDException- If reader raises an error
-
NXP_InventoryWithBrandIdentifier
public CAENRFIDTag_NXP_UCODE8[] NXP_InventoryWithBrandIdentifier() throws CAENRFIDException
This method is used to run an inventory with the NXP UCODE 8/8m Brand Identifier returning option.- Returns:
- An array of CAENRFIDTag_NXP_UCODE8 object.
- 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- Parameters:
Tag- The Hitachi tag to issue a ReadLock command.Payload- The payload required (see Hitachi specification).- Throws:
CAENRFIDException- If reader raises an error
-
Hitachi_ReadLock
public void Hitachi_ReadLock(CAENRFIDTag Tag, short Payload, int AccessPassword) throws CAENRFIDException
Sends the Hitachi ReadLock custom command- Parameters:
Tag- The tag to issue the ReadLock commandPayload- The Payload required (see Hitachi specs)AccessPassword- The access password.- Throws:
CAENRFIDException- If reader raises an error
-
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 codeAddress- The Address from which start the comparisonBitMask- The Bit Mask to useData- The data to be cempared- Returns:
- the CAENRFIDTag detected.
- Throws:
CAENRFIDException
-
EM4325_GetUID
public byte[] EM4325_GetUID(CAENRFIDTag Tag) 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- Returns:
- The byte contains the UID of Tag
- 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 UIDPassword- 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 dataUIDEnable- Enable the UID retrievementNewSample- 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 to 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 to 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 alarmPassword- The access password- Throws:
CAENRFIDException- If reader raises an error.
-
ISO180006C_BroadcastSync
public void ISO180006C_BroadcastSync(byte[] UTC) throws CAENRFIDExceptionBroadcastSync 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 initializeDelayTime- 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 loggingStartTime- 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 selectedShelfLife- 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 representing the setup values.
- Throws:
CAENRFIDException- If reader raises an error.
-
SL900A_GetCalibrationData
public byte[] SL900A_GetCalibrationData(CAENRFIDTag Tag) throws CAENRFIDException
The SL900A_GetCalibrationData method try to read the calibration data for the internal and external sensors. The 72-bits content of the Calibration data field and the SFE parameters field is returned as defined in the IDS SL900A datasheet.- Parameters:
Tag- The target tag to read the calibration data from.- Returns:
- It will return an array of bytes representing the calibration data.
- Throws:
CAENRFIDException- If reader raises an error.
-
SL900A_OpenArea
public void SL900A_OpenArea(CAENRFIDTag Tag, byte PasswordLevel, int Password) throws CAENRFIDException
The SL900A_OpenArea method opens the specified area of the memory.- Parameters:
Tag- The target tag whose memory area is to be opened.PasswordLevel- The memory area to open.Password- The 32-bit password to the area.- Throws:
CAENRFIDException- If reader raises an error.
-
SL900A_SetPassword
public void SL900A_SetPassword(CAENRFIDTag Tag, byte PasswordLevel, int Password) throws CAENRFIDException
The SL900A_SetPassword method sets the password for the specified memory area.- Parameters:
Tag- The target tag whose memory area password is to be set.PasswordLevel- The memory area to set the password to.Password- The 32-bit password to the area.- Throws:
CAENRFIDException
-
SL900A_GetBatteryLevel
public byte[] SL900A_GetBatteryLevel(CAENRFIDTag Tag, Boolean BatteryTypeReCheck) throws CAENRFIDException
The SL900A_GetBatteryLevel method try to read the level of the battery The current status is returned as: | AD | BT | ZE | BL | AD : A\D error (1 bit) BT : Battery Type (1 bit) ZE : Zeros (4 bits) BL : Battery Level (10 bits)- Parameters:
Tag- The target tag from which read the battery level.BatteryTypeReCheck- Set to true if demanding a recheck of the battery type.- Returns:
- It will return an array of bytes representing the battery values.
- Throws:
CAENRFIDException
-
MAGNUSS3_ReadTemperature
public byte[] MAGNUSS3_ReadTemperature(CAENRFIDTag Tag) throws CAENRFIDException
The MAGNUSS3_ReadTemperature method reads the tag temperature sensor. The sensor status is returned as | TC | C1 | T1 | C2 | T2 | RS | CH |. TC : temperature code (2 bytes); C1 : code1 (2 bytes); T1 : temp1 (2 bytes); C2 : code2 (2 bytes); T2 : temp2 (2 bytes); RS : rssi (1 byte); CH : RF channel (1 byte)- Parameters:
Tag- The target tag from which read the temperature.- Returns:
- It will return an array of bytes representing the temperature sensor status, rssi, and RF channel.
- Throws:
CAENRFIDException
-
MAGNUSS3_ReadSensor
public byte[] MAGNUSS3_ReadSensor(CAENRFIDTag Tag) throws CAENRFIDException
The MAGNUSS3_ReadSensor method reads the tag sensor. The sensor status is returned as | SN | RS | CH |. SN : sensor code (2 bytes); RS : rssi (1 byte); CH : RF channel (1 byte)- Parameters:
Tag- The target tag from which read the sensor.- Returns:
- It will return an array of bytes representing the sensor status, rssi, and RF channel.
- Throws:
CAENRFIDException
-
MAGNUSS2_ReadSensor
public byte[] MAGNUSS2_ReadSensor(CAENRFIDTag Tag) throws CAENRFIDException
The MAGNUSS2_ReadSensor method reads the tag sensor. The sensor status is returned as | SN | RS | CH |. SN : sensor code (2 bytes); RS : rssi (1 byte); CH : RF channel (1 byte)- Parameters:
Tag- The target tag from which read the sensor.- Returns:
- It will return an array of bytes representing the sensor status, rssi, and RF channel.
- Throws:
CAENRFIDException
-
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 taghandle- The tag's handleWriteLengthBit- Number of bit to sendWriteData- 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
-
R1175OChargeDevice
public void R1175OChargeDevice(CAENRFIDReader.CAENRFIDR1175OReaderConstants ChargeType, short OnOff) throws CAENRFIDException
This method can be used to enable/disable the charging of the reader to or from a connected device.- Parameters:
ChargeType- The type of charging to be performed.OnOff- The enabling/disabling of the charge.- Throws:
CAENRFIDException- If reader raises an error
-
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)
-
-