3 Replies Latest reply on Jun 29, 2012 7:55 AM by Darryn Campbell

    Scanner Decoder Type Hex

      Does anyone have a list which maps the hex value to the type barcode?

       

      I searched on the rho site and the only one I could find was in the example below.

       

      <META HTTP-Equiv="scanner" Content="enable">

      <META HTTP-Equiv="scanner" Content="DecodeEvent:url('javascript:doScan(%json);')">

       

      <script>

         function doScan(jsonObject)

         {

            if(jsonObject.type == 0x35) //ean 13

            {

               alert('Please scan a non EAN 13 code!');

            }

            else

            {

               alert('You scanned: ' + jsonObject.data);

            }

         }

      </script>

        • Re: Scanner Decoder Type Hex

          So what did you get as output after executing this code?

            • Re: Scanner Decoder Type Hex

              We get a type of "0x35"  What we would like to know is the hex relationship to upc 39, upc 128, etc...  so that the values of the type we get back are useful.  We have not found that mapping. 

                • Re: Scanner Decoder Type Hex
                  Darryn Campbell

                  Hi,

                   

                  The source parameter (as opposed to type) should contain a human readable decoder.  That example is a bit out of date.

                   

                  If you're still interested then here's the mapping (from the EMDK for C API):

                   

                  #define DECODER_UPCE0

                  "\x30"
                  #define DECODER_UPCE1

                  "\x31"
                  #define DECODER_UPCA

                  "\x32"
                  #define DECODER_MSI


                  "\x33"
                  #define DECODER_EAN8

                  "\x34"
                  #define DECODER_EAN13

                  "\x35"
                  #define DECODER_CODABAR

                  "\x36"
                  #define DECODER_CODE39

                  "\x37"
                  #define DECODER_D2OF5

                  "\x38"
                  #define DECODER_I2OF5

                  "\x39"
                  #define DECODER_CODE11

                  "\x3A"
                  #define DECODER_CODE93

                  "\x3B"
                  #define DECODER_CODE128

                  "\x3C"
                  #define DECODER_RESERVED_3D
                  "\x3D"// Really unused
                  #define DECODER_RESERVED_3E
                  "\x3E"// Would be IATA2OF5
                  #define DECODER_RESERVED_3F
                  "\x3F"// Would be EAN128
                  #define DECODER_PDF417

                  "\x40"
                  #define DECODER_RESERVED_41
                  "\x41"// Would be ISBT128
                  #define DECODER_TRIOPTIC39
                  "\x42"
                  #define DECODER_RESERVED_43
                  "\x43"// Would be COUPON
                  #define DECODER_RESERVED_44
                  "\x44"// Would be BOOKLAND
                  #define DECODER_MICROPDF
                  "\x45"
                  #define DECODER_RESERVED_46
                  "\x46"// Would be CODE32
                  #define DECODER_MACROPDF
                  "\x47"
                  #define DECODER_MAXICODE
                  "\x48"
                  #define DECODER_DATAMATRIX
                  "\x49"
                  #define DECODER_QRCODE

                  "\x4A"
                  #define DECODER_MACROMICROPDF"\x4B"
                  #define DECODER_RSS14

                  "\x4C"
                  #define DECODER_RSSLIM

                  "\x4D"
                  #define DECODER_RSSEXP

                  "\x4E"

                   

                   

                  #define DECODER_POINTER

                  "\x50"// "P"
                  #define DECODER_IMAGE

                  "\x51"
                  #define DECODER_SIGNATURE
                  "\x52"
                  #define DECODER_DOCCAP

                  "\x53"

                   

                   

                  #define DECODER_WEBCODE

                  "\x54"
                  #define DECODER_CUECODE

                  "\x55"
                  #define DECODER_COMPOSITE_AB"\x56"
                  #define DECODER_COMPOSITE_C
                  "\x57"
                  #define DECODER_TLC39

                  "\x58"
                  #define DECODER_RESERVED_59
                  "\x59"// Would be Supp2
                  #define DECODER_RESERVED_5A
                  "\x5A"// Would be Supp5

                   

                   

                  #define DECODER_USPOSTNET
                  "\x61"
                  #define DECODER_USPLANET
                  "\x62"
                  #define DECODER_UKPOSTAL
                  "\x63"
                  #define DECODER_JAPPOSTAL
                  "\x64"
                  #define DECODER_AUSPOSTAL
                  "\x65"
                  #define DECODER_DUTCHPOSTAL
                  "\x66"
                  #define DECODER_CANPOSTAL
                  "\x67"

                   

                   

                  #define DECODER_CHINESE_2OF5"\x70"

                   

                   

                  #define DECODER_AZTEC

                  "\x74"
                  #define DECODER_MICROQR

                  "\x75"
                  #define DECODER_KOREAN_3OF5
                  "\x76"
                  #define DECODER_US4STATE
                  "\x77"

                   

                   

                  #define DECODER_US4STATE_FICS"\x79"
                  #define DECODER_MATRIX_2OF5
                  "\x7A"