Solved

Parsing datamatrix barcodes

Posted on 2011-09-30
6
347 Views
Last Modified: 2012-06-27
I am writing an application for a client that needs to parse the data in a datamatrix bar code into the SKU, batch/serial number and expiry date. Most of the items are pharmaceutical in nature.

Is there a central resource that publishes the format of the data that is encoded in datamatrix bar codes or does each manufacturer do its own thing and must I work out the formatting for each manufacturer's items?

I was hoping that when I know the manufacturer ID I can then extract the product code, batch number (or serial number) and the expiry date in a reasonably consistent fashion.
0
Comment
Question by:mdspencer
  • 4
  • 2
6 Comments
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36892467
You can purchase the standard from the ISO here
http://webstore.ansi.org/RecordDetail.aspx?sku=ISO%2fIEC+16022%3a2006
Looks a bit expensive to me (255 USD)
Plus it will be very technical and won't tell you which of the possible formats your manufacturers use.
If you go here: http://www.racoindustries.com/barcodegenerator/2d/datamatrix.aspx you can play around with the barcode generator and get an idea of how it works.
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36892520
It is up to the manufacturer how they format the data in the code and there are several formats to choose from http://www.machinevisiononline.org/vision-resources-details.cfm/Machine-Vision-Online/Data-Matrix-Sets-the-Standard-for-Identification/content_id/1975
You are going to have to get the data from each manufacturer, but it's likely that most of them will just tell you how they have it set up and may even have it published somewhere.

I was hoping that when I know the manufacturer ID I can then extract the product code, batch number (or serial number) and the expiry date in a reasonably consistent fashion.
Yes. That will certainly be the case.
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 250 total points
ID: 36892523
As long as you mean consistant for that particular manufacturer.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Author Comment

by:mdspencer
ID: 36904920
Hi. Thanks for your responses. It is not quite what I am looking for but I think that you have answered the question indirectly so thanks for your time. It would appear that each manufacturer will format the data in whatever way suits them.
0
 
LVL 2

Author Closing Comment

by:mdspencer
ID: 36904925
As per my last note...
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36905155
It would appear that each manufacturer will format the data in whatever way suits them.
Yes. That was exactly my point. I'm sorry if that was not clear.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now