473,395 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Java and Hand Scanner

Hi,

I am a beginner and I am working on an Airport Project now.
I need Java to read data from the hand Scanner connected to COM1.

Bits per second is 9600,
Data bits is 8.

Do you know which Class I should use?
and maybe even some examples?

Thanks for your help!

May 16 '07 #1
2 1854
<pr********@hotmail.comwrote:
I am a beginner and I am working on an Airport Project now.
I need Java to read data from the hand Scanner connected to COM1.

Bits per second is 9600,
Data bits is 8.

Do you know which Class I should use?
and maybe even some examples?
I suggest you ask on a Java newsgroup instead of a C# one.

Having said that, see http://java.sun.com/products/javacomm/

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
May 16 '07 #2
<pr********@hotmail.comwrote in message
news:11*********************@n59g2000hsh.googlegro ups.com...
Hi,

I am a beginner and I am working on an Airport Project now.
I need Java to read data from the hand Scanner connected to COM1.

Bits per second is 9600,
Data bits is 8.

Do you know which Class I should use?
and maybe even some examples?

Thanks for your help!
If you are using Java you might find better help in a Java newsgroup.

I imagine that most modern hardware probably comes with drivers - your best
bet is to look for a documentation that the hardware comes with.

I have written 4 libraries for communicating with serial devices - and if
the only information that you have available is what you posted here in the
NG - then I dare say you are in trouble!

--
LTP

:)
May 17 '07 #3

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

Similar topics

13
by: Andrew Bell | last post by:
I'm doing a uni course in the UK and one of my semesters is about programming. This is just going to be compilied and executed with no menu just using command promt (javac classfile.class) I am...
2
gekko3558
by: gekko3558 | last post by:
I have not worked with java in a while, and all i'm trying to do is read these numbers from a file into a 2D array. This is my code import java.io.*; import java.util.*; public class...
6
by: aureao4 | last post by:
I'm new to Java and programming. I'm trying to code a payroll program and continue getting errors. The program worked last week, this week I have to add set, get and a class. I've written the class...
4
by: NickiWood | last post by:
I am in a beginners Java programming class. So far I am doing ok in the class, although there are some things that I am sure will come in time. Right now we are doing an onging project that started...
2
by: blitz1989 | last post by:
Hello all, I'm new to this forum and Java and having a alot of problems understanding this language. I am working on an invetory program part 4. The assignment requirements are listed but the...
4
by: chetah | last post by:
bd.txt D2333 How to program in Java r IN 454554 Dietal & Dietal Prentice Hall G4547 Java in a Nut Shell c 343345 David Flagman O'Reilly 03-02-08 END 678764 John Smith...
1
by: jimgym1989 | last post by:
I dont get it..why is the error: Exception in thread "main" java.util.InputMismatchException this is my code /** * @(#)textFileRead.java * * * @author * @version 1.00 2008/10/17 */
7
by: schrum312005 | last post by:
Hey guys, I'm a college student in my first programming class and I'm having trouble with an assignment. The requirements to the assignment can be found here:...
6
by: paradox6996 | last post by:
import java.util.Scanner; public class Program01C { public static void main(String args) { double purchase, totalTax, salesTax, countyTax, total; salesTax = 0.04; countyTax =...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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...
0
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,...

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.