Encoding GS1 - Character FNC1

4,236 views
Skip to first unread message

Sebastien FIFRE

unread,
Sep 20, 2011, 7:56:07 AM9/20/11
to zxing
Hi,

I have a problem when i want to decode a datamatrix encoded with GS1
norm (with FNC1 character). Indeed, i try to put in first character
FNC1 (ASCII 29 or ACSII 232) but don't work.
It is possible to decode datamatrix encoded with GS1 norm?
If yes, how can i do this and what ASCII value i need to use to the
FNC1 character.

Best regards,
FIFRE Sébastien

(PS : I apologize for my bad english, i'm french)

Sean Owen

unread,
Sep 20, 2011, 7:58:49 AM9/20/11
to zx...@googlegroups.com
Could you give an example of what you are trying to decode, what it does, and what you expect?
Also if possible it would be great if you can try decoding with the latest version of the source code.

Sebastien FIFRE

unread,
Sep 20, 2011, 9:37:20 AM9/20/11
to zxing
I'm using this website to encode my Datamatrix :
http://www.terryburton.co.uk/barcodewriter/generator/ with symbology
"GS1 Data Matrix"
I take for contents, the example given by this website :
"(01)03453120000011(17)120508(10)ABCD1234(410)9501101020917", then i
generate a barcode.

I have this result :
01034531200000111712050810ABCD12344109501101020917

And I expect this :
FNC10101034531200000111712050810ABCD1234FNC14109501101020917
with FNC1 has for value ASCII 29 or ASCII 232.

(I have at my disposal a scanner (this model
http://www.motorola.com/Business/US-EN/Business+Product+and+Services/Bar+Code+Scanning/Bar+Code+Scanners/General+Purpose+Scanners/DS4208)
to verify if this datamatrix was encoded with GS1 norm and it's
correct)

I'm using the last release Zxing-1.7 in my application.

Best Regards,
FIFRE Sébastien

Sean Owen

unread,
Sep 20, 2011, 12:23:09 PM9/20/11
to zx...@googlegroups.com
Make sure to use the latest code from Subversion, rather than 1.7. I think there have been changes here.

I see output that begins like FNC0103453 ...
This seems correct. Why do you expect FNC1010103453  ...? that is, where is the extra "101" coming from?

I think the contents are being read correctly. I don't know if FNC1 has special meaning in GS1, but it is not further translated. I can tell you that it is definitely rendered as ASCII 29 though.
So, perhaps you would just need to further interpret the results in your app.

Sebastien FIFRE

unread,
Sep 20, 2011, 1:05:11 PM9/20/11
to zxing
Thanks for your answer!!
Indeed, there are changes between code from Subversion and Zxing-1.7.
More specifically in the class DecodeBitStreamParser.java where
character 232 isn't ignore anymore.

For the result i expect, i did a mistake, i apologize. I expect
FNC10103453... "01" is a mistake.
I think with the version in Subversion it will work. I will let you
know if it's work.
Thanks again.

Regards,
FIFRE Sébastien
Reply all
Reply to author
Forward
0 new messages