 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Paul_R Guest
|
Posted: Sat Sep 20, 2003 5:05 am Post subject: Delphi and BarCode scanners |
|
|
Hi - I am looking for any information on incorporating BarCode scanner into
Delphi written application..
Any information would be very helpful (product / programming solutions)
Thank you
Paul
|
|
| Back to top |
|
 |
Pierre le Riche Guest
|
Posted: Sat Sep 20, 2003 8:41 am Post subject: Re: Delphi and BarCode scanners |
|
|
Hi Paul,
There are two kinds of bar code scanners that I have come across: The
keyboard wedge type and the serial interface type. I haven't seen a usb
version in this part of the world yet.
The keyboard wedge type is very easy to use. It uses a splitter cable to
share the same socket as your keyboard and when you scan a barcode it passes
the characters through as if you have typed them. It's simple, but when your
program is used for other data entry as well it becomes a hassle, because
now you have to focus the right control every time before you scan a bar
code or the bar code "keystrokes" go to the wrong edit or control.
I personally prefer the serial port type, since it eliminates the confusion
between data from the keyboard and data from the scanner. All you need is a
component that allows you to communicate directly with the serial port and
you're set to go. Of course, you need to know the correct port settings of
the scanner for it to work properly (baud rate, parity, stop bits). The free
AsyncPro components include a serial port component, but there's many other
free ones out there as well. www.Torry.net is a good place to start looking.
Regards,
Pierre
| Quote: | Hi - I am looking for any information on incorporating BarCode scanner
into
Delphi written application..
Any information would be very helpful (product / programming solutions)
|
|
|
| Back to top |
|
 |
Andrew Gabb Guest
|
Posted: Sat Sep 20, 2003 2:20 pm Post subject: Re: Delphi and BarCode scanners |
|
|
Most scanners provide both a 'keyboard' interface and a serial
interface. They are very configurable but will normally provide the
barcode that's been read as a text string. Where's the problem?
Andrew
Paul_R wrote:
| Quote: | Hi - I am looking for any information on incorporating BarCode scanner into
Delphi written application..
Any information would be very helpful (product / programming solutions)
Thank you
Paul
|
--
Andrew Gabb
email: [email]agabb (AT) tpgi (DOT) com.au[/email] Adelaide, South Australia
phone: +61 8 8342-1021, fax: +61 8 8269-3280
-----
|
|
| Back to top |
|
 |
Paul_R Guest
|
Posted: Sat Sep 20, 2003 4:01 pm Post subject: Re: Delphi and BarCode scanners |
|
|
There is no problem..just trying to gather some information..are you saying
that vendors would provide me with interface/sdk to read serial port data or
do I have to do that on my own?
Paul
"Andrew Gabb" <agabb (AT) tpgi (DOT) com.au> wrote
| Quote: | Most scanners provide both a 'keyboard' interface and a serial
interface. They are very configurable but will normally provide the
barcode that's been read as a text string. Where's the problem?
|
|
|
| Back to top |
|
 |
Erwien Saputra Guest
|
Posted: Sat Sep 20, 2003 5:42 pm Post subject: Re: Delphi and BarCode scanners |
|
|
Paul_R wrote:
| Quote: | There is no problem..just trying to gather some information..are you
saying that vendors would provide me with interface/sdk to read
serial port data or do I have to do that on my own?
|
I am not sure about barcode scanner that is connected via serial port.
If you already know about this, I am sorry, but do you aware that
barcode scanner is no different than keyboard? You treat barcode
scanner as if you got input from keyboard.
I just thought that scanner that got connected via serial port
(actually I have never seen/use one), should be the same.
Wien.
|
|
| Back to top |
|
 |
Bob Murdoch Guest
|
Posted: Mon Sep 22, 2003 2:16 am Post subject: Re: Delphi and BarCode scanners |
|
|
Paul,
"Paul_R" <spam (AT) cfl (DOT) rr.com> wrote
| Quote: | Hi - I am looking for any information on incorporating BarCode scanner
into
Delphi written application..
|
I've used the readers from Worth Data.
There are two types - the first where the reader stores the data itself, and
uploads to the host pc in batch mode via a serial cable. You create a
program in a text file and upload to the handheld. There is not much you
can do with this, except read the file in Delphi that is created with the
upload.
The second, much more powerful version uses RF. There is nothing loaded on
the handheld. As the unit is turned on, it sends a signal to the receiver
which is plugged into the serial port of a pc. Your Delphi program would
pickup this signal (Worth includes a driver and sample code), and sends a
prompt to the reader. As the user responds to the prompt via the keypad or
scanner, that data is returned to the pc for your application to
store/respond to. Works very well. I had eight scanners running in a large
warehouse with one receiver and one repeater (to cover the large distance).
If you go this route, let me know and I'll dig up some old code for you.
Bob M..
|
|
| Back to top |
|
 |
