Consortium
Activities
Projects
Forge
Events
Log-in
Register
Tag Data Translation
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
1 Tag Data Translation ---- #toc("" "" "") ---- 1.1 Introduction Tag data translation or Tag Virtualization is the process of translating the information stored on a tag from a specific encoding to another one, e.g from binary format to GID-96. This process is very important especially for open loop systems. EPCglobal Inc. has defined a standard which clarifies this process for EPC based systems. Tag virtualization capitalises on a machine-readable version of the [EPC Tag Data Standards specification>http://www.epcglobalinc.org/standards/tdt]. The actual version of TDS standard implemented in TDT is [TDT Standard v1.6>http://www.gs1.org/gsmp/kc/epcglobal/tdt/tdt_1_6_RatifiedStd-20111012-i2.pdf]. It was updated by using the library [tdt-1.0.0-with-dependencies>https://code.google.com/p/fosstrak/wiki/TdtDownload] released by [Fosstrak>https://code.google.com/p/fosstrak/]. This machine-readable version can be used for abstracting underlying RFID tags through bridging and mapping different representations. Hence, a tag translation module is a (standalone or embedded) middleware component that enables the interpretation of machine readable version of the tag. The interpretation can be used in automated fashion. In addition the tag translation specification can be used for validating machine readable formats of the EPC tags. The TDT engine built in the scope of the AspireRfid project currently supports the ISO15693, ISO14443, NFC, MAC address, phone numbers (with company prefixes), various GS1 formats (EAN/UPC, GS1 DataBar, GS1-128, ITF-14, GS1 DataMatrix, and Composite Component), as well as Bar Codes 1D and 2D: Note that barcode support is deemed particularly important given the vast number of legacy barcode applications, which need to be interoperable with emerging RFID applications. The AspireRFID TDT supports EPC tags by using an implementation of the EPCglobal standard provided by [Fosstrak>http://www.fosstrak.org/tdt] project. More information regarding tag virtualization in AspireRFID can be acquired through the public deliverable [D3.2 Readers and Tags Virtualization>http://fp7-aspire.eu/fileadmin/aspire/docs/D3_2.pdf] of the Aspire FP7 project 1.1 Users Guide This component is provided as a stand alone tool on the project forge [here>http://forge.ow2.org/plugins/scmsvn/index.php?group_id=324]. It depends on the Fosstrak TDT library available [here>https://code.google.com/p/fosstrak/wiki/TdtDownload] (download the JAR with Dependencies file). The file TDTFrontEnd.java shows how to use the AspireRfid TDT. The following source code is a quote from this file, explaining the use of the engine parameters: {code:java} AspireTDTEngine engine = new AspireTDTEngine(); HashMap<String,String> extraparams = new HashMap<String, String>(); // a HashMap providing extra parameters needed in addition to the input value /** MANDATORY PARAMETERS FOR TDT **/ extraparams.put("dataType","gs1"); // permitted values are 'gs1', 'ISO' or 'phone' (not case sensitive) extraparams.put("outputFormat","LEGACY"); // permitted values are : // for EPC Tags and GS1 Bar Code (EPC TDS Compliant)* : 'LEGACY', 'BINARY', 'TAG_ENCODING', 'PURE_IDENTITY', 'ONS_HOSTNAME' and 'GS1_AI_ENCODING' // for GS1 Bar Code (not EPC TDS Compliant) :'LEGACY' and 'GS1_AI_ENCODING' // for ISO Tags :'HEXA', 'LEGACY', 'BINARY', 'TAG_ENCODING', 'PURE_IDENTITY', 'ONS_HOSTNAME' /** PARAMETERS FOR EPC Tags TDT **/ /* These parameters are mandatory for inbound levels 'PURE_IDENTITY', 'LEGACY' or 'GS1_AI_ENCODING', */ /* and if outputFormat=GS1_AI_ENCODING */ extraparams.put("taglength","96"); // the taglength must be specified as "64" or "96" extraparams.put("filter","1"); // the filter value must be specified - range depends on coding scheme. extraparams.put("companyprefixlength","6"); // the companyprefixlength (length of the EAN.UCC Company Prefix) must be specified for GS1 coding schemes /** PARAMETERS FOR GS1 Bar Code TDT **/ /* These parameters are mandatory if outputFormat=GS1_AI_ENCODING */ extraparams.put("gs1symbol","]e0"); // GS1 Bar Code Type (permitted values are ']E0', ']E1', ']E2', ']E3', ']E4', ']I1', ']C1', ']e0' or ']d2') extraparams.put("codelength","12"); // size of the bar code (mandatory with gs1symbol values ]E0 an ]E3), permitted values are 12 (for UPC-A), 13 (for EAN-13) or 8 (for UPC-E) /** PARAMETERS FOR PHONE NUMBER TDT **/ extraparams.put("countryprefixlength","96"); // the countryprefixlength must be specified as "1", "2" or "3" {code} The following method provided by the AspireTDTEngine object translates the input string of a specified input level to a specified outbound level of the same coding scheme. {code:java} public String convert(String input, Map<String,String> inputParameters) throws TDTException {code} For example, the input string value may be a tag-encoding URI and the outbound level specified by string outboundlevel may be BINARY, in which case the return value is a binary representation expressed as a string. The different available levels depend on the input string and are: * BINARY * TAG_ENCODING * PURE_IDENTITY * LEGACY * ONS_HOSTNAME * GS1_AI_ENCODING * HEXA