how to read input from barcode scanner?

Reply

Join Date: Dec 2004
Posts: 44
Reputation: starsunited is an unknown quantity at this point 
Solved Threads: 1
starsunited's Avatar
starsunited starsunited is offline Offline
Light Poster

how to read input from barcode scanner?

 
0
  #1
Dec 9th, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: how to read input from barcode scanner?

 
0
  #2
Dec 10th, 2004
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.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord

Re: how to read input from barcode scanner?

 
0
  #3
Dec 10th, 2004
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?
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 1
Reputation: nickster is an unknown quantity at this point 
Solved Threads: 0
nickster nickster is offline Offline
Newbie Poster

Re: how to read input from barcode scanner?

 
0
  #4
Jan 28th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 31
Reputation: mcldev is an unknown quantity at this point 
Solved Threads: 2
mcldev mcldev is offline Offline
Light Poster

Re: how to read input from barcode scanner?

 
0
  #5
Feb 24th, 2005
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


Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 50
Reputation: barnamos is an unknown quantity at this point 
Solved Threads: 0
barnamos's Avatar
barnamos barnamos is offline Offline
Junior Poster in Training

Re: how to read input from barcode scanner?

 
0
  #6
Mar 22nd, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2003
Posts: 360
Reputation: Gary King will become famous soon enough Gary King will become famous soon enough 
Solved Threads: 5
Team Colleague
Gary King's Avatar
Gary King Gary King is offline Offline
PHP/vBulletin Guru

Re: how to read input from barcode scanner?

 
0
  #7
Mar 22nd, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 48
Reputation: RamiroS is an unknown quantity at this point 
Solved Threads: 0
RamiroS's Avatar
RamiroS RamiroS is offline Offline
Light Poster

Re: how to read input from barcode scanner?

 
0
  #8
Mar 23rd, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 44
Reputation: starsunited is an unknown quantity at this point 
Solved Threads: 1
starsunited's Avatar
starsunited starsunited is offline Offline
Light Poster

Re: how to read input from barcode scanner?

 
0
  #9
Apr 19th, 2005
Thanks RamiroS.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1
Reputation: dotnetguy is an unknown quantity at this point 
Solved Threads: 0
dotnetguy dotnetguy is offline Offline
Newbie Poster

Re: how to read input from barcode scanner?

 
0
  #10
May 2nd, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC