Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

reading product bar code in java

Thread view: 
wamahesimonpeter@yahoo.co.uk - 26 Mar 2007 15:48 GMT
Hi, am working on a project on which I require to read a product bar
code so that it helps to dynamically lookup a products details stored
in a database. I am working using Win XP and I need help on how I can
use javax.comm to do this
Ingo R. Homann - 26 Mar 2007 15:55 GMT
Hi,

> Hi, am working on a project on which I require to read a product bar
> code so that it helps to dynamically lookup a products details stored
> in a database. I am working using Win XP and I need help on how I can
> use javax.comm to do this

Quite easy, but completely different to your approach :-)

Normally, the barcode reader has a driver so that it is possible to
create s simple TextField, in which the driver writes the value that the
barcode has read. You can configure most scanners to send a "newline" as
well to simulate pressing the "enter" key.

So, it is just some simple GUI problem!

Hth,
Ingo
Tor Iver Wilhelmsen - 27 Mar 2007 20:23 GMT
På Mon, 26 Mar 2007 16:48:58 +0200, skrev wamahesimonpeter@yahoo.co.uk  
<wamahesimonpeter@yahoo.co.uk>:

> Hi, am working on a project on which I require to read a product bar
> code so that it helps to dynamically lookup a products details stored
> in a database. I am working using Win XP and I need help on how I can
> use javax.comm to do this

This requires either a serial-port barcode reader or a Java API (perhaps  
via JNI) to one attached via USB or FireWire. In the first case, you will  
normally read your barcode reader's documentation to see how you  
initialize it (sending control codes to set the mode etc.). The API  
otherwise is event-driven on input, as long as you specify the correct  
number of data bits, stop bits etc. The bar code reader I worked with ages  
ago also required setting start and end characters to "wrap" the scanned  
code.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.