4

I have no previous experience on creating a project for a seller which will use barcode reader. I am trying to put together a small project but I cannot figure out how the pieces should glue together.

I will create a sample with Motorola Scanner SDK to read barcodes and from that point, I have couple of questions:

  • How UPC barcodes work in general? AFAIK, a barcode stores the manufacturer and product info but no price data.
  • Should I store price information inside a database which corresponds to barcode data?

I would really appreciate if you can guide me here.

yannis
  • 39,647
tugberk
  • 994

3 Answers3

3

Essentially the BarCode reader is an input device, not much different then your keyboard.

A UPC is one type of bar code. A bar code is series of lines where the width of each line determine the number. Some lines act as the standard line width unit, so the bar code can be any size, it the relative size that matters).

The BarCode is simply a device friendly way of representing numbers, you could replace a bar code scanner with an OCR device and print the numbers on the box, but bar code has a major befit over OCR where you don't have to worry about the orientation of the bar code.

All the scanner is doing is reading a Number and "Typing" into the computer system (You could just as well type the number in the same input box). Everything else is handled by the App.

The Barcode does NOT Store any data except for a single ID that your system has to handle. If your system has the wrong data mapped to the bar-coded ID, the wrong data is retrieved.

Robert Harvey
  • 200,592
Morons
  • 14,706
1

Basically you're correct, UPC stores mf and item identifiers and allows you to identify given product (different packages will have distinct codes). You'd normally store all other information about a product in a database (name, price etc.) There is an exception which allows price storage in code when it's 'by weight' packed directly in store/by customer, but you probably do not deal with that case.

This link shows basic structure of UPC

wmz
  • 119
-2

It is able to integrate such a upc barcode reader into the project to scan and decode the UPC barcodes. UPC barcodes only encode 12 or 6 numeric digits, so information of products couldn't be stored in this barcode symbol.