Coder Social home page Coder Social logo

aacengineering / epcpy-tools Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 2.0 57 KB

Library for encoding/decoding and representing GS1 Electronic Product Codes

License: Other

Python 100.00%
encoding giai gid decoding epc grai sgln barcodes sgtin python

epcpy-tools's People

Contributors

endreszabo avatar kluchrj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

paul-1 endreszabo

epcpy-tools's Issues

missmatch check digit

Hi,
at first thanks for your great effort to write this library! I just installed it and it works like a charm. However I noticed a minor missmatch to a website I found.
For the GRAI-170 Tag from your tests I found that
decode_epc("0x37012a05f20000188000000000000000000000000000").barcode == '8003032000000000011' decode_epc("0x37012a05f20000188000000000000000000000000000").values['serial_number'] == '1'
With a serial number of '1' the second last digit is the check digit which is '1'.
When inserting this to http://convert.erfideo.com/Home
all values but the check digit (which is 9 on this website) does match.

May you explain weather the website yields wrong values or this a bug in the code?

Many Regards
Dennis

Edit1: Additionally the convert.erfideo.com truncates the epc_hex by one trailing '0'. Why are there different lenghts?

Edit2: Updated link.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.