From: SourceForge.net <no...@so...> - 2012-03-01 07:34:26
|
Bugs item #3495613, was opened at 2012-02-29 02:08 Message generated for change (Comment added) made by jmaerki You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=615504&aid=3495613&group_id=96670 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Andy (andysiu) Assigned to: Nobody/Anonymous (nobody) Summary: Generate wrong DataMatrix barcode Initial Comment: It is suspected that there is problem during encoding of DataMatrix barcode. The generated image is unable to be decoded by barcode scanner. Below please find an example. <ABCDEFG><ABCDEFGK> ---------------------------------------------------------------------- >Comment By: Jeremias Märki (jmaerki) Date: 2012-02-29 23:34 Message: I've looked at your examples. My MetroLogic Focus MS1690 hardware scanner can decode the first one just fine. That one is purely about EDIFACT encoding. I've also verified various deviations from the first example. They were all good and also looked good from the way the codewords are produced. While my scanner does decode the big one, the result is wrong. But the problems appear to be starting at a place where EDIFACT is not involved. I have to dig deeper here, but right now I don't have the time for it. Maybe I can take another look during the weekend. No promises. ---------------------------------------------------------------------- Comment By: Andy (andysiu) Date: 2012-02-29 18:37 Message: Thank you very much. I tried another longer string. http://online-barcode-reader.inliteresearch.com also decoded wrongly. <PATIENT><HospitalCode>SHP</HospitalCode><HospitalName>Evangel Hospital</HospitalName><MRN>HN124344(A)</MRN><EpisodicNo>223456</EpisodicNo><Surname>Chan</Surname><Givenname>Siu Ling</Givenname><AdmissionDate>01-Dec-2010 00:00:00</AdmissionDate><DischargeDate>23-Feb-2012 00:00:00</DischargeDate></PATIENT> http://imageshack.us/photo/my-images/707/barcode4j2.png/ ---------------------------------------------------------------------- Comment By: Christopher Ulbright (culbright) Date: 2012-02-29 18:22 Message: In my case it was EDIFACT encoding. See org.krysalis.barcode4j.datamatrix.DataMatrixHighLevelEncoder.java. I actually turned off EDIFACT encoding myself when I was having a problem and forced it to remain as standard ASCII. This requires modifying the source. If you want more guidance let me know, but not tonight. ;) ---------------------------------------------------------------------- Comment By: Andy (andysiu) Date: 2012-02-29 18:08 Message: What encoding can be set? I am using a real barcode scanner for testing. And it can decode the DataMatrix barcode if the barcode is generated by another tools (same input string). And it is weird that it works fine if I change the input string to "<ABCDEFG><ABCDF>" ---------------------------------------------------------------------- Comment By: Christopher Ulbright (culbright) Date: 2012-02-29 17:52 Message: I can read the barcode just fine using the BarcodeScanner app on my android phone. What happens when you have those '>' characters is a different encoding is used. Perhaps your reader has a problem with the encoding? I had, what I think may be, this same issue and it turned out that my reader was at fault. You can run a test here: http://online-barcode-reader.inliteresearch.com/ ---------------------------------------------------------------------- Comment By: Andy (andysiu) Date: 2012-02-29 17:41 Message: http://imageshack.us/photo/my-images/195/barcode4j.png/ ---------------------------------------------------------------------- Comment By: Andy (andysiu) Date: 2012-02-29 17:36 Message: The problem occurs when the input string contains some specific pattern. E.g. uppercase, '>' at some particular place. The problem can be reproduced by the demo applet. ---------------------------------------------------------------------- Comment By: Christopher Ulbright (culbright) Date: 2012-02-29 17:10 Message: Do you have a sample image containing the incorrect barcode? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=615504&aid=3495613&group_id=96670 |