Click here to Skip to main content
15,917,964 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to read barcode from multiple barcode scanner devices at a point of time in a text box control ,.should be reading one scanner at a time till then other scanner should be in a queue or waiting ,searched a lot didn't get any satisfying solution ,can you please let me know .

What I have tried:

i had tried to avoid collapse barcode coming from two barcode scanner devices on a single point of time(simultaneously). still not working.
Posted
Updated 10-Oct-17 12:39pm
Comments
Mehdi Gholam 10-Oct-17 6:34am    
Why? A single barcode scanner usually works fine.
F-ES Sitecore 10-Oct-17 6:44am    
How you do this depends on what the barcode you are using supports and how it works. None of which we know.
Ralf Meier 10-Oct-17 6:47am    
You should tell us a little bit more about your project.
The way you wrote your question doesn't make any sense for me ...
rajesh kumar 123 10-Oct-17 7:18am    
i have a textbox control. and my focus is set on that textbox. and i have two barcode scanner device for reading barcode then save in database. both barcode scanner are working for reading barcode in single textbox control. but press the key of both barcode devices simultaneously that time my 13 digit barcode are collapsed.
for example :- barcode-1 press key : 8901522000092
barcode-2 press key : 8902967400034 both barcode are save . but
press key of both devices simultaneously then my barcode are collapsed like
89015890296740003422000092 - this is wrong.
should be reading one scanner at a time till then other scanner should be in a queue or waiting
Ralf Meier 10-Oct-17 8:57am    
OK ... I understand.
So you get your Barcodes as Input-Simulation directly into the Textboxes ...?
You don't request the data directly from the emulated COM-Ports ...? But this could be the way to avoid the problem ...

1 solution

The barcode scanners I worked with, behaved like a keyboard, when you pressed the key and they recognized a barcode, they would send keystrokes to any input capable field that had the focus at this time. This could be an EXCEL sheet, an application or a text editor.
With two connected, the scenario you describe would be happening, depending on the timing the keystrokes could be intermixed as there is no way to determine, which key originated from which scanner.
Using your scanners, you would need to connect only one per PC, which is the main use case.
Or you would need to find a scanner that you can control, e.g. that shows up as a USB HID device and then you can write a HID driver or application that can directly address each scanner individually and then direct the data as necessary.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900