944,001 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 67689
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
Dec 9th, 2004
0

how to read input from barcode scanner?

Expand Post »
from what i have research, there are some barcode scanner which is uSB and are keyboard wedge have built in decoders that can read several barcode types and send them via the keyboard so info scanned appears as if it has been typed. Therefore does it means that, if the user just scan a barcode into the textfield, the data can be retrieved using the normal way?

But what if the barcode scanner is non-USB and do not have keyboard wedge interface, can it be done using php? so is there any php scripts that have written for this function? can anyone help? Thanmks in advance.
Reputation Points: 11
Solved Threads: 1
Light Poster
starsunited is offline Offline
44 posts
since Dec 2004
Dec 10th, 2004
0

Re: how to read input from barcode scanner?

What do you mean by "Non-USB"? Serial? PS2?

I'd imagine that with either PS2 or USB would work the same, as the OS handles the text input all the same. If it's some other input, it might be different-- you might need to know if PHP has an interface to a certain device driver.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Dec 10th, 2004
0

Re: how to read input from barcode scanner?

Quote originally posted by starsunited ...
from what i have research, there are some barcode scanner which is uSB and are keyboard wedge have built in decoders that can read several barcode types and send them via the keyboard so info scanned appears as if it has been typed. Therefore does it means that, if the user just scan a barcode into the textfield, the data can be retrieved using the normal way?

But what if the barcode scanner is non-USB and do not have keyboard wedge interface, can it be done using php? so is there any php scripts that have written for this function? can anyone help? Thanmks in advance.
What exactly are you trying to do? Surely this is a problem for the client interface, not the server?
Team Colleague
Reputation Points: 63
Solved Threads: 6
Supreme Evil Overlord
Roberdin is offline Offline
282 posts
since Feb 2003
Jan 28th, 2005
0

Re: how to read input from barcode scanner?

hi

i'm having a similar problem. I'm trying to get a barcode reader to work on an embedded system, but for now just on my desktop running debian with a 2.4.26 kernel. I've got a ps2 barcode scanner in a ps2/usb connector connected to the usb port.

the kernel registers the ps2 connector, but i have no idea how to access the device. Any ideas. At the moment it seems i need to write a device driver for the device, but would love it if there was an easier way.

what device would I have to access to read the scanner? /dev/usb/??? i can't seem to find it. also i'm using the usbkbd driver. I know its limited, but i can't get the keybdev driver to work on the embedded system....

thanks in advance
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nickster is offline Offline
1 posts
since Jan 2005
Feb 24th, 2005
0

Re: how to read input from barcode scanner?

The joy of barcode readers. I have worked with serial readers and basically as long as you can read from a serial port and detect Start and End of Text you can usually frame the data. With that said the wand when inserted into the well or whatvever will dumps its data quite rapidly. Thus your application needs to be able to read the serial feed rapidly. So is this PHP-able? This sounds a little dicey given the small window that exists for the data dump. Ultimately if the wand you are using is more sophisticated (i.e. allows a delay) then you may be able to read it. As always good luck


Reputation Points: 10
Solved Threads: 3
Light Poster
mcldev is offline Offline
31 posts
since Feb 2005
Mar 22nd, 2005
0

Re: how to read input from barcode scanner?

We build linux based POS systems with PHP/MySQL. We plug a good USB scanner (try cobra) and it reads the barcode and translates to text. There's not a script side parsing from code39 to text that you have to do, that's what the reader does. If your reader sends delimiters, (like mag stripe readers do) you will need to strip those but that's easy enough. We've used serial port readers but its always a pain getting compatible drivers etc. Just drop a few more bucks and go USB to save headaches.
Reputation Points: 15
Solved Threads: 0
Junior Poster in Training
barnamos is offline Offline
50 posts
since Mar 2005
Mar 22nd, 2005
0

Re: how to read input from barcode scanner?

Interesting discussion; I actually have a barcode scanner that I could experiement with, and maybe I can make something out of it - or at least make it work, for starters.
Team Colleague
Reputation Points: 53
Solved Threads: 5
PHP/vBulletin Guru
Gary King is offline Offline
360 posts
since Nov 2003
Mar 23rd, 2005
0

Re: how to read input from barcode scanner?

Hi starsunited. I'll need to do that work soon. A co-worker did it and as far as I remember when talked to him he used handhelds with bar code readers. Basically the handheld has WinCE so he was able to read the barcode and the handheld passed the information directly to a PHP page that handled the code. This is a pretty good thing because if you have a wireless connection you can make live connections to a master database to process orders. I'll try to find more information about how they implemented it.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
RamiroS is offline Offline
57 posts
since Mar 2005
Apr 19th, 2005
0

Re: how to read input from barcode scanner?

Thanks RamiroS.
Reputation Points: 11
Solved Threads: 1
Light Poster
starsunited is offline Offline
44 posts
since Dec 2004
May 2nd, 2006
0

Re: how to read input from barcode scanner?

Hey,

I have web based ERP system and going to attach barcode reader to the web interface.

Any idea how to use webbased interface for checkout process?

It seems that Javascript has to wait for "\n" (end of string) and Postback the form.
In my case to avoid Postback I'm going to use AJAX.

Does anybody have expirience with barcode and webforms ?

Thanks.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dotnetguy is offline Offline
1 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: fatal error
Next Thread in PHP Forum Timeline: drupal + dotproject + bridging





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC