Package com.caen.RFIDLibrary
Class CAENRFIDTag
- java.lang.Object
-
- com.caen.RFIDLibrary.CAENRFIDTag
-
- Direct Known Subclasses:
CAENRFIDTag_NXP_UCODE8
public class CAENRFIDTag extends Object
This class defines the CAEN RFID Tag.- Version:
- CAENRFIDLibrary 5.0.0
- Author:
- Andrea Iavazzo (support@caenrfid.com) CAEN RFID Srl Computing Division
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCAENRFIDTag.MemBanks
-
Constructor Summary
Constructors Modifier Constructor Description CAENRFIDTag(byte[] Id, short length, CAENRFIDLogicalSource Source)Creates a new instance of CAENRFIDTagCAENRFIDTag(byte[] Id, short length, CAENRFIDLogicalSource Source, String ReadPoint)Creates a new instance of CAENRFIDTagprotectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, byte[] phase, int frequency, Date time)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, byte[] phase, int frequency, Date time, short subCommand, short subCommandResult, byte[] subCommandData)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, Date time)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, Date time, short subCommand, short subCommandResult, byte[] subCommandData)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, Date time)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, Date time)protectedCAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, Date timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringGetAntenna()Get the Antenna That has detect the TaglongGetFrequency()Get the backscattering frequency expressed in KHz.byte[]GetId()Get the Tag's IDshortGetLength()Get the Tag's lengthbyte[]GetPC()Get the pc of this tag.floatGetPhaseBegin()Gets the backscattering phase at the begin of communication from reader to tag.floatGetPhaseEnd()Gets the backscattering phase at the end of communication from tag to reader.StringGetReadPoint()Get the ReadPoint that has detected the tagshortGetRSSI()Get the Tag's RSSICAENRFIDLogicalSourceGetSource()Get the Source that has detected the tagshortgetSubCommandCode()Get the sub command code.byte[]getSubcommandData()Get the sub command data, in case of operation that returns data.shortgetSubCommandResultCode()Get the sub command result code.byte[]GetTID()Gets the TID field in this tag's memoryDateGetTimeStamp()Get the TimeStamp of the TagCAENRFIDProtocolGetType()Get the type of the protocolbyte[]GetXPC()Get the XPC of this tag, if exists.
-
-
-
Constructor Detail
-
CAENRFIDTag
public CAENRFIDTag(byte[] Id, short length, CAENRFIDLogicalSource Source) throws CAENRFIDExceptionCreates a new instance of CAENRFIDTag- Parameters:
Id- the Tag's IDlength- the Tag's lengthSource- The CAENRFIDLogicalSource representing the Source that has detected the Tag- Throws:
CAENRFIDException- If the Reader raises an error.
-
CAENRFIDTag
public CAENRFIDTag(byte[] Id, short length, CAENRFIDLogicalSource Source, String ReadPoint) throws CAENRFIDExceptionCreates a new instance of CAENRFIDTag- Parameters:
Id- the Tag's IDlength- the Tag's lengthSource- The CAENRFIDLogicalSource representing the Source that has detected the TagReadPoint- The name of the ReadPoint in Source that has detected the Tag- Throws:
CAENRFIDException- If the Reader raises an error.
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, Date timestamp) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, Date time) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, Date time) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, Date time) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, Date time, short subCommand, short subCommandResult, byte[] subCommandData) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, byte[] phase, int frequency, Date time) throws CAENRFIDException- Throws:
CAENRFIDException
-
CAENRFIDTag
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, byte[] phase, int frequency, Date time, short subCommand, short subCommandResult, byte[] subCommandData) throws CAENRFIDException- Throws:
CAENRFIDException
-
-
Method Detail
-
GetId
public byte[] GetId()
Get the Tag's ID- Returns:
- the Tag's ID
-
GetTID
public byte[] GetTID()
Gets the TID field in this tag's memory- Returns:
- TID associated to this tag
-
GetLength
public short GetLength()
Get the Tag's length- Returns:
- the Tag's length
-
GetRSSI
public short GetRSSI()
Get the Tag's RSSI- Returns:
- the Tag's RSSI
-
GetSource
public CAENRFIDLogicalSource GetSource()
Get the Source that has detected the tag- Returns:
- The CAENRFIDLogicalSource representing the Source that has detected the Tag
-
GetType
public CAENRFIDProtocol GetType()
Get the type of the protocol- Returns:
- The CAENRFIDProtocol representing the type of the Tag
-
GetTimeStamp
public Date GetTimeStamp()
Get the TimeStamp of the Tag- Returns:
- The Date of the TimeStamp of the Tag
-
GetAntenna
public String GetAntenna()
Get the Antenna That has detect the Tag- Returns:
- The name of the Antenna of the Tag
-
GetXPC
public byte[] GetXPC()
Get the XPC of this tag, if exists.- Returns:
- Four byte of XPC, or four zero if XPC has not detected on tag, or is invalid.
-
GetPC
public byte[] GetPC()
Get the pc of this tag.- Returns:
- A short (two bytes array) containing PC.
-
GetPhaseBegin
public float GetPhaseBegin()
Gets the backscattering phase at the begin of communication from reader to tag.- Returns:
- A decimal value expressed in degree
-
GetPhaseEnd
public float GetPhaseEnd()
Gets the backscattering phase at the end of communication from tag to reader.- Returns:
- A decimal value expressed in degree
-
GetFrequency
public long GetFrequency()
Get the backscattering frequency expressed in KHz.- Returns:
- An integer value rapresenting in KHz
-
GetReadPoint
public String GetReadPoint() throws CAENRFIDException
Get the ReadPoint that has detected the tag- Returns:
- The name of the ReadPoint that has detected the Tag
- Throws:
CAENRFIDException- If the Reader raises an error.
-
getSubCommandCode
public short getSubCommandCode()
Get the sub command code.- Returns:
- The sub command code.
-
getSubCommandResultCode
public short getSubCommandResultCode()
Get the sub command result code.- Returns:
- A value of 0 if operation has been performed successfully, false otherwise.
-
getSubcommandData
public byte[] getSubcommandData()
Get the sub command data, in case of operation that returns data.- Returns:
- A byte value of data read.
-
-