|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.ip.me.api.pios.rfid.RfidTagType
The RfidTagType object represents a tag type and provides the user with the means to access certain tag type information. There are various types of RFID tags in the market for use with the various radio frequency identification systems. Depending on their intended utilization the tags vary in complexity. The user can then use the information provided by the RfidTagType class to perform the appropriate action depending on the type of tag being used. More tag types can be configured by using the TagConfigurationManager class.
Example: Open RFID connection, call listTagTypes method. Print all identified tags for all available tag types.
Connector connector = Connector.getInstance();
DriverInfo[] rfidDrivers = connector.listDrivers(ConnectionType.RFID);
RfidParameters rfidParams = new RfidParameters(rfidDrivers[0]);
RfidConnection rfidConnection = (RfidConnection)connector.open(rfidParams);
RfidTagType[] tagTypeList = rfidConnection.listTagTypes();
for(int pos = 0; pos < tagTypeList.length; pos++) {
System.out.println("****** Identify Tags: " + tagTypeList[pos].getName());
RfidTag[] tags = rfidConnection.identify(tagTypeList[pos]);
if (tags.length > 0) {
for(int count = 0; count < tags.length; count ++) {
System.out.print("Type : " + tagTypeList[pos].getName() + " ID: ");
byte[] tagID = tags[0].getTagID();
for(int i = 0; i < tagID.length; i ++) {
System.out.print(tagID[i] + " ");
}
System.out.println();
}
System.out.println("Total: " + tags.length);
}
else {
System.out.println("No tags in range for type " + tagTypeList[pos].getName());
}
}
TagConfigurationManager
,
RfidConnection
,
RfidTagUserArea
Constructor Summary | |
RfidTagType()
|
Method Summary | |
abstract int |
getMemorySize()
Returns the total amount of bytes in the tag structure. |
abstract java.lang.String |
getName()
Returns the tag type name. |
abstract int |
getNoOfBytesPerBlock()
Returns the amount of bytes represented in each block of the tag structure. |
abstract int |
getTagIDLen()
Returns the tag id length in bytes. |
abstract int |
getTagIDPasswordLen()
Returns the password length in bytes used to lock or reset a tag. |
abstract RfidTagUserArea[] |
getUserReadableAreas()
Returns a list of all the areas defined as readable for the tag type. |
abstract RfidTagUserArea[] |
getUserWritableAreas()
Returns a list of all the areas defined as writable for the tag type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RfidTagType()
Method Detail |
public abstract java.lang.String getName()
public abstract int getMemorySize()
public abstract int getNoOfBytesPerBlock()
public abstract RfidTagUserArea[] getUserWritableAreas()
RfidTagUserArea
public abstract RfidTagUserArea[] getUserReadableAreas()
RfidTagUserArea
public abstract int getTagIDLen()
public abstract int getTagIDPasswordLen()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |