Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 10th, 2011, 06:23 AM
blakkphoenixx blakkphoenixx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 13 blakkphoenixx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old November 11th, 2011, 09:58 AM
NormR's Avatar
NormR NormR is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Aug 2010
Location: SW Missouri
Posts: 2,956 NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 56 m 11 sec
Reputation Power: 345
How does the data from the scanner get into the PC? Are there native code drivers?
Do you have API doc for the scanner?

Reply With Quote
  #3  
Old November 14th, 2011, 06:12 AM
blakkphoenixx blakkphoenixx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 13 blakkphoenixx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

Reply With Quote
  #4  
Old November 14th, 2011, 06:24 AM
NormR's Avatar
NormR NormR is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Aug 2010
Location: SW Missouri
Posts: 2,956 NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 56 m 11 sec
Reputation Power: 345
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.

Reply With Quote
  #5  
Old February 8th, 2012, 02:24 AM
cheersdial cheersdial is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 3 cheersdial Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 57 m 26 sec
Reputation Power: 0
Barcode Scanner

Is it java the best application for the Barcode application??

Reply With Quote
  #6  
Old February 8th, 2012, 08:13 PM
Cameron0960 Cameron0960 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 37 Cameron0960 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #7  
Old January 30th, 2013, 08:01 PM
neo mars neo mars is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 2 neo mars User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Reading From a Barcode Scanner into A Java Application

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap