10xSebastian / barcode-scanner.js

Javascript library to handle and identify data (keystrokes) entered by a barcode scanner.
GNU General Public License v2.0
17 stars 7 forks source link

My scanner is not pulling something from the barcode with this library #5

Open 10xSebastian opened 8 years ago

10xSebastian commented 8 years ago

Asked by @smartmeter here: https://github.com/pape-io/barcode-scanner.js/issues/3#issuecomment-160251159

My scanner is not pulling the P or F in the scan code with your lib, is this because of the protocol or are letters not supported.

10xSebastian commented 8 years ago

I assume that in this case the 'P' or 'F' is simply not part of the barcode itself. Sometimes they are just printed on the barcode label, but are not part of the code itself.

Just make those characters part of the barcode itself, and then the library will be able to handle it.

If they are not forwarded thats usually because the protocol or the driver does not forward it to the browser.

10xSebastian commented 8 years ago

Similar question by @winecraft here: https://github.com/pape-io/barcode-scanner.js/issues/3#issuecomment-161125388

I have both UPC and serial numbers on various commodities from the grocery store and hardware store, does this scan work with both? and will it tell me the correct type?

The same applies for you @winecraft, if you make the type part of the barcode, this library can detect the correct type immediately. Like 'G 123' for grocery and 'H 123' for hardware items.