Andrew Gabb Guest
|
Posted: Mon Sep 22, 2003 4:47 am Post subject: Re: Delphi and BarCode scanners |
|
|
| Quote: | From: Paul_R (spam (AT) cfl (DOT) rr.com)
Subject: Re: Delphi and BarCode scanners
There is no problem..just trying to gather some information..are you saying
that vendors would provide me with interface/sdk to read serial port data or
do I have to do that on my own?
|
Not normally, at least not for the cheaper scannners, and I probably
wouldn't trust them if they did. We use common code which works with
all the scanners we've encountered so far, wand and standard, about
10 brands, in many cases without special scanner set up (ie using
the defaults). Certainly works on Win98, 2K, XP.
I use my own drivers, refined over the years. You can have a copy if
you like. There are a fair amount of smarts in the scanners, so you
tend to get a 'valid' bar code being read when anything appears (but
then you need to check it's the right type, plus other stuff). I
generally poll the driver at regular intervals to see if anything's
waiting.
Andrew
--
Andrew Gabb
email: [email]agabb (AT) tpgi (DOT) com.au[/email] Adelaide, South Australia
phone: +61 8 8342-1021, fax: +61 8 8269-3280
-----
|
|
| Back to top |
|
 |
Adam Goetz Guest
|
Posted: Mon Sep 22, 2003 6:36 am Post subject: Re: Delphi and BarCode scanners |
|
|
What kind of scanner - Wedge, Serial, Batch, RF?
Wedge - you have to do nothing, the scanners output is treated like a
keyboard sequence. Wedge scanners are typically output only devices. Comes
in two flavours, wired and rf. RF requires slightly more setting up (simply
to make sure unit and base are talking)
Serial - you have to have something monitoring the serial port that
understands the data stream the scanner puts out. Serial comes in two
flavours, wired serial and RF serial. RF requires slightly more setting up
(simply to make sure unit and base are talking). Serial can allow two way
communication (so depending on the scanner you can tell it display data,
beep, flash leds etc)
Batch - the scanner is a full computer that you program. Data transfer is
typically via serial connection. You need a serial program on the PC that
can understand whichever protocol the scanner is trying to send on.
RF - the scanner is a full computer and has TCP/IP stacks inbuilt. The
scanner is typically programmed to talk to a specific TCP port, where a
server program is waiting for the information. There are two sub-varities,
Thin client and thick client. Thin client has as much of the code on the
server end as possible - makes updating the program easier, but causes
trouble if the unit leaves RF range. Thick client programs are typically
designed to continue to work if the unit leaves RF range and can recover
later.
|
|
| Back to top |
|
 |
David Farrell-Garcia Guest
|
Posted: Mon Sep 22, 2003 2:31 pm Post subject: Re: Delphi and BarCode scanners |
|
|
Paul_R wrote:
| Quote: | Hi - I am looking for any information on incorporating BarCode
scanner into Delphi written application..
Any information would be very helpful (product / programming
solutions)
Thank you
Paul
|
There is really not much, if anythig that yoiu need to do. If you get
a Wedge type scanner you will not even need to install any drivers. It
will scan or read any text control. The only thing you may need to
control from your applcation is what happens after the scan. In our
POS application after the scan the cursor is moved ot the next text box
without the user having to click the TAB or RETURN key. If they enter
a part manually they must click the TAB or RETURN KEY.
--
David Farrell-Garcia
Whidbey Island Software LLC
|
|
| Back to top |
|
 |
Mike Saunders Guest
|
Posted: Mon Sep 22, 2003 4:44 pm Post subject: Re: Delphi and BarCode scanners |
|
|
| Quote: | There is really not much, if anythig that yoiu need to do. If you get
a Wedge type scanner you will not even need to install any drivers. It
will scan or read any text control. The only thing you may need to
control from your applcation is what happens after the scan. In our
POS application after the scan the cursor is moved ot the next text box
without the user having to click the TAB or RETURN key. If they enter
a part manually they must click the TAB or RETURN KEY.
|
Do you consider a keyboard wedge solution to be as reliable as the serial
port ?. For instance when a bar code is read twice in quick succession by
mistake it can screw up user input I believe you have more control using
serial port. Commercial packages all use serial I think
Mike Saunders
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|