473,770 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Barcode Reader

I would like to add barcode functionality to my POS program

How does one attach barcode reader is it usually USB port

How can the program get the data read by the device

Thank you,
Samuel
Jul 11 '06 #1
6 3383
Hi

There are many different types of barcode scanners. USB and PS2 are the
most common.

I have experience with PS2 scanners. Essentially they plug in to your
PS2 keyboard port and act like any other keyboard device. When a
barcode is scanned, it sends the characters through as if they were
typed on a keyboard. So for example, if your win form has a textbox
that has the focus, and you scan a barcode, the characters appear in
the textbox.

To program against this, the best way is to handle the keypress events
native to a windows form or any other control. Usually a barcode will
need to have a * at the front and back for the barcode scanner to pick
it up, but this can be configured on most scanners as well. The * will
be removed by the time it gets to your app so you don't need to account
for it.

Essnetially you can differentiate from the barcode scanned text and the
keyboard typed text by checking the speed in which the characters come
in. If they come in super fast, then most likely those chars were
scanned, if they come in slower, then they were typed.

You also need to consider what barcode font to use, and then ensure
your barcode scanner supports that font. There are a few common ones,
but its best to use one that supports alpha and numeric chars. You can
get very cheap Code39 scanners and the font is freely available on teh
web to download

Hope this helps.

Steven Nagy
Samuel Shulman wrote:
I would like to add barcode functionality to my POS program

How does one attach barcode reader is it usually USB port

How can the program get the data read by the device

Thank you,
Samuel
Jul 11 '06 #2
The USB versions work as below (keyboard wedge) or as an emulated serial
device, in which case, you can use the SerialPort from the toolbox to
get the data of the scanner.
Steven Nagy wrote:
Hi

There are many different types of barcode scanners. USB and PS2 are the
most common.

I have experience with PS2 scanners. Essentially they plug in to your
PS2 keyboard port and act like any other keyboard device. When a
barcode is scanned, it sends the characters through as if they were
typed on a keyboard. So for example, if your win form has a textbox
that has the focus, and you scan a barcode, the characters appear in
the textbox.

To program against this, the best way is to handle the keypress events
native to a windows form or any other control. Usually a barcode will
need to have a * at the front and back for the barcode scanner to pick
it up, but this can be configured on most scanners as well. The * will
be removed by the time it gets to your app so you don't need to account
for it.

Essnetially you can differentiate from the barcode scanned text and the
keyboard typed text by checking the speed in which the characters come
in. If they come in super fast, then most likely those chars were
scanned, if they come in slower, then they were typed.

You also need to consider what barcode font to use, and then ensure
your barcode scanner supports that font. There are a few common ones,
but its best to use one that supports alpha and numeric chars. You can
get very cheap Code39 scanners and the font is freely available on teh
web to download

Hope this helps.

Steven Nagy
Samuel Shulman wrote:
>I would like to add barcode functionality to my POS program

How does one attach barcode reader is it usually USB port

How can the program get the data read by the device

Thank you,
Samuel
Jul 12 '06 #3

Hope this helps.

Steven Nagy
Samuel Shulman wrote:
I would like to add barcode functionality to my POS program

How does one attach barcode reader is it usually USB port

How can the program get the data read by the device

Thank you,
Samuel

Steven Nagy wrote:
Hi

There are many different types of barcode scanners. USB and PS2 are the
most common.

I have experience with PS2 scanners. Essentially they plug in to your
PS2 keyboard port and act like any other keyboard device. When a
barcode is scanned, it sends the characters through as if they were
typed on a keyboard. So for example, if your win form has a textbox
that has the focus, and you scan a barcode, the characters appear in
the textbox.
Indeed. I was just playing with one of these last night.
To program against this, the best way is to handle the keypress events
native to a windows form or any other control. Usually a barcode will
need to have a * at the front and back for the barcode scanner to pick
it up, but this can be configured on most scanners as well. The * will
be removed by the time it gets to your app so you don't need to account
for it.
If that so? I was scanning barcodes in with the PS/2 keyboard wedge and
did not see any *s, whether in the console or in a textbox.
Essnetially you can differentiate from the barcode scanned text and the
keyboard typed text by checking the speed in which the characters come
in. If they come in super fast, then most likely those chars were
scanned, if they come in slower, then they were typed.
Unless the user cut&pasted the text, in which it comes in very fast.
You also need to consider what barcode font to use, and then ensure
your barcode scanner supports that font. There are a few common ones,
but its best to use one that supports alpha and numeric chars. You can
get very cheap Code39 scanners and the font is freely available on teh
web to download
CueCat! :)

