The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Java Help
|
Reading From a Barcode Scanner into A Java Application
Discuss Reading From a Barcode Scanner into A Java Application in the Java Help forum on Dev Shed. Reading From a Barcode Scanner into A Java Application Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

November 10th, 2011, 06:23 AM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 13
Time spent in forums: 4 h 19 m 57 sec
Reputation Power: 0
|
|
|
Reading From a Barcode Scanner into A Java Application
Dear Sirs et Madames,
I am trying to create an application which reads IDs of blood samples via a barcode reader. How do I read a barcode from a barcode reader into a Java Application for further processing (e.g pulling patient details from database)? Example code and explanations much appreciated.
P.S same applies to fingerprint reader, also need to be able to pull data from database based on usb fingerprint reader. how do I get fingerprint reader data into the java application for further processing?
Thanks in advance,
Tumaini
|

November 11th, 2011, 09:58 AM
|
 |
Contributing User
|
|
Join Date: Aug 2010
Location: SW Missouri
|
|
|
How does the data from the scanner get into the PC? Are there native code drivers?
Do you have API doc for the scanner?
|

November 14th, 2011, 06:12 AM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 13
Time spent in forums: 4 h 19 m 57 sec
Reputation Power: 0
|
|
|
I really am not clued up on the technicalities which is why I asked the question... What would I need to do to get a barcode scanner talking to a Java application?
|

November 14th, 2011, 06:24 AM
|
 |
Contributing User
|
|
Join Date: Aug 2010
Location: SW Missouri
|
|
|
To understand what the device does you'd need documentation on how it works including how it connects to a PC and what drivers are needed to make it available for other programs to get its data.
|

February 8th, 2012, 02:24 AM
|
|
Registered User
|
|
Join Date: Feb 2012
Posts: 3
Time spent in forums: 57 m 26 sec
Reputation Power: 0
|
|
|
Barcode Scanner
Is it java the best application for the Barcode application??
|

February 8th, 2012, 08:13 PM
|
|
Contributing User
|
|
Join Date: Feb 2012
Posts: 37
Time spent in forums: 7 h 55 m 20 sec
Reputation Power: 2
|
|
Quote: | Originally Posted by blakkphoenixx Dear Sirs et Madames,
I am trying to create an application which reads IDs of blood samples via a barcode reader. How do I read a barcode from a barcode reader into a Java Application for further processing (e.g pulling patient details from database)? Example code and explanations much appreciated.
P.S same applies to fingerprint reader, also need to be able to pull data from database based on usb fingerprint reader. how do I get fingerprint reader data into the java application for further processing?
Thanks in advance,
Tumaini |
I looked around a bit and found several things that confirm what NormR is saying. You need to look at the documentation of your device. It will tell you how the data is decoded when it is sent to the computer. Once you know that, you will be able to write code based on what the input.
One helpful post I found deals with treating scanner input as keystrokes. I don't know if this is true for the scanners you want to program for, but that does appear to be the standard. Take a look at this URL.
Code:
http://stackoverflow.com/questions/6734393/getting-input-from-barcode-scanner-internally-without-textbox
If your scanner is using a COMM interface, take a look at this API.
Code:
http://www.oracle.com/technetwork/java/index-jsp-141752.html
Hope that helps.
Cheers, Cam.
|

January 30th, 2013, 08:01 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 2
Time spent in forums: 15 m 8 sec
Reputation Power: 0
|
|
|
Why not integrate a barcode reader into your java project? I read some articles about Java barcode reader and I think it is feasible? Why did you turn down this proposal?
Barcodelib.com
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|