By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

Reading serialport

P: n/a
Does anyone know how I can fetch a trigger/break signal via the
serial-port?

I have a circuit that connects two pins on the serial-port when the
sensor is activated (when a person stands infront of the photocell).

How can I get this to interact with my Java code? Or is there a better
alternative then the com-port?

I want a piece of code to run while the cercuit is connected, and to
stop when the person leaves the photocell.

Please help! It's pretty urgent. Should have posted this way earlier.
I've understood that I should use javax.comm, but unfortunaly I don't
know how/what to do with it.
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
SPG
There is a JAVAX extention called JAVACOMM which provides all the
functionality you need.
It is on the java.sun.com website.

Steve

"Laban" <em***********@home.se> wrote in message
news:99**************************@posting.google.c om...
Does anyone know how I can fetch a trigger/break signal via the
serial-port?

I have a circuit that connects two pins on the serial-port when the
sensor is activated (when a person stands infront of the photocell).

How can I get this to interact with my Java code? Or is there a better
alternative then the com-port?

I want a piece of code to run while the cercuit is connected, and to
stop when the person leaves the photocell.

Please help! It's pretty urgent. Should have posted this way earlier.
I've understood that I should use javax.comm, but unfortunaly I don't
know how/what to do with it.

Jul 17 '05 #2

P: n/a
If you're familiar with C or assembler I suggest you do it first there. Then
make a DLL and use it in you Java app.

Greetings,
Rick
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.