11.08.2015 Views

GS1 EPC Tag Data Standard 1.6 - Indicod-Ecr

GS1 EPC Tag Data Standard 1.6 - Indicod-Ecr

GS1 EPC Tag Data Standard 1.6 - Indicod-Ecr

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744 ‘10’ indicates the non-numeric base that was selected earlier in the A/N header,and ‘11’ indicates the Extended version of the non-numeric base that was selectedearlierCreate a SuffixCharacterMap bit string, a sequence of zero or more quad-basecharacter-map pairs, as indicated by the Suffix bits just parsed.Initialize the FinalCharacterMap bit string and the MainCharacterMap bit string to anempty stringCalculate running Bit Counts: Using the tables in Annex B, calculate two numbers: DigitBits, the number of bits required to encode the number of base-10 valuescurrently indicated by DigitsCount, and NonDigitBits, the number of bits required to encode the number of base-30 (orbase 74 or base-256) values currently indicated by NonDigitsCountset AlnumBits equal to the sum of DigitBits plus NonDigitBitsif the sum of TotalBitsParsed and AlnumBits equals the total number of non-pad bitsin the Packed Object, then no more bits remain to be parsed from the character map,and so the remaining bit patterns, representing Binary values, are ready to beconverted back to extended base values and/or base 10/base 30/base 74/base-256values (skip to the Final Decoding steps below). Otherwise, get the next encoded bitfrom the encoded Character map, convert the bit to a quad-base bit-pair by convertingeach ‘0’ to ‘00’ and each ‘1’ to ‘10’, append the pair to the end of theMainCharacterMap bit string, and: If the encoded map bit was ‘0’, increment DigitsCount, Else if ‘1’, increment NonDigitsCount Loop back to the Calculate running Bit Counts step above and continueFinal Decoding steps: once the encoded Character Map bits havSe been fully parsed:Fetch the next set of zero or more bits, whose length is indicated by ExtDigitBits.Convert this number of bits from Binary values to a series of base 13 values, andstore the resulting array of values as ExtDigitVals.Fetch the next set of zero or more bits, whose length is indicated byExtNonDigitBits. Convert this number of bits from Binary values to a series ofbase 40 or base 84 values (depending on the selection indicated in the A/NHeader), and store the resulting array of values as ExtNonDigitVals.Fetch the next set of bits, whose length is indicated by DigitBits. Convert thisnumber of bits from Binary values to a series of base 10 values, and store theresulting array of values as DigitVals.Fetch the final set of bits, whose length is indicated by NonDigitBits. Convertthis number of bits from Binary values to a series of base 30 or base 74 or base256 values (depending on the value of the first bits of the Alphanumericsubsection), and store the resulting array of values as NonDigitVals.Copyright ©2005- 2011 <strong>GS1</strong> AISBL, All Rights Reserved. Page 214 of 218

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!