Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any Good Resources For Getting Started With Barcode Programming?

Tags:

barcode

I want to be able to store product information in the database for a web application, I decided it would be good to use the barcode as a good product identifier. Right now I just want to be able to store the numerical representation of the code in the database, so I need to find out maximum lenghts, formats, etc...

Eventually I would like to be able to integrate it with a barcode reader.

Are there any good resources out there to help someone get started with barcode programming?

like image 428
Laz Avatar asked Jan 27 '09 19:01

Laz


People also ask

How much does it cost to set up a barcode system?

For a basic barcode system it will generally cost under $1000 to fully setup and install. This will include the hardware, a printer to create barcode labels, and the software needed to track everything.

What software do you need for a barcode scanner?

Barcode scanners do not require any special software or driver to function properly. They will emulate a keyboard and will be recognized by your computer as a general input device.

Can you create your own barcode system?

Creating your own custom codes is pretty simple and cheap. All you need is a computer, some software or font packs, a scanner, and a label printer. Once you have your setup, the costs are about the same whether you choose to create 100 barcodes or 1000. It just becomes more of a time investment on your part.


2 Answers

Based on a number of barcode projects, here's a quick summary.

  1. Your application doesn't need to know or do anything differently because you're using barcodes. They are just a representation of data that might otherwise be printed. The symbology and dimensions can be dealt with in an encapsulated abstraction layer that you put together when you need it.

  2. Symbologies are generally determined by spot requirements, such as customer standards, industry standards, etc. If it's for internal use, Code 39 is generally considered a good default.

  3. For printing, most requirements can be dealt with using a laser printer, special label stock, and downloadable fonts. Special printers are also available from a number of sources, including Zebra, Intermec, etc.; but these are more expensive, and you need to watch out for proprietary (read: expensive) paper to print on.

  4. Fonts. Google for "barcode fonts" in general, but a handy alternative is this Postscript barcode generator that will print most any symbology in most any dimensions on most any Postscript printer.

  5. Reading barcodes. For reading barcodes with a PC input device, normally this is implemented either with a device driver providing your normal open/close/read/write/ioctl equivalents, or as a surrogate keyboard inline with your actual keyboard, so input appears as keystrokes (optionally with a terminal newline.) Non-PC devices obviously have their own programming requirements.

like image 122
dkretz Avatar answered Sep 17 '22 11:09

dkretz


I have done a fair amount of barcode work.

There's two sides that you will have to become familiar with.

Generating/Printing the Barcodes

This will involve using a specific type of barcode format. Code 128 is usually the most common, easiest to read for most formats, and prints the smallest barcodes. To print Code 128 format barcodes, you requires either a font, library that you can buy (idautomation, etc), and so on that you will integrate into your software to print the barcode. Code 39 is also common (and typically free). It prints really wide barcodes though as your data to be barcoded becomes bigger.

If you are going to print labels with barcodes, you may want to look into Zebra Printers. They have an excellent programming language built in (ZPL) which lets you generate all types of barcodes natively -- no need to buy fonts or libraries.

The important thing to consider here is barcode readability. You will find barcodes scale size wise like a font. ensuring your barcodes can print on your media, and are scannable (wont wrinkle, fold, or peel off, etc) will be very important.

Reading / Using the Barcodes

Reading barcodes will begin with a scanner of some kind. You can get ones that will read any type of barcode and transmit the decoded barcode as input. So, if you had a field selected on your screen, scanned in something, the content of the barcode would be typed into that field for you.

Another thing you could do is buy a mobile scanner running palm OS or windows ce/mobile such as ones made by symbol, psion teklogix, etc. These can be set up to run a piece of integrated software for receiving, shipping systems that will drive your work flow.

I have found life to be a lot easier by not re-inventing the wheel. I have used all of the products I have mentioned above and found they integrate well. There are some superb java barcode libraries as well that are free, I'm sure you will find something for .NET too. Let me know if you have any other questions.

like image 30
Jas Panesar Avatar answered Sep 19 '22 11:09

Jas Panesar