com.sap.ip.me.api.pios.rfid
Class RfidTagType

java.lang.Object
  extended bycom.sap.ip.me.api.pios.rfid.RfidTagType

public abstract class RfidTagType
extends java.lang.Object

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());

		}
	} 

 
 

Since:
MI 2.5
Author:
Abaco
See Also:
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

RfidTagType

public RfidTagType()
Method Detail

getName

public abstract java.lang.String getName()
Returns the tag type name.

Returns:
The tag type name.

getMemorySize

public abstract int getMemorySize()
Returns the total amount of bytes in the tag structure.

Returns:
The total amount of bytes in the tag structure.

getNoOfBytesPerBlock

public abstract int getNoOfBytesPerBlock()
Returns the amount of bytes represented in each block of the tag structure.

Returns:
The amount of bytes per block.

getUserWritableAreas

public abstract RfidTagUserArea[] getUserWritableAreas()
Returns a list of all the areas defined as writable for the tag type.

Returns:
A list of tag type writable areas. An empty array will be returned for read only tag types.
See Also:
RfidTagUserArea

getUserReadableAreas

public abstract RfidTagUserArea[] getUserReadableAreas()
Returns a list of all the areas defined as readable for the tag type.

Returns:
A list of tag type writable areas. If no readable areas are defined an empty array will be returned.
See Also:
RfidTagUserArea

getTagIDLen

public abstract int getTagIDLen()
Returns the tag id length in bytes.

Returns:
The length of the tag id.

getTagIDPasswordLen

public abstract int getTagIDPasswordLen()
Returns the password length in bytes used to lock or reset a tag.

Returns:
The length of the tag id password.


Copyright © 2005 SAP AG. All Rights Reserved.