Coder Social home page Coder Social logo

Function Characters? about iec16022 HOT 6 CLOSED

rdoeffinger avatar rdoeffinger commented on May 22, 2024
Function Characters?

from iec16022.

Comments (6)

rdoeffinger avatar rdoeffinger commented on May 22, 2024 1

Sorry, was wrong. Those specifications are truly horrible.
I added a --gs1 flag that adds a proper FNC1 at the start. It also removes any possible ]d2 identifier at the start.
FNC1 in the middle still won't work, at least if they need to be encoded as FNC1 (some specs talk about using the GS ASCII code instead, but it is unclear if that is only the representation on the DataMatrix decoder output side or if it is allowed inside the DataMatrix code).

from iec16022.

rdoeffinger avatar rdoeffinger commented on May 22, 2024

As far as I can tell FNC1 is simply a byte of the value 232.
So all you need to do is pass it a string with that.
On Linux, something like this should do it: ./iec16022 -f UTF-8 "$(printf \xE8test)"
I don't have reader that understands GS1 data matrix though to check.

from iec16022.

Rex-On-GitHub avatar Rex-On-GitHub commented on May 22, 2024

Thanks for your response rdoeffinger.

I see that I am running 2.4, so I do not have the UTF-8 format. I am having trouble using make on my linux distro with the source code I downloaded from the releases page. Attempting to follow the INSTALL directions, I simply type
"make" which results in "make: *** No targets specified and no makefile found. Stop."
or
"make -f Makefile.am" which results in "make: *** No targets. Stop."

Obviously I have never ran make before. Am I performing the install incorrectly?

In the meantime, I know that this site identifies the FNC1 and notes the DataMatrix as a GS1 code if you want to test your output before I get through the install: https://online-barcode-reader.inliteresearch.com/default.aspx .

Thanks for your help.
Rex

from iec16022.

rdoeffinger avatar rdoeffinger commented on May 22, 2024

You don't need the UTF-8 output, it's just more convenient than having to use an image viewer to see and test the result.
Due to the numerous and somewhat serious bugs you'll probably want to use a newer version anyway though.
I fixed the instructions, in particular autogen.sh and configure were missing. I hate autotools and the extra complexity they create but I don't want to replace the build system for now.
In addition my comment was wrong. The GS1 specification is a mess. FNC1 is encoded as byte value 29 (\x1D), however that only applies if it is used as a separator.
A FNC1 at the start is simply encoded as ]d2.
Thus encoding the string "]d200123456780000000001" results in a GS1 datamatrix.

from iec16022.

Rex-On-GitHub avatar Rex-On-GitHub commented on May 22, 2024

Wow! Thanks rdoeffinger! I was able to update to the master file with your updated install doc (I did not have any of the autotools installed). You definitely have the GS1 tag working, thanks! I will do some attempts for the separation character and let you know.

Also, for that online code reader link I posted earlier, I needed to scale up the image in GIMP since it can't read the single-pixel PNG iec16022 generates. From what I recall on using other software, it should show {GS} if it is correct.

from iec16022.

Rex-On-GitHub avatar Rex-On-GitHub commented on May 22, 2024

Alright! I think you got it! I was able to duplicate the results from an image from a GS1 guidance doc.
From guidance:
from guidance

Generated:
from iec16022

The actual datamatrixes look a little different though. I plan to have access to a verifier soon so I can test it out more rigorously.

Thanks again for your help rdoeffinger!

from iec16022.

Related Issues (16)

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.