information & database system laboratory epcglobal tag data translation - rfid team - 2007. 04....

19
Information & Database System Laboratory EPCglobal Tag Data Translatio EPCglobal Tag Data Translatio n n - RFID Team - 2007. 04. 27 컴컴컴컴컴컴컴컴컴컴컴 컴컴컴

Upload: jasper-rose

Post on 13-Dec-2015

221 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

Information & Database System Laboratory

EPCglobal Tag Data TranslationEPCglobal Tag Data Translation

- RFID Team -

2007. 04. 27컴퓨터멀티미디어공학과

김성진

Page 2: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 2

Contents

Tag Data Translation (TDT) TDT Concept TDT Process TDT Process step Tag Data Standards TDT Markup API Examples

SGTIN-96 ( Legacy -> Pure Identity )

Page 3: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 3

TDT Concept

The Tag Data Translation process translates one representation of

EPC into another representation, within a particular coding scheme.

Page 4: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 4

TDT Process (1)

The fundamental concept of TDT is to automatically convert one

representation of an EPC or a serialized legacy code and convert it

into another representation as required.

Page 5: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 5

TDT Process (2)

Page 6: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 6

TDT Process (3)

Page 7: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 7

TDT Process step (1)

There are five fundamental steps to a translation 1. Use of the prefix matches and regular expression patterns to automatically

detect the inbound representation and coding scheme of the supplied input value 2. Using the regular expression pattern to extract values of field from the input

value 3. Manipulation of values of those fields in order to translate from the inbound

representation to the outbound representation 4. Using the rules to calculate any additional fields required for the output 5. Using the ABNF grammar to format the required fields in the appropriate output

representation

Page 8: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 8

TDT Process step (2)

Page 9: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 9

Tag Data Standards

EPC Tag Data Standards specifications GID ( General Identifier ) SGTIN ( Serialized Global Trade Item Number ) SSCC ( Serial Shipping Container Code ) SGLN ( Serialized Global Location Number ) GRAI ( Global Returnable Asset Identifier ) GIAI ( Global Individual Asset Identifier ) DOD ( Department Of Defense )

Page 10: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 10

TDT Markup (1)

The key elements of the TDT markup

Page 11: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 11

TDT Markup (2)

TDT Markup used… Definition of Formats via Regular Expression Patterns and ABNF Grammar Determination of the inbound representation Specification of the outbound representation Specifying supplied parameter values Validation of values for fields and fields derived via rules Restricting and checking decimal ranges for values of fields Restricting and checking character ranges for values of fields Padding of fields Compaction and Compression of fields Names of fields used within the TDSv1.1r1.27 schemes Rules and Derived Fields Core Functions

Page 12: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 12

API

API Essentially two interfaces to consider for TDT software, Namely a client-side interface and maintenance interface

Client API public String translate( String epcIdentifier, String parameterList,

String outputFormat ) Throws : TDTFileNotFound, TDTFieldBelowMinimum etc.

Maintenance API public void refreshTranslations()

Page 13: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 13

Examples (1)

SGTIN-96 ( Legacy -> Pure Identity ) SGTIN-96 Legacy Level grammar

“’gtin=‘ indicatordigit companyprefix itemrefremainder checkdigit ‘;serial=‘ serial”

Ex) gtin=00037000302414;serial=10419703

SGTIN-96 Pure Identity Level grammar “’urn:epc:id:sgtin:’ companyprefix ‘.’ itemref ‘.’ serial” Ex) urn:epc:id:sgtin:0037000.030241.10419703

Page 14: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 14

Examples (2)

SGTIN-96 Rules ( EXTRACT and FORMAT ) EXTRACT

gtinprefixremainder <- SUBSTR( gtin, 1, 12 ) indicatordigit <- SUBSTR( gtin, 0, 1 ) itemrefremainder <- SUBSTR( gtinprefixremainder, companyprefixlengt

h ) itemref <- CONCAT( indicatordigit, itemrefremainder ) companyprefix <- SUBSTR( gtinprefixremainder, 0, companyprefixlengt

h ) FORMAT

indicatordigit <- SUBSTR( itemref, 0, 1 ) itemrefremainder <- SUBSTR( itemref, 1 ) gtinprefix <- CONCAT( indicatordigit, companyprefix, itemrefremainder) checkdigit <- GS1CHECKSUM( gtinprefix )

Page 15: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 15

Examples (3)

Translation Process (1) Input : “gtin=00037000302414;serial=10419703” (SGTIN-96 Le

gacy) ParamList : “filter=0;companyprefixlength=7;taglength=96” Output : “PURE IDENTITY”

ex) translate( Input, ParamList, Output );

Page 16: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 16

Examples (4)

Translation Process (2) 1. Read and parse the supplied parameters to extract the value

( filter = 0, companyprefix = 7, taglength = 96 )

2. Detect the input scheme and level from the input value ( SGTIN-96 scheme and Legacy level )

3. Determine the appropriate option by pattern matching on the input value or filter value ( option 12 )

Page 17: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 17

Examples (5)

Translation Process (3) 4. Run the sequence of rules denoted ‘EXTRACT’ for the inbound le

vel gtinprefixremainder = SUBSTR(gtin, 1, 12 ) = 003700030241 indicatordigit = SUBSTR(gtin, 0, 1 ) = 0 itemrefremainder = SUBSTR(gtinprefixremainder, 7) = 30241 itemref = CONCAT(indicatordigit, itemrefremainder) = 030241 companyprefix = SUBSTR(gtinprefixremainder, 0, companyprefixlength) = 0037

000

5. If the appropriate option is unknown, it should now be possible to set this from the definition of ‘optionkey’ and the values from the ‘extract’ definitions We selected option already.

Page 18: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 18

Examples (6)

Translation Process (4) 6. Determine the non-binary encoding for each field from

the compaction attribute of the field elements and convert between binary, decimal, alphanumeric, ASCII etc. as required do not needed in this example

7. Run the sequence of rules denoted ‘format’ for the outbound level do not needed in this example

8. Format the outbound representation and return this urn:epc:id:sgtin:0037000.030241.10419703

Page 19: Information & Database System Laboratory EPCglobal Tag Data Translation - RFID Team - 2007. 04. 27 컴퓨터멀티미디어공학과 김성진

2007-04-27 IDS Lab 19

수고하셨습니다 .