|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.caen.RFIDLibrary.CAENRFIDReader
public final class CAENRFIDReader
This class defines the CAEN RFID Reader.
| Field Summary | |
|---|---|
static java.lang.String |
Version
Get the version of this library |
| Constructor Summary | |
|---|---|
CAENRFIDReader()
Create a new CAEN RFID Reader object. |
|
| Method Summary | |
|---|---|
void |
_SetRFOnOff(short OnOff)
Deprecated. For debugging purpose only. |
void |
addCAENRFIDEventListener(CAENRFIDEventListener listener)
Adds the specified CAENRFIDEvent listener to receive CAENRFIDEvent events from this CAENRIFDReader |
void |
Connect(CAENRFIDPort ConType,
java.lang.String Address)
Start the communication with the CAEN RFID Reader. |
CAENRFIDChannel |
CreateChannel(java.lang.String Name,
CAENRFIDChannelReservedType Type,
int MaxBuffer)
Create a Channel object inside the Reader. |
CAENRFIDChannel |
CreateChannel(java.lang.String Name,
java.lang.String host,
int port)
Deprecated. |
CAENRFIDTrigger |
CreateTrigger(java.lang.String Name,
int timer)
Deprecated. |
CAENRFIDTrigger |
CreateTrigger(java.lang.String Name,
int IOLine,
int timer)
Create a Trigger object inside the Reader. |
void |
Disconnect()
Close the connection with the CAEN RFID Reader releasing all the allocated resources |
void |
FWUpgradeTFTP(java.lang.String server,
java.lang.String filename)
Deprecated. |
CAENRFIDChannel[] |
GetAllocatedChannels()
Deprecated. |
CAENRFIDTrigger[] |
GetAllocatedTriggers()
Deprecated. |
CAENRFIDBitRate |
GetBitRate()
Get the current setting of RF BitRate. |
CAENRFIDNotify[] |
GetChannelData(CAENRFIDChannel Channel)
Deprecated. |
CAENRFIDEventMode |
GetEventMode()
Deprecated. |
java.lang.String |
GetFirmwareRelease()
Permits to read the firmware release loaded into the device. |
int |
GetIO()
Get the current digital Input and Output lines value. |
int |
GetIODirection()
Get the current digital Input and Output direction lines value. |
short |
GetLBTMode()
Gets the LBT mode |
int |
GetPower()
Get the current setting of RF power. |
CAENRFIDProtocol |
GetProtocol()
Get the current air protocol of the Reader |
CAENRFIDReaderInfo |
GetReaderInfo()
Permits to read the ReaderInfo loaded into the device. |
java.lang.String[] |
GetReadPoints()
Get the ReadPoints available in the Reader |
CAENRFIDReadPointStatus |
GetReadPointStatus(java.lang.String ReadPoint)
Get the CAENRFIDReadPointStatus object rapresenting the status of a ReadPoint. |
short |
GetRFChannel()
Gets the RF Channel |
CAENRFIDRFRegulations |
GetRFRegulation()
Gets RF regulation value |
CAENRFIDLogicalSource |
GetSource(java.lang.String Source)
Get a Source object |
static java.lang.String[] |
GetSourceNames()
Get the Sources available in the Reader |
CAENRFIDLogicalSource[] |
GetSources()
Get the Sources available on the reader |
void |
InventoryAbort()
Stops the InventoryTag when executed in Continuous Mode |
void |
removeCAENRFIDEventListener(CAENRFIDEventListener listener)
Removes the specified CAENRFIDEvent listener so that it no longer receives CAENRFID events from this CAENRIFDReader. |
void |
RemoveChannel(CAENRFIDChannel Channel)
Deprecated. |
void |
RemoveTrigger(CAENRFIDTrigger Trigger)
Deprecated. |
void |
SetAdminPassword(int AdminPassword)
Set the admin password for the reader(A528 only). |
void |
SetBitRate(CAENRFIDBitRate BitRate)
Set the RF BitRate to use. |
void |
SetDateTime(java.lang.String DateTime)
Set the Date/Time of the Reader |
void |
SetEventMode(CAENRFIDEventMode EventMode)
Deprecated. |
void |
SetIO(int IOValue)
Set the Output lines value |
void |
SetIODIRECTION(int IODirection)
Set the Output lines direction |
void |
SetLBTMode(short LBTMode)
Sets/Resets the LBT mode |
void |
SetNetwork(java.lang.String IPAddress,
java.lang.String NetMask,
java.lang.String Gateway)
Set the TCP/IP configuration of the Reader. |
void |
SetPower(int power)
Set the RF power of the Reader. |
void |
SetProtocol(CAENRFIDProtocol Protocol)
Set the air protocol of the Reader |
void |
SetReaderOPtions(short option)
Deprecated. |
void |
SetRFChannel(short Channel)
Sets the RF Channel |
void |
SetRFRegulation(CAENRFIDRFRegulations RFRegulation)
Sets the RF regulation value |
void |
SetRS232(int baud,
int datab,
int stopb,
CAENRFIDRS232Constants parity,
CAENRFIDRS232Constants flowc)
Set the RS232 port of the Reader. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String Version
| Constructor Detail |
|---|
public CAENRFIDReader()
| Method Detail |
|---|
public static java.lang.String[] GetSourceNames()
@Deprecated
public CAENRFIDTrigger[] GetAllocatedTriggers()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
@Deprecated
public CAENRFIDChannel[] GetAllocatedChannels()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.public java.lang.String[] GetReadPoints()
public java.lang.String GetFirmwareRelease()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
public CAENRFIDReaderInfo GetReaderInfo()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.public CAENRFIDLogicalSource[] GetSources()
public CAENRFIDLogicalSource GetSource(java.lang.String Source)
throws CAENRFIDException
Source - The name of the Source
CAENRFIDException - If the Reader raises an error.
public void Connect(CAENRFIDPort ConType,
java.lang.String Address)
throws CAENRFIDException
ConType - The communication link to use for connectionAddress - Depending on ConType parameter.
IP address for TCP/IP communications
COM port for RS232 communications
An index for USB communications
CAENRFIDException - If the Reader raises an error.
public void Disconnect()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
public int GetPower()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
public int GetIO()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
public void SetIO(int IOValue)
throws CAENRFIDException
IOValue - A bitmask representing the I/O lines value.
The format and the meaning of the bits depends on the Reader's model.
Please refer to the corresponding user manual available on www.caen.it/rfid
CAENRFIDException - If the Reader raises an error.
public CAENRFIDBitRate GetBitRate()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
@Deprecated
public void FWUpgradeTFTP(java.lang.String server,
java.lang.String filename)
throws CAENRFIDException
server - The ip address of TFTP Server that hold the firmwarefilename - The name of the firmware to download
CAENRFIDException - If the Reader raises an error.
public CAENRFIDProtocol GetProtocol()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
@Deprecated
public CAENRFIDEventMode GetEventMode()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
@Deprecated
public CAENRFIDTrigger CreateTrigger(java.lang.String Name,
int timer)
throws CAENRFIDException
Name - The name of the Triggertimer - The time, in millisecond, for the "Timer Trigger".
CAENRFIDException - If the Reader raises an error.
public CAENRFIDTrigger CreateTrigger(java.lang.String Name,
int IOLine,
int timer)
throws CAENRFIDException
Name - The name of the TriggerIOLine - The I/O line that fire the Triggertimer - The time, in millisecond, between a I/O check.
CAENRFIDException - If the Reader raises an error.
@Deprecated
public CAENRFIDChannel CreateChannel(java.lang.String Name,
java.lang.String host,
int port)
throws CAENRFIDException
Name - The name of the channelhost - The IP address of the server that will receive the notificationsport - The TCP/IP port of the server.
CAENRFIDException - If the Reader raises an error.
public CAENRFIDChannel CreateChannel(java.lang.String Name,
CAENRFIDChannelReservedType Type,
int MaxBuffer)
throws CAENRFIDException
Name - The name of the channelType - The CAENRFIDReserved Channel TypeMaxBuffer - The max number of tags that can be memorized by the Channel.
CAENRFIDException - If the Reader raises an error.
@Deprecated
public void RemoveTrigger(CAENRFIDTrigger Trigger)
throws CAENRFIDException
Trigger - The Trigger object to remove.
CAENRFIDException - If the Reader raises an error.
@Deprecated
public void RemoveChannel(CAENRFIDChannel Channel)
throws CAENRFIDException
Channel - The CAENRFIDChannel object to remove.
CAENRFIDException - If the Reader raises an error.
public void SetPower(int power)
throws CAENRFIDException
power - The RF power referred to the antennae's connector without taking in
account the antennae gain and cable loss.
CAENRFIDException - If the Reader raises an error.
public void SetBitRate(CAENRFIDBitRate BitRate)
throws CAENRFIDException
BitRate - The RF BitRate value.
CAENRFIDException - If the Reader raises an error.
public void SetProtocol(CAENRFIDProtocol Protocol)
throws CAENRFIDException
Protocol - The CAENRFIDProtocol representing the air protocol.
CAENRFIDException - If the Reader raises an error.
@Deprecated
public void SetEventMode(CAENRFIDEventMode EventMode)
throws CAENRFIDException
EventMode - The CAENRFIDEventMode representing the Event Generation Mode.
CAENRFIDException - If the Reader raises an error.
public CAENRFIDReadPointStatus GetReadPointStatus(java.lang.String ReadPoint)
throws CAENRFIDException
ReadPoint - The ReadPoint name to check.
CAENRFIDException - If the Reader raises an error.
public void SetNetwork(java.lang.String IPAddress,
java.lang.String NetMask,
java.lang.String Gateway)
throws CAENRFIDException
IPAddress - The IP address.NetMask - The netmask.Gateway - The gateway
CAENRFIDException - If the Reader raises an error.
@Deprecated
public void SetReaderOPtions(short option)
throws CAENRFIDException
CAENRFIDException
public void SetAdminPassword(int AdminPassword)
throws CAENRFIDException
AdminPassword - The admin password
CAENRFIDException - If the Reader raises an error.
public void SetDateTime(java.lang.String DateTime)
throws CAENRFIDException
DateTime - The Date/Time for the Reader.
The Date/Time value a String like: "yy-mm-dd hh:mm:ss"
CAENRFIDException - If the Reader raises an error.public void addCAENRFIDEventListener(CAENRFIDEventListener listener)
listener - the CAENRFIDEvent listenerpublic void removeCAENRFIDEventListener(CAENRFIDEventListener listener)
listener - the CAENRFIDEvent listenerpublic void InventoryAbort()
public CAENRFIDRFRegulations GetRFRegulation()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
public void SetRFRegulation(CAENRFIDRFRegulations RFRegulation)
throws CAENRFIDException
RFRegulation - The RF regulation value to set
CAENRFIDException - If the Reader raises an error.
public short GetRFChannel()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
public void SetRFChannel(short Channel)
throws CAENRFIDException
Channel - The RF channel to set
CAENRFIDException - If the Reader raises an error.
public short GetLBTMode()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
public void SetLBTMode(short LBTMode)
throws CAENRFIDException
LBTMode - The Data Exchange LBT value to set.
1 set LBT Mode to ON, 0: resets LBT Mode to OFF
CAENRFIDException - If the Reader raises an error.
@Deprecated
public CAENRFIDNotify[] GetChannelData(CAENRFIDChannel Channel)
throws CAENRFIDException
Channel - The name of the channel
CAENRFIDException - If the Reader raises an error.
@Deprecated
public void _SetRFOnOff(short OnOff)
throws CAENRFIDException
OnOff - The value to set. value 1 set RF to ON, value 0 resets RF to OFF
CAENRFIDException - If the Reader raises an error.
public int GetIODirection()
throws CAENRFIDException
CAENRFIDException - If the Reader raises an error.
public void SetIODIRECTION(int IODirection)
throws CAENRFIDException
IODirection - A bitmask representing the direction of the I/O lines.
The format and the meaning of the bits depends on the Reader's model.
Please refer to the corresponding user manual available on www.caen.it/rfid
CAENRFIDException - If the Reader raises an error.
public void SetRS232(int baud,
int datab,
int stopb,
CAENRFIDRS232Constants parity,
CAENRFIDRS232Constants flowc)
throws CAENRFIDException
baud - The Baudrate value to setdatab - The DataBit value to setstopb - The StopBit value to setparity - The Parity value to setflowc - The FlowControll value to set
CAENRFIDException - If the Reader raises an error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||