-
May 29th, 2012, 01:41 PM
#1
How to read from physical barcode scanner
Hi All,
Someone asked me to help with an application that uses a barcode reader to get a PDF417 barcode and decode it (the original information is zipped and encoded before being made a barcode).
But I ran into difficulties:
- the dll's that I found are starting from files on disk; I need to work with data from a laser scanner
- scanning into a file and processing it seems not to be an option; the way I understand, scanners are treated like keyboards, and what comes is like keystrokes. As my barcode is binary data, I'm losing some information in the process, making the decoding impossible
Is it possible to scan into a memory buffer, and do the reading of that buffer instead of a disk file? Or, maybe another approach?
One more think: if possible, can I get an urgent answer? I know it's not very polite, but I'm under hammer and hard place right now...
Thanks,
SxN
-
May 29th, 2012, 01:43 PM
#2
Re: How to read from physical barcode scanner
Of course, is between a hammer and a hard place, sorry for that
SxN
-
May 29th, 2012, 01:56 PM
#3
Re: How to read from physical barcode scanner
Does the model of scanner have an sdk available for you to use? Often the scanner barcode manufacturers will make the sdk available.
-
May 29th, 2012, 04:39 PM
#4
Re: How to read from physical barcode scanner
Well, I don't know. The device is in Europe, I'm in Canada, and between my timezone and the person's I'm helping are 7 hours.
I'll talk to him tonight (about 10:30 EDT), but until then do you have any pointers?
Thanks,
SxN
-
May 29th, 2012, 06:03 PM
#5
Re: How to read from physical barcode scanner
Not really, you pretty much need the hardware mfg to supply the means to interact with their product.
-
May 30th, 2012, 03:06 AM
#6
Re: How to read from physical barcode scanner
Most of the time barcode reader behaves like keyboards, no ?
-
May 30th, 2012, 08:22 PM
#7
Re: How to read from physical barcode scanner
> Most of the time barcode reader behaves like keyboards, no ?
Correct, and that's part of the problem. In my case, it is about reading and encoded and compressed piece of information, in other words it is binary rather than alphanum. I tried to treat the input as a Console input, and lost some of the bytes.
I have to find a way generic enough to work with any barcode scanner; a particular SDK from a particular vendor won't help.
Right now I'm exploring Florian Reitner's USBHIDDRIVER
(http://www.florian-leitner.de/index....river-library/)
SxN
-
May 30th, 2012, 08:25 PM
#8
Re: How to read from physical barcode scanner
Enschuldigung, es ist Leitner, nicht Reitner...
(sorry, it's Leitner, not Reitner)
I need a sleep :-(
SxN
-
January 31st, 2013, 03:57 AM
#9
Re: How to read from physical barcode scanner
I have no experience of reading barcode by physical scanner, but i am using the barcode reader for .net.
Integrating .NET Barcode Reader into your .NET project, you can easily embed barcode reading functionality to your ASP.NET websites, .NET Windows applications, and .NET Web services.
Both C# and VB.NET are supported.
Hope it helps!
-
February 1st, 2013, 04:40 PM
#10
Re: How to read from physical barcode scanner
I know this is an old thread but since it was revived I thought I would chime in as it may help someone. Barcode scanners usually act as either a keyboard wedge or as an RS232 device and some have the option to work as either.
When using it as a RS232 device then you just need to read the binary data from the serial port buffer as it arrives.
Keyboard wedge type is a bit more hit an miss unless hook into the API to capture keystrokes. This is the only way I know of to get them if for some reason your app loses focus.
I have had success though by trapping the KeyCode in either the KeyDown or KeyUp event within my apps provided of course they have focus at the time.
For PDF417 barcodes I would highly recommend the RS232 interface be used. If the scanner in question does not support RS232 or BlueTooth or some other method that will allow you to read it as a serial port or IP address then I would seriously think about buying a different scanner.
Last edited by DataMiser; February 1st, 2013 at 04:45 PM.
Always use [code][/code] tags when posting code.
-
March 14th, 2013, 07:34 AM
#11
Re: How to read from physical barcode scanner
Originally Posted by donnygross
Recently, I think the phone barcode reader or the physical barcode reader is somewhat not so convenient. So I am trying to develop a barcode reader plugin for Brower, something like Firebug, so users can scan the barcode image without taking it to sever or using another barcode reader.
What?
To scan a barcode you need a scanner, or a picture of the barcode. Nothing has to go to a server so no idea what you are talking about and no idea why you added it to this thread which is about reading a PDF417 barcode with a physical scanner.
Always use [code][/code] tags when posting code.
-
March 18th, 2013, 09:18 PM
#12
Re: How to read from physical barcode scanner
Yes, Just need a barcode reader. If you want to read barcode in .NET, you can use a .NET barcode reader SDK. If you want to read barcode in Java, you can use a Java barcode reader SDK, etc.
-
March 18th, 2013, 10:32 PM
#13
Re: How to read from physical barcode scanner
You do not need any SDKs to get the data from a physical barcode reader. It is simply delivered as either Keystrokes or Serial Stream data depending on the reader in question.
Mobile devices are a different case where some do provide an SDK for talking to the barcode reader but they typically also offer a wedge program that will allow you to read barcodes without using thier SDK as part of your program.
Reading barcodes from pictures is another matter but it should also be known that many things you see on the net for working with barcodes of for 1d barcodes and will not work with PDF417 which is a 2d barcode which can contain lots of data.
Always use [code][/code] tags when posting code.
-
June 2nd, 2014, 10:56 PM
#14
Re: How to read from physical barcode scanner
Originally Posted by SxN02
> Most of the time barcode reader behaves like keyboards, no ?
Correct, and that's part of the problem. In my case, it is about reading and encoded and compressed piece of information, in other words it is binary rather than alphanum. I tried to treat the input as a Console input, and lost some of the bytes.
I have to find a way generic enough to work with any barcode scanner; a particular SDK from a particular vendor won't help.
Right now I'm exploring Florian Reitner's USBHIDDRIVER
( http://www.florian-leitner.de/index....river-library/)
SxN
Does this barcode scanner sdk help to read truncated PDF417 barcode?
-
June 2nd, 2014, 11:21 PM
#15
Re: How to read from physical barcode scanner
use a professional and mature barcode scanner in .net development to help you scan and read different barcodes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|