B.

Jul 12 '06 #4
If that so? I was scanning barcodes in with the PS/2 keyboard wedge and
did not see any *s, whether in the console or in a textbox.
No the scanner removes the *'s before sending it down the line.
This is configurable as well. Generally you can download a set of
barcodes from teh manufacturer's website that, when scanned, setup the
barcode scanner to different settings.
Unless the user cut&pasted the text, in which it comes in very fast.
In this case, the key's being pressed are CTRL + V which are what would
be captured.
NOT the actual string buffer that was copied originally. So it should
still work.

Jul 12 '06 #5

Steven Nagy wrote:
If that so? I was scanning barcodes in with the PS/2 keyboard wedge and
did not see any *s, whether in the console or in a textbox.

No the scanner removes the *'s before sending it down the line.
This is configurable as well. Generally you can download a set of
barcodes from teh manufacturer's website that, when scanned, setup the
barcode scanner to different settings.
Perhaps each scanner is different. I didn't install any drivers for
this one.
Unless the user cut&pasted the text, in which it comes in very fast.

In this case, the key's being pressed are CTRL + V which are what would
be captured.
NOT the actual string buffer that was copied originally. So it should
still work.
Or Shift-Insert.

What if the past is effected programmaticall y, as through a
right-click, or through sendkeys?

B.

Jul 13 '06 #6
You'd really have to test it, but possibly the right-click -paste
might cause the keypressed event to fire, but I still doubt it. I guess
some tests are in order!
I'll run some on the weekend.

Jul 13 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
10242
by: Tom | last post by:
Using VB6, I want to read barcode data into an Access 2000 DB. What do you get when you read a barcode? Text or numbers. How do you define the field were the data would be stored? Thanks in advance, Tom D.
5
2084
by: sameer | last post by:
Hi, I have a client who wants to use barcode scanners with web pages( internet website). They want to scan the barcode no off a label and want this no to go straight to the focused text field on the webpage i.e the user go's to the webpage and focuses in a text box, and then they scan( using a barcode scanner) the barcode # off a printed out label, as soon as this is done, the barcode # should be there in the focused text box. Is this...
4
8946
by: Mat | last post by:
Does anyone know how to generate ,print and read barcode with VB.NET?
5
5430
by: neilphan | last post by:
Hi all, I have an application that uses input from a barcode reader via a USB port. My application works fine only if the application HAS FOCUS. If the user opens up another application (not mines) such as notepad/word, etc, the Barcode Reader reads data into the applicaton that currently has focus with is notepad/word but not my own applicaton. My question is as follows: Is there a way to write a Listener
3
3345
by: PaoloB | last post by:
Hi everyone, I am searching for a python library for barcode recognition. We have developed a rather complex application for document tracking and document management in python/Zope, called PAFlow (www.paflow.it: sorry, most of the information is in Italian...). As our project is completely free software, we will need a library that is free software too.
7
8289
by: Alper Ozgur | last post by:
Hi; How can i capture and decode the barcode that reading by an usb Barcode reader?
4
1811
by: Joe | last post by:
is there any free barcode reader in vb8 for code-128 ??
7
4223
by: jim | last post by:
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know what type of barcode the user will have, so I need to be able to accept input from any industry standard barcode reader. I need to check the barcodes scanned to see if they are in a database of acceptable barcodes and simply show ACCEPT or...
1
3093
by: bojkar | last post by:
Hello everyone. I have quastion :) I have metrologic Eclipse MS5145 bar code reader in usb. Now I want read barcode from him. I'd searched metrologic homepage, a lot's of forums and search engines and nothing :/ I don't know how reade barcode. But I see that: When I plug reader to usb port and open notepad (or else text editor) and read some barcode then this barcode is paste to text editor. Maybe is any winapi function to do this? Please help ...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8931
